From owner-freebsd-stable@FreeBSD.ORG Tue Feb 26 12:47:17 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4EF1CEE1 for ; Tue, 26 Feb 2013 12:47:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2EE257F for ; Tue, 26 Feb 2013 12:47:17 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 68767B9A4; Tue, 26 Feb 2013 07:47:16 -0500 (EST) From: John Baldwin To: "Daniel O'Connor" Subject: Re: IPMI serial console Date: Mon, 25 Feb 2013 16:34:13 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p25; KDE/4.5.5; amd64; ; ) References: <00CC60B5-A6EB-4A3C-B8AC-1D60014DE442@gsoft.com.au> <201302211723.14730.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201302251634.13110.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 26 Feb 2013 07:47:16 -0500 (EST) Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 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, 26 Feb 2013 12:47:17 -0000 On Thursday, February 21, 2013 5:42:08 pm Daniel O'Connor wrote: > > On 22/02/2013, at 8:53, John Baldwin wrote: > >> I also tried booting with '-D -h -S 115200' but nothing either. > > > > Sorry, those should be 'comconsole_speed' and 'comconsole_port'. Also, you > > should be able to get the loader prompt working if you enter those by hand > > using an IPMI KVM or some such. > > > No luck with that either :( > > The IPMI serial console works for the BIOS & loader so I guess the comconsole parts work, however the kernel doesn't seem to use it even with '-D -h'. > > The uart(4) flags are correct (I believe) > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 on acpi0 > uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 > uart2: <16550 or compatible> port 0x3e8-0x3ef irq 5 flags 0x30 on acpi0 The way this works with the kernel is that the loader has to be setting a hw.uart.console hint based on comconsole_port. The hint.uart.X.flags settings are completely ignored for this. Also, for 9.1, you must set the speed before you set the port (so the order of lines in loader.conf matters), or hw.uart.console will tell the kernel to use 9600 instead of 115200. -- John Baldwin