Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2011 09:45:04 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        David Cornejo <dave@dogwood.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Serial Port Configuration does not work
Message-ID:  <11704607@bb.ipt.ru>
In-Reply-To: <CAFnjQbvBfvBYb0TT8WzpC4DgvQErN8a70%2BpSy_uQCf_sizjeTA@mail.gmail.com> (David Cornejo's message of "Sun, 11 Sep 2011 19:31:33 -1000")
References:  <70652288@bb.ipt.ru> <47407562@bb.ipt.ru> <20110910160821.5220f1f7@ernst.jennejohn.org> <01006443@h30.sp.ipt.ru> <20110911103318.5c23e160@ernst.jennejohn.org> <81306828@bb.ipt.ru> <CAFnjQbvDh7ciLK9WLhA5k-h8r0dt18zdQbggsXC=8Jgwz5L=SQ@mail.gmail.com> <CAFnjQbvBfvBYb0TT8WzpC4DgvQErN8a70%2BpSy_uQCf_sizjeTA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 hht.ipt.ru 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0 r216685: Fri Dec 24 10:16:47 MSK 2010     bsam@hht.ipt.ru:/z/obj/z/src/sys/HHT  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, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11704607>