zoukankan      html  css  js  c++  java
  • 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宏进行加载
  • 相关阅读:
    HBase写请求分析
    jquery+easyui主界面布局一例
    调试LD_PRELOAD注入的代码
    获取Oracle隐含參数信息
    Android组件系列----ContentProvider内容提供者【4】
    053第401题
    高速排序优化通过中位数优化
    较难理解的概念
    HDU 2546 饭卡(dp)
    HDU 2546 饭卡(dp)
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/9243223.html
Copyright © 2011-2022 走看看