[ltp] RH 7.1, TP21 no /dev/ttySx working

Eric Nichols linux-thinkpad@www.bm-soft.com
Wed, 02 May 2001 21:56:39 -0400


Friedemann,

Your posts have me asking myself what I imagine is a newbie question: Is there a tool
or utility under GNU/Linux that lets me see the IRQs that have been assigned to
system devices? My background is in DOS/Windows and I know where to look in that
environment but not in linux.

Many thanks for your patience,

Eric Nichols


Friedemann Baitinger wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> folks, please ignore this posting. I didn't do my homework before
> posting. It turned out that the 'wvlan_cs' grabbed IRQ-3. Obviously
> /dev/ttyS1 did not work. Back in my RH 7.0 I had massaged
> /etc/pcmcia/config.opts to exclude IRQ-3 and it appears that with the
> new install the exclude was left commented out.
>
> After enabling the exclude the serial module was happy again. -- Sorry
> for the confusion.
>
> On Tue, 1 May 2001, Friedemann Baitinger wrote:
>
> > is anybody able to use /dev/ttyS{0,1,2} on a T21 with RedHat 7.1? I have
> > no luck at all. With RH 7.0 and linux-2.2.18 it worked perfectly. Now I
> > have installed RH 7.1 and have not changed anything in the T21 BIOS (no
> > tpctl or PS2.EXE used) and the serial module just doesn not work.
> >
> > Upon loading the driver reports:
> >
> > May  1 12:53:51 blackbox kernel: Serial driver version 5.05a
> > (2001-03-20) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
> >
> > Here is how the devices are set in the /dev tree:
> >
> > [root@blackbox baiti]# ll /dev/ttyS{0,1,2}
> > crw-rw----    1 root     uucp       4,  64 Mar 24 05:38 /dev/ttyS0
> > crw-rw----    1 root     uucp       4,  65 Mar 24 05:38 /dev/ttyS1
> > crw-rw----    1 root     uucp       4,  66 Mar 24 05:38 /dev/ttyS2
> >
> > And here is what minicom achieves when it tries to talk to a US Robotics
> > modem attached to /dev/ttyS1: (I am copying only the relevant system
> > calls):
> >
> > open("/dev/modem", O_RDWR|O_NONBLOCK)   = -1 ENOSYS (Function not implemented)
> > open("/dev/modem", O_RDWR|O_NONBLOCK)   = -1 ENOSYS (Function not implemented)
> > open("/dev/modem", O_RDWR|O_NONBLOCK)   = 3
> >
> > why does open() return -1 twice and then all of a sudden give back a
> > file descriptor?
> >
> > fcntl64(3, F_GETFL)                     = 0x802 (flags
> > O_RDWR|O_NONBLOCK)
> > fcntl64(3, F_SETFL, O_RDWR)             = 0
> > ioctl(3, TCGETS, 0xbffff560)            = -1 EIO (Input/output error)
> > ioctl(3, TIOCMGET, [0])                 = -1 EIO (Input/output error)
> > ioctl(3, TCGETS, 0xbffff4d0)            = -1 EIO (Input/output error)
> > ioctl(3, SNDCTL_TMR_START, {B38400 -opost -isig -icanon -echo ...}) = -1
> > EIO (In
> > put/output error)
> > ioctl(3, TIOCMGET, [0])                 = -1 EIO (Input/output error)
> > ioctl(3, TIOCMSET, [TIOCM_RTS])         = -1 EIO (Input/output error)
> > ioctl(3, TCGETS, 0xbffff470)            = -1 EIO (Input/output error)
> > ioctl(3, SNDCTL_TMR_START, {B1000000 -opost isig -icanon echo ...}) = -1 EIO (In
> > put/output error)
> >
> > Oh BTW: /dev/modem is a symlink to /dev/ttyS1
> >
> >
> > Any ideas? The problem occurs with the standard kernel that came with RH
> > 7.1 and it also occurs with my own-built linux-2.4.4
> >
> > --
> > Friedemann Baitinger      fb@baiti.net       http://baiti.net/fb/
> >
>
> - --
> Friedemann Baitinger      fb@baiti.net       http://baiti.net/fb/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.1 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE67qIb8ZparKdkcvIRAmzLAJ4uZH1VeOSYsH9Hv0s2B626vHXSowCfbwac
> Gst83ehf8TADw7hg8KZTBvA=
> =lgiq
> -----END PGP SIGNATURE-----
>
> ----- The Linux ThinkPad mailing list -----
> The linux-thinkpad mailing list home page is at:
> http://www.bm-soft.com/~bm/tp_mailing.html


----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html