HEADSUP: uart(4) and serial console change

From: Marcel Moolenaar <marcel_at_xcllnt.net>
Date: Sat, 5 Apr 2014 15:25:29 -0700
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



Received on Sat Apr 05 2014 - 20:25:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:48 UTC