On Tue, Jul 20, 2010 at 12:54, S <[email protected]> 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?
>
> Btw, is the command above correct?
>
> thanks,
> Max.
Command is not correct, you have to escape some special characters, as
those are parts of variable, not "setenv" command:
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
Look at "ext2load mmc 0:1" - IIRC, this 1 means partition from which
you're booting kernel (but I don't remember now if it's counted from 0
or from 1). /dev/mmcblk0p1 is your rootfs partition and you can check
it easly from Linux.
--
Sebastian Krzyszkowiak
dos
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user