[U-Boot] Switch to backup image after failure to boot
Wolfgang Denk
wd at denx.de
Wed Aug 19 21:26:28 CEST 2009
Dear Thibault VINCENT,
In message <20090819205433.45384upebz0ijmg9 at mail.tibal.info> you wrote:
> > Correct me if I'm wrong, but I thought I read in some document that you can
> > set some environment variable that will load the image from an alternate
> > location (address) after failing to boot the image at the primary location.
> > I was just wondering if someone could give me some details about this as I
> > can't remember where I read it, or if this is even possible. Thanks.
>
> Hello
>
> You may try something like this :
>
> boot2=disk 0x400000 1:6
> boot1=if disk 0x400000 0:6; then; else run boot2; fi
> myboot=ide reset; run boot1; bootm 0x400000;
Well, this will help if the image itself is corrupted.
It will not help if for example the image is intact, so it starts to
boot but then for example hangs...
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
In Nature there are neither rewards nor punishments, there are conse-
quences. -- R.G. Ingersoll
More information about the U-Boot
mailing list