From owner-freebsd-stable@FreeBSD.ORG Tue Oct 27 01:56:21 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B169106566B for ; Tue, 27 Oct 2009 01:56:21 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout023.mac.com (asmtpout023.mac.com [17.148.16.98]) by mx1.freebsd.org (Postfix) with ESMTP id 3982B8FC19 for ; Tue, 27 Oct 2009 01:56:21 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii; format=flowed; delsp=yes Received: from macbook-pro.lan.xcllnt.net (mail.xcllnt.net [75.101.29.67]) by asmtp023.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KS500BN3ELVNQ60@asmtp023.mac.com> for freebsd-stable@freebsd.org; Mon, 26 Oct 2009 17:56:20 -0700 (PDT) From: Marcel Moolenaar In-reply-to: <06D5F9F6F655AD4C92E28B662F7F853E032DF8FA@seaxch09.desktop.isilon.com> Date: Mon, 26 Oct 2009 17:56:19 -0700 Message-id: References: <06D5F9F6F655AD4C92E28B662F7F853E032DF8FA@seaxch09.desktop.isilon.com> To: Matthew Fleming X-Mailer: Apple Mail (2.1076) Cc: freebsd-stable@freebsd.org Subject: Re: uart(4) on stable/7 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2009 01:56:21 -0000 On Oct 26, 2009, at 2:57 PM, Matthew Fleming wrote: > I can ssh to my box, echo to /dev/console appears on the console; > messages on reboot appear on the console, just not the login prompt. > Does anyone know what else I may be missing to use uart(4)? As Andrew pointed put, you need to update /etc/ttys as well. > Also, we have some boot scripts locally that will try to set > machdep.conspeed based on hardware type; uart(4) doesn't seem to > expose > a sysctl by that name. How does the uart driver for stable/7 deal > with > differing console speeds? uart(4) has 2 approaches for this: 1) you don't specify a speed -- in this case uart(4) will simply re-use the speed that hardware is programmed for. 2) You do specify a speed - uart(4) will reprogram the the console speed based on the hw.uart.console tunable. Note that for compatibility with sio(4) hints can be used as well. Use hint.uart.0.baud=9600 to set the console speed to 9600 baud. There's no compiled-in console speed. The compiled-in default (in a way) is to use the speed the hardware is programmed for. -- Marcel Moolenaar xcllnt@mac.com