migrating form fex, how to disable hdmi, wifi and other


Recommended Posts

Hi,

 

I am migrating from legacy 3.x kernel to bionic mainline 4.14 at OrangePi Zero 2 plus.

Previously there is a fex files to enable or disable some features such as onboard wifi, mali, hdmi and other. now I found no ways to disable it, overlays does not include this features. Is there any way to edit dtb files? or?

 

Thanks

Link to post
Share on other sites
Donate and support the project!

A way to disable hardware is by setting its status to disabled in the device tree, take a look at " dtc -I fs -O dts /sys/firmware/devicetree/base|less" to see the runtime devicetree. For instance for sound and video this would look like below, which you can convert to dtb with something like "dtc -I dts -O dtb youroverlay.dts > youroverlay.dtb" and add as a user-overlay (place dtb file in /boot/overlay-user) and add "user-overlays=youroverlay" line in /boot/armbianEnv.txt.

 

/dts-v1/;

/ {
    compatible = "allwinner,sun8i-h3","allwinner,sun50i-h5","friendlyarm,nanopi-neo2";

    fragment@0 {
        target-path = "/soc";

        __overlay__ {

            hdmi@1ee0000 {
                        status = "disabled";
            };
            mixer@1100000 {
                         status = "disabled";
            };
            sound {
                         status = "disabled";
             };
        };
    };

    fragment@1 {
        target-path = [2f 00];

        __overlay__ {
              sound {
                         status = "disabled";
              };
        };
    };
};

Link to post
Share on other sites
Guest
This topic is now closed to further replies.