免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2437 | 回复: 0
打印 上一主题 下一主题

咨询串口的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-10-14 09:54 |只看该作者 |倒序浏览
现在有一台x86的网络平台设备,准备做路由,里边的硬件全部是pc机的普通硬件,但是给他安装上redhat5.6的系统以后,串口一直连接不上,输出不正常,且无法正常输入。
系统启动的时候输出:
ERROR: Type:2; Severity:80; Class:1; Subclass:1; Operation: 3
ÿ
以下是一些系统信息:
[root@localhost ~]# ls /dev/
****** tty tty0  tty1 tty10tty11tty12tty13tty14tty15tty16tty17tty18tty19tty2tty20tty21tty22tty23tty24tty25tty26tty27tty28
tty29tty3tty30tty31tty32tty33tty34tty35tty36tty37tty38tty39tty4tty40tty41tty42tty43tty44tty45tty46tty47tty48tty49
tty5tty50tty51tty52tty53tty54tty55tty56tty57tty58tty59tty6tty60tty61tty62tty63tty7tty8tty9ttyS0ttyS1ttyS2ttyS3
————————————————————————————————————————————————————
[root@localhost ~]# cat /etc/inittab
# inittab is only used by upstart for the default runlevel.
#
id:5:initdefault:
#id:5:initdefault:/sbin/agetty -L ttyS0 115200 vt100
id:5:initdefault:/sbin/agetty -L ttyS0 115200 ttyS0
________________________________________________________________________________________
cat /etc/securetty
console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty0
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
ttyS0
ttyS1
tty
ttyS
_________________________________________________________________________________
[root@localhost ~]# cat /etc/sysconfig/init
# color => new RH6.0 bootup
# verbose => old-style bootup
# anything else => new style bootup without ANSI colors or positioning
BOOTUP=color
# column to start "[  OK  ]" label in
RES_COL=60
# terminal sequence to move to that column. You could change this
# to something like "tput hpa ${RES_COL}" if your terminal supports it
MOVE_TO_COL="echo -en \\033[${RES_COL}G"
# terminal sequence to set color to a 'success' color (currently: green)
SETCOLOR_SUCCESS="echo -en \\033[0;32m"
# terminal sequence to set color to a 'failure' color (currently: red)
SETCOLOR_FAILURE="echo -en \\033[0;31m"
# terminal sequence to set color to a 'warning' color (currently: yellow)
SETCOLOR_WARNING="echo -en \\033[0;33m"
# terminal sequence to reset to the default color.
SETCOLOR_NORMAL="echo -en \\033[0;39m"
# Set to anything other than 'no' to allow hotkey interactive startup...
PROMPT=yes
# Set to 'yes' to allow probing for devices with swap signatures
AUTOSWAP=no
# What ttys should gettys be started on?
#ACTIVE_CONSOLES=/dev/tty[1-6] /dev/ttyS0
ACTIVE_CONSOLES=/dev/tty[1-6] /dev/tty

#ACTIVE_CONSOLES="/dev/tty /dev/ttyS"

# Set to '/sbin/sulogin' to prompt for password on single-user mode
# Set to '/sbin/sushell' otherwise
SINGLE=/sbin/sushell
_________________________________________________________________________________
[root@localhost ~]# cat /etc/init/start-ttys.conf
#
# This service starts the configured number of gettys.

start on stopped rc RUNLEVEL=[2345]

#env ACTIVE_CONSOLES=/dev/tty[1-6] /dev/ttyS0
env ACTIVE_CONSOLES=/dev/tty[1-6] /dev/tty
#env X_TTY=/dev/tty1
env X_TTY=/dev/tty
task
script
        . /etc/sysconfig/init
        for tty in $(echo $ACTIVE_CONSOLES) ; do
                [ "$RUNLEVEL" = "5" -a "$tty" = "$X_TTY" ] && continue
                initctl start tty TTY=$tty
        done
end script
________________________________________________________________________
[root@localhost ~]#  dmesg | grep ttyS*
console [tty0] enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
_________________________________________________________________________
[root@localhost ~]# grep tty /proc/devices
  4 tty
  4 ttyS
  5 /dev/tty

请大牛们根据这些信息看看到底是哪没配好,加入还需要什么信息的话请留言给我,谢谢啦
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP