From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] using a GPIO to toggle tftp boot mode
Date: Mon, 04 Jul 2011 08:12:05 +0200 [thread overview]
Message-ID: <4E1159B5.1000003@aribaud.net> (raw)
In-Reply-To: <CABg3NWt3S0AeQcXr0ZJ2G7LcRsMEMEke4uybKhWZp4c6gD1rjg@mail.gmail.com>
Hi Chris,
Le 04/07/2011 07:50, Chris Gray a ?crit :
> I'm hoping to come up with a way to configure a recovery mechanism using
> uboot. the idea is if the main OS image needs to be reflashed, or for
> recovery options.
>
> what are my options for configuring uboot to use a different set of
> configuration options based on the state of a GPIO line (button)?
The cleanest and simplest course would be to use script commands to set
up GPIO if it is not already done by the U-Boot code, and set the
bootcmd variable to test the GPIO port value on boot and run an internal
or tftp boot accordingly. You may want to make sure your board has the
HUSH command line interpreter enabled.
> thanks!
np.
> -CG
Amicalement,
--
Albert.
next prev parent reply other threads:[~2011-07-04 6:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-04 5:50 [U-Boot] using a GPIO to toggle tftp boot mode Chris Gray
2011-07-04 6:12 ` Albert ARIBAUD [this message]
2011-07-04 16:19 ` Chris Gray
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=4E1159B5.1000003@aribaud.net \
--to=albert.u.boot@aribaud.net \
--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