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

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines