From owner-freebsd-embedded@FreeBSD.ORG Tue Sep 3 19:08:37 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4153D638; Tue, 3 Sep 2013 19:08:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4302F2FC1; Tue, 3 Sep 2013 19:08:36 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id B7B46B989; Tue, 3 Sep 2013 15:08:34 -0400 (EDT) From: John Baldwin To: freebsd-embedded@freebsd.org, lev@freebsd.org Subject: Re: Using ttyu2 as Serial console -- how could I specify this to boot and loader? Date: Tue, 3 Sep 2013 14:29:47 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p28; KDE/4.5.5; amd64; ; ) References: <87215828.20130809124922@serebryakov.spb.ru> <1E175195-5A2F-417A-B989-BF7DB66979DA@bsdimp.com> <581843187.20130810134014@serebryakov.spb.ru> In-Reply-To: <581843187.20130810134014@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201309031429.47894.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 03 Sep 2013 15:08:34 -0400 (EDT) X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2013 19:08:37 -0000 On Saturday, August 10, 2013 5:40:14 am Lev Serebryakov wrote: > Hello, Warner. > You wrote 9 =D0=B0=D0=B2=D0=B3=D1=83=D1=81=D1=82=D0=B0 2013 =D0=B3., 20:2= 7:15: >=20 > WL> You need to set the flags hint on the com port you want to be the=20 console. > For kernel :) And for boot and loader? I found BOOT_COMCONSOLE_PORT build > option in Handbook (thanks to hiren panchasara to point me this) :) You can now do this differently without needing to recompile nor change any hints for the kernel by just putting this in /boot/loader.conf: console=3D"comconsole vidconsole" comconsole_port=3D"0x2f8" This should set a hw.uart.console hint which overrides the old flags on uartX devices to set the kernel's serial console. You can change the speed via 'comconsole_speed=3D115200' or the like as well. =2D-=20 John Baldwin