[PATCH v1 3/4] binman: k3: add jump-stub to tispl.bin

Anshul Dalal anshuld at ti.com
Wed Apr 16 09:30:56 CEST 2025


To preserve backwards compatibility with older ATF builds with
PRELOADED_BL33_BASE set to 0x80080000, we add a jump-stub component to
all tispl derrivatives which jumps execution to the address where u-boot
spl is actually loaded (SPL_LOAD_TEXT).

Signed-off-by: Anshul Dalal <anshuld at ti.com>
---
 arch/arm/dts/k3-binman.dtsi | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/arch/arm/dts/k3-binman.dtsi b/arch/arm/dts/k3-binman.dtsi
index 5163161b94d..5d971ecf886 100644
--- a/arch/arm/dts/k3-binman.dtsi
+++ b/arch/arm/dts/k3-binman.dtsi
@@ -5,6 +5,8 @@
 
 #include "k3-security.h"
 
+#define LEGACY_ATF_PRELOADED_BL33_BASE 0x80080000
+
 / {
 	binman: binman {
 		multiple-images;
@@ -325,6 +327,22 @@
 					};
 				};
 
+				jump-stub {
+					description = "Jump stub for backwards compatibility with older ATF builds";
+					type = "firmware";
+					arch = "arm64";
+					compression = "none";
+					load = <LEGACY_ATF_PRELOADED_BL33_BASE>;
+					entry = <LEGACY_ATF_PRELOADED_BL33_BASE>;
+					ti-secure {
+						content = <&jump_stub>;
+						keyfile = "custMpk.pem";
+					};
+					jump_stub: blob-ext {
+						filename = "jump_stub.bin";
+					};
+				};
+
 			};
 		};
 	};
@@ -387,6 +405,19 @@
 						filename = "spl/u-boot-spl-nodtb.bin";
 					};
 				};
+
+				jump-stub {
+					description = "Jump stub for backwards compatibility with older ATF builds";
+					type = "firmware";
+					arch = "arm64";
+					compression = "none";
+					load = <LEGACY_ATF_PRELOADED_BL33_BASE>;
+					entry = <LEGACY_ATF_PRELOADED_BL33_BASE>;
+					blob-ext {
+						filename = "jump_stub.bin";
+					};
+				};
+
 			};
 		};
 	};
-- 
2.49.0



More information about the U-Boot mailing list