HEADSUP: uart(4) and serial console change

Marcel Moolenaar marcel at xcllnt.net
Sat Apr 5 22:25:42 UTC 2014


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,

-- 
Marcel Moolenaar
marcel at xcllnt.net


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20140405/90da1e97/attachment.sig>


More information about the freebsd-current mailing list