如何找到kernel所用的dtsi

想要知道kernel/arch/arm/dts/qcom/目录下那么多的dtsi文件到底用了哪个,有几个途径


首先看qcom目录下的makefile


dtb-$(CONFIG_ARCH_MSM8916) += msm8916-sim.dtb \


                            msm8976-mtp.dtb \
                   msm8976-mtp-asusevb.dtb \


                            msm8956-mtp.dtb \
                   msm8956-mtp-asusevb.dtb \


然后在/out/target/product/Z00T/obj/KERNEL_OBJ的.config里去找这个CONFIG_ARCH_MSM8916


看到是CONFIG_ARCH_MSM8916=y


所以这样还不能确定,只能在开机的kernel log里看




[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.84-g13ef38a-dirty (matthew@matthew) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #3 SMP PREEMPT Sun Dec 6 11:17:54 CST 2015
[    0.000000] CPU: AArch64 Processor [410fd034] revision 4
[    0.000000] Machine: Qualcomm Technologies, Inc. MSM8976 MTP
[    0.000000] No earlyprintk arguments passed.


在qcom下grep Qualcomm Technologies, Inc. MSM8976 MTP 发现在msm8976-mtp-asusevb.dts里,所以知道用了那个

你可能感兴趣的:(android)