public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mark Jackson <mpfj@mimc.co.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] Can I have a backup boot option ?
Date: Mon, 24 Nov 2008 12:42:28 +0000	[thread overview]
Message-ID: <492AA134.7010008@mimc.co.uk> (raw)

Our current system works fine (booting from flash or nfs), but I'd also like to add a "recovery" feature.

If an end-user inserts an MMC card containing some "magic marker" files, the target will detect these and boot from the MMC card instead of using the standard boot option.

For portability, I guess I could use the Hush option and construct some big if..else..fi statement to check for the MMC card files and boot accordingly. Is this a simple-ish task ?

An easier, but less portable, way would be to hard-code the checks in the startup code before the standard boot process.

I've done a quick check of the README and the source code, but nothing else seems to stand out as a possible solution.

Anyone got any ideas ?

Thanks
Mark

             reply	other threads:[~2008-11-24 12:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-24 12:42 Mark Jackson [this message]
2008-11-24 12:56 ` [U-Boot] Can I have a backup boot option ? Wolfgang Denk
2008-11-24 14:31   ` Mark Jackson

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=492AA134.7010008@mimc.co.uk \
    --to=mpfj@mimc.co.uk \
    --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