From owner-freebsd-current@FreeBSD.ORG Mon Sep 12 05:31:34 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 92F3F106564A for ; Mon, 12 Sep 2011 05:31:34 +0000 (UTC) (envelope-from dave@dogwood.com) Received: from mail-qw0-f45.google.com (mail-qw0-f45.google.com [209.85.216.45]) by mx1.freebsd.org (Postfix) with ESMTP id 4DC898FC08 for ; Mon, 12 Sep 2011 05:31:33 +0000 (UTC) Received: by qwj8 with SMTP id 8so3643683qwj.18 for ; Sun, 11 Sep 2011 22:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dogwood.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=T7A2myE8DdMqHniG7YqiaAR57NZocCoHAhyQWCoIt3A=; b=o0844vrTMm1DlvfBgcQvD0S32ARPVBTmsAZlu/mV6MOgY2l5WPf3BXQ2/QMWYslId/ gLi/EGnZtter6ntbabUFKD5XftvGy8JlbLx3OsBmpl4B9A4Z9sx6iWId/YfKAsqLa5o+ YTTAE1kdz0GAsM4g919XMzVjBypL6N2vFwBHg= MIME-Version: 1.0 Received: by 10.224.178.14 with SMTP id bk14mr3258442qab.115.1315805493322; Sun, 11 Sep 2011 22:31:33 -0700 (PDT) Received: by 10.229.136.73 with HTTP; Sun, 11 Sep 2011 22:31:33 -0700 (PDT) Received: by 10.229.136.73 with HTTP; Sun, 11 Sep 2011 22:31:33 -0700 (PDT) In-Reply-To: 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: Sun, 11 Sep 2011 19:31:33 -1000 Message-ID: From: David Cornejo To: Boris Samorodov Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:31:34 -0000 On Sep 11, 2011 6:54 PM, "Boris Samorodov" wrote: > > On Sun, 11 Sep 2011 10:33:18 +0200 Gary Jennejohn wrote: > > On Sat, 10 Sep 2011 21:10:44 +0400 > > Boris Samorodov wrote: > > > On Sat, 10 Sep 2011 16:08:21 +0200 Gary Jennejohn wrote: > > > > > On Tue, 06 Sep 2011 16:29:51 +0400 Boris Samorodov wrote: > > > > > > > > > > > the port does not work as expected (at least as per The Handbook, > > > > > > 26.2.5 Serial Port Configuration). Nether "init" nor "lock" > > > > > > devices can be used: > > > > > > > Seems that the handbook is out of date. > > > > > > OK, how can I configure a serial port then? > > > > > > Just don't use the init and lock devices. > > Well, I've read the Handbook because I can't do it with > a serial port: > ----- > % uname -a > FreeBSD host.ipt.ru 9.0-BETA2 FreeBSD 9.0-BETA2 #14 r225395: Mon Sep 5 18:10:43 MSK 2011 bsam@host.ipt.ru:/usr/obj/usr/src/sys/HOST i386 > > % sudo stty -f /dev/ttyu4 56400 > > % echo $? > 0 > > % sudo stty -f /dev/ttyu4 > speed 9600 baud; > lflags: echoe echoke echoctl > oflags: tab0 > cflags: cs8 -parenb > ----- > > -- > WBR, Boris Samorodov (bsam) > Research Engineer, http://www.ipt.ru Telephone & Internet SP > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" It's been a long time, 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.