From owner-svn-src-all@FreeBSD.ORG Mon Feb 4 20:46:16 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D2CD52E3; Mon, 4 Feb 2013 20:46:16 +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 AF9A6D34; Mon, 4 Feb 2013 20:46:16 +0000 (UTC) Received: from pakbsde14.localnet (unknown [38.105.238.108]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 30BFAB9A0; Mon, 4 Feb 2013 15:46:16 -0500 (EST) From: John Baldwin To: Sergey Kandaurov Subject: Re: svn commit: r245848 - head/sys/boot/i386/libi386 Date: Mon, 4 Feb 2013 14:46:55 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p22; KDE/4.5.5; amd64; ; ) References: <201301231834.r0NIYLnp006407@svn.freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201302041446.55786.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 04 Feb 2013 15:46:16 -0500 (EST) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2013 20:46:16 -0000 On Monday, February 04, 2013 4:43:36 am Sergey Kandaurov wrote: > On 23 January 2013 22:34, John Baldwin wrote: > > Author: jhb > > Date: Wed Jan 23 18:34:21 2013 > > New Revision: 245848 > > URL: http://svnweb.freebsd.org/changeset/base/245848 > > > > Log: > > Always update the hw.uart.console hint anytime a change is made to the > > comconsole setup. Previously the hint would be set when if you set a > > custom port, but it would not be updated if you later set a custom speed. > > > > Also, leave the hw.uart.console hint mutable so it can be overridden or > > unset by the user if needed. > > > > Reviewed by: kib (earlier version) > > MFC after: 1 week > > Looks like this results in something wrong. > I have a serial console at COM2 (uart1), but it chooses uart0 > (1016 == 0x3F8), compare .flags and the final hw.uart.console value. Do you have a working console in the loader? It is setting the hint based on what the loader uses. I use this to use COM2 for both loader and kernel: console="comconsole vidconsole" comconsole_port=0x2f8 Note that when hw.uart.console is set, any flags set in hint.uart.X.flags to set the console are ignored. If you are not using -h in /boot.config or setting 'console' for the loader to enable a serial console then the loader should not be setting hw.uart.console (if it is, that is a bug to be fixed). However, configuring the kernel to use a different serial console from the loader seems very odd. You should be able to manually set hw.uart.console in loader.conf if you are doing that. -- John Baldwin