linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Reg. Serial and Virtual consoles
@ 2006-08-07 10:07 Selvamuthukumar V
  0 siblings, 0 replies; 3+ messages in thread
From: Selvamuthukumar V @ 2006-08-07 10:07 UTC (permalink / raw)
  To: linuxppc-dev

Hello,
I'm  working on a MPC8360 board. I've connected a VGA card in a PCI slot.
I modified the kernel commandline console parameters, and now I'm getting
all the kernel messages in both serial port and VGA. I modified the
/etc/inittab file and getting login prompt in VGA(virtual terminal). Is
keyboard is necessary to login via virtual terminal? Is there anyway to
select serial port as the input to the virtual terminal? I want to login
to the virtual terminal and want a shell in VGA. Please guide me in this
regard.

     -Selva

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

* Re: Reg. Serial and Virtual consoles
@ 2006-08-10 16:51 Milton Miller
  2006-08-11 17:18 ` Linas Vepstas
  0 siblings, 1 reply; 3+ messages in thread
From: Milton Miller @ 2006-08-10 16:51 UTC (permalink / raw)
  To: v.selvamuthukumar, linuxppc-dev; +Cc: linuxppc-dev

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

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

* Re: Reg. Serial and Virtual consoles
  2006-08-10 16:51 Reg. Serial and Virtual consoles Milton Miller
@ 2006-08-11 17:18 ` Linas Vepstas
  0 siblings, 0 replies; 3+ messages in thread
From: Linas Vepstas @ 2006-08-11 17:18 UTC (permalink / raw)
  To: Milton Miller; +Cc: linuxppc-dev

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

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

end of thread, other threads:[~2006-08-11 17:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-10 16:51 Reg. Serial and Virtual consoles Milton Miller
2006-08-11 17:18 ` Linas Vepstas
  -- strict thread matches above, loose matches on Subject: below --
2006-08-07 10:07 Selvamuthukumar V

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).