SDAA507A October 2026 – November 2026 AM62L
This section explains how to compile the bootloader binaries using the custom board configuration and the AM62Lx Processor SDK.
For AM62Lx boards, three images generated by the build process are required to boot to U-Boot prompt:
The AM62Lx bootflow is changed considerably from other Sitara™ K3 SoC's bootflows, for more information refer back to Understanding the AM62Lx Bootflow.
Because the AM62Lx bootflow is carried out only on the 64-bit core, only a 64-bit cross-compiler is required for building U-Boot. The TI AM62Lx Processor SDK includes the relevant toolchain, but its respective path must be configured in the host environment before building.
Set up the toolchain path as well as the following environment variables:
| Env Variable | Descriptions |
|---|---|
| CROSS_COMPILE_64 | Cross compiler path for Armv8 (Arm 64bit). The recommended cross compiler for this project is gcc-aarch64-linux-gnu |
| LINUX_FW_PATH | Path to TI Linux firmware if repository is available, otherwise, pre-built binaries folder in PSDK |
| TFA_OUT_PATH | Path to Trusted Firmware ARM output build artifacts, (bl1.bin and bl31.bin) |
| OPTEE_PATH | Path to OPTEE output build artifacts, otherwise, pre-built binaries folder in PSDK: (bl32.bin) |
| OUTPUT_DIR | Directory path for all U-Boot build output |
To build TI U-Boot, it is recommended to use the aarch64-linux-gnu cross-compile toolchain from Ubuntu package manager or the "-non-linux-" versions from ARM developer portal. After downloading said toolchains, the $CROSS_COMPILE_64 environment variables must be properly setup accordingly. For more information, refer to the AM62Lx Processor SDK: toolchain documentation.
The example below demonstrates how to setup the host environment to build TI U-Boot efficiently utilizing pre-built binaries provided in the PSDK. If the user is compiling using the source repositories, ensure these paths point to the repository output directories instead.
$ export LINUX_FW_PATH=$TI_SDK/board-support/prebuilt-images/am62lxx-evm
$ export OPTEE_PATH=$TI_SDK/board-support/prebuilt-images/am62lxx-evm
$ export TFA_OUT_PATH=$TI_TFA/build/k3low/<boardname>/release
$ mkdir -p $TI_SDK/board-support/out/ && export OUTPUT_DIR=$TI_SDK/board-support/outSubsequent instructions refer to the build output directory path as $OUTPUT_DIR.
All Make commands must be executed from the root directory of the SDK TF-A or U-Boot repository.
Building bl1.bin and bl31.bin
$ cd $TI_TFA
$ make clean
$ make ARCH=aarch64 CROSS_COMPILE="$CROSS_COMPILE_64" PLAT=k3low SPD=opteed TARGET_BOARD=<boardname>Note that <boardname> is to be substituted for custom board name created in Section 4.
Building tiboot3.bin, tispl.bin, and u-boot.img
$ cd $TI_U_BOOT
$ make clean O=$OUTPUT_DIR
$ make ARCH=arm CROSS_COMPILE="$CROSS_COMPILE_64" <boardname>_defconfig O=$OUTPUT_DIR
$ make ARCH=arm CROSS_COMPILE="$CROSS_COMPILE_64" O=$OUTPUT_DIR BL1=$TFA_OUT_PATH/bl1.bin BL31=$TFA_OUT_PATH/bl31.bin TEE=$OPTEE_PATH/bl32.bin BINMAN_INDIRS=$LINUX_FW_PATHUse the following binaries depending on the security level of the device on the custom board.
| Security | Generated Binaries |
|---|---|
| HS-FS, HS-SE |
|
The three generated binaries can be found in the $OUTPUT_DIR folder.