All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] /dev/ttyprinkt usage in BR
Date: Wed, 12 Jan 2011 17:02:02 +0100	[thread overview]
Message-ID: <87wrmaxg91.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <4D2DCC0D.30409@visionsystems.de> (Yegor Yefremov's message of "Wed, 12 Jan 2011 16:43:09 +0100")

>>>>> "Yegor" == Yegor Yefremov <yegor_sub1@visionsystems.de> writes:

 Yegor> As of kernel 2.6.37 there is a new pseudo tty device
 Yegor> /dev/ttyprinkt, that can make user output through pritnk()
 Yegor> routine. How can it be used in BR? What entries should
 Yegor> /etc/inittab contain to redirect the console output to
 Yegor> /dev/ttyprinkt?

I haven't used it yet, but I guess the only thing you have to do to get
all console output though it is to use devtmpfs (or add the device node
in device_table.txt), and tell init to use it as console. Looking at the
busybox init code, I see it gets the console device from the CONSOLE or
console environment variables, so you would just have to add
CONSOLE=/dev/ttyprintk to the kernel commandline.

Using console=/dev/ttyprintk will probably cause strange behaviour as
that presumably creates a loop, where every kernel message is sent back
in and reprinted.

But again, completely untested.

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2011-01-12 16:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12 15:43 [Buildroot] /dev/ttyprinkt usage in BR Yegor Yefremov
2011-01-12 16:02 ` Peter Korsgaard [this message]
2011-01-12 16:52   ` Yegor Yefremov

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=87wrmaxg91.fsf@macbook.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /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.