nixon001 发表于 2014-10-14 09:54

咨询串口的问题

现在有一台x86的网络平台设备,准备做路由,里边的硬件全部是pc机的普通硬件,但是给他安装上redhat5.6的系统以后,串口一直连接不上,输出不正常,且无法正常输入。
系统启动的时候输出:
ERROR: Type:2; Severity:80; Class:1; Subclass:1; Operation: 3
ÿ
以下是一些系统信息:
# ls /dev/
****** tty tty0tty1 tty10tty11tty12tty13tty14tty15tty16tty17tty18tty19tty2tty20tty21tty22tty23tty24tty25tty26tty27tty28
tty29tty3tty30tty31tty32tty33tty34tty35tty36tty37tty38tty39tty4tty40tty41tty42tty43tty44tty45tty46tty47tty48tty49
tty5tty50tty51tty52tty53tty54tty55tty56tty57tty58tty59tty6tty60tty61tty62tty63tty7tty8tty9ttyS0ttyS1ttyS2ttyS3
————————————————————————————————————————————————————
# 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
_________________________________________________________________________________
# 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 "" 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 /dev/ttyS0
ACTIVE_CONSOLES=/dev/tty /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
_________________________________________________________________________________
# cat /etc/init/start-ttys.conf
#
# This service starts the configured number of gettys.

start on stopped rc RUNLEVEL=

#env ACTIVE_CONSOLES=/dev/tty /dev/ttyS0
env ACTIVE_CONSOLES=/dev/tty /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
________________________________________________________________________
#dmesg | grep ttyS*
console 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
_________________________________________________________________________
# grep tty /proc/devices
4 tty
4 ttyS
5 /dev/tty

请大牛们根据这些信息看看到底是哪没配好,加入还需要什么信息的话请留言给我,谢谢啦
页: [1]
查看完整版本: 咨询串口的问题