Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10645
  • 博文数量: 5
  • 博客积分: 160
  • 博客等级: 入伍新兵
  • 技术积分: 60
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-18 10:33
文章分类

全部博文(5)

文章存档

2011年(1)

2009年(4)

我的朋友
最近访客

分类: LINUX

2009-08-18 10:43:39

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
阅读(3396) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:linux系统监测&Cron定时执行

给主人留下些什么吧!~~