Re: How to disable console on serial when needed ?
- From: "Sebastian" <bastisoft@xxxxxxxx>
- Date: Thu, 21 Dec 2006 23:40:00 +0100
And what I need is the ability to detach / attach console to serialport
after bootup.
Is there any possible way to achieve this?
I don't know of a way to do so, but I don't know how your device works, so I
can only guess. Maybe it is possible for you to create two kernel images,
one with console on serial line and one without. If you don't use your
serial device and want to log in, you then would need to reboot and select
the other kernel image (lilo supports a serial console as well).
On the other hand, you could compile the kernel with serial console
included, but later remove in the APPEND line, as in console=/dev/null or
console=0,9600n8 respectively. The getty process started to actually use
this console after booting can be killed or started on demand (that means
only to start it from the init process if the kernel image is the one with
serial console or if the append line includes the correct key word).
I think it is possible to redirect the kernel console while running and I
remember having seen a C source which does the kernel call, but I couldn't
find it. That way some people were able to print out kernel messages to
running telnet connections (like /dev/pts/0) instead of a serial port.
On the other hand - if your memory requirements are not too tight - you
could run a syslogd and a klogd who "catch" these messages and call them out
onto the net (or anywhere else you want these messages, probably /dev/null).
BusyBox provides these, but I'm not sure whether it will work this way.
Hope this helps,
Regards,
Sebastian
.
- Prev by Date: Re: How to disable console on serial when needed ?
- Next by Date: Re: CompactFlash IDE - not recognized
- Previous by thread: Re: How to disable console on serial when needed ?
- Next by thread: kernel how to know the module used by another ?
- Index(es):
Relevant Pages
|