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-Users] On-the-fly suppressing stdin, stdout and stderr
Date: Tue, 29 Jul 2008 12:35:31 +0100	[thread overview]
Message-ID: <488F0083.10901@mimc.co.uk> (raw)

I'd like to know if it's possible to suppress comms to / from stdio, stdout and stderr.

I know there's support to suppress the console output (stdout and stderr) using CONFIG_SILENT_CONSOLE and the "silent" env variable, but this isn't particularly dynamic.

Our target board has a bitlink which I'd like to read at boot time.  If the link is not connected, all comms to / from the u-boot console should be suppress (including any key presses).

In normal running mode, we are wanting to use the comms port for (say) a printer or connected to a host system.  As such, when the unit boots we're not wanting it to output the u-boot console text to the printer.

But in debug / test / repair / maintenance / upgrade mode, we'd remove any printer / etc, we'd fit the link, which would then give us the normal u-boot startup and prompt.

From what I can see in the code, there's no real way to do this "on-the-fly" suppressing.

Any ideas ?

Thanks
Mark

                 reply	other threads:[~2008-07-29 11:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=488F0083.10901@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