From: tytso@athena.mit.edu (Theodore Ts'o) Subject: Re: Dial-in problems with /dev/cua?? en /dev/ttys?? serial patches Date: 7 Feb 1993 18:41:29 -0500
From: devet@adv.win.tue.nl (Arjan de Vet)
Date: 7 Feb 93 10:03:23 GMT
I've tried these new serial patches which give /dev/cua?? (call-out) en
/dev/ttys?? (dial-in) lines.
Calling out works OK. Dialing in however doesn't.
OK, there are two parts to this answer; first of all, as of February
1st, there is a new serpatches file on /pub/linux/ALPHA/serial on
tsx-11.mit.edu. If ou have a serpatches file which dates before that,
you should grab a new copy off of tsx-11 (it is a context diff vs.
0.99pl4). Since that date, there are also two new patch files,
serpatches1 and serpatches2, which should be applied in that order on
top of the changes made using serpatches. You must have all of the
latest serial patches for dialin behavior to work correctly.
Secondly, you need to a version of getty which opens /dev/tty *without*
the O_NONBLOCK or O_NDELAY flag. It looks like the poegl getty (at
least the one in version 1.7) does the right thing; I haven't it tried
it myself, so I can guarantee it will work, but from a brief look at it,
it should. If you are using gettyps, you will need to modify it so it
doesn't open it using the O_NDELAY flag. I added an "-n" option to
gettyps which caused it to *not* open the device in non-blocking mode.
I am using a modified gettyps, and the dialin/dialout ports are working
just fine under this arrangement.
Good luck!
- Ted