Thank you for update package regarding device tree overlays, the link is below.
I reviewed this according to the instruction on https://wiki.radxa.com/Zero/Debian.
Then I tried the kernel upgrade after update and upgrade, the instruction is,
Make sure that kernel is newer than 5.10.69-2-amlogic. If not, then try
$ sudo apt install -y linux-headers-5.10.69-3-amlogic-gacf75c74f9
$ sudo apt install -y linux-image-5.10.69-3-amlogic-gacf75c74f9
The result was,
E: Unable to locate package linux-headers-5.10.69-3-amlogic-gacf75c74f9
E: Couldnât find any package by glob âlinux-headers-5.10.69-3-amlogic-gacf75c74f9â
E: Couldnât find any package by regex âlinux-headers-5.10.69-3-amlogic-gacf75c74f9â
Consequently, I could not upgrade the kernel.
However, I tried to check 2ch PWM outputs following further instruction for uEnv.txt.
The pwmchip4 and 6 were added to /sys/class/pwm/pwmchip0 and pwmchip2.
I could see pwm0, pwm1 signals from pin 40, 18 separately after setting up period, duty_cycle and enable. Thanks.
But, two pwm signals were not generated at the same time.
It wonder I should wait for a kind of library like mraa or wiringpi.
Regarding PWM, the situation is quite same as before.
The PWM signals are not generated at the same time.
When pwm0 is set at first, pin40 outputs the signal, but the next pwm1 setting does not work.
When pwm1 is set at first, pin18 outputs the signal, but the next pwm0 setting does not work.
Thatâs very strange to me.
Iâd made an mistake that I used pwm0 and pwm1 at the previous test, this time I used only pwm0. It worked.
Regarding GPIO, I could not control pin35(GPIOAO_8) following the description of https://wiki.radxa.com/Zero/hardware/gpio
.
However, itâs ok because the pin27 and pin37 work well as gpio output.
So, I think I can replace my Raspi zero w with the Radxa zero and get more power.
I hope I can use a gpio library for Python like mraa as soon as possible.
I2C
To enable I2C_EE_M1 on GPIOH_6 and GPIOH_7 (/dev/i2c-1), add item âmeson-g12a-i2c-ee-m1-gpioh-6-gpioh-7â to the âoverlays=â line.
overlays=meson-g12a-i2c-ee-m1-gpioh-6-gpioh-7
To enable I2C_EE_M1 on GPIOX_10 and GPIOX_11 (/dev/i2c-1), add item âmeson-g12a-i2c-ee-m1-gpiox-10-gpiox-11â to the âoverlays=â line.
overlays=meson-g12a-i2c-ee-m1-gpiox-10-gpiox-11
To enable I2C_EE_M3 (/dev/i2c-3), add item âmeson-g12a-i2c-ee-m3-gpioa-14-gpioa-15â to the âoverlays=â line.
overlays=meson-g12a-i2c-ee-m3-gpioa-14-gpioa-15
To enable I2C_AO_M0 (/dev/i2c-4), add item âmeson-g12a-i2c-ao-m0-gpioao-2-gpioao-3â to the âoverlays=â line.
there isnât files with names meson-g12a-i2c-ee-m1-gpioh-6-gpioh-7,meson-g12a-i2c-ee-m1-gpiox-10-gpiox-11,meson-g12a-i2c-ee-m3-gpioa-14-gpioa-15,meson-g12a-i2c-ao-m0-gpioao-2-gpioao-3
/boot/dtbs/5.10.69-2-amlogic-g981b0a3cef/amlogic/overlay# ls
README.meson-overlays meson-g12a-i2c-ao-m0.dtbo meson-g12a-i2c-ee-m3.dtbo meson-g12a-pwmao-a-on-gpioao-11.dtbo
meson-fixup.scr meson-g12a-i2c-ee-m1.dtbo meson-g12a-pwm-c-on-gpiox-8.dtbo meson-g12a-uart-ee-c.dtbo
Applying kernel provided DT overlay meson-wm8960-soundcard.dtbo
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
343 bytes read in 3 ms (111.3 KiB/s)
Applying kernel provided DT overlay meson-i2cB.dtbo
failed on fdt_overlay_apply(): FDT_ERR_BADMAGIC
base fdt does did not have a /symbols node
make sure youâve compiled with -@
462 bytes read in 4 ms (112.3 KiB/s)
Applying kernel provided DT overlay meson-g12a-i2c-ee-m3-gpioa-14-gpioa-15.dtbo
failed on fdt_overlay_apply(): FDT_ERR_BADMAGIC
base fdt does did not have a /symbols node
make sure youâve compiled with -@
Error applying DT overlays, restoring original DT
71830 bytes read in 6 ms (11.4 MiB/s)
I test one more thing
I set in armbianEnv.txt " overlays= i2cA i2cB "
and I did rebootingâŚ
Applying kernel provided DT overlay meson-i2cA.dtbo
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
343 bytes read in 3 ms (111.3 KiB/s)
Applying kernel provided DT overlay meson-i2cB.dtbo
failed on fdt_overlay_apply(): FDT_ERR_BADMAGIC
base fdt does did not have a /symbols node
I think that i2cA i2cB are default offered dtbo⌠but it is not work.
What can I do ? for using I2S I2C and GPIOs ? Please help me