radxa-pkg / radxa-overlays

Additional device tree overlays to support different hardwares on Radxa products
GNU General Public License v2.0
30 stars 25 forks source link

ROCKPI-S Linux rock-pi-s 6.1.68-1-stable #ba6f5fb46 Provision on DT Overlay for re-directing console uart to physical uarts #272

Closed sriram-rs closed 4 months ago

sriram-rs commented 4 months ago

I can see that there are dt overlays with kernel 4.4.143-65 for re-directing console uart logs to the user configured uart. This was easier to do and was doable using uEnv.txt by adding respective overlays.

Now that the uEnv.txt has retired and we have to use rsetup, is there a way to get this done using rsetup?

Thanks in advance!!

RadxaYuntian commented 4 months ago

With ROCK Pi S we are currently using upstream kernel. You can simply enable the desired UART overlay, and then edit kernel command line to change to a different console port.

You can follow this link to edit the kernel command line. You should change console=ttyS2,1500000n8 to the new serial port that you'd want to use.

sriram-rs commented 4 months ago

Thanks @RadxaYuntian . I will give it a try and then update at the earliest.