LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-09-2007, 02:03 PM   #1
jthors
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
Unhappy /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 (brewbuilder@hs20-bc2-2.build.redhat.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:

# ls
bus driver id options power resources subsystem tty:ttyS0 uevent

...and...

# cat resources
state = active
io 0x3f8-0x3ff
irq 4

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
closing_wait: 3000
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.:

# kermit
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?

-Jim
 
Old 02-12-2007, 07:02 AM   #2
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 32
You've probably Googled this already, but it appears that others are having trouble with the serial ports on nc6000 kit. See https://answers.launchpad.net/ubuntu/+ticket/2622

They mention that booting another distro (eg. a live distro disk) gets the serial ports working fine, so it's probably a driver problem combined with the particular h/w in the nc6000 (a wild guess, but... it does happen!).

If that's true, it's frustrating! You could try re-building the serial module with a source update from the latest kernel (or the version on whatever live distro works) and just replace that one module. As long as the versions aren't very different, that might work.

HTH.
 
Old 02-12-2007, 08:53 AM   #3
jthors
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the reply. I checked out the link you gave and it looks like the same problem. Seems
to be a bug in the kernel driver. Sigh!

-Jim
 
Old 02-23-2007, 09:11 AM   #4
jthors
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Seems the bug is in the acpi code. Setting acpi=off or acpi=ht in the kernel parameters in grub.conf
causes the serial port to work.
 
Old 02-26-2007, 09:45 AM   #5
jthors
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
An even better fix. Set pnpacpi=off in the kernel boot parameters in grub.conf. Then the
volume control buttons work as well as the serial port! Cool.
 
  


Reply

Tags
fc6, serial port


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirection of /dev/ttyS0 to Ethernet philipina Linux - Networking 2 09-27-2006 07:45 AM
how and by what is /dev/ttyS0 made? dansawyer Linux - Software 10 10-26-2005 05:51 AM
Minicom in /dev/ttyS0 Luis GUSTAVO Linux - Software 0 07-31-2003 05:42 PM
chmod g+w /dev/ttyS0 jISV Linux - General 4 04-13-2002 06:01 PM
/dev/ttyS0 problems rbermude Linux - Software 2 06-27-2001 10:43 AM


All times are GMT -5. The time now is 10:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration