From d18531b529491a70397a73690b17304a93a127ab Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Wed, 4 Mar 2026 22:35:27 +0100 Subject: [PATCH] boot/uboot: add support for embedded TEE in raw binary format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some platforms such Texas Instrument’s K3 familly of SoCs requires TEE in raw binary format to support their boot flow [1]. Add a new option to select tee-raw.bin instead of tee.bin. [1] https://docs.u-boot.org/en/latest/board/ti/k3.html#building-tispl-bin Signed-off-by: Romain Naour Signed-off-by: Julien Olivain --- boot/uboot/Config.in | 12 ++++++++++++ boot/uboot/uboot.mk | 2 ++ 2 files changed, 14 insertions(+) diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in index 17b7f95f50..3331b81e8c 100644 --- a/boot/uboot/Config.in +++ b/boot/uboot/Config.in @@ -314,6 +314,18 @@ config BR2_TARGET_UBOOT_NEEDS_OPTEE_TEE_BIN Binary format must be used for OP-TEE versions since 3.8.0. +config BR2_TARGET_UBOOT_NEEDS_OPTEE_TEE_RAW_BIN + bool "tee-raw.bin" + help + Raw binary suitable to copy into physical memory where OP-TEE + be can executed from. + + OP-TEE since 3.21 suggests to use tee-raw.bin instead of (the + still identical) tee-pager_v2.bin. + + Texas Instrument’s K3 family of SoCs embed tee-raw.bin in + U-Boot (using Binman tool) to support their boot flow. + endchoice config BR2_TARGET_UBOOT_NEEDS_OPENSBI diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index 6ddbb9e438..5b3f46ac74 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -204,6 +204,8 @@ ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPTEE_TEE_ELF),y) UBOOT_MAKE_OPTS += TEE=$(BINARIES_DIR)/tee.elf else ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPTEE_TEE_BIN),y) UBOOT_MAKE_OPTS += TEE=$(BINARIES_DIR)/tee.bin +else ifeq ($(BR2_TARGET_UBOOT_NEEDS_OPTEE_TEE_RAW_BIN),y) +UBOOT_MAKE_OPTS += TEE=$(BINARIES_DIR)/tee-raw.bin endif endif