Re: serial port usage
"Darren Spruell" <[email protected]>
| Newsgroups | gmane.os.openbsd.www |
|---|---|
| Message-ID | <[email protected]> |
On 9/13/07, Nick Holland <[email protected]> wrote: > Darren Spruell wrote: > ... > > If cua00 is the right device to use when connecting out, why the > > missing phone number error? > > That means your /etc/remote file is still at its defaults (which > perhaps should change): > > tty00|For hp300,i386,mac68k,macppc,mvmeppc,vax:\ > :dv=/dev/tty00:tc=direct:tc=unixhost: > > cua00|For hp300,i386,mac68k,macppc,mvmeppc,vax:\ > :dv=/dev/cua00:tc=dialup:tc=unixhost: > > See, when you do "tip tty00", you aren't actually saying, "use port > tty00", you are saying, "use /etc/remote entry tty00", which just > so happens to point to port tty00. It doesn't need to. You could > really mess with someone. :) > > Try doing this: > > # tip tty01 > tip: unknown host tty01 > > unknown HOST, not unknown port (this machine has a second com port). > > The "tc=dialup" is what is hurting you. Just change it to "direct". I don't know why that didn't make sense when I looked at it at first, but that did the trick of course. Is the following patch sensible? Index: faq/faq8.html =================================================================== RCS file: /cvs/www/faq/faq8.html,v retrieving revision 1.196 diff -u -p -r1.196 faq8.html --- faq/faq8.html 7 Aug 2007 00:17:50 -0000 1.196 +++ faq/faq8.html 14 Sep 2007 18:05:40 -0000 @@ -989,7 +989,7 @@ SPARC64 systems run as long as the base <h2>8.13 - I get Input/output error when trying to use my tty devices</h2> <p> You need to use /dev/cuaXX for connections initiated from the OpenBSD -system, the /dev/ttyXX devices are intended only for terminal or dial-in +system, since the /dev/ttyXX devices are intended only for terminal or dial-in usage. While it was possible to use the tty devices in the past, the OpenBSD kernel is no longer compatible with this usage. @@ -1017,6 +1017,14 @@ has finished, the <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=getty&sektion=8">getty(8)</a> process will deal with it properly, without having noticed the intervening dial-out action. + +<p> +Note that by default the cua devices present in <tt>/etc/remote</tt> +are configured as dialout ports, which will not work for a directly +connected serial console. Changing the <i>tc=</i> specification in the +device entry from <tt>dialout</tt> to <tt>direct</tt> will allow the +cua device to be used for connecting to a directly attached serial +console on that port. <a name="Browsers"></a> <h2>8.14 - What web browsers are available for OpenBSD? </h2> DS