radxa-build / radxa-zero3

Radxa ZERO 3
https://docs.radxa.com/en/rock3
31 stars 4 forks source link

UART2_M0 Configuration Causes Radxa Zero 3 to Fail Boot #19

Closed nerbivol closed 2 months ago

nerbivol commented 2 months ago

I need to configure UART2_M0 as a normal serial port. I followed the instructions provided in the Radxa documentation. In rsetup, I set the Enable UART2-M0 option to *. When Radxa is already running, everything works fine. However, after a reboot, the Radxa device fails to boot.

It seems like I need to modify the Linux boot parameters. My current /etc/kernel/cmdline looks like this:

console=ttyFIQ0,1500000n8 quiet splash loglevel=4 rw earlycon consoleblank=0 console=tty1 coherent_pool=2M irqchip.gicv3_pseudo_nmi=0 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1

Question:

RadxaYuntian commented 2 months ago

Does the LED still blink? If so your system is booted. UART2_M0 is used as debug console (console=ttyFIQ0,1500000n8) by default, so if you enabled it as a normal UART, then the console will be closed as the port is now a ttyS*.

nerbivol commented 2 months ago

The LED doesn't blink at all; it just stays on. The port works as ttyS2, but Radxa doesn't boot when a device is connected to UART2_M0. I can start Radxa and then connect the device to UART2_M0. My question is, do I need to change anything in /etc/kernel/cmdline?

RadxaYuntian commented 2 months ago

This is the reason we do not recommend using UART2_M0: the default U-Boot console is connected to this port, and it will interrupt the boot process when there is input over the serial.

You will need to do a system update and then boot loader update from rsetup. Then edit /etc/default/u-boot to uncomment prompt & timeout to be 0. Run sudo u-boot-update to rebuild boot profile, and you should now be able to boot.

RadxaYuntian commented 2 months ago

Your UART device might malfunction with the boot log outputting on this port though.

nerbivol commented 2 months ago

After running sudo apt upgrade on my Radxa device, I can no longer connect to Wi-Fi. The device doesn't detect any available Wi-Fi networks.

RadxaYuntian commented 2 months ago

It is not supported, which is why I told you to use rsetup.

Edit: I can see I was not quite clear on this. Use rsetup.

nerbivol commented 2 months ago

Oh, you're right! Thank you. I'll update through rsetup. I was struggling with this before!