Uart1 & 2 as console

Hi my last post of the year with a question

I want to have uart1 or uart2 as console

I changed the u-boot + kernel to use uart1/serial1 by changing the dts

added uart1 pins and updated the serial1 adding these (mt7998a.dtsi) and on the bpi-r4 dtsi changed the stdout to serial1 and added status okay for serial1

created the bl2 + fip, compiled kernel and buildimg but nothing shows on the console after these changes

i checked both uart1 + uart2 have current so they are live but no traffic . What am I missing ? if for some reason serial0 is blown isn’t there any way to have another console?

Afaik the early bootstage is only printed on debug-uart. I did some tests on R3 adding second uart for a logger-circuit with only partial success…one issue i faced was the speed cannot be set via cmdline,only at userspace.

https://wiki.fw-web.de/doku.php?id=en:bpi-r3:gpio#uart

Maybe it helps a bit. Also wishing you a happy new year.

2 Likes

thank you and happy new year as well.

I noticed i missed changing the uart base address to serial1 (0x11000100)for u-boot config