From owner-freebsd-current@FreeBSD.ORG Sat Apr 5 22:25:42 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 18D8F472 for ; Sat, 5 Apr 2014 22:25:42 +0000 (UTC) Received: from mail.xcllnt.net (mail.xcllnt.net [50.0.150.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E1C153E1 for ; Sat, 5 Apr 2014 22:25:41 +0000 (UTC) Received: from [172.29.1.146] ([66.129.239.13]) (authenticated bits=0) by mail.xcllnt.net (8.14.8/8.14.8) with ESMTP id s35MPYCp052285 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sat, 5 Apr 2014 15:25:35 -0700 (PDT) (envelope-from marcel@xcllnt.net) From: Marcel Moolenaar Content-Type: multipart/signed; boundary="Apple-Mail=_BE853D05-1769-46A0-9171-A027D166ED57"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: HEADSUP: uart(4) and serial console change Message-Id: <75C507B4-36AB-459C-BAAA-368CA815B4B7@xcllnt.net> Date: Sat, 5 Apr 2014 15:25:29 -0700 To: "FreeBSD-CURRENT@freebsd.org Current" Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-Mailer: Apple Mail (2.1874) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 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: Sat, 05 Apr 2014 22:25:42 -0000 --Apple-Mail=_BE853D05-1769-46A0-9171-A027D166ED57 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii All, With r264175, the uart(4) driver will no longer prevent changing the = baudrate nor the CLOCAL or HUPCL control flags. What this means is that if you = have a serial console on which getty(8) is started, the settings you have in = /etc/ttys will now actually take effect! To preserve the previous behaviour, change your /etc/ttys line for the = serial console to (for serial consoles on ttyu0): ttyu0 "/usr/libexec/getty 3wire" vt100 on secure You can replace "3wire" to "std" once you've validated that you have a = carrier signal. Otherwise setting the terminal type/class to "std" will result = in the getty(8) process getting blocked. With a carrier signal, you'll be = logged out as soon as carrier drops (i.e. when you disconnect from the console). = This is a nice feature if security is not unimportant to you. To change the baudrate on the fly, change the terminal type/class to any = of the "3wire.XXXX" or "std.XXXX" types, where XXXX is the baudrate. And don't forget to SIGHUP init(8) after making changes, otherwise the = changes don't take effect! FYI, --=20 Marcel Moolenaar marcel@xcllnt.net --Apple-Mail=_BE853D05-1769-46A0-9171-A027D166ED57 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlNAgtkACgkQpgWlLWHuifZ3EACfe9NPhQeaAv5gdylae2qCPt1N fiwAn07kTIBRMv0UyerXh7LoHJGbXhvT =ibza -----END PGP SIGNATURE----- --Apple-Mail=_BE853D05-1769-46A0-9171-A027D166ED57--