ZHCACZ9A August 2023 – September 2024 AM620-Q1 , AM623 , AM625 , AM625-Q1 , AM625SIP , AM62A3 , AM62A3-Q1 , AM62A7 , AM62A7-Q1 , AM62P , AM62P-Q1
本节可作为复制定制电路板的 TI U-Boot 基线的分步指南。虽然这些步骤对于开始开发并非绝对必要,但最好每个电路板都使用自己的电路板特定文件,以防止任何冲突或电路板特定的配置问题。创建新的电路板特定文件还会保留随 SDK 提供的可用作参考的 TI EVM 文件。
这些说明将定制电路板命名为 <boardname>,将组织命名为 <company>。组织名称用于命名目录,以帮助将各自的板级配置文件保存在一起。
+ config TARGET_AM625_A53_<BOARDNAME>
+ bool "<COMPANY> K3 based AM625 <BOARDNAME> running on A53"
+ select ARM64
+ select BINMAN
+ select OF_SYSTEM_SETUP
+ config TARGET_AM625_R5_<BOARDNAME>
+ bool "<COMPANY> K3 based AM625 <BOARDNAME> running on R5"
+ select CPU_V7R
+ select SYS_THUMB_BUILD
+ select K3_LOAD_SYSFW
+ select RAM
+ select SPL_RAM
+ select K3_DDRSS
+ select BINMAN
+ imply SYS_K3_SPL_ATF
将以下行添加到同一 Kconfig 文件的底部。
+ source "board/<company>/<boardname>/am62x/Kconfig
$ mkdir -p TI_U_BOOT/board/<company>/<boardname>/
$ mkdir -p TI_U_BOOT/board/<company>/common/
$ cp TI_U_BOOT/board/ti/am62x/* TI_U_BOOT/board/<company>/<boardname>/
$ cp TI_U_BOOT/board/ti/common/* TI_U_BOOT/board/<company>/common/
if TARGET_AM625_A53_<BOARDNAME>
config SYS_BOARD
default "<boardname>"
config SYS_VENDOR
default "<company>"
config SYS_CONFIG_NAME
default "<boardname>_evm"
source "board/<company>/common/Kconfig"
endif
if TARGET_AM625_R5_<BOARDNAME>
config SYS_BOARD
default "<boardname>"
config SYS_VENDOR
default "<company>"
config SYS_CONFIG_NAME
default "<boardname>_evm"
config SPL_LDSCRIPT
default "arch/arm/mach-omap2/u-boot-spl.lds"
source "board/<company>/common/Kconfig"
endif
$ mv TI_U_BOOT/board/<company>/<boardname>/evm.c TI_U_BOOT/board/<company>/<boardname>/<boardname>.c $ mv TI_U_BOOT/board/<company>/<boardname>/am62x.env TI_U_BOOT/board/<company>/<boardname>/<boardname>.env
- obj-y += evm.o
+ obj-y += <boardname>.o
$ cp TI_U_BOOT/include/configs/am62x_evm.h TI_U_BOOT/include/configs/am62x_<boardname>.h
在新创建的头文件中进行以下修改。
- #ifndef __CONFIG_AM625_EVM_H
- #define __CONFIG_AM625_EVM_H
+ #ifndef __CONFIG_AM625_<BOARDNAME>_H
+ #define __CONFIG_AM625_<BOARDNAME>_H
am62x_<boardname>_r5.config
CONFIG_TARGET_AM625_R5_<BOARDNAME>=y # CONFIG_TARGET_AM625_R5_EVM is not set
am62x_<boardname>_a53.configCONFIG_TARGET_AM625_A53_<BOARDNAME>=y # CONFIG_TARGET_AM625_A53_EVM is not set
您现在已经为定制电路板复制了 TI 的 U-Boot 基线。