HEADSUP: uart(4) and serial console change

看板FB_current作者時間12年前 (2014/04/06 06:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
--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--
文章代碼(AID): #1JG8HYkK (FB_current)