Using ttyu2 as Serial console -- how could I specify this to boot and loader?

John Baldwin jhb at freebsd.org
Tue Sep 3 19:08:37 UTC 2013


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


More information about the freebsd-embedded mailing list