在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 3677|回复: 1

[解决] 解决在RedHat Enterprise Linux 5中minicom不能显示ARM板子启动信息的问题

[复制链接]
发表于 2010-10-28 14:28:13 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
我在一台装有RedHat Enterprise Linux 5(2.6.18-8.EL5XEN)的PC上安装redhat自带的minicom,设置好参数,然后尝试在连接串口,但打开arm板的电源后,minicom却无任何输出!
奇怪的是,在winXp下用超级终端却是正常!
原来,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都可以正常看到arm板上的输出结果了。
发表于 2014-9-20 13:14:56 | 显示全部楼层
楼主真赞!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

小黑屋| 手机版| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-3-9 12:21 , Processed in 0.019548 second(s), 11 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表