From: Paul Tomblin <ptomblin@xcski.com>
To: axp-list@redhat.com
Subject: Re: ttyS0 versus cua0
Date: Thu, 10 Sep 1998 14:32:54 -0400 [thread overview]
Message-ID: <19980910143254.A24374@xcski.com> (raw)
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 = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = <undef>;
werase = <undef>; 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
next prev parent reply other threads:[~1998-09-10 18:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-10 12:02 ttyS0 versus cua0 Paul Tomblin
1998-09-10 17:49 ` Christopher Curtis
1998-09-10 17:56 ` Randy Carpenter
1998-09-10 17:57 ` Paul Tomblin
1998-09-10 18:00 ` Paul Tomblin
1998-09-10 17:53 ` Michal Jaegermann
1998-09-10 17:59 ` Paul Tomblin
1998-09-10 18:15 ` Michal Jaegermann
1998-09-10 18:32 ` Paul Tomblin [this message]
1998-09-10 18:38 ` Daniel Stringfield
1998-09-10 18:53 ` Paul Tomblin
1998-09-12 7:35 ` gkoch
1998-09-11 10:41 ` Peter Waltenberg
1998-09-10 22:43 ` Paul Tomblin
1998-09-11 14:29 ` kernel debugger ward
1998-09-10 18:40 ` ttyS0 versus cua0 Bibek Sahu
1998-09-11 14:04 ` Jeff Sturm
1998-09-11 14:52 ` Paul Tomblin
1998-09-11 14:55 ` Paul Tomblin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox