From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] ctrl-c detection (on 4xx platforms)
Date: Sat, 13 Sep 2008 18:51:45 +0200 [thread overview]
Message-ID: <200809131851.45823.matthias.fuchs@esd-electronics.com> (raw)
In-Reply-To: <20080912090851.4A20424926@gemini.denx.de>
Hi Wolfgang,
On Friday 12 September 2008 11:08:51 Wolfgang Denk wrote:
> Dear Matthias Fuchs,
>
> In message <200809120955.10866.matthias.fuchs@esd-electronics.com> you
wrote:
> > when I disable CONFIG_AUTOBOOT_KEYED ctrl-c checking is not disabled.
>
> I think there is one "dis" ot "not" too many.
:-)
>
> > We are using CONFIG_AUTOBOOT_KEYED to have a special key (SPACE) to
> > abort autoboot and not the 'any' key.
>
> I thought so.
>
> > Is there any special reason why ctrl-c checking is disabled for
> > CONFIG_AUTOBOOT_KEYED?
>
> Excellent question. Next question, please.
>
>
> I think the rationale behind this is to prevent users from getting an
> interactive prompt by just pressing ^C - the intention of
> CONFIG_AUTOBOOT_KEYED is similar to a login with password - without
> the correct password you are denied access to an interactive inter-
> face.
I see. This makes sense.
>
> But if you could use ^C as soon as the bootcmd has started - what
> should happen next? We cannot simply drop you into the interactive
> shell?
Ok, this will cancel the whole mechanism.
I only want to allow the space key to abort autoboot. With serial console
cables connected (with no PC on the other side) you sometimes receive some
noise characters because of crosstalk. These chars will stop autoboot -> not
good! We did never see this when restricting the stopkey to the space key.
Because I only need to abort my special bootcmd during testing I reenabled
ctrl-c checking in my loadpci command.
Thanks for pointing out the ..KEYED philosophy.
Matthias
>
> Best regards,
>
> Wolfgang Denk
prev parent reply other threads:[~2008-09-13 16:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-11 15:23 [U-Boot] ctrl-c detection (on 4xx platforms) Matthias Fuchs
2008-09-11 20:55 ` Wolfgang Denk
2008-09-12 7:00 ` Matthias Fuchs
2008-09-12 7:55 ` Matthias Fuchs
2008-09-12 9:08 ` Wolfgang Denk
2008-09-13 16:51 ` Matthias Fuchs [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=200809131851.45823.matthias.fuchs@esd-electronics.com \
--to=matthias.fuchs@esd-electronics.com \
--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