SLES FAQ -- Grub serial setup
时间:2005-12-22 来源:wjqhd
I make a grub console test based on Xin Wei and Coly's suggestion and bellow is the summary:
1) first check if the machine BIOS support 'console redirection' function, if BIOS support it
user can get all POST info. I do not find out this option in IBM x225's BIOS. but it's ok without
it for grub serial support and linux serial console support
2) change /boot/grub/menu.lst, add serial/terminal instruction and kernel option 'console=ttyS0,9600 console=tty0'
color white/blue black/light-gray
default 0
timeout 8
# new add serial settings, COM1(9600,8N1) <==
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
# new add terminal settings, serial and local <==
terminal serial console
# comment the following line to make a text based menu
# gfxmenu (hd0,4)/boot/message <==
###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX
kernel (hd0,4)/boot/vmlinuz root=/dev/sda5 selinux=0 elevator=cfq console=ttyS0,9600 console=tty0 showopts
initrd (hd0,4)/boot/initrd
3) modify /etc/inittab file and uncomment ttyS0 line
S0:12345:respawn:/sbin/agetty -L 9600 ttyS0 vt102