시리얼 포트 설정하기

아래 내용 정리

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 눈빛마음

2007/04/06 12:14 2007/04/06 12:14
Response
No Trackback , No Comment
RSS :
http://iz.apgu.co.kr/tc/rss/response/286

Trackback URL : http://iz.apgu.co.kr/tc/trackback/286

Leave a comment
« Previous : 1 : ... 4 : 5 : 6 : 7 : 8 : 9 : 10 : 11 : 12 : ... 16 : Next »

블로그 이미지

눈빛마음의 사색공간

- 눈빛마음

Archives

Calendar

«   2010/09   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Site Stats

Total hits:
296053
Today:
47
Yesterday:
100