Help with nand u-boot environment

leonardo at lilik.it leonardo at lilik.it
Fri Jan 2 13:04:02 CET 2009


Hi all,
I've been messing with u-boot and need some help.
I was trying to set the "rw" parameter into bootargs to boot 2008.12
from SD. After a couple attempts, I had too many entries in the u-boot,
and wanted to erase them all, so I used the "defaultenv" command in
u-boot to reset them to the beginning. The "beginning" I think it's not
a working environment.
Now the environment is messed and I can't boot from NAND, only from NOR,
even if I want to use internal flash and not SD.

re-flashing the bootloader does not change the environment.

Could somebody point me to a saved environment file somewhere? or, could
anybody please upload a working environment into the wiki?

All you have to do is boot into the menu (AUX+Power), connect a usb
cable and use dfu to backup your environment:

dfu-util -d 0x1d50:0x5119 -a u-boot_env -D env.orig

I can assure you that having a backup copy of your own environment can
turn out to be useful also to you, someday :-)

One more question: if I use a menu item like this:

setenv menu_1 Boot from microSD (2008.12): setenv rootfstype=ext2
root=/dev/mmcblk0p2 \; mmcinit\; fatload mmc 1 0x32000000 uImage.bin\;
bootm 0x32000000

and then "run menu_1" I always (even if booting the kernel has success)
see on the console an error:

Unknown command 'Boot' - try 'help'

is there a way to avoid this?

thanks,
leonardo.
-- 
http://leonardo.lilik.it
Key fingerprint = 2C20 A587 05AC 42E5 1292  D0D4 3EED CFB5 52FD AD1E





More information about the community mailing list