歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Xen占用ttyS0導致Linux下串口不可用

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

日期:2017/2/28 16:19:52   编辑:Linux教程

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

Copyright © Linux教程網 All Rights Reserved