From f217d11d3aa65e8633e68ee8ac602a4cc35bcdea Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Tue, 18 Jul 2023 11:12:31 -0500 Subject: [PATCH] K3: Add support for boards with SYSFW files Some K3 boards use a split initial boot stage requiring an extra file called "sysfw.itb". If defined in the board configuration deploy this file if available. --- config/sources/families/k3.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/sources/families/k3.conf b/config/sources/families/k3.conf index 55845a8a52..b527401a7a 100644 --- a/config/sources/families/k3.conf +++ b/config/sources/families/k3.conf @@ -35,7 +35,7 @@ esac ATF_PLAT="k3" ATF_TARGET_MAP="PLAT=$ATF_PLAT TARGET_BOARD=$ATF_BOARD DEBUG=1 bl31;;build/$ATF_PLAT/$ATF_BOARD/debug/bl31.bin:bl31.bin" -UBOOT_TARGET_MAP="BL31=bl31.bin TEE=bl31.bin BINMAN_INDIRS=${SRC}/cache/sources/ti-linux-firmware all;;tiboot3.bin tispl.bin u-boot.img" +UBOOT_TARGET_MAP="BL31=bl31.bin TEE=bl31.bin BINMAN_INDIRS=${SRC}/cache/sources/ti-linux-firmware all;;tiboot3.bin ${SYSFW_FILE:+sysfw.itb} tispl.bin u-boot.img" # To match what our current SDK produces BOOT_FS_LABEL="boot" @@ -64,6 +64,7 @@ function pre_config_uboot_target__build_first_stage() { compile_k3_bootgen cp ${SRC}/cache/sources/ti-u-boot/${TIBOOT3_FILE} tiboot3.bin + cp ${SRC}/cache/sources/ti-u-boot/${SYSFW_FILE} sysfw.itb || true } function pre_prepare_partitions() { @@ -86,6 +87,7 @@ function format_partitions() { function write_uboot_platform() { cp $1/tiboot3.bin ${MOUNT}/boot + cp $1/sysfw.itb ${MOUNT}/boot || true cp $1/tispl.bin ${MOUNT}/boot cp $1/u-boot.img ${MOUNT}/boot }