TI中文支持网
TI专业的中文技术问题搜集分享网站

am3354 Uboot 移植

我之前参考了这个文档进行配置

software-dl.ti.com/…/U-Boot.html

但在以下步骤时出现问题,文档为:

At this point the initial baseline is complete and we should have a custom board that will run on the platform the board port was based on (TI EVM). Now to complete this step, do the following:

Build our custom board port using the usual flow of first building the newly created defconfig file, and then performing the actual build of SPL and U-Boot. Fix any build errors you may encounter and re-build until the build performs cleanly, without any build warnings. Ensure that the toolchain path has been set properly.

make ARCH=arm CROSS_COMPILE='arm-linux-gnueabihf-' mrproper

make ARCH=arm CROSS_COMPILE='arm-linux-gnueabihf-' <device>_<myboard>_defconfig

make ARCH=arm CROSS_COMPILE='arm-linux-gnueabihf-'

但我使用make之后,出现报错:

/ti-processor-sdk-linux-am335x-evm-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3$ makescripts/kconfig/conf –syncconfig Kconfig

CHK     include/config.h

CFG     u-boot.cfgIn

file included from ./include/common.h:17:0:include/config.h:5:22: fatal error: configs/.h: 没有那个文件或目录

compilation terminated.scripts/Makefile.autoconf:77: recipe for target 'u-boot.cfg' failedmake[1]: *** [u-boot.cfg] Error 1make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'。 停止。

 

接着我查看了configs.h文件,他是自动生成的,无法修改,文件内容如下

/* Automatically generated – do not edit */

#define CONFIG_BOARDDIR board/

#include <config_defaults.h>

#include <config_uncmd_spl.h>

#include <configs/.h>

#include <asm/config.h>

#include <linux/kconfig.h>

#include <config_fallbacks.h>

 

 

请问这个如何处理,谢谢。

Nancy Wang:

参考以下帖子看一下,是否有帮助。
e2e.ti.com/…/622047

user6238334:

回复 Nancy Wang:

你好,我重新按照步骤进行了一遍后出现了新的问题:
In file included from board/ti/am335x_sjq/board.c:39:
board/ti/am335x_sjq/board.h: In function ‘board_is_bone’:
board/ti/am335x_sjq/board.h:28:9: warning: implicit declaration of function ‘board_ti_is’; did you mean ‘board_init’? [-Wimplicit-function-declaration]return board_ti_is("A335BONE");^~~~~~~~~~~board_init
board/ti/am335x_sjq/board.h: In function ‘board_is_bbg1’:
board/ti/am335x_sjq/board.h:43:40: warning: implicit declaration of function ‘board_ti_get_rev’; did you mean ‘board_init_r’? [-Wimplicit-function-declaration]return board_is_bone_lt() && !strncmp(board_ti_get_rev(), "BBG1", 4);^~~~~~~~~~~~~~~~board_init_r

在教程里board.c 文件中的board_is_()函数是建议进行删除的,我没有删除,并想进行添加属于自制版的board_is()函数,但明显出现了问题,请问board_is_()函数是在哪里(board.h?board—direction.c?)进行更改的,又是如何进行修改,谢谢。

赞(0)
未经允许不得转载:TI中文支持网 » am3354 Uboot 移植
分享到: 更多 (0)