`
yangzb
  • 浏览: 3473195 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

rhel5的xen内核无法使用串口的原因和解决方法

阅读更多

    公司有一台服务器安装的了rhel5系统,默认的内核是带xen的内核,正好有个交换机要调试,连接后发现串口设备无法工作。
    咨询服务器厂家客服后得到一下答复:
    产生原因:
    这是因为Xen会缺省将串口1 ttyS0看作是虚拟控制台,从而其他串口设备无法正常工作。
    解决方法:
    1、安装不带XEN支持的内核,串口使用恢复正常。
    2、按以下方法更改grub.conf 文件:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,1)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
 root (hd0,1)
 kernel /xen.gz-2.6.18-8.el5
 module /vmlinuz-2.6.18-8.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
 module /initrd-2.6.18-8.el5xen.img

#新增以下启动项
title Red Hat Enterprise Linux Server (2.6.18-8.el5xen serial)
 root (hd0,1)
 kernel /xen.gz-2.6.18-8.el5 console=vga xencons=ttyS16 console=ttyS16
 module /vmlinuz-2.6.18-8.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet xencons=tty
 module /initrd-2.6.18-8.el5xen.img

    使用修改过参数的内核项启动,使用minicom连接交换机,登陆调试一切正常。

本文出自 “小苗 ” 博客,请务必保留此出处http://7056824.blog.51cto.com/69854/247836

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics