set next boot

Tyler Oderkirk tyl.eroderkirk at gmail.com
Sun Sep 28 18:45:30 CEST 2008


On Fri, Sep 26, 2008 at 3:32 AM, Petr Vanek <vanous at penguin.cz> wrote:
> [...] is there any
> command that would set priority for next boot?

hi petr,

i don't see a recipe what you've asked but our wiki has some good
details on u-boot:
http://wiki.openmoko.org/wiki/Bootloader_environment

also see these two threads on the topic:
http://markmail.org/message/d2abi2nm5vms3unh and
http://lists.openmoko.org/pipermail/community/2008-September/029845.html

if all else fails you could construct a crude hack which overwrites
the appropriate portion of nand with one of two known u-boot_env
images: 1) "boot operating system foo by default" or 2) "boot
operating system bar by default"

there will be hassles, of course:
- grep http://downloads.openmoko.org/sources/cvs/uboot/u-boot/CHANGELOG
for "add env-variable"
- see http://wiki.openmoko.org/wiki/Bricked#Useful_information
- beware a moving target :/ see
http://wiki.openmoko.org/wiki/NAND_bad_blocks#Environment

good luck!

-tyler

-- 
"There are four boxes to be used in defense of liberty: soap, ballot,
jury, and ammo. Please use in that order."
     - Ed Howdershelt




More information about the community mailing list