On Tuesday 20 July 2010, S wrote:
> Ok, I got into u-boot prompt with cu.
>
> It looks like I can set env variables with "setenv" and permanently
> store them with "saveenv".
>
> As far as I understood in order to add new menu entry for booting from
> single ext2 partition I have to do something like this:
>
> setenv menu_2 Boot from SD ext2: setenv bootargs ${bootargs_base}
> ${mtdparts} rootfstype=ext2 root=/dev/mmcblk0p1 rootdelay=5; mmcinit;
> ext2load mmc 0:1 0x32000000 uImage.bin; bootm 0x32000000
>
> The question is - how do I verify all the numbers in here e. g. how to
> check weather I should use mmcblk0p1 or something else? What does
> 0x32000000 mean?
It depends which partition you are using. mmcblk0p1 and mmc 0:1 are correct
for the first partition. For the second partition it would be mmcblk0p2 and
mmc 0:2, and so on. If you are loading the kernel from the rootfs then they
should match.
IIRC 0x32000000 is a memory location, and I've never changed it.
> Btw, is the command above correct?
It looks about right from memory, but you need to escape the semicolons with a
backslash to get them into the environment setting. You can use printenv to
find out whether you got it right before using saveenv. You might also like to
add other kernel options to the bootargs, such as 'quiet'.
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user