Default serial console

Sergey Manucharian sm at ara-ler.com
Sat Jun 1 17:58:12 UTC 2019


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!

Ϟϻ



More information about the freebsd-arm mailing list