[Buildroot] /dev/ttyprinkt usage in BR

Yegor Yefremov yegor_sub1 at visionsystems.de
Wed Jan 12 16:52:34 UTC 2011


>  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


More information about the buildroot mailing list