Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jun 2019 11:57:53 -0600
From:      Sergey Manucharian <sm@ara-ler.com>
To:        FreeBSD-ARM <freebsd-arm@freebsd.org>
Subject:   Default serial console
Message-ID:  <20190601175753.GN33704@dendrobates>

next in thread | raw e-mail | index | archive | help
How to change the default serial console? I couldn't find any reference.
In my BeagleBone Black the boot messages and login prompt go to /dev/ttyu0. 
With the peripherals I use, that port is not physically accessible, and I'd 
like to use /dev/ttyu1 instead.

I'm able to get login prompt on ttyu1 by editing /etc/ttys, which is
good and perfectly works as main console, but the boot messages obviously go
to ttyu0:

% grep '^uart' /var/run/dmesg.boot
uart0: <TI UART (16550 compatible)> mem 0x44e09000-0x44e0afff irq 11 on simplebus0
uart0: console (115384,n,8,1)
uart1: <TI UART (16550 compatible)> mem 0x48024000-0x48025fff irq 13 on simplebus0

I tried setting flags by adding "hint.uart.*" to /boot/device.hints, but
it doesn't help. I recompiled the FDT (am335x-boneblack.dtb) with disabled uart0
hoping that the only enabled uart2 will be used as the default console.
Now the former /dev/ttyu1 becomes /dev/ttyu0, but the kernel still doesn't consider 
it the default console:

% grep '^uart' /var/run/dmesg.boot
uart0: <TI UART (16550 compatible)> mem 0x48024000-0x48025fff irq 13 on simplebus0

Thanks for ideas and directions!

Ϟϻ




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