SDAA507A October   2026  – November 2026 AM62L

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1 Introduction
  5. 2 Installing the SDK
  6. 3 Understanding the AM62Lx Bootflow
  7. 4 TF-A Build System Integration
  8. 5 U-Boot Build System Integration
  9. 6 Minimal Devicetree and Reaching the U-Boot Prompt
    1. 6.1 Introduction to Devicetrees
    2. 6.2 Minimal Platform Support
    3. 6.3 Adding Custom Board Devicetrees
    4. 6.4 Initial Devicetree Modifications
    5. 6.5 Building U-Boot
    6. 6.6 Reaching the U-Boot Prompt
  10. 7 Expanding the Devicetree
    1. 7.1 Adding New Devicetree Nodes
    2. 7.2 Revising Devicetree Nodes
    3. 7.3 Devicetree Development Tips
  11. 8 Booting the Linux Kernel
    1. 8.1 Boot Method Overview
    2. 8.2 Reaching the Linux Command Prompt
  12. 9 Tools and Debugging
    1. 9.1 Debug Traces
    2. 9.2 OpenOCD
  13. 10Future Work
  14. 11Summary
  15. 12References
  16.   Revision History

Building U-Boot

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:

  • tiboot3.bin
  • tispl.bin
  • u-boot.img

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:

Table 6-2 Environment Variables
Env VariableDescriptions
CROSS_COMPILE_64Cross compiler path for Armv8 (Arm 64bit). The recommended cross compiler for this project is gcc-aarch64-linux-gnu
LINUX_FW_PATHPath to TI Linux firmware if repository is available, otherwise, pre-built binaries folder in PSDK
TFA_OUT_PATHPath to Trusted Firmware ARM output build artifacts,

(bl1.bin and bl31.bin)

OPTEE_PATHPath to OPTEE output build artifacts, otherwise, pre-built binaries folder in PSDK: (bl32.bin)
OUTPUT_DIRDirectory 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/out

Subsequent 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_PATH

Use the following binaries depending on the security level of the device on the custom board.

Table 6-3 Generated Binaries Based on Device Security Type
SecurityGenerated Binaries
HS-FS, HS-SE
  • tiboot3.bin
  • tispl.bin
  • u-boot.img
Note: The device security type of the SoC on a new custom board is typically High Security - Field Securable (HS-FS). If the exact security type of the SoC is unknown, consult the Device type guide to identify it. The guide is for AM62x, but the content can be applied for AM62Lx as well.

The three generated binaries can be found in the $OUTPUT_DIR folder.