All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] bootcmd
@ 2007-05-30 21:08 Matt Gessner
  2007-05-30 21:14 ` Timur Tabi
  0 siblings, 1 reply; 7+ messages in thread
From: Matt Gessner @ 2007-05-30 21:08 UTC (permalink / raw)
  To: u-boot

Hi, 

I'm trying to figure out how to make my software field update process
robust.  Currently, my bootcmd is 'fsload 20000000 uImage; bootm
20000000'

Is there anyway for u-boot to determine, in one of these commands, that
some command failed, and to do something else instead?

For example, if I failed to load uImage, could I check for its
existence, and boot that instead?  

My update process will copy the new image into the same partition as
uImage, as uImage.new, and then rename uImage to uImage.old, rename
uImage.new to uImage, and then delete uImage.old.

If something untoward should happen (like the idiot turns off the power
in the middle of the update), I'm wondering how I can have u-boot get
around this.

Thanks,

Matt 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-31 16:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-30 21:08 [U-Boot-Users] bootcmd Matt Gessner
2007-05-30 21:14 ` Timur Tabi
2007-05-30 23:23   ` Wolfgang Denk
2007-05-31 13:14     ` Matt Gessner
2007-05-31 14:02       ` Wolfgang Denk
2007-05-31 15:04         ` Matt Gessner
2007-05-31 16:15           ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.