From: Florian Meier <florian.meier@koalo.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Interrupt autoboot by GPIO
Date: Wed, 16 Apr 2014 13:02:40 +0200 [thread overview]
Message-ID: <534E6350.5030603@koalo.de> (raw)
In-Reply-To: <20140415221252.C123638034A@gemini.denx.de>
Hi Wolfgang,
On 04/16/2014 12:12 AM, Wolfgang Denk wrote:
> What I don't understand is wether you actually want to use this radio
> transceiver as console interface device in U-Boot, or not. If you
> want to use it, then just do, and spend thoughts on restricting access
> to legitimate users and uses.
I do not want to use the radio transceiver as console interface, but
maintain the possibility to connect a serial cable to the same UART when
I messed it up.
> You could implement somewhere in the init code a test that checks the
> state of the GPIO,and then modifies environment settings (say,
> bootdelay, or even bootcnt - so you could auto-switch between bootcmd
> and altbootcmd) to behave one way of the other. Actually this could
> even be scripted - say in "preboot", so you don't even write a single
> line of code.
That is a great idea. The following line works fine:
#define CONFIG_PREBOOT "if gpio input 8; then setenv bootdelay 0; else
setenv bootdelay -1; fi"
Thank you very much!
Greetings,
Florian
prev parent reply other threads:[~2014-04-16 11:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-15 18:25 [U-Boot] Interrupt autoboot by GPIO Florian Meier
2014-04-15 22:12 ` Wolfgang Denk
2014-04-16 11:02 ` Florian Meier [this message]
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=534E6350.5030603@koalo.de \
--to=florian.meier@koalo.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