为什么我会收到此 android 内核错误

Why am I getting this android kernel error

当我尝试构建时出现此错误:

DTC arch/arm64/boot/dts/qcom/apq8053-lite-dragon-v1.0.dtb
ERROR (phandle_references): Reference to non-existent node or label "typec_ssmux_config"
ERROR: Input tree has errors, aborting (use -f to force output)
make[2]: *** [scripts/Makefile.lib:319: arch/arm64/boot/dts/qcom/apq8053-lite-dragon-v1.0.dtb] Error 2
make[1]: *** [scripts/Makefile.build:653: arch/arm64/boot/dts/qcom] Error 2
make: *** [arch/arm64/Makefile:161: dtbs] Error 2

我修复了包含错误,但我不知道如何修复。 资料来源:https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/onc-p-oss

make ARCH=arm64 SUBARCH=arm64 CROSS_COMPILE=~/Redmi7/toolchain64/bin/aarch64-linux-android- onclite-perf_defconfig
make ARCH=arm64 SUBARCH=arm64 CROSS_COMPILE=~/Redmi7/toolchain64/bin/aarch64-linux-android-

好吧,让我们看看。如果您查看 msm8953-pinctrl.dtsi , you will notice that specific node that's being referenced within your apq8053-lite-dragon.dtsi 设备树段被注释掉:

        /*typec_ssmux_config: typec_ssmux_config {
        mux {
            pins = "gpio139";
            function = "gpio";
        };

        config {
            pins = "gpio139";
            drive-strength = <2>;
            bias-disable;
        };
    };*/

只要把它放回去就可以了。不过,出于某种原因,这可能会被注释掉 - 您可能需要对其进行更多检查。

我昨天试过取消注释这部分,但现在可以了。但是我得到更多的错误我很难过。

DTC     arch/arm64/boot/dts/qcom/apq8053-lat-concam-dev.dtb
Warning (reg_format): "reg" property in /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a300 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a100 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a200 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a300
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a300
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a100
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a100
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a200
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a200
DTC     arch/arm64/boot/dts/qcom/apq8053-lat-concam-proto.dtb
Warning (reg_format): "reg" property in /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a300 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a100 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
Warning (reg_format): "reg" property in /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a200 has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a300
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a300
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a100
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a100
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a200
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/qcom,spmi@200f000/qcom,pm8953@0/mpps/mpp@a200
DTC     arch/arm64/boot/dts/qcom/msm8953-pmi8940-cdp.dtb
DTC     arch/arm64/boot/dts/qcom/msm8953-pmi8940-mtp.dtb
ERROR (phandle_references): Reference to non-existent node or label "lcdb_ldo_vreg"

ERROR (phandle_references): Reference to non-existent node or label "lcdb_ncp_vreg"

ERROR: Input tree has errors, aborting (use -f to force output)
make[2]: *** [scripts/Makefile.lib:319: arch/arm64/boot/dts/qcom/msm8953-pmi8940-mtp.dtb] Error 2
make[1]: *** [scripts/Makefile.build:653: arch/arm64/boot/dts/qcom] Error 2
make: *** [arch/arm64/Makefile:161: dtbs] Error 2

编辑:将此行添加到配置文件后所有问题都解决了

CONFIG_BUILD_ARM64_DT_OVERLAY=y