From: Brendan Simon (eTRIX) <brendan.simon@etrix.com.au>
To: u-boot@lists.denx.de
Subject: [U-Boot] u-boot retries with fallback to other images
Date: Mon, 7 Dec 2015 21:45:34 +1100 [thread overview]
Message-ID: <5665634E.8050004@etrix.com.au> (raw)
In-Reply-To: <20151207062318.020A9383F2E@gemini.denx.de>
Hi Wolfgang,
On 7/12/2015 5:23 PM, Wolfgang Denk wrote:
> Dear Brendan,
>
> In message <5663B74E.7000204@etrix.com.au> you wrote:
>> Is there any documentation or u-boot support for having a list of boot
>> images to try, starting with the first in the list, trying 1, 2 or 3
>> times, then trying the next in the list.
>>
>> e.g. boot kernel at mmcblk0p3, then mmcblk0p2, then mmcblk1p2, then
>> tftp/nfs last resort fallback ?
>> or
>> boot off partition 3 of eMMC, then partition2 of eMMC, then
>> partition 2 of SD card, then tftp/nfs ?
> Define a set of boot commands, say bootcmd1, bootcmd2, ...
> and then simply do
>
> run bootcmd1; run bootcmd2; ...
>
> The furst one that succeeds will not return.
>
> Note that the key problem with such a simplistic approach is that it
> will not help you in case an image looks OK, but hangs during boot -
> in that case, you need a watchdow and support for the bootcount
> feature.
>
> Best regards,
> Wolfgang Denk
Yes, the watchdog and bootcount feature is the advanced stuff I'm
looking for.
I would think this has been implemented numerous times, and I didn't
want to reinvent the wheel if there was some commonly used
infrastructure to support this.
If software does boot, then at some stage would set a u-boot variable to
say everything booted ok, so that it can be used again on next boot.
My use case is not that uncommon -- lots of embedded devices installed
in remote locations that are not easily accessible, but require remote
monitor and software updates.
Is there anything that is "standard" in u-boot to support this?
Or any work that is published that has attempted this?
Thanks,
Brendan.
next prev parent reply other threads:[~2015-12-07 10:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-06 4:19 [U-Boot] u-boot retries with fallback to other images Brendan Simon
2015-12-07 6:23 ` Wolfgang Denk
2015-12-07 10:45 ` Brendan Simon [this message]
2015-12-07 17:38 ` 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=5665634E.8050004@etrix.com.au \
--to=brendan.simon@etrix.com.au \
--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