I currently want to do an embedded project that requires multiple uarts. My system version is Armbian 23.05.1 Jammy with Linux 5.10.160-rockchip-rk3588. How can I configure to use multiple uarts? It seems that libmraa is not available here. use, and there is only /ttyS6 in /dev.
How to configure gpio to use multiple uart on 5b
sudo armbian-config
Select System|Hardware.
Enable the UARTs you need. Save. Reboot.
See https://wiki.radxa.com/Rock5/hardware/5b/gpio for pinlayout.
Regarding libmraa. It works fine on Rock 5B, however you must build it yourself.
Express my sincere thanks . I’m sorry that I have faced a problem. I tried this command
sudo armbian-config
but there is no uart or I2C option in the hardware.
Is my system too new or do I need to manually add these devices to armbian-config?
OK, I have found the way to enable other uarts.
I visited the repo of radxa, then I found the overlays files, like uart7 , uart3, etc., link:rockchip overlays(include other additional device), I’m very happy that these rk3588’s overlays support rock5b, then I download these overlays in my 5b.
then, I used armbian command(referred link: https://docs.armbian.com/User-Guide_Allwinner_overlays/) to add overlays to my boot on the user layer, like this:
sudo armbian-add-overlay rk3588-uart7-m1-full.dts
After the board rebooted, use cmd:
ls /dev/ttyS*
the result showed I enabled other uarts successfully, like this:
then I write a simple python file(based pyserial) to test uart’s write and read functions, the result showed everything worked well.