Today I get this powerful computer and I must say that works so far so good except one thing. I use RockPi as companion computer which communicates over UART with a microcontroller. I installed these packages:
$ sudo apt-get update
$ sudo apt-get install rockchip-fstab
$ sudo apt-get install rockpi4-dtbo
then I edited /boot/hw_intfc.conf:
# Hardware Interface Config
# For more details, check https://wiki.radxa.com/Rockpi4/hardware/devtree_overlays.
# Set "on" to enable the optional hardware interfaces while set "off" to disable.
intfc:pwm0=off
intfc:pwm1=off
intfc:uart2=on
intfc:uart4=off
intfc:spi1=off
intfc:spi2=off
intfc:i2c2=off
intfc:i2c6=off
intfc:i2c7=off
# Devicetree Overlay Enable, uncomment to enable .dtbo under /boot/overlays/.
# EEPROM on I2C2
intfc:dtoverlay=at24c02
# Serial console on UART2
#intfc:dtoverlay=console-on-ttyS2
# Serial console on UART4
#intfc:dtoverlay=console-on-ttyS4
# Dummy spi device on SPI1 for test. Need set: intfc:spi1=on
#intfc:dtoverlay=devspi1
# Dummy spi device on SPI2 for test. Need set: intfc:spi2=on
#intfc:dtoverlay=devspi2
# PCIE running on GEN2 mode
#intfc:dtoverlay=pcie-gen2
# ALLNET 4duino B10/B11 two-coloe-led module on 40-pin Header Pin#35 and Pin#36
#intfc:dtoverlay=two-color-led
# waveshare 3.5inch lcd (B v2) on SPI1. Need set: intfc:uart4=off and intfc:spi1=on
#intfc:dtoverlay=spi1-waveshare35b-v2
# waveshare 3.5inch lcd (C) on SPI1. Need set: intfc:uart4=off and intfc:spi1=on
#intfc:dtoverlay=spi1-waveshare35c
problem is that python throws this error. I think that debug on uart2 is still active.
serial.serialutil.SerialException: [Errno 16] could not open port /dev/ttyS2: [Errno 16] Device or resource busy: ‘/dev/ttyS2’