现在有一台x86的网络平台设备,准备做路由,里边的硬件全部是pc机的普通硬件,但是给他安装上redhat5.6的系统以后,串口一直连接不上,输出不正常,且无法正常输入。
系统启动的时候输出:
ERROR: Type:2; Severity:80; Class:1; Subclass:1; Operation: 3
?
以下是一些系统信息:
[[email protected] ~]# ls /dev/
****** tty tty0 tty1 tty10tty11tty12tty13tty14tty15tty16tty17tty18tty19tty2tty20tty21tty22tty23tty24tty25tty26tty27tty28
tty29tty3tty30tty31tty32tty33tty34tty35tty36tty37tty38tty39tty4tty40tty41tty42tty43tty44tty45tty46tty47tty48tty49
tty5tty50tty51tty52tty53tty54tty55tty56tty57tty58tty59tty6tty60tty61tty62tty63tty7tty8tty9ttyS0ttyS1ttyS2ttyS3
————————————————————————————————————————————————————
[[email protected] ~]# 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
_________________________________________________________________________________
[[email protected] ~]# 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
_________________________________________________________________________________
[[email protected] ~]# 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
________________________________________________________________________
[[email protected] ~]# 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
_________________________________________________________________________
[[email protected] ~]# grep tty /proc/devices
4 tty
4 ttyS
5 /dev/tty
请大牛们根据这些信息看看到底是哪没配好,加入还需要什么信息的话请留言给我,谢谢啦
------解决思路----------------------
看上去你把能找的信息都找出来了。
你是用什么系统(OS/硬件平台)通过串口和你的设备连接的?
串口线是不是正确的交叉线?用什么串口通讯工具?换个串口工具试过么?串口的波特率设置对了么?