lkml.org 
[lkml]   [2002]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.5.x, 2.4.y / pcmcia xircom serial doesn't work
I'm not sure when this stopped working. I know that I've successfully
used the port in the past with some version of 2.4.x that is now WAY old
but that's the best I can come up with as I no longer have those kernel
compiles around. :/ Under 2.4.x I used the pcmcia-cs package rather then
the kernel modules. The end result though is thesame and I'll
concentrate on 2.5.x (primarily 2.5.49 but it doesn't work under 47
either).

Under 2.5.x the problem is that whilst the serial side of my Xircom
RealPort is detected as ttyS15:

Nov 18 22:58:27 theirongiant kernel: PCI: Enabling device 02:00.1 (0000 -> 0003)
Nov 18 22:58:27 theirongiant kernel: ttyS15 at I/O 0x4080 (irq = 10) is a 16550A

It does not work and any access to it results in an I/O error as can be
seen from this minicom strace:

...
open("/dev/ttyS15", O_RDWR|O_NONBLOCK) = 3
fcntl64(3, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl64(3, F_SETFL, O_RDWR) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbffff6a8) = -1 EIO (Input/output error)
ioctl(3, 0x5415, [0]) = -1 EIO (Input/output error)
ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbffff638) = -1 EIO (Input/output error)
ioctl(3, SNDCTL_TMR_START, {c_iflags=0x1, c_oflags=0, c_cflags=0x40013cb2, c_lflags=0, c_line=1, c_cc[VMIN]=1, c_cc[VTIME]=5, c_cc="\x00\x00\x00\x48\x0e\x05\x01\x08\xae\x07\x08\x00\x00\x00\x00\x00\x00\x00\x00\xcc\xf6\xff\xbf\x86\x1a\x06\x08\x03\x00\x00\x00\x00"}) = -1 EIO (Input/output error)
ioctl(3, 0x5415, [0]) = -1 EIO (Input/output error)
ioctl(3, 0x5418, [TIOCM_RTS]) = -1 EIO (Input/output error)
ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbffff5d8) = -1 EIO (Input/output error)
ioctl(3, SNDCTL_TMR_START, {c_iflags=0x31000000, c_oflags=0x40000860, c_cflags=0x88072030, c_lflags=0x40013420, c_line=25, c_cc[VMIN]=64, c_cc[VTIME]=23, c_cc="\x23\x07\x40\x48\x0e\x17\x40\x5c\xf6\xff\xbf\x94\x30\x12\x40\x05\x00\x00\x00\x5c\xf6\xff\xbf\x3b\x15\x06\x08\x03\x00\x00\x00\x00"}) = -1 EIO (Input/output error)
alarm(0) = 4
rt_sigaction(SIGALRM, {SIG_IGN}, {0x8062744, [ALRM], SA_RESTART|0x4000000}, 8) = 0
stat64("/dev/ttyS15", {st_dev=makedev(3, 6), st_ino=7471, st_mode=S_IFCHR|0660, st_nlink=1, st_uid=0, st_gid=20, st_blksize=4096, st_blocks=0, st_rdev=makedev(4, 79), st_atime=2002/11/18-15:45:59, st_mtime=2002/11/18-15:45:59, st_ctime=2002/11/30-12:04:26}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbffff668) = -1 EIO (Input/output error)
ioctl(3, SNDCTL_TMR_START, {c_iflags=0, c_oflags=0x3de80e9a, c_cflags=0x800, c_lflags=0x1d2f, c_line=0, c_cc="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xec\xf6\xff\xbf\xf3\x16\x06\x08\x03\x00\x00\x00\x00"}) = -1 EIO (Input/output error)
ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbffff668) = -1 EIO (Input/output error)
ioctl(3, SNDCTL_TMR_START, {c_iflags=0, c_oflags=0x3de80e9a, c_cflags=0xc00, c_lflags=0x1d2f, c_line=0, c_cc="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xec\xf6\xff\xbf\x36\x17\x06\x08\x03\x00\x00\x00\x00"}) = -1 EIO (Input/output error)
ioctl(3, 0x540b, 0x2) = -1 EIO (Input/output error)
...

My /dev/ttyS15 entry is:

0 crw-rw---- 1 root dialout 4, 79 Nov 18 15:45 /dev/ttyS15

All this was done as root.

Now I'm sure I got the minor/major right as devices.txt defines ttyS0 as
64 and ttyS191 as 255 (64+191) and as such ttyS15 should be 79 (64+15).

Again, if you need any extra info, yell. I'm not quite sure what to give
and I don't want to spam.

--
All people are equal,
But some are more equal then others.
- George W. Bush Jr, President of the United States
September 21, 2002 (Abridged version of security speech)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.026 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site