- 论坛徽章:
- 0
|
debian串口调试设置
1. 修改grub的配置文件menu.lst
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
2. 修改kernel参数
在该行后增加:
console=ttyS0,9600n8 console=tty1
修改后如下:
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=5 serial console
title Debian GNU/Linux, kernel 2.6.26-1-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-1-686 root=/dev/hda1 ro quiet console=ttyS0,9600n8 console=tty1 #console的顺序要注意
initrd /boot/initrd.img-2.6.26-1-686
title Debian GNU/Linux, kernel 2.6.26-1-686 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-1-686 root=/dev/hda1 ro single console=ttyS0,9600n8 console=tty1
initrd /boot/initrd.img-2.6.26-1-686
3. 允许从串口登录
修改/etc/inittab文件, 增加如下内容
0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/103425/showart_2030506.html |
|