[mel-discuss] BeagleBoard XM - manual boot
Ricardo Anguiano
ricardo_anguiano at mentor.com
Mon Feb 13 23:33:47 UTC 2012
"Cherry, John" <John_Cherry at mentor.com> writes:
> A note from the quickstart guide that might be handy if you are having
> difficulties auto-booting from uboot...
If you are looking for a more automated workaround here are a couple.
After following either set of instructions below, your board should just
boot.
------------------------------------------------------------------------
Workaround #1: Put the uImage file where u-boot expects it
In the boot messages you can see that u-boot is looking for the uImage
kernel file in /boot/uImage on the second partition of the mmc card:
Relevant uImage Boot Error
Loading file "/boot/uImage" from mmc device 0:2 (xxa2)
** File not found /boot/uImage
The workaround is to put a copy of the uImage kernel file where u-boot
expects it:
# mount /dev/sdc2 sdc2
# cp -f <mel-kit>/beagleboard/binary/uImage-beagleboard.bin /mnt/sdc2/boot/uImage
------------------------------------------------------------------------
Workaround #2: Use uEnv.txt and boot.scr to get u-boot to read the
uImage file from the first partition
In the boot messages you can see that u-boot tries to load a file called
uEnv.txt:
reading uEnv.txt
** Unable to read "uEnv.txt" from mmc 0:1 **
Create a uEnv.txt and boot.scr on the first partition of the mmc card as
shown below:
uEnv.txt
bootenv=boot.scr
loaduimage=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
mmcboot=echo Running boot.scr script from mmc ...; source ${loadaddr}
See also, http://archlinuxarm.org/forum/viewtopic.php?f=28&t=1940
The contents of the boot.scr.txt input come from the workaround
instructions for non-booting boards in the MEL-KIT for beagleboard
installation and quick start guide page 8 section titled "Booting the
BeagleBoard with MEL kit":
mmc rescan ${mmcdev}; fatload mmc ${mmcdev} ${loadaddr} uImage
setenv bootargs console=${console} ${optargs} mpurate=${mpurate} buddy=${buddy} buddy2=${buddy2} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=/dev/mmcblk0p2 rootfstype=${mmcrootfstype}
bootm ${loadaddr}
Then make the boot.scr:
# mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "Pandaboard boot script" -d boot.scr.txt boot.scr
Then copy uEnv.txt and boot.scr onto the first partition of your card:
# mount /dev/sdc1 sdc1
# cp -f boot.scr uEnv.txt /mnt/sdc2
Thanks,
--
Ricardo Anguiano
Mentor Graphics
+1-510-354-6774
More information about the mel-discuss
mailing list