AnsweredAssumed Answered

移植uboot出现:include/config.h:8:22: fatal error: configs/.h: No such file or directory

Question asked by long bin on Dec 18, 2017
Latest reply on Dec 28, 2017 by long bin

移植uboot出现:include/config.h:8:22: fatal error: configs/.h: No such file or directory

 

我没有完全按《i.MX_BSP_Porting_Guide.pdf》做,因为我不想以mx开头,而是以我公司的名称开头,方便查找。

我的步骤如下:

1.拷贝板子文件:cp -R board/freescale/mx6ul_14x14_evk/* board/yada/yada_imx6ul_14x14_hmi/

文件夹如下:

imximage.cfg  imximage_lpddr2.cfg  Kconfig  MAINTAINERS  Makefile  plugin.S  README  yada_imx6ul_14x14_hmi.c

 

Kconfig文件如下:

if TARGET_YADA_IMX6UL_14X14_HMI

config SYS_BOARD
default "yada_imx6ul_14x14_hmi"

config SYS_VENDOR
default "yada"

config SYS_CONFIG_NAME
default "yada_imx6ul_14x14_hmi"

endif

 

Makefile文件如下:

# (C) Copyright 2015 Freescale Semiconductor, Inc.
#
# SPDX-License-Identifier:    GPL-2.0+
#

 

obj-y  := yada_imx6ul_14x14_hmi.o

 

extra-$(CONFIG_USE_PLUGIN) :=  plugin.bin
$(obj)/plugin.bin: $(obj)/plugin.o
    $(OBJCOPY) -O binary --gap-fill 0xff $< $@

 

MAINTAINERS文件如下:

YADA IMX6UL BOARD
M: longbin <longbin@yada.com>
S: Maintained
F: board/yada/yada_imx6ul_14x14_hmi/
F: include/configs/yada_imx6ul_14x14_hmi.h
F: configs/yada_mx6ul_14x14_hmi_defconfig

 

2.拷贝头文件:include/configs/yada_imx6ul_14x14_hmi.h,改文件没有改动。

3.创建配置文件:yada_imx6ul_14x14_hmi_defconfig,内容如下:

CONFIG_ARM=y
CONFIG_ARCH_MX6=y
CONFIG_TARGET_YADA_IMX6UL_14x14_HMI=y
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/yada/yada_imx6ul_14x14_hmi/imximage.cfg,MX6UL,MX6UL_EVK_EMMC_REWORK"
CONFIG_CMD_GPIO=y
CONFIG_CMD_DHCP=y
CONFIG_CMD_PING=y

4.改动arch/arm/cpu/armv7/mx6/Kconfig:

config TARGET_YADA_IMX6UL_14X14_HMI
    bool "Support yada_imx6ul_14x14_hmi"
    select MX6UL
    select DM
    select DM_THERMAL
    select SUPPORT_SPL

 

source "board/yada/yada_imx6ul_14x14_hmi/Kconfig"

 

我查考了README.kconfig和scripts/Makefile.autoconf文件,还是不明白怎么做,非常感谢你们的帮忙。谢谢。

Outcomes