0
geocut

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

Share this post


Link to post
Share on other sites

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";
              };
        };
    };
};

Share this post


Link to post
Share on other sites

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...
0