Switch to backup image after failure to boot
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.
Signature · 2 lines
View this message in context: http://www.nabble.com/Switch-to-backup-image-after-failure-to-boot-tp25047967p25047967.html Sent from the Uboot - Users mailing list archive at Nabble.com.
Quoted 5 lines
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
Signature · 4 lines
Thibault VINCENT tibal at reloaded.fr thibault.vincent at reloaded.fr PGP Key : 0x4BA8A39B
Dear Thibault VINCENT,
Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 5 lines
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.
Quoted 7 lines
Hello
You may try something like this :
boot2=disk
0x4000001:6
boot1=if disk0x4000000:6; then; else run boot2; fi myboot=ide reset; run boot1; bootm0x400000;
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
Signature · 5 lines
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
Dear dbrazeau,
Quoted 6 lines · In message <[email protected]> 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.
As usual it depends on architecturew, CPU and board if this featuresis available and enabled for your hardware. What you are looking for is the "boot count limit". See
http://www.denx.de/wiki/view/DULG/UBootBootCountLimit
Best regards,
Wolfgang Denk
Signature · 5 lines
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 Certainly there are things in life that money can't buy, but it's very funny - Did you ever try buying them without money? - Ogden Nash