-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Radxa Zero device tree overlays #7544
Comments
Jira ticket: AR-2550 |
Excellent post |
Alright, I've made some adjustments to Issue # 1 described above. Going back to PWM:
/boot/armbianEnv.txtradxa-zero:c:# cat /boot/armbianEnv.txt
verbosity=1
console=both
overlay_prefix=meson
fdtfile=amlogic/meson-g12a-radxa-zero.dtb
rootdev=UUID=f916b991-6ffa-4d5f-ac25-a1d9286c6419
rootfstype=ext4
overlays=meson-g12a-radxa-zero-gpio-10-led meson-g12a-radxa-zero-pwmao-a-on-gpioao-11 meson-g12a-radxa-zero-pwm-c-on-gpiox-8 meson-g12a-radxa-zero-uart-ao-a-on-gpioao-0-gpioao-1
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u radxa-zero:c:# ./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.049998
PWM value is 0.059998
PWM value is 0.069998
...
radxa-zero:~:# tail -f /var/log/syslog
2024-12-12T16:30:31.870732-06:00 radxa-zero libmraa[2797]: gpio: support for chardev interface is activated
2024-12-12T16:30:31.871115-06:00 radxa-zero libmraa[2797]: libmraa initialised for platform 'Radxa Zero' of type 40
2024-12-12T16:30:31.871395-06:00 radxa-zero libmraa[2797]: pwm_init: pwmchip0/pwm0 already exported, continuing
...
radxa-zero:~:# cat /sys/class/pwm/pwmchip0/pwm0/enable
1
radxa-zero:~:# cat /sys/class/pwm/pwmchip0/pwm0/period
200000
device is enabled and seems to be running but there is no effect on physical pin. I need help here. |
My guess is that they aren't actually being applied at boot. The overlay_prefix is One of my units sits on my desk for testing purposes and the following overlays being used.
|
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.Issue # 2 - I2C:
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):
Although overlays remain disabled there are 2 buses active:
i2c5: read_byte: Access error: Input/output error
)Issue # 3 - SPI:
spi_master/ spi_slave/ - both empty
Issue # 4 - UART:
All uart overlays disabled:
How to test with 2 ssh sessions:
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 abug report
in config repository./boot/armbianEnv.txt: line 8: meson-g12a-radxa-zero-spi-spidev: command not found
How to reproduce:
armbian-config
-> System -> SY017 - Manage device tree overlaysBack
, 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?
Relevant log URL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: