Re: serial problems (was Re: serial (PPP) stomping on parport?)

Jurgen Botz (jurgen@botz.org)
Wed, 10 Jun 1998 07:00:04 -0700


"Etienne Lorrain" wrote:
> What is the output of "ls -l /dev/ttyS*", "ls -l /dev/cua*" ?
> Is the serial port in-use when you try to configure it
> (uugetty or gpm running) ?
> Are your serial ports enabled in BIOS ? Is there IRQ or I/O
> conflicts (cat /proc/ioports) ?

No, no, these are not the issue. Those of us who are seeing this
can make it work by simply booting an older kernel without
changing anything else.

> What is the result of "strace setserial <your parameter>" ?

Good idea... I keep forgetting about the usefullness of strace for
this sort of thing:

[root@nova i386]# strace /bin/setserial -v /dev/ttyS2 port 0x220 irq 5
autoconfig
execve("/bin/setserial", ["/bin/setserial", "-v", "/dev/ttyS2", "port",
"0x220", "irq", "5", "autoconfig"], [/* 31 vars */]) = 0
brk(0) = 0x804bcec
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 23854, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4000b000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40011000
munmap(0x40011000, 4096) = 0
mmap(0, 669752, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40011000
mprotect(0x400a2000, 75832, PROT_NONE) = 0
mmap(0x400a2000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x90000) = 0x400a2000
mmap(0x400a9000, 47160, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMO
US, -1, 0) = 0x400a9000
close(3) = 0
personality(0 /* PER_??? */) = 0
getpid() = 9136
open("/dev/ttyS2", O_RDWR|O_NONBLOCK) = 3
ioctl(3, TIOCGSERIAL, 0xbffff800) = 0
ioctl(3, TIOCSSERIAL, 0xbffff7c4) = -1 EINVAL (Invalid argument)
write(2, "Cannot set serial info: Invalid "..., 41Cannot set serial info:
Invalid argument
) = 41
_exit(1) = ?

> Are the failing ports software PNP modem ?

No, the failing ports are additional serial ports on ISA card, in
at least some cases with 16650 UART (anybody who have a problem
/not/ have a 16650 UART?)

> Is serial compiled as module (".config" serial related lines) ?

No.

> What is your hardware (Intel UP/SMP) ?

Intel PII, SMP board with just one CPU.

--
                                                ~~/            /~)
                                                 /..          /-< 
                                              \_/ u r g e n  /_ _) o t z

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu