geocut Posted September 11, 2018 Share Posted September 11, 2018 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 comment Share on other sites More sharing options...
Dennboy Posted October 15, 2018 Share Posted October 15, 2018 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 comment Share on other sites More sharing options...
Recommended Posts