From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Dual boot Images in Flash
Date: Tue, 01 Oct 2013 22:38:07 +0200 [thread overview]
Message-ID: <20131001203807.1473E38040E@gemini.denx.de> (raw)
In-Reply-To: <1380633558849-164443.post@n7.nabble.com>
Dear pshambhu,
In message <1380633558849-164443.post@n7.nabble.com> you wrote:
>
> Can i have a small uboot_stub in the reset entry table, which will boot
> initially, and while booting it should select the default booting location
> (u-boot1).But if the default booting location fails to boot up then
> u-boot_stub should select bootloader u-boot2.
>
> u-boot_stub will do CRC checksum on the u-boot1, if CRC checksum fails on
> that, then u-boot2 will be considered for bootup.
That would be pretty straight-forward (and I'm even tempted to write:
trivial) to implement. Just add the CRC checking and selecting part
to SPL...
> Since its the software, i think it can be done and If it is possible, can
> you please tell me which are the files need to be taken care for the file
> changes.
On the other hand, it does not really solve your problem - how do you
fix problems or perform reliable updates of this "small uboot_stub"?
I recommend to face the real situation: yes, you can implement all
levels of complicated multi-stage boot procedures that promise to
provide all kinds of features and reliability - but in the end you
still have that small, central critical piece of code, and guess where
the nasty bug will be found? Without hardware support (switching
boot devices etc.) you cannot implement a 100% reliable solution. And
if it's less than 100%, then what's the difference between 99.999% and
99% ? If things go wrong, your're stuck. And I bet Murphy is looking
over your right shoulder right when you can't have it.
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
Imagination was given to man to compensate him for what he is not; a
sence of humor to console him for what he is. - Fancis Bacon
next prev parent reply other threads:[~2013-10-01 20:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-30 13:27 [U-Boot] Dual boot Images in Flash pshambhu
2013-09-30 20:01 ` Wolfgang Denk
2013-10-01 6:02 ` Gupta, Pekon
2013-10-01 7:08 ` Wolfgang Denk
2013-10-01 7:43 ` Gupta, Pekon
2013-10-01 8:54 ` pshambhu
2013-10-01 13:19 ` pshambhu
2013-10-01 20:38 ` Wolfgang Denk [this message]
2013-10-03 7:00 ` pshambhu
2013-10-03 21:43 ` 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=20131001203807.1473E38040E@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