Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2013 14:29:47 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-embedded@freebsd.org, lev@freebsd.org
Subject:   Re: Using ttyu2 as Serial console -- how could I specify this to boot and loader?
Message-ID:  <201309031429.47894.jhb@freebsd.org>
In-Reply-To: <581843187.20130810134014@serebryakov.spb.ru>
References:  <87215828.20130809124922@serebryakov.spb.ru> <1E175195-5A2F-417A-B989-BF7DB66979DA@bsdimp.com> <581843187.20130810134014@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309031429.47894.jhb>