From owner-freebsd-current@FreeBSD.ORG Wed Sep 21 09:02:09 2005 Return-Path: X-Original-To: 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 82EF416A41F for ; Wed, 21 Sep 2005 09:02:09 +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 ED15043D45 for ; Wed, 21 Sep 2005 09:02:08 +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 j8L9254w012285; Wed, 21 Sep 2005 12:02:05 +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 28989-16; Wed, 21 Sep 2005 12:02:04 +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 j8KIuvtx056247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Sep 2005 21:57:03 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.3/8.13.3) id j8KIvDLV004314; Tue, 20 Sep 2005 21:57:13 +0300 (EEST) (envelope-from ru) Date: Tue, 20 Sep 2005 21:57:13 +0300 From: Ruslan Ermilov To: Poul-Henning Kamp Message-ID: <20050920185713.GA3316@ip.net.ua> References: <20050920110023.GA468@ip.net.ua> <6136.1127217196@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <6136.1127217196@critter.freebsd.dk> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: 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 09:02:09 -0000 --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable JFYI, everyone I've asked (several people now) can easily reproduce this: when serial console is NOT configured, getty doesn't work on ttyd0, but it appears to work on cuad0! The same holds true for uart(4) instead of sio(4). Odd. Also, and I think this is related, resetting console via TIOCCONS(0) on /dev/console appears to be broken when serial console is configured. In my setup, i.e. when booted WITHOUT serial console configured (no -h in boot2, no console=3Dcomconsole in loader, etc.) but with serial port serving as a potential console (i.e., hint...flags=3D0x10), doing the following blocks: : hammer# conscontrol=20 : Configured: consolectl : Available: ttyd0,consolectl : Muting: off : hammer# conscontrol add ttyd0 : Configured: ttyd0,consolectl : Available: ttyd0,consolectl : Muting: off : hammer# conscontrol set /dev/ttyv1 : Configured: ttyd0,consolectl : Available: ttyd0,consolectl : Muting: off : hammer# conscontrol unset : load: 0.03 cmd: conscontrol 1397 [ttydcd] 0.00u 0.00s 0% 660k : load: 0.03 cmd: conscontrol 1397 [ttydcd] 0.00u 0.00s 0% 660k : load: 0.03 cmd: conscontrol 1397 [ttydcd] 0.00u 0.00s 0% 660k : ^C Removing ttyd0 from console list leads to a success with TIOCCONS(0) on /dev/console: : hammer# conscontrol delete ttyd0 : Configured: consolectl : Available: ttyd0,consolectl : Muting: off : hammer# conscontrol unset : Configured: consolectl : Available: ttyd0,consolectl : Muting: off > I won't have time to look at it for the next several weeks > (unless it happens on my machine and forces me to handle it). >=20 I'm not urging you, but not having getty working over serial is a bit annoying. And I'm pretty sure you can easily reproduce this on any of your machines: 1. Boot with GENERIC that has sio0 as potential console but without serial console. 2. Try to make getty over ttyd0 working, as in default /etc/ttys file. Can you at least please try and confirm it works for you, or not? Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --0F1p//8PRICkK4MW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDMFuJqRfpzJluFF4RAnvKAJ9EVXgRI0c+opQyd7opNKpX4rSvbwCdHip4 aGsLb6x6fsIwMqSnLi6uInI= =f77O -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW--