1. 커널의 옵션 추가
- console=ttyS0,115200 console=tty1
2. inittab 수정
S0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
3. grub 추가
serial --unit=0 --speed=115200
terminal --timeout=2 serial console
kernel /vmlinuz-2.4.20-18.8 ro root=LABEL=/ console=tty1 console=ttyS0,9600
In /etc/inittab, below the 6 mingetty lines, add the following agetty line:
S0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
Enabling Grub Serial Console Support
To control grub via the serial console then make the following changes:
In the global section of /boot/grub/grub.conf enter the following:
serial --unit=0 --speed=9600
terminal --timeout=2 serial console
Optionally enable sysrq supportIf serial console is being configured for use with sysrq, then enable sysrq support by performing one of the following tasks:
1. To enable sysrq support each time the system boots then make the following change in /etc/sysctl.conf (change shown in bold):
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 1
2. To enable sysrq support now (without a reboot) then run the following command. Note that this change is not persistant across a reboot:
echo 1 >/proc/sys/kernel/sysrq
Posted by 눈빛마음

