Help with nand u-boot environment

2009-01-02 Thread leona...@lilik.it
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 0x3200 uImage.bin\;
bootm 0x3200

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


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Help with nand u-boot environment

2009-01-02 Thread Andy Green
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| 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.

I think what your missing then is dynpart or dynparts to fill in more of
the environment for you, then saveenv.

| Unknown command 'Boot' - try 'help'
|
| is there a way to avoid this?

No immediate idea, sorry.

This kind of thing is why there is no private environment in Qi.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkleBAsACgkQOjLpvpq7dMp4YACggNKFFQGgFYDeDNcsaTZ2cDJR
kioAnRFQ9Yh5lAQMtcIvy878Ro3RdoyV
=GHxZ
-END PGP SIGNATURE-

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Help with nand u-boot environment

2009-01-02 Thread Nikita V. Youshchenko
 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 0x3200 uImage.bin\;
 bootm 0x3200

 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'

'run var' just means 'execute string stored in var as a u-boot command'. 
And that is exactly what it does.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community



Re: Help with nand u-boot environment

2009-01-02 Thread Gothnet


Leonardo-3 wrote:
 
 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?
 
 

I've found this useful on multiple occasions -

http://wiki.openmoko.org/wiki/Bootloader#What_if_I_borked_my_bootloader_environment_and_don.27t_get_a_prompt_anymore.3F

To reset uboot environments. You can also tweak the environment.in file for
stuff like large kernels, or (I guess) different menu entries.

HTH
-- 
View this message in context: 
http://n2.nabble.com/Help-with-nand-u-boot-environment-tp2101581p2102386.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Help with nand u-boot environment

2009-01-02 Thread leona...@lilik.it
Gothnet wrote:

Hi everybody.
Thanks for the help, I'm now able to boot both qt-extended and 2008.12!

I'm still not really confident about u-boot syntax, I understand that

setenv var content

means set content into var, but what is the part of content that
is displayed as a menu entry and what is the part that is executed?

leonardo.

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

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community