View previous topic :: View next topic |
Author |
Message |
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Thu Mar 20, 2008 6:33 pm Post subject: Serial Console and Kernel Messages |
|
|
Hello,
I am having a problem redirecting my kernel and boot up messages to my serial console. I would very much like this configured but it does not seem to be working.
I have appended the line in my grub.conf as follows:
Code: | default 0
timeout 3
title= Terminal and Serial Console
root (hd0,0)
kernel /k2.6.16 root=/dev/hda3 console=tty1 console=ttyS0,9600 |
But this only appears to direct kernel messages to my terminal and not my serial console. Additionally, I have set agetty properly in inittab to present a login prompt at the console .. so again .. my only remaining problem is getting the kernel and boot messages to display on the serial console as well.
Any Ideas. I'm sure there others who are using Gentoo on headless/dummy servers.
Thanks for your time _________________ success is the ability to go from one failure to the next without any loss of enthusiasm |
|
Back to top |
|
|
zotalore n00b
Joined: 22 Jan 2008 Posts: 54
|
Posted: Thu Mar 20, 2008 7:18 pm Post subject: |
|
|
Did you include serial console support in the kernel:
Code: |
# grep CONFIG_SERIAL_CORE /usr/src/linux/.config
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
|
|
|
Back to top |
|
|
NiceGuy Guru
Joined: 12 Jun 2006 Posts: 451 Location: Canada
|
Posted: Thu Mar 20, 2008 8:04 pm Post subject: |
|
|
Hello,
Here is an update .. I needed to compile SERIAL_CORE and SERIAL_CORE_CONSOLE into the kernel in order to get the kernel messages to show up on both the serial console and terminal.
However, the remaining messages (boot messages, programs starting etc ..) that generally follow after the kernel messages are not being directed to both.
Is there a way of accomplishing that as well??
Thanks again
Also Grub does not show up on both ether ... any way of correcting that as well?? _________________ success is the ability to go from one failure to the next without any loss of enthusiasm |
|
Back to top |
|
|
zotalore n00b
Joined: 22 Jan 2008 Posts: 54
|
Posted: Sat Mar 29, 2008 7:08 am Post subject: |
|
|
You should add something like
Code: |
destination console_all { ("/dev/ttyS01");
|
to your /etc/syslog-ng/syslog-ng.conf If you want to log on to your serial console you need a
Code: |
s0:12345:respawn:/sbin/agetty -L -f /etc/issueserial 38400 ttyS0 vt100
|
in your /etc/inittab |
|
Back to top |
|
|
|