From 2b6d243be22885e6f54eb79724c9d54db1ad03b4 Mon Sep 17 00:00:00 2001 From: Anshul Dalal Date: Mon, 18 May 2026 13:52:52 +0530 Subject: env: ti: k3_dfu: load only the next stage binary In the TI's K3 bootflow of tiboot3.bin -> tispl.bin -> u-boot.img: (R5 SPL) (A53 SPL) We currently provide a common dfu_alt_info_ram for both R5 SPL and A53 SPL which is not intuitive in a regular bootflow where each binary should only request it's immediate next stage. This patch updates dfu_alt_info_ram such that the R5 SPL would only request for tispl.bin and A53 SPL would only request u-boot.img. Signed-off-by: Anshul Dalal --- include/env/ti/k3_dfu.env | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/env/ti/k3_dfu.env b/include/env/ti/k3_dfu.env index b42cf21d986..0f82a8afb42 100644 --- a/include/env/ti/k3_dfu.env +++ b/include/env/ti/k3_dfu.env @@ -25,6 +25,9 @@ dfu_alt_info_ospi= rootfs raw 0x800000 0x3800000 dfu_alt_info_ram= - tispl.bin ram 0x80080000 0x200000; +#if CONFIG_ARM64 u-boot.img ram 0x81000000 0x400000 +#else + tispl.bin ram 0x80080000 0x200000 +#endif -- cgit v1.3.1 From 1ea8b3e8e2d6c80469b5f082cc5f2b9287a7ddf5 Mon Sep 17 00:00:00 2001 From: Anshul Dalal Date: Mon, 18 May 2026 13:52:53 +0530 Subject: env: ti: k3_dfu: use Kconfig options for addresses The load addresses for DFU download binaries were hardcoded for K3 devices which required redefinition of such env for boards that deviated from the expected K3 memory map (such as AM6254atl EMV). This patch replaces the hardcoded addresses with their corresponding Kconfig options making the k3_dfu.env more general. Signed-off-by: Anshul Dalal --- board/ti/am62x/am6254atl.env | 7 ------- include/env/ti/k3_dfu.env | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/board/ti/am62x/am6254atl.env b/board/ti/am62x/am6254atl.env index dabc77245d4..a9187c2b1aa 100644 --- a/board/ti/am62x/am6254atl.env +++ b/board/ti/am62x/am6254atl.env @@ -27,13 +27,6 @@ splashimage=0x82180000 splashpos=m,m splashsource=sf -dfu_alt_info_ram= -#if CONFIG_ARM64 - u-boot.img ram 0x82f80000 0x400000 -#else - tispl.bin ram 0x82000000 0x200000 -#endif - #if CONFIG_BOOTMETH_ANDROID #include adtb_idx=0 diff --git a/include/env/ti/k3_dfu.env b/include/env/ti/k3_dfu.env index 0f82a8afb42..1ae9ae6ae15 100644 --- a/include/env/ti/k3_dfu.env +++ b/include/env/ti/k3_dfu.env @@ -26,8 +26,8 @@ dfu_alt_info_ospi= dfu_alt_info_ram= #if CONFIG_ARM64 - u-boot.img ram 0x81000000 0x400000 + u-boot.img ram CONFIG_SPL_LOAD_FIT_ADDRESS 0x400000 #else - tispl.bin ram 0x80080000 0x200000 + tispl.bin ram CONFIG_SPL_LOAD_FIT_ADDRESS 0x200000 #endif -- cgit v1.3.1