Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9262836
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类: LINUX

2011-12-30 17:34:17

rhel5的xen内核无法使用串口的原因和解决方法 2009-12-23 14:26:53
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://7056824.blog.51cto.com/69854/247836
    公司有一台服务器安装的了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连接交换机,登陆调试一切正常。
阅读(749) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~