Serial Port Configuration does not work

Boris Samorodov bsam at
Mon Sep 12 05:45:06 UTC 2011

On Sun, 11 Sep 2011 19:31:33 -1000 David Cornejo wrote:

> It's been a long time, 

It worked at 8.2-PRERELEASE for me (and seemed to be a bug
at 9.0-BETA2):
% uname -a
FreeBSD 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0 r216685: Fri Dec 24 10:16:47 MSK 2010     bsam at  amd64

% sudo stty -f /dev/cuau1
speed 57600 baud;
lflags: echoe echoke echoctl
oflags: tab0
cflags: cs8 -parenb

% sudo stty -f /dev/cuau1.init 1200 cs7

% sudo stty -f /dev/cuau1
speed 1200 baud;
lflags: echoe echoke echoctl
oflags: tab0
cflags: cs7 -parenb

> but I seem to recall that you need to have the device
> open before you can configure it and that when the device closes it gets
> reset to defaults. (or maybe the open resets it).  The way I remember
> configuring it from the command line was to tip or cu to port, suspend tip,
> reconfigure, and foreground tip.

Yea, I recall doing something like this until I discovered *.init
and *.lock devices. And they proved to be very useful.

Anyway Jilles Tjoelker offered a patch that fixed the case.

WBR, Boris Samorodov (bsam)
Research Engineer, Telephone & Internet SP
FreeBSD Committer, The Power To Serve

More information about the freebsd-current mailing list