Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] /dev/ttyprinkt usage in BR
@ 2011-01-12 15:43 Yegor Yefremov
  2011-01-12 16:02 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Yegor Yefremov @ 2011-01-12 15:43 UTC (permalink / raw)
  To: buildroot

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

Best regards,
Yegor

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] /dev/ttyprinkt usage in BR
  2011-01-12 15:43 [Buildroot] /dev/ttyprinkt usage in BR Yegor Yefremov
@ 2011-01-12 16:02 ` Peter Korsgaard
  2011-01-12 16:52   ` Yegor Yefremov
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2011-01-12 16:02 UTC (permalink / raw)
  To: buildroot

>>>>> "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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] /dev/ttyprinkt usage in BR
  2011-01-12 16:02 ` Peter Korsgaard
@ 2011-01-12 16:52   ` Yegor Yefremov
  0 siblings, 0 replies; 3+ messages in thread
From: Yegor Yefremov @ 2011-01-12 16:52 UTC (permalink / raw)
  To: buildroot


>  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.

Device creation is not a problem. If I change the console in /etc/inittab from ttyAM0 to ttyprintk I get

[U]
[U]
[U] Welcome to Buildroot
[U]                    

but no prompt.

Best regards,
Yegor

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-12 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12 15:43 [Buildroot] /dev/ttyprinkt usage in BR Yegor Yefremov
2011-01-12 16:02 ` Peter Korsgaard
2011-01-12 16:52   ` Yegor Yefremov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox