系统版本Redhat ES 5(2.6.18-53.elxen)。使用Minicom和kermit进行串口调试的时候发现串口可以打开,但是没有输入输出。
#dmesg |grep tty
显示:Xen virtual console successfully installed as ttyS0
也就是Xen把ttyS0占用了。
修改/etc/grub.conf文件
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-53.el5
module /vmlinuz-2.6.18-53.el5xen ro root=LABEL=/ rhgb quiet xencons=off
module /initrd-2.6.18-8.el5xen.img
保存后重启!
#dmesg |grep tty
显示:serial8250:ttyS0 at I/O Ox3f8 (irq=0) is a 16550A
参考:1. http://www.unixresources.net/linux/clf/embedded/archive/00/00/65/40/654029.html
FC6 中串口不能正常使用的原因与解决办法
2. http://space.itpub.net/26127/viewspace-545555
如何选购并在服务器上使用串口心跳线?