Description
What happened?
Preface:
A couple of problems which were inherited from old Kernels and are persisting since "Bullseye" as far as I can recall.
Issue # 1 - PWM:
Overlay meson-g12a-radxa-zero-pwmao-a-on-gpioao-11
enabled but /sys/class/pwm/pwmchip2/pwm0
doesn't created. This is pin 40 (gpiochip1, line 11).
In comparison overlay meson-g12a-radxa-zero-pwm-c-on-gpiox-8
do create /sys/class/pwm/pwmchip0/pwm0
correctly and PWM works well.
radxa-zero:build:# ls /sys/class/pwm
pwmchip0 pwmchip2
radxa-zero:build:# ls /sys/class/pwm/pwmchip0/
device export npwm power pwm0 subsystem uevent unexport
radxa-zero:build:# ./pwm
PWM value is 0.010000
PWM value is 0.020000
PWM value is 0.030000
PWM value is 0.040000
PWM value is 0.049995
PWM value is 0.059995
PWM value is 0.069995
PWM value is 0.079995
PWM value is 0.089995
...
radxa-zero:build:# ls /sys/class/pwm/pwmchip2
device export npwm power subsystem uevent unexport
Issue # 2 - I2C:
- meson-g12a-radxa-zero-i2c-ao-m0-gpioao-2-gpioao-3
- meson-g12a-radxa-zero-i2c-ee-m1-gpioh-6-gpioh-7
- meson-g12a-radxa-zero-i2c-ee-m1-gpiox-10-gpiox-11
- meson-g12a-radxa-zero-i2c-ee-m3-gpioa-14-gpioa-15
No one of the above overlays does a thing. By default, there are bus 3 and bus 5 available despite the state of overlays. This can be easily confirmed by using (overlays disabled):
radxa-zero:~:# ls /dev | grep i2c
i2c-3
i2c-5
radxa-zero:i2c-dev:# /sys/class/i2c-dev/i2c-
i2c-3@ i2c-5@
radxa-zero:~:# i2cdetect -r -y 5
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
radxa-zero:~:# i2cdetect -r -y 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- UU -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Although overlays remain disabled there are 2 buses active:
- Bus 3 - (Pin # 3 - I2C_EE_M3_SDA and Pin # 5 - I2C_EE_M3_SCL) = meson-g12a-radxa-zero-i2c-ee-m3-gpioa-14-gpioa-15
- Bus 5 - is not accessible by any means (
i2c5: read_byte: Access error: Input/output error
)
Issue # 3 - SPI:
- meson-g12a-radxa-zero-spi-spidev - enabled but:
radxa-zero:c:# ls /dev | grep spi
radxa-zero:c:#
radxa-zero:c:# /sys/class/spi_
spi_master/ spi_slave/
spi_master/ spi_slave/ - both empty
spi: Failed opening SPI Device. bus:/dev/spidev0.0. Error 2 No such file or directory
Issue # 4 - UART:
All uart overlays disabled:
radxa-zero:~:# ls /dev | grep ttyAML
ttyAML0
radxa-zero:~:#
- meson-g12a-radxa-zero-uart-ao-a-on-gpioao-0-gpioao-1 - has no effect
- meson-g12a-radxa-zero-uart-ao-b-on-gpioao-2-gpioao-3. - has no effect
- meson-g12a-radxa-zero-uart-ao-b-on-gpioao-8-gpioao-9 - has no effect
- meson-g12a-radxa-zero-uart-ee-c - has no effect
How to test with 2 ssh sessions:
mraa-uart dev 0 baud 1500000 recv 1000
mraa-uart dev 0 baud 1500000 send test
Issue # 5:
I think this is more armbian-config
issue, however it is related. Let me know if you want me to create a bug report
in config repository.
/boot/armbianEnv.txt: line 8: meson-g12a-radxa-zero-spi-spidev: command not found
How to reproduce:
- Run
armbian-config
-> System -> SY017 - Manage device tree overlays - Go
Back
, then this message arise.
The overlay name in this error is changing depends on what is the last overlay in line
radxa-zero:c:# cat /boot/armbianEnv.txt
verbosity=1
console=both
overlay_prefix=meson
fdtfile=amlogic/meson-g12a-radxa-zero.dtb
rootdev=UUID=8ccc1a16-3c43-4012-a249-a3f84e8a6078
rootfstype=ext4
fdt_overlays=
overlays=meson-g12a-radxa-zero-gpio-10-led meson-g12a-radxa-zero-spi-spidev
param_spidev_spi_bus=0
param_spidev_max_freq=10000000
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
How to reproduce?
Enabling corresponding overlays.
Branch
main (main development branch)
On which host OS are you running the build script and observing this problem?
Debian 12 Bookworm
Are you building on Windows WSL2?
- Yes, my Ubuntu/Debian/OtherOS is running on WSL2
Relevant log URL
No response
Code of Conduct
- I agree to follow this project's Code of Conduct