nsayer@uop.EDU (Nick Sayer) (11/29/89)
I have a Sun 2/170 with a standard Hayes compatable modem. I have two /dev entries for the tty port it resides on, /dev/ttym0 and /dev/cua0. In the nutshell UUCP book, it says that if I put ttym0 in /etc/ttytab and /dev/cua0 in /etc/uucp/L-devices that three things will happen: 1. getty will not show up on the tty until a carrier appears. 2. anyone opening /dev/cua0 will steal the line and getty won't show up until that line is closed. 3. If anyone is on /dev/ttym0, /dev/cua0 will be "busy." As it turns out, this is happening: 1. getty shows up the instant the line is enabled. I can watch as the modem's echoing creates the deadly embrace with getty. 2. If I kill the getty process and quickly open /dev/cua0, getty is shut out, as it should be. 3. Since getty is having an echoing war on /dev/ttym0, /dev/cua0 is always "busy" unless I turn off its entry in /etc/ttytab. So the big problem as I see it is to get it so that DTR will be on, but no getty will appear until DCD comes on (or DSR). RTFM didn't help. --------------------------------------------------------------------- Nick Sayer | quack!mrapple@uop.edu or cheers!quack!mrapple@apple.com ... or { apple!cheers | pacbell!cogent!uop }!quack!mrapple Packet radio: N6QQQ @ WB6V | (209) 952-5347 300/1200/2400 - login guest Disclaimer: The BBC would like to appologise for that announcement
limes@sun.com (Greg Limes) (12/06/89)
In article <1497@uop.uop.EDU> nsayer@uop.EDU (Nick Sayer) writes: > I have a Sun 2/170 with a standard Hayes compatable modem. I have two > /dev entries for the tty port it resides on, /dev/ttym0 and /dev/cua0. > In the nutshell UUCP book, it says that if I put ttym0 in /etc/ttytab > and /dev/cua0 in /etc/uucp/L-devices ... [explains the expected workings of dialin/dialout, and complains that his getty is not being held off until carrier is detected] Nick -- the GENERIC kernels are configured with the "softcarrier" flags turned on, so that terminals may be attached to the serial ports without worrying about things like supplying a carrier indication on the port's DCD pin. You need to get into your kernel configuration file and change the flag word for the port so that the bit corresponding to the modem line is a zero, not a one; rebuild the kernel (with "config" and "make" as described in the documentation on such things), reboot, and your getty should wait around. Yes, the Sun will raise DTR when the getty starts trying to open the port. Of course, you mention /dev/ttym0, which us normally associated with the Central Data Octal serial card -- and I have never actually seen one of these beasts, even when I was a customer. If you already configured the kernel as described above, then I quitely suggest that you contact Sun Customer service (which I hear is getting better) or the sun-spots mailing list. -- greg limes [limes@eng.sun.com] no longer the serial driver person, but i remember ... -- -- Greg Limes limes@eng.sun.com ...!sun!limes 73327,2473 [choose one]