Jump to content

Where is "default_trigger" set at boot for red LED Allwinner H5


Go to solution Solved by Hans Kurscheidt,

Recommended Posts

Posted

Hi, I searched a lot, but no cure. I want to switch off the redLED heartbeat on an Allwinner H5 OrangePi zero+ under Debian buster. I can temporary echo it off, but it restarts again after boot. I want it off permanently. Rather than switching it off every time in rc.local, I want to eliminate the part, where its switched ON, but I can't find it.

Posted

Hi Hans

 

decompile .dtb to .dts

dtc -I dtb -O dts /boot/dtb/allwinner/sun50i-h5-orangepi-zero-plus.dtb -o /boot/dtb/allwinner/sun50i-h5-orangepi-zero-plus.dts

 

edit (nano) the .dts (replace heartbeat with none) in the led-1 part:

        leds {
                compatible = "gpio-leds";

                led-0 {
                        label = "orangepi:green:pwr";
                        gpios = <0x37 0x00 0x0a 0x00>;
                        linux,default-trigger = "default-on";
                };

                led-1 {
                        label = "orangepi:red:status";
                        gpios = <0x0e 0x00 0x11 0x00>;
                        linux,default-trigger = "heartbeat";
                };
        };

 

recompile .dts to .dtb (this will gibe many non-problematic warning onscreen):

dtc -I dts -O dtb /boot/dtb/allwinner/sun50i-h5-orangepi-zero-plus.dts -o /boot/dtb/allwinner/sun50i-h5-orangepi-zero-plus.dtb

 

then reboot ;)

PS: maybe you would "apt-mark hold " your dtb-package (find it with

dpkg -l|grep dtb
)

 

sun50i-h5-orangepi-zero-plus.dtb sun50i-h5-orangepi-zero-plus.dts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines