[U-Boot] Switch to backup image after failure to boot

Thibault VINCENT tibal at reloaded.fr
Wed Aug 19 20:54:33 CEST 2009


> 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;


Rgds

-- 
Thibault VINCENT
tibal at reloaded.fr
thibault.vincent at reloaded.fr
PGP Key : 0x4BA8A39B


More information about the U-Boot mailing list