本文转载自:https://blog.csdn.net/wangliang888888/article/details/78349224
一、参考文档: 1. [i.MX] 修改了dts之后,如何重新进行编译呢? http://bbs.21ic.com/icview-983946-1-1.html 二、DTS在哪里: 1. 查看kernel中dts目录的Makefile: cat kernel_imx/arch/arm/boot/dts/Makefile ... dtb-$(CONFIG_ARCH_MXC) += ... imx6dl-cubox-i.dtb imx6dl-hummingboard.dtb imx6dl-sabreauto.dtb imx6dl-sabreauto-flexcan1.dtb imx6dl-sabreauto-ecspi.dtb imx6dl-sabreauto-gpmi-weim.dtb imx6dl-sabresd.dtb imx6dl-sabresd-btwifi.dtb imx6dl-sabresd-enetirq.dtb imx6dl-sabresd-ldo.dtb imx6dl-sabresd-pf200.dtb imx6dl-sabresd-hdcp.dtb imx6dl-wandboard.dtb ... ... 2. 查看目录情况 zengjf@zengjf-ubuntu: kernel_imx/arch/arm/boot/dts$ ls imx6dl*dtb imx6dl-cubox-i.dtb imx6dl-hummingboard.dtb imx6dl-sabreauto.dtb imx6dl-sabreauto-flexcan1.dtb imx6dl-sabreauto-ecspi.dtb imx6dl-sabreauto-gpmi-weim.dtb imx6dl-sabresd.dtb imx6dl-sabresd-btwifi.dtb imx6dl-sabresd-enetirq.dtb imx6dl-sabresd-ldo.dtb imx6dl-sabresd-pf200.dtb imx6dl-sabresd-hdcp.dtb imx6dl-wandboard.dtb 三、编译方法: 1. 在make指令中加上dtbs,编译所有的dtb,如下: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs 2. 单独编译一份dtb: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- imx6dl-sabresd.dtb 四、注意事项: 1. 编译内核不一定需要编译dts; 2. 编译dts貌似就会编译内核; 3. dts和内核是两回事,内核会解析编译后的dtb文件;