Difference between revisions of "linux serial console"
From thelinuxwiki
(Created page with " [https://www.kernel.org/doc/Documentation/serial-console.txt kernel.org guide] category:console") |
|||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | == /etc/inittab file config == | ||
+ | |||
+ | make sure the two serial console lines are uncommented | ||
+ | |||
+ | # SERIAL CONSOLES | ||
+ | s0:12345:respawn:/sbin/agetty -L 115200 ttyS0 vt100 | ||
+ | s1:12345:respawn:/sbin/agetty -L 115200 ttyS1 vt100 | ||
+ | |||
+ | |||
+ | == legacy grub (0.97 version) config == | ||
+ | |||
+ | add console info (in bold below) to kernel line(s) of menu.lst | ||
+ | |||
+ | title=Gentoo Linux (3.10.17-gentoo) | ||
+ | root (hd0,0) | ||
+ | kernel /boot/vmlinuz root=/dev/sda3 '''console=ttyS0,115200 console=tty0''' | ||
+ | initrd /boot/initramfs | ||
+ | |||
+ | |||
+ | == problem == | ||
+ | |||
+ | I am missing the kernel boot messages between the two lines below. I can see what should be there on the monitor, but not on the serial. Not sure what I am doing wrong... | ||
+ | |||
+ | Freeing unused kernel memory: 816k freed | ||
+ | ... | ||
+ | This is mylinuxbox.unknown_domain (Linux x86_64 3.10.17-gentoo) 07:15:10 | ||
+ | <br>mylinuxbox login: | ||
+ | |||
+ | == links == | ||
+ | |||
[https://www.kernel.org/doc/Documentation/serial-console.txt kernel.org guide] | [https://www.kernel.org/doc/Documentation/serial-console.txt kernel.org guide] | ||
+ | |||
+ | [http://www.gentoo-wiki.info/HOWTO_Linux_serial_console gentoo-wiki.info - HOWTO_Linux_serial_console] | ||
+ | |||
[[category:console]] | [[category:console]] |
Latest revision as of 00:07, 15 February 2016
Contents |
/etc/inittab file config
make sure the two serial console lines are uncommented
# SERIAL CONSOLES s0:12345:respawn:/sbin/agetty -L 115200 ttyS0 vt100 s1:12345:respawn:/sbin/agetty -L 115200 ttyS1 vt100
legacy grub (0.97 version) config
add console info (in bold below) to kernel line(s) of menu.lst
title=Gentoo Linux (3.10.17-gentoo) root (hd0,0) kernel /boot/vmlinuz root=/dev/sda3 console=ttyS0,115200 console=tty0 initrd /boot/initramfs
problem
I am missing the kernel boot messages between the two lines below. I can see what should be there on the monitor, but not on the serial. Not sure what I am doing wrong...
Freeing unused kernel memory: 816k freed ... This is mylinuxbox.unknown_domain (Linux x86_64 3.10.17-gentoo) 07:15:10
mylinuxbox login: