zoukankan      html  css  js  c++  java
  • I.MX6 dts 在哪里、怎么编译【转】

    本文转载自: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文件;
  • 相关阅读:
    Vue 数组响应
    Vue 事件监听
    Vue 分支循环
    Vue 计算属性与方法
    Vue 属性与样式
    Vue mustache语法&常用指令
    vue 基本介绍
    linux(centos7) 安装nginx
    python 创建虚拟环境(一个独立的环境)
    Python标准库学习--->1、内置函数(1-10个)
  • 原文地址:https://www.cnblogs.com/zzb-Dream-90Time/p/10847357.html
Copyright © 2011-2022 走看看