文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Linux 串口终端设置

Linux 串口终端设置

时间:2006-07-27  来源:eleclogic


Grub 例子:
----------------------------------------------------------
default=0
timeout=10

#这2行指定 Grub 的 Serial 重定向的参数, 9600,n81
serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console

title Linux
root (hd0,0)
# console 内核参数指定console设备,可以同时指定多个console,
# 但是不能同时指定相同类型的console,例如:ttyS0 和 ttyS1。
# 最后面的一个将被认定为 /dev/console 设备。
kernel /boot/vmlinuz root=/dev/hda6 console=tty0 console=ttyS0,9600n8
initrd /boot/initrd

-----------------------------------------------------------

加入行在/etc/inittab:

其中 115200,9600 参数指定如果115200失败,则降速到9600。

s0:2345:respawn:/sbin/agetty ttyS0 115200,9600 linux
-----------------------------------------------------------
参考:

Figure 5-2. Recommended kernel parameters, PCs with video card

console=tty0 console=ttyS0,9600n8

Kernel messages will appear on both the first virtual terminal and the serial port. Messages from the init system and the system logger will appear only on the first serial port. This can be slightly confusing when looking at the attached monitor: the machine will appear to boot and then hang. Don't panic, the init system has started but is now printing messages to the serial port but is printing nothing to the screen. If a getty has been configured then a login: prompt will eventually appear on the attached monitor.



相关阅读 更多 +
排行榜 更多 +
木雕高高手中文版

木雕高高手中文版

休闲益智 下载
我不是飞剑安卓版

我不是飞剑安卓版

休闲益智 下载
愤怒的小鸟梦幻爆破安卓最新版

愤怒的小鸟梦幻爆破安卓最新版

休闲益智 下载