Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Serial Console and Kernel Messages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
NiceGuy
Guru
Guru


Joined: 12 Jun 2006
Posts: 451
Location: Canada

PostPosted: Thu Mar 20, 2008 6:33 pm    Post subject: Serial Console and Kernel Messages Reply with quote

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
View user's profile Send private message
zotalore
n00b
n00b


Joined: 22 Jan 2008
Posts: 54

PostPosted: Thu Mar 20, 2008 7:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
NiceGuy
Guru
Guru


Joined: 12 Jun 2006
Posts: 451
Location: Canada

PostPosted: Thu Mar 20, 2008 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
zotalore
n00b
n00b


Joined: 22 Jan 2008
Posts: 54

PostPosted: Sat Mar 29, 2008 7:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum