Reg. Serial and Virtual consoles

Milton Miller miltonm at
Fri Aug 11 02:51:46 EST 2006

It sounds to me that you want all input and output on the serial line to be echoed to  the vga screen both user and kernel.  Do you also require keyboard input?

While others have described how to get the kernel messages displayed on both the screen and the serial port, they were missing the userspace requirement.

You will either need to write your own multiplexer program in user space and do the mirroring there, or use something like the screen program.  Either way the program will be running on a pty and some agent will be mirroring the text.  If you only require serial input it could be as simple as opening tty1, ttyS0, and the pty master and forking tee and cat to handle the master, your getty would run on the slave.


More information about the Linuxppc-dev mailing list