[U-Boot-Users] bootcmd
Wolfgang Denk
wd at denx.de
Thu May 31 01:23:21 CEST 2007
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