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宏进行加载
  • 相关阅读:
    C# 实现 Snowflake算法生成唯一性Id
    kafka可视化客户端工具(Kafka Tool)的基本使用(转)
    docker 安装kafka
    Model类代码生成器
    使用docker 部署rabbitmq 镜像
    Vue 增删改查 demo
    git 提交代码到库
    Android ble蓝牙问题
    mac 配置 ssh 到git (Could not resolve hostname github.com, Failed to connect to github.com port 443 Operation timed out)
    okhttp
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/9243223.html
Copyright © 2011-2022 走看看