• 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宏进行加载
  • 相关阅读:
    8款超酷体验的jQuery/CSS3应用插件
    6款基于SVG的HTML5CSS3应用和动画
    精妙无比 8款HTML5动画实例及源码
    超赞值得一试的六款jQuery插件和CSS3应用
    不容错过的七个jQuery图片滑块插件
    7款值得你心动的HTML5动画和游戏
    8款HTML5动画特效推荐源码
    绝对震撼 7款HTML5动画应用及源码
    8款超酷而实用的CSS3按钮动画
    10款强大的jQuery/HTML5应用新鲜出炉
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/9243223.html
Copyright © 2020-2023  润新知