/dev/ttyS0 on nc6000 not working
Hi, I have a HP compaq nc6000 laptop and I want to use the serial port
to connect to other computers and use kermit or minicom. Unfortunately,
it doesn't work. The seems to be blocked or broken in some way. It
works fine under WinXP. It also works on my desktop under FC6 but not on
the nc6000. And it also works under Solaris (Belenix) on the nc6000.
But not under FC6. This implies a problem with linux.
The laptop is running Fedora Core 6 (and will also boot WinXP). The
kernel version is:
Linux version 2.6.19-1.2895.fc6 (email@example.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Wed Jan 10 19:28:18 EST 2007
The serial port is detected during boot-up as indicated by:
# grep tty dmesg
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS2 at I/O 0x3e8 (irq = 3) is a 16550A
00:02: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
If I look in /sys/devices/pnp0/00:02 I see:
bus driver id options power resources subsystem tty:ttyS0 uevent
# cat resources
state = active
This info is identical to what WinXP's hardware manager gives.
Also, /proc/tty/driver/serial gives:
# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:0 rx:0 CTS|DSR|CD|RI
1: uart:unknown port:000002F8 irq:3
2: uart:16550A port:000003E8 irq:3 tx:0 rx:0 CTS|DSR|CD|RI
3: uart:unknown port:000002E8 irq:3
and setserial gives:
# setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
Flags: spd_normal skip_test
If I run lsmod I see the "serio_raw" module only and no module called
"serial" or "8250" (although 8250 is listed in /sys/modules). I also only
see "serio_raw" on my desktop which works!
It looks like its there but if I run kermit and do "set line" it says that
/dev/ttyS0 is not a terminal device. e.g.:
C-Kermit 8.0.211, 10 Apr 2004, for Red Hat Linux 9.0
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/root/) C-Kermit>set line /dev/ttyS0
/dev/ttyS0 is not a terminal device
Connection to /dev/ttyS0 failed:
(/root/) C-Kermit>set line
After this I get a line in /var/log/messages:
Feb 9 11:50:33 localhost kernel: ttyS0: LSR safety check engaged!
as if it can't see the registers on the serial device.
Question: Am I missing something? or is linux serial ports broken on this
laptop? Any ideas?