i did it
the problem was that the gpio number was wrong, i solved doing the following:
find the kernel folder, mine was: /boot/dtbs/5.10.69-13-amlogic-g104342c59952/amlogic
than:
cd /boot/dtbs/5.10.69-13-amlogic-g104342c59952/amlogic
make a backup:
mv -f meson-g12a-radxa-zero.dtb meson-g12a-radxa-zero.dtb.orig;
decopile the kernel:
dtc -I dtb -O dts meson-g12a-radxa-zero.dtb.orig -o meson-g12a-radxa-zero.dts > /dev/null 2>&1;
edit the file:
sudo nano meson-g12a-radxa-zero.dts
search the following:
leds {
compatible = "gpio-leds";
led-green {
label = "radxa-zero:green";
gpios = <0x50 0x08 0x00>;
linux,default-trigger = "heartbeat";
default-state = "on";
};
};
change the gpios line to:
gpios = <0x50 0x0a 0x00>;
compile the kernel file:
dtc -I dts -O dtb /boot/dtbs/5.10.69-13-amlogic-g104342c59952/amlogic/meson-g12a-radxa-zero.dts -o /boot/dtbs/5.10.69-13-amlogic-g104342c59952/amlogic/meson-g12a-radxa-zero.dtb > /dev/null 2>&1;
change the permissions:
chmod +x /boot/dtbs/5.10.69-13-amlogic-g104342c59952/amlogic/meson-g12a-radxa-zero.dtb
reboot:
sudo reboot now
if every thing work as expected, remove the backup and the .dts file:
cd /boot/dtbs/5.10.69-13-amlogic-g104342c59952/amlogic rm meson-g12a-radxa-zero.dtb.orig rm meson-g12a-radxa-zero.dts