Skip to contentSkip to conversation

change autoboot

U-Boot bundy 3 participants 5 messages Feb 25, 2009

lore
Share & tools
lore

bundy

author
#0 lore raw

Newbie with question:
uboot is currently configured to autoboot with "run boot_nor". In the configuration I found a variable called BOOTCOMMAND which is set to "run boot_nor". Which I now want to set it to "run prog_all_usb; run boot_nor" I then recompile everything transfer u-boot to my device and on initial startup it works but if I turn my device off and back on it and interrupt autoboot and type "printenv". The bootcmd is set back to just "run boot_nor"
- what am i missing??????????????

Thanks

Signature · 2 lines
View this message in context: http://www.nabble.com/change-autoboot-tp22195894p22195894.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw
Quoted 11 lines · bundy

Newbie with question:
uboot is currently configured to autoboot with "run boot_nor". In the configuration I found a variable called BOOTCOMMAND which is set to "run boot_nor". Which I now want to set it to "run prog_all_usb; run boot_nor" I then recompile everything transfer u-boot to my device and on initial startup it works but if I turn my device off and back on it and interrupt autoboot and type "printenv". The bootcmd is set back to just "run boot_nor"
- what am i missing??????????????

Thanks

Try erasing your U_Boot environment before rebooting. U-Boot wil then
boot using the default environment you set up.
now change the things you want changed and run saveenv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2722 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090225/e5e1419e/attachment.bin

#2 lore raw
In reply to bundy

Dear bundy,

Quoted 8 lines · In message <[email protected]> you wrote:

uboot is currently configured to autoboot with "run boot_nor". In the configuration I found a variable called BOOTCOMMAND which is set to "run boot_nor". Which I now want to set it to "run prog_all_usb; run boot_nor" I then recompile everything transfer u-boot to my device and on initial startup it works but if I turn my device off and back on it and interrupt autoboot and type "printenv". The bootcmd is set back to just "run boot_nor"
- what am i missing??????????????

If you had bothered to read the manual you should have known that rebuilding U-Boot is not necessary for such a simple change - a simple "setenv" followed by a "saveenv" would have been all you needed.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It is easier to port a shell than a shell script."      - Larry Wall
author
#3 lore raw

Dear Wolfgang Denk

Sorry I was unclear in my question, its not that saveenv doesn't work as it does, it was that I was hoping
to do it through the build system/configuration file.

Bundy

Quoted 33 lines · wd

Dear bundy,

Quoted 9 lines · In message <[email protected]> you wrote:

uboot is currently configured to autoboot with "run boot_nor". In the configuration I found a variable called BOOTCOMMAND which is set to "run boot_nor". Which I now want to set it to "run prog_all_usb; run boot_nor" I then recompile everything transfer u-boot to my device and on initial startup it works but if I turn my device off and back on it and interrupt autoboot and type "printenv". The bootcmd is set back to just "run boot_nor"
- what am i missing??????????????

If you had bothered to read the manual you should have known that rebuilding U-Boot is not necessary for such a simple change - a simple "setenv" followed by a "saveenv" would have been all you needed.

Best regards,

Wolfgang Denk

Signature · 8 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It is easier to port a shell than a shell script."      - Larry Wall
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 2 lines
View this message in context: http://www.nabble.com/change-autoboot-tp22195894p22209226.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#4 lore raw

Dear bundy,

Quoted 4 lines · In message <[email protected]> you wrote:

Sorry I was unclear in my question, its not that saveenv doesn't work as it does, it was that I was hoping
to do it through the build system/configuration file.

You can do that, too, of course. But allyou affect this way is (usually [*]) the default environment, which gets used if the normal environment gets corrupted - as long as there is a valid copy this one will be used, and the default environment will never be used.

As recommended before, you can erase or otherwise invalidate (for example, just overwrite the checksum entries) the environment to force using the default environment.

[*] An exceptions is the (not frequently used) configuration ith an
"embedded" environment where the environment is part of the U-Boot image itself and will get overwritten when you install a new image.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
COBOL is for morons.                                 -- E.W. Dijkstra