[Bug 201401] [PATCH] sysutils/u-boot-beaglebone

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 7 14:29:57 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201401

            Bug ID: 201401
           Summary: [PATCH] sysutils/u-boot-beaglebone
           Product: Ports & Packages
           Version: Latest
          Hardware: arm
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ian at FreeBSD.org
          Reporter: manu at bidouilliste.com
                CC: freebsd-arm at FreeBSD.org
                CC: freebsd-arm at FreeBSD.org
          Assignee: ian at FreeBSD.org
             Flags: maintainer-feedback?(ian at FreeBSD.org)
          Keywords: patch

Created attachment 158505
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158505&action=edit
patch_saveenv

This patch removes the hardcoded device for env location and set the variable
bootdevice to 0 (i.e. the SD card) to the default env.
This makes u-boot saves the env file according to bootdevice instead of
hardcoded one (now the SD card) when using the saveenv command.

This is an enhancement for users who boot from eMMC and don't affect users of
SD card only.

It also correct the SetupUenv command to load u-boot.env (the filename of the
saved end) instead of uEnv.txt.

Note that currently u-boot fails to correctly saves the env to a FAT12
partition, you must use a FAT16 one.
You can create a correct bootable FAT16 partition for the eMMC like this when
booting from SD card :

gpart destroy -F mmcsd1
gpart create -s mbr mmcsd1
gpart add -t fat16 -b 4096 -s 10M
gpart set -a active -i 1 mmcsd1
newfs_msdos -F 16 -h 4 -u 16 -S 512 -m 0xf8 -n 2 -c 4 -a 20 -r 4 -e 512
/dev/mmcsd1s1

Cheers,

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list