From owner-freebsd-current@FreeBSD.ORG Mon Sep 12 05:45:06 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF4991065672 for ; Mon, 12 Sep 2011 05:45:06 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 6DA368FC0A for ; Mon, 12 Sep 2011 05:45:06 +0000 (UTC) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtps (TLSv1:AES128-SHA:128) (Exim 4.54 (FreeBSD)) id 1R2zKK-0009mK-RY; Mon, 12 Sep 2011 09:45:04 +0400 From: Boris Samorodov To: David Cornejo 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> Date: Mon, 12 Sep 2011 09:45:04 +0400 In-Reply-To: (David Cornejo's message of "Sun, 11 Sep 2011 19:31:33 -1000") Message-ID: <11704607@bb.ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-current@freebsd.org Subject: Re: Serial Port Configuration does not work X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2011 05:45:06 -0000 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