From owner-freebsd-hardware@FreeBSD.ORG Tue Mar 16 01:39:34 2010 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AFEA1065676 for ; Tue, 16 Mar 2010 01:39:34 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 8C04D8FC16 for ; Tue, 16 Mar 2010 01:39:33 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o2G1SXWB003915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 16 Mar 2010 02:28:33 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o2G1SRuj065587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Mar 2010 02:28:27 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o2G1SRDY067311; Tue, 16 Mar 2010 02:28:27 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o2G1SRNN067310; Tue, 16 Mar 2010 02:28:27 +0100 (CET) (envelope-from ticso) Date: Tue, 16 Mar 2010 02:28:27 +0100 From: Bernd Walter To: Charles Owens Message-ID: <20100316012827.GN39056@cicely7.cicely.de> References: <4B9EBB10.5050804@greatbaysoftware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B9EBB10.5050804@greatbaysoftware.com> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: freebsd-hardware@freebsd.org Subject: Re: ttyu1 stuck at 115200 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2010 01:39:34 -0000 On Mon, Mar 15, 2010 at 06:56:16PM -0400, Charles Owens wrote: > Hello, > > Working with pretty vanilla hardware running 8.0-RELEASE-p2, I find that > ttyu0 works just fine as a serial console, but ttyu1 wants to default to > 115200 baud (ttyu0 defaults to 9600 as expected). I'm used having > details like baud-rate handled by argument given to getty via the > respective line in /etc/ttys... but that doesn't seem to be the behavior > I'm seeing. I couldn't get a login prompt at 9600 baud until I added > the following line to /boot/device.hints and rebooted: > > hint.uart.1.baud="9600" > > Is this supposed to be how this is done now, or is there something else > going on here? Any thoughts as to why the two ports behave differently? This is automatically passed from earlier bootcode, but as long as this code isn't compiled for uart1 it setups uart0. Previously the kernel default was 9600, but it seems this has changed. If you use boot2 with serial you need to recompile and reinstall it with BOOT_COMCONSOLE_PORT and BOOT_COMCONSOLE_SPEED setup. You need to recompile loader with at least BOOT_COMCONSOLE_PORT to handle a different port instead, but you can change the speed with comconsole_speed in loader.conf - nevertheless the default is also set with BOOT_COMCONSOLE_SPEED at compiletime. You should have at least the loader on serial as well - otherwise you can't change boot parameters or boot another kernel. I even prefer running boot2 on serial so I can switch loader in case something breaks loader with an update. > This is a Xeon-based system with the Intel S5000PAL motherboard... > running GENERIC kernel. Here are related boot messages (with > device.hints tuning in place): > > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0 > uart0: [FILTER] > uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 > uart1: [FILTER] > uart1: console (9600,n,8,1) > > > Thanks very much, > > Charles > > -- > Charles Owens > Great Bay Software, Inc. > > > > _______________________________________________ > freebsd-hardware@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hardware > To unsubscribe, send any mail to "freebsd-hardware-unsubscribe@freebsd.org" -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.