public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Switch to backup image after failure to boot
@ 2009-08-19 16:52 dbrazeau
  2009-08-19 18:54 ` Thibault VINCENT
  2009-08-19 19:21 ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: dbrazeau @ 2009-08-19 16:52 UTC (permalink / raw)
  To: u-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.
-- 
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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Switch to backup image after failure to boot
  2009-08-19 16:52 [U-Boot] Switch to backup image after failure to boot dbrazeau
@ 2009-08-19 18:54 ` Thibault VINCENT
  2009-08-19 19:26   ` Wolfgang Denk
  2009-08-19 19:21 ` Wolfgang Denk
  1 sibling, 1 reply; 4+ messages in thread
From: Thibault VINCENT @ 2009-08-19 18:54 UTC (permalink / raw)
  To: u-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.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Switch to backup image after failure to boot
  2009-08-19 16:52 [U-Boot] Switch to backup image after failure to boot dbrazeau
  2009-08-19 18:54 ` Thibault VINCENT
@ 2009-08-19 19:21 ` Wolfgang Denk
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2009-08-19 19:21 UTC (permalink / raw)
  To: u-boot

Dear dbrazeau,

In message <25047967.post@talk.nabble.com> 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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Switch to backup image after failure to boot
  2009-08-19 18:54 ` Thibault VINCENT
@ 2009-08-19 19:26   ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2009-08-19 19:26 UTC (permalink / raw)
  To: u-boot

Dear Thibault VINCENT,

In message <20090819205433.45384upebz0ijmg9@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-08-19 19:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19 16:52 [U-Boot] Switch to backup image after failure to boot dbrazeau
2009-08-19 18:54 ` Thibault VINCENT
2009-08-19 19:26   ` Wolfgang Denk
2009-08-19 19:21 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox