Hans Kurscheidt Posted January 20, 2022 Share Posted January 20, 2022 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. 0 Quote Link to comment Share on other sites More sharing options...
guidol Posted January 20, 2022 Share Posted January 20, 2022 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 0 Quote Link to comment Share on other sites More sharing options...
Solution Hans Kurscheidt Posted January 20, 2022 Author Solution Share Posted January 20, 2022 Thank-you, that did the trick! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.