Skip to content

Commit 62f8329

Browse files
committed
fix(build): update the build commands for AM62L TFA and Uboot
The target boards mentioned for building TFA on AM62L-badge is incorrect. Updating it from 'am62l3_badge' to 'am62l3-badge'. Build command for bl1 is incorrect as there is no make target for 'am62l_bl1' on ti-tfa-2.14.y. Updating it with correct build commands for both ti-master and ti-tfa.2.14.y. Also enhancing the build instuctions by including the correct PLAT and TFA_BOARD configuration for building on both ti-master and ti-tfa-2.14.y. Signed-off-by: Scaria Kochidanadu <s-kochidanadu@ti.com>
1 parent 0749484 commit 62f8329

2 files changed

Lines changed: 21 additions & 11 deletions

File tree

source/linux/Foundational_Components/U-Boot/BG-Build-K3.rst

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ Build
1919
2020
$ cd <path to tf-a dir>
2121
22-
$ make CROSS_COMPILE="$CROSS_COMPILE_64" ARCH=aarch64 PLAT=k3low TARGET_BOARD=am62lx am62l_bl1
22+
$ make CROSS_COMPILE="$CROSS_COMPILE_64" ARCH=aarch64 PLAT=k3low TARGET_BOARD=am62lx bl1 # on ti-tfa-2.14.y
23+
$ make CROSS_COMPILE="$CROSS_COMPILE_64" ARCH=aarch64 PLAT=k3 TARGET_BOARD=am62l am62l_bl1 # on ti-master
2324
2425
<or to build bl-1 and bl-31 binaries from TF-A repo>
2526
26-
$ make CROSS_COMPILE="$CROSS_COMPILE_64" ARCH=aarch64 PLAT=k3low TARGET_BOARD=am62lx
27+
$ make CROSS_COMPILE="$CROSS_COMPILE_64" ARCH=aarch64 PLAT=k3low TARGET_BOARD=am62lx # on ti-tfa-2.14.y
28+
$ make CROSS_COMPILE="$CROSS_COMPILE_64" ARCH=aarch64 PLAT=k3 TARGET_BOARD=am62l # on ti-master
2729
2830
.. _Build-U-Boot-label:
2931

@@ -441,12 +443,17 @@ All of these binaries are available in the SDK at :file:`<path to tisdk>/board-s
441443
442444
# Build for AM62LX EVM:
443445
$ export UBOOT_CONFIG=am62lx_evm_defconfig
444-
$ export TFA_BOARD=am62lx
446+
$ export TFA_BOARD=am62lx # on ti-tfa-2.14.y
447+
$ export TFA_BOARD=am62l # on ti-master
445448
446449
# Build for BeagleBadge:
447450
$ export UBOOT_CONFIG=am62lx_badge_defconfig
448-
$ export TFA_BOARD=am62l3_badge # on ti-tfa-2.14.y
449-
$ export TFA_BOARD=am62lx_badge # on ti-master
451+
$ export TFA_BOARD=am62l3-badge # on ti-tfa-2.14.y
452+
$ export TFA_BOARD=am62l-badge # on ti-master
453+
454+
# Platform
455+
$ export PLAT=k3low # on ti-tfa-2.14.y
456+
$ export PLAT=k3 # on ti-master
450457
451458
.. note::
452459

@@ -463,8 +470,8 @@ All of these binaries are available in the SDK at :file:`<path to tisdk>/board-s
463470
$ cd $UBOOT_DIR
464471
$ make CROSS_COMPILE="$CROSS_COMPILE_64" $UBOOT_CONFIG
465472
$ make CROSS_COMPILE="$CROSS_COMPILE_64" \
466-
BL1=$TFA_DIR/build/k3low/$TFA_BOARD/release/bl1.bin \
467-
BL31=$TFA_DIR/build/k3low/$TFA_BOARD/release/bl31.bin \
473+
BL1=$TFA_DIR/build/$PLAT/$TFA_BOARD/release/bl1.bin \
474+
BL31=$TFA_DIR/build/$PLAT/$TFA_BOARD/release/bl31.bin \
468475
BINMAN_INDIRS=$TI_LINUX_FW_DIR \
469476
TEE=$OPTEE_DIR/out/arm-plat-k3/core/tee-pager_v2.bin
470477

source/linux/Foundational_Components_ATF.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,20 @@ Where <hash> is the commit shown in :ref:`release-specific-build-information`.
117117

118118
.. code-block:: console
119119
120-
$ export TFA_BOARD=am62lx # for AM62L EVM
121-
$ export TFA_BOARD=am62l3_badge # for BeagleBadge on ti-tfa-2.14.y
122-
$ export TFA_BOARD=am62lx_badge # for BeagleBadge on ti-master
120+
$ export PLAT=k3low # on ti-tfa-2.14.y
121+
$ export PLAT=k3 # on ti-master
122+
$ export TFA_BOARD=am62lx # for AM62L EVM on ti-tfa-2.14.y
123+
$ export TFA_BOARD=am62l # for BeagleBadge on ti-master
124+
$ export TFA_BOARD=am62l3-badge # for BeagleBadge on ti-tfa-2.14.y
125+
$ export TFA_BOARD=am62l-badge # for BeagleBadge on ti-master
123126
$ export TFA_DIR=<path-to-arm-trusted-firmware>
124127
125128
*Without OP-TEE enabled:*
126129

127130
.. code-block:: console
128131
129132
$ cd $TFA_DIR
130-
$ make ARCH=aarch64 CROSS_COMPILE="$CROSS_COMPILE_64" PLAT=k3low TARGET_BOARD=$TFA_BOARD
133+
$ make ARCH=aarch64 CROSS_COMPILE="$CROSS_COMPILE_64" PLAT=$PLAT TARGET_BOARD=$TFA_BOARD
131134
132135
.. ifconfig:: CONFIG_part_variant in ('J721S2')
133136

0 commit comments

Comments
 (0)