From owner-freebsd-current@FreeBSD.ORG Wed Sep 21 13:51:26 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC86516A41F for ; Wed, 21 Sep 2005 13:51:26 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEB7843D46 for ; Wed, 21 Sep 2005 13:51:25 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j8LDpNa8000526; Wed, 21 Sep 2005 16:51:23 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 71809-02; Wed, 21 Sep 2005 16:51:21 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j8LDpLJS000521 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Sep 2005 16:51:21 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.3/8.13.3) id j8LDpbNY023231; Wed, 21 Sep 2005 16:51:37 +0300 (EEST) (envelope-from ru) Date: Wed, 21 Sep 2005 16:51:37 +0300 From: Ruslan Ermilov To: Marcel Moolenaar Message-ID: <20050921135137.GA22964@ip.net.ua> References: <20050920110023.GA468@ip.net.ua> <6136.1127217196@critter.freebsd.dk> <20050920153044.GC468@ip.net.ua> <1127230793.30479.24.camel@buffy.york.ac.uk> <20050920172635.GA2811@ip.net.ua> <20050920211359.GA22676@ns1.xcllnt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <20050920211359.GA22676@ns1.xcllnt.net> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: freebsd-current@FreeBSD.org Subject: Re: serial ttys broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 13:51:26 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 20, 2005 at 02:13:59PM -0700, Marcel Moolenaar wrote: > On Tue, Sep 20, 2005 at 08:26:36PM +0300, Ruslan Ermilov wrote: > > >=20 > > > In my experience, you need to use: > > >=20 > > > cuad0 "/usr/libexec/getty std.9600" dialup on secure > > > and not > > > ttyd0 "/usr/libexec/getty std.9600" dialup on secure > > >=20 > > > in /etc/ttys to get a console on the serial port if you are not using= -h > > > in /boot.config. I'm pretty sure it's been like this for a long time. > > >=20 > > > What line have you got in /etc/ttys? > > >=20 > > I've come to the same conclusion after also trying uart(4) instead > > of sio(4). >=20 > Don't forget that DCD does not have to be asserted when the > serial line is used as serial console. When the serial line > is not used as serial console, DCD must be asserted. This > is not always the case with null-modem cables. > Change std.9600 to 3wire.9600 and don't use cua*. Use tty*. >=20 Thanks a lot! This has fixed all issues I had, now everything works as advertised, including being able to use conscontrol(8) to add serial console, and set/reset console via TIOCSTTY. Perhaps it would be a good idea to add entries with 3wire to /etc/ttys? Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDMWVpqRfpzJluFF4RAjq8AJ9/fYSddIeW0RihXcX0hAPvh4SNYwCePtuN e01SD0b2exTrQgNneHcSNeo= =JXet -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--