From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Switch to backup image after failure to boot
Date: Wed, 19 Aug 2009 21:26:28 +0200 [thread overview]
Message-ID: <20090819192628.8B09C833DBD2@gemini.denx.de> (raw)
In-Reply-To: <20090819205433.45384upebz0ijmg9@mail.tibal.info>
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
next prev parent reply other threads:[~2009-08-19 19:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2009-08-19 19:21 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090819192628.8B09C833DBD2@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox