From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24561 invoked from network); 10 Sep 1998 18:33:18 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 10 Sep 1998 18:33:18 -0000 Received: from xcski.com (d185d1c51.rochester.rr.com [24.93.28.81]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA30514 for ; Thu, 10 Sep 1998 14:33:37 -0400 Received: (from ptomblin@localhost) by xcski.com (8.8.7/8.8.7) id OAA26349; Thu, 10 Sep 1998 14:32:54 -0400 Message-ID: <19980910143254.A24374@xcski.com> Date: Thu, 10 Sep 1998 14:32:54 -0400 From: Paul Tomblin To: axp-list@redhat.com Subject: Re: ttyS0 versus cua0 References: <19980910135900.B18112@xcski.com> <199809101815.MAA27570@ellpspace.math.ualberta.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1 In-Reply-To: <199809101815.MAA27570@ellpspace.math.ualberta.ca>; from Michal Jaegermann on Thu, Sep 10, 1998 at 12:15:56PM -0600 Quoting Michal Jaegermann (michal@ellpspace.math.ualberta.ca): > > > > 'stty -a < /dev/ttyS0' hangs indefinitely. > > Hm. > > > As does 'cat - > /dev/ttyS0'. ^^^ > > What do you expect from that??? To change settings on /dev/ttyS0 you > still do '.... < /dev/ttyS0'. I know that this is pretty unexpected. :-) > Try 'stty --help | less'. I'm not doing it to change settings. Last time I checked, you don't change settings with "cat". It was just a test to see if I was communicating with the terminal by trying to put some typing out on it. And like I said, it worked fine with cua0. > > Both of those things work fine with cua0. > > So what is 'clocal'? You are reading the same port. # stty -a < /dev/cua0 speed 19200 baud; rows 0; columns 0; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ; werase = ; lnext = ^V; flush = ^U; min = 1; time = 0; -parenb -parodd cs8 hupcl -cstopb cread -clocal crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 -isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt -echoctl -echoke Also, here is the appropriate line from /etc/inittab: #term:345:respawn:/sbin/getty ttyS0 F19200 vt220 term:345:respawn:/sbin/getty cua0 F19200 vt220 And the appropriate line from /etc/gettydefs F19200# B19200 CS8 CRTSCTS # B19200 SANE -ISTRIP HUPCL CRTSCTS #@S login: #F19200 setserial reports: # setserial /dev/cua0 /dev/cua0, UART: 16550A, Port: 0x03f8, IRQ: 4, Flags: spd_hi # setserial /dev/ttyS0 /dev/ttyS0: Device or resource busy And just to reiterate: I am using exactly the same settings as have worked on this machine for months. Before that, those same settings worked on my Intel Linux box since SLS 1.03. (With kernel 0.99.14g). -- Paul Tomblin, ptomblin@xcski.com. "An appointment is an engagement to see someone, while a morningstar is a large lump of metal used for viciously crushing skulls. It is important not to confuse the two, isn't it, Mr. --?" - Terry Pratchett