All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] silent console, nulldev and CONFIG_AUTOBOOT_KEYED
Date: Thu, 30 Jun 2005 09:56:40 +0200	[thread overview]
Message-ID: <20050630075639.GA8134@orphique> (raw)
In-Reply-To: <CA7E011C3A094B4C8CF150E956218082D1FFFB@svr1.sixnetio.com>

On Wed, Jun 29, 2005 at 06:24:40PM -0400, Dave Ellis wrote:
> The current implementation of CONFIG_SILENT_CONSOLE needs
> CFG_DEVICE_NULLDEV. I suppose a check could be added to 
> flag the error at build time if CFG_DEVICE_NULLDEV is not 
> defined.

GD_FLG_SILENT flag is checked on every output to console, nulldev device
seems redundant to me.

> In abortboot the "silent" operation is suspended by setting
> the console back to serial so you can use the console to 
> abort the boot. If the boot is aborted GD_FLG_SILENT is 
> cleared, and the serial console works. If the boot is not 
> aborted the console is set back to "nulldev" and the boot 
> continues silently.

Indeed, console is set back to serial, but it doesn't help you to see
any output. I would assume you should see at least something like
"Enter password - autoboot in n seconds"

> You can boot silently (if "silent" is set), you can 
> decide to see the output (by removing "silent" from the 
> environment) and in either case if you abort the boot 
> the console works. Isn't that exactly what the feature 
> should do?

Yes, that's what I'd expect. But is it done somehow complicated way.
Again, why there is nulldev device when GD_FLG_SILENT is checked on every
console output? Is CONFIG_AUTOBOOT_PROMPT supposed to be displayed even
with "silent" console? Would it break any user setup if I remove
nulldev?

thanks,
	ladis

  reply	other threads:[~2005-06-30  7:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-29 22:24 [U-Boot-Users] silent console, nulldev and CONFIG_AUTOBOOT_KEYED Dave Ellis
2005-06-30  7:56 ` Ladislav Michl [this message]
2005-06-30 21:43   ` Dave Ellis
  -- strict thread matches above, loose matches on Subject: below --
2005-06-29 18:09 Ladislav Michl

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=20050630075639.GA8134@orphique \
    --to=ladis@linux-mips.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.