• i.MX6 u-boot 怎么确定板级头文件


    /**********************************************************************
     *                     i.MX6 u-boot 怎么确定板级头文件
     * 说明:
     *     拿到u-boot之后,能够快速确定到相应的班级头文件是挺重要的事情。
     *
     *                                2018-6-29 深圳 宝安西乡 曾剑锋
     *********************************************************************/
    
    一、获取Linux默认班级配置文件:
        1.1 Linux:
            zengjf@desk-ubuntu:~/uboot-fsl_uboot_L4.1.15_from_TP/configs$ make mx6dlsabresd_defconfig V=1
            make -f ./scripts/Makefile.build obj=scripts/basic
            rm -f .tmp_quiet_recordmcount
            make -f ./scripts/Makefile.build obj=scripts/kconfig mx6dlsabresd_defconfig
            scripts/kconfig/conf  --defconfig=arch/../configs/mx6dlsabresd_defconfig Kconfig
            #
            # configuration written to .config
            #
        1.2 Android:
            zengjf@desk-ubuntu:~/uboot-fsl_uboot_L4.1.15_from_TP/configs$ make mx6dlsabresdandroid_defconfig V=1
            make -f ./scripts/Makefile.build obj=scripts/basic
            rm -f .tmp_quiet_recordmcount
            make -f ./scripts/Makefile.build obj=scripts/kconfig mx6dlsabresdandroid_defconfig
            scripts/kconfig/conf  --defconfig=arch/../configs/mx6dlsabresdandroid_defconfig Kconfig
            #
            # configuration written to .config
            #
    
    二、获取班级头文件目标:
        2.1 Linux:
            zengjf@desk-ubuntu:~/uboot-fsl_uboot_L4.1.15_from_TP/configs$ cat arch/../configs/mx6dlsabresd_defconfig
            CONFIG_ARM=y
            CONFIG_ARCH_MX6=y
            CONFIG_TARGET_MX6SABRESD=y
            CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6dlsabresd.cfg,MX6DL,SYS_USE_SPINOR"
            CONFIG_CMD_GPIO=y
        2.2 Android:
            zengjf@desk-ubuntu:~/uboot-fsl_uboot_L4.1.15_from_TP/configs$ cat arch/../configs/mx6dlsabresdandroid_defconfig
            CONFIG_ARM=y
            CONFIG_ARCH_MX6=y
            CONFIG_TARGET_MX6SABRESD=y
            CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6dlsabresd.cfg,MX6DL,SYS_USE_SPINOR,ANDROID_SUPPORT"
            CONFIG_CMD_GPIO=y
        
    三、板级头文件:
        1. 根据前面的CONFIG_TARGET_MX6SABRESD --> mx6sabresd
        2. include/configs/mx6sabresd.h
            1. #include "mx6sabre_common.h"
            2. #include "mx6sabreandroid_common.h"      # 依据CONFIG_ANDROID_SUPPORT宏进行加载
  • 相关阅读:
    normalize.css介绍和使用,normalize与CSS Reset的区别
    解决在Windows10没有修改hosts文件权限
    定时器
    常见代码题
    BFC与margin重叠
    清除浮动的方法以及优缺点
    面向对象的理解
    左边固定右边自适应
    正则
    《STL源码剖析》——第一、二、三章
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/9243223.html
Copyright © 2020-2023  润新知