Re: Reg. Serial and Virtual consoles

2 messages, 2 authors, 2006-08-11 · open the first message on its own page

Re: Reg. Serial and Virtual consoles

From: Milton Miller <hidden>
Date: 2006-08-10 16:59:27

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.

milton

Re: Reg. Serial and Virtual consoles

From: Linas Vepstas <hidden>
Date: 2006-08-11 17:18:49

On Thu, Aug 10, 2006 at 11:51:46AM -0500, Milton Miller wrote:
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?
I missed the start of the conversation, so the following suggestion may
be irrelevent. However, if the goal is to get kernel messages displayed
in lots of different places, this is easily done by running syslogd, and
adding the following to /etc/syslog.conf:

kern.*;*.err      *

If you don' want them slatered everywhere, but only on 
the console, then:

kern.*;*.err      |/dev/console

--linas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help