[U-Boot-Users] bootcmd

Matt Gessner mgessner at Avidyne.com
Thu May 31 15:14:15 CEST 2007


Thanks Wolfgang & Timur,

I think I want something like this:

	setenv addr 20000000
	fsload $addr uImage || fsload $addr uImage.new && bootm $addr

If the bootloader can't find uImage, try to find uImage.new.

Does that make sense?  I'm using u-boot 1.2.0.

Matt

> -----Original Message-----
> From: wd at denx.de [mailto:wd at denx.de]
> Sent: Wednesday, May 30, 2007 7:23 PM
> To: Timur Tabi
> Cc: Matt Gessner; u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] bootcmd
> 
> In message <465DE93D.1010907 at freescale.com> you wrote:
> > Matt Gessner wrote:
> > > 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?
> >
> > fsload 20000000 uImage && bootm 20000000
> 
> Or, without using the hush shell:
> 
> => sete kaddr 20000000
> => sete kload 'fsload ${kaddr} uImage'
> => sete kboot 'bootm ${kaddr}'
> => save
> 
> followed by "run kload kboot"
> 
> See http://www.denx.de/wiki/view/DULG/CommandLineParsing for details.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> --
> 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
> Es sind überhaupt nur die Dummköpfe, die sich den Befehlen der  Mäch-
> tigen  widersetzen.  Um  sie  zu ruinieren ist es genug, ihre Befehle
> treu zu erfüllen.                  - Peter Hacks: "Die schöne Helena"
> 





More information about the U-Boot mailing list