红联Linux门户
Linux帮助

Xen占用ttyS0导致Linux下串口不可用

发布时间:2015-02-10 15:03:48来源:linux网站作者:jackal_wb

系统版本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