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 августа 2013 г., 20:27:15:
> 
> WL> You need to set the flags hint on the com port you want to be the 
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="comconsole vidconsole"
comconsole_port="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=115200' or the like as well.

-- 
John Baldwin



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