Re: serial problems

D.A. Harris (rodmur@ecst.csuchico.edu)
Wed, 10 Jun 1998 12:09:47 -0700


On Wed, Jun 10, 1998 at 11:45:04AM +0001, Etienne Lorrain wrote:
> What is the result of "strace setserial <your parameter>" ?

Here's what strace looks like under 2.1.104pre1, with the older serial
driver version:

execve("/sbin/setserial", ["setserial", "-bv", "/dev/ttyS4", "uart", "16650", "port", "0x02f0", "irq", "15", "spd_vhi", "^fourport"], [/* 24 vars */]) = 0
brk(0) = 0x804ca20
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat(4, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 7757, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4000c000
close(4) = 0
open("/lib/libc.so.6", O_RDONLY) = 4
mmap(0, 4096, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4000e000
munmap(0x4000e000, 4096) = 0
mmap(0, 653052, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4000e000
mprotect(0x4009b000, 75516, PROT_NONE) = 0
mmap(0x4009b000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x8c000) = 0x4009b000
mmap(0x400a2000, 46844, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x400a2000
close(4) = 0
personality(PER_LINUX) = 0
getpid() = 225
open("/dev/ttyS4", O_RDWR|O_NONBLOCK) = 4
ioctl(4, TIOCGSERIAL, 0xbffffa50) = 0
ioctl(4, TIOCSSERIAL, 0xbffffa14) = 0
close(4) = 0
open("/dev/ttyS4", O_RDWR|O_NONBLOCK) = 4
ioctl(4, TIOCGSERIAL, 0xbffff9bc) = 0
fstat(1, {st_mode=S_ISVTX|0400, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400ae000
ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
write(1, "/dev/ttyS4 at 0x02f0 (irq = 15) "..., 53) = 53
close(4) = 0
munmap(0x400ae000, 4096) = 0
_exit(0) = ?

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dale Harris  <rodmur@csuchico.edu>   PGP KeyID: E26EC5FD      
http://www.ecst.csuchico.edu/~rodmur/
|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|

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