Refactor binman nodes for boot binaries for TI AM625 into templates
v2 cover Refactor binman nodes for boot binaries for TI AM625 into templates
Hi all,
This patch series seeks to help in reuse by moving currently duplicated entries for tiboot3.bin and tispl.bin into a generic SoC wide DTSI (k3-am625-binman.dtsi).
This dtsi in-turn gets included by all AM625 based boards which can insert the templates from k3-am625-binman.dtsi.
The newly added templates are as follows:
tiboot3_am625_hs
tiboot3_am625_hs_fs
tiboot3_am625_gp
ti_falcon_am625
ti_spl_unsigned_am625
ti_spl_am625
The series has been boot tested on beagleplay and AM62x EVM but the following affected boards have only been build tested:
- phycore_am62x
- verdin-am62
To verify no regressions, I compared the final 'u-boot.dtb.out' for both the R5 and A53 build using dtx_diff script from linux source.
---
Changes in v2:
- Reword commit message and pick R/bys
- Reorder properties inside tiboot3 template for gp to match hs and fs
- Remove symlink from tiboot3 template for hs
- Link to v1: https://patch.msgid.link/[email protected]
---
Anshul Dalal (2):
arm: dts: k3-am625: add template for tiboot3.bin
arm: dts: k3-am625: add template for tispl.bin
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 94 +---- arch/arm/dts/k3-am625-binman.dtsi | 362 ++++++++++++++++++ arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 357 +----------------- arch/arm/dts/k3-am625-r5-beagleplay.dts | 33 +- arch/arm/dts/k3-am625-sk-binman.dtsi | 430 +++------------------- arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi | 301 +-------------- 6 files changed, 418 insertions(+), 1159 deletions(-)
---
base-commit: 447f6dfb9aa2191553993441f92f9c50f6486ffe
change-id: 20260717-k3_binman_refactor-081615fabbea
Best regards,
Signature · 1 line
Anshul Dalal <[email protected]>
PATCH v2 1/2 arm: dts: k3-am625: add template for tiboot3.bin
Currently we are duplicating binman nodes responsible for building tiboot3.bin binaries across boards that use TI's AM625 SoC.
This patch adds a SoC level k3-am625-binman.dtsi with templates for the commonly used tiboot3 variants (i.e. hs, hs-fs and gp) which can be inserted by the corresponding board's dtsi to promote reuse.
Note that for some boards the hardcoded load address for SPL firmware has been changed to use CONFIG_SPL_TEXT_BASE but it should cause no functional change.
--- arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 2 +- arch/arm/dts/k3-am625-binman.dtsi | 122 ++++++++++++++++++++++ arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 116 +------------------- arch/arm/dts/k3-am625-r5-beagleplay.dts | 33 +----- arch/arm/dts/k3-am625-sk-binman.dtsi | 117 +-------------------- arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi | 116 +------------------- 6 files changed, 136 insertions(+), 370 deletions(-)
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +1 -1
@@ -6,7 +6,7 @@ * Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation */ -#include "k3-binman.dtsi" +#include "k3-am625-binman.dtsi" / { /* Keep the LEDs on by default to indicate life */
arch/arm/dts/k3-am625-binman.dtsi new file +122 -0
122 lines not on this page · raw message
arch/arm/dts/k3-am625-phycore-som-binman.dtsi +4 -112
135 lines not on this page · raw message
arch/arm/dts/k3-am625-r5-beagleplay.dts +1 -32
@@ -33,38 +33,7 @@ tiboot3-am62x-gp-evm.bin { filename = "tiboot3-am62x-gp-evm.bin"; symlink = "tiboot3.bin"; - ti-secure-rom { - content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, - <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; - combined; - dm-data; - content-sbl = <&u_boot_spl_unsigned>; - load = <0x43c00000>; - content-sysfw = <&ti_fs_gp>; - load-sysfw = <0x40000>; - content-sysfw-data = <&combined_tifs_cfg_gp>; - load-sysfw-data = <0x67000>; - content-dm-data = <&combined_dm_cfg_gp>; - load-dm-data = <0x43c3a800>; - sw-rev = <1>; - keyfile = "ti-degenerate-key.pem"; - }; - u_boot_spl_unsigned: u-boot-spl { - no-expanded; - }; - ti_fs_gp: ti-fs-gp.bin { - filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin"; - type = "blob-ext"; - }; - combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { - filename = "combined-tifs-cfg.bin"; - type = "blob-ext"; - }; - combined_dm_cfg_gp: combined-dm-cfg-gp.bin { - filename = "combined-dm-cfg.bin"; - type = "blob-ext"; - }; - + insert-template = <&tiboot3_am625_gp_template>; }; };
arch/arm/dts/k3-am625-sk-binman.dtsi +4 -113
136 lines not on this page · raw message
arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi +4 -112
135 lines not on this page · raw message
Signature · 1 line
2.55.0
PATCH v2 2/2 arm: dts: k3-am625: add template for tispl.bin
In reply to Anshul DalalThis patch addresses the duplication of the binman nodes responsible for generating tispl.bin and tispl.bin_unsigned for TI's AM625 SoC based boards.
The common nodes are factored out into a template in the SoC level k3-am625-binman.dtsi that each board in-turn includes.
No functional change is intended from the patch asides from the addition of tifsstub-hs and tifsstub-fs nodes in beagleplay's tispl.bin which should have no consequence asides from growing the binary size by few kilo bytes.
--- arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 92 +------ arch/arm/dts/k3-am625-binman.dtsi | 240 +++++++++++++++++ arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 241 +---------------- arch/arm/dts/k3-am625-sk-binman.dtsi | 313 +++------------------- arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi | 185 +------------ 5 files changed, 282 insertions(+), 789 deletions(-)
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +1 -91
@@ -63,99 +63,11 @@ #define AM625_BEAGLEPLAY_DTB "dts/upstream/src/arm64/ti/k3-am625-beagleplay.dtb" &binman { - tifsstub-gp { - filename = "tifsstub.bin_gp"; - ti-secure-rom { - content = <&tifsstub_gp>; - core = "secure"; - load = <0x60000>; - sw-rev = <CONFIG_K3_X509_SWRV>; - keyfile = "ti-degenerate-key.pem"; - tifsstub; - }; - tifsstub_gp: tifsstub-gp.bin { - filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin"; - type = "blob-ext"; - optional; - }; - }; - ti-spl_unsigned { - filename = "tispl.bin_unsigned"; + insert-template = <&ti_spl_unsigned_am625_template>; symlink = "tispl.bin"; - pad-byte = <0xff>; - fit { - description = "Configuration to load ATF and SPL"; - #address-cells = <1>; - images { - - atf { - description = "ARM Trusted Firmware"; - type = "firmware"; - arch = "arm64"; - compression = "none"; - os = "arm-trusted-firmware"; - load = <CONFIG_K3_ATF_LOAD_ADDR>; - entry = <CONFIG_K3_ATF_LOAD_ADDR>; - atf-bl31 { - filename = "bl31.bin"; - }; - }; - - tee { - description = "OP-TEE"; - type = "tee"; - arch = "arm64"; - compression = "none"; - os = "tee"; - load = <CONFIG_K3_OPTEE_LOAD_ADDR>; - entry = <CONFIG_K3_OPTEE_LOAD_ADDR>; - tee-os { - filename = "tee-raw.bin"; - }; - }; - - tifsstub-gp { - description = "tifsstub"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "tifsstub-gp"; - load = <0x9dc00000>; - entry = <0x9dc00000>; - blob-ext { - filename = "tifsstub.bin_gp"; - }; - }; - - dm { - description = "DM binary"; - type = "firmware"; - arch = "arm32"; - compression = "none"; - os = "DM"; - load = <0x89000000>; - entry = <0x89000000>; - ti-dm { - filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; - }; - }; - - spl { - description = "SPL (64-bit)"; - type = "standalone"; - os = "U-Boot"; - arch = "arm64"; - compression = "none"; - load = <CONFIG_SPL_TEXT_BASE>; - entry = <CONFIG_SPL_TEXT_BASE>; - blob { - filename = "spl/u-boot-spl-nodtb.bin"; - }; - }; - fdt-0 { description = "k3-am625-beagleplay"; type = "flat_dt";
@@ -166,10 +78,8 @@ }; }; }; - configurations { default = "conf-0"; - conf-0 { description = "k3-am625-beagleplay"; firmware = "atf";
arch/arm/dts/k3-am625-binman.dtsi +240 -0
243 lines not on this page · raw message
arch/arm/dts/k3-am625-phycore-som-binman.dtsi +2 -239
259 lines not on this page · raw message
arch/arm/dts/k3-am625-sk-binman.dtsi +37 -276
354 lines not on this page · raw message
arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi +2 -183
203 lines not on this page · raw message
Signature · 1 line
2.55.0
Quoted 17 lines · Anshul Dalal
Hi all,
This patch series seeks to help in reuse by moving currently duplicated entries for tiboot3.bin and tispl.bin into a generic SoC wide DTSI (
k3-am625-binman.dtsi).This dtsi in-turn gets included by all AM625 based boards which can insert the templates from
k3-am625-binman.dtsi.The newly added templates are as follows:
tiboot3_am625_hs
tiboot3_am625_hs_fs
tiboot3_am625_gp
ti_falcon_am625
ti_spl_unsigned_am625
ti_spl_am625
Quoted 3 lines
The series has been boot tested on beagleplay and AM62x EVM but the following affected boards have only been build tested:
-phycore_am62x
For this series,
Quoted 35 lines
- verdin-am62
To verify no regressions, I compared the final 'u-boot.dtb.out' for both the R5 and A53 build using
dtx_diffscript from linux source.Signed-off-by Anshul Dalal <[email protected]>---
Changes in v2:
- Reword commit message and pick R/bys
- Reorder properties inside tiboot3 template for gp to match hs and fs
- Remove symlink from tiboot3 template for hs
- Link to v1: https://patch.msgid.link/[email protected]---
Anshul Dalal (2):
arm: dts: k3-am625: add template for tiboot3.bin
arm: dts: k3-am625: add template for tispl.binarch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 94 +---- arch/arm/dts/k3-am625-binman.dtsi | 362 ++++++++++++++++++ arch/arm/dts/k3-am625-phycore-som-binman.dtsi | 357 +----------------- arch/arm/dts/k3-am625-r5-beagleplay.dts | 33 +- arch/arm/dts/k3-am625-sk-binman.dtsi | 430 +++------------------- arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi | 301 +-------------- 6 files changed, 418 insertions(+), 1159 deletions(-)---
base-commit:447f6dfb9aa2191553993441f92f9c50f6486ffe
change-id: 20260717-k3_binman_refactor-081615fabbeaBest regards,
Signature · 1 line
Anshul Dalal <[email protected]>
Quoted 8 lines · Anshul Dalal
This patch series seeks to help in reuse by moving currently duplicated entries for tiboot3.bin and tispl.bin into a generic SoC wide DTSI (
k3-am625-binman.dtsi).This dtsi in-turn gets included by all AM625 based boards which can insert the templates from
k3-am625-binman.dtsi.[...]
Applied to u-boot/next, thanks!
[1/2] arm: dts: k3-am625: add template for tiboot3.bin
commit: be1cf93cdb602e85ca198954b494145dce7f0104
[2/2] arm: dts: k3-am625: add template for tispl.bin
commit: d200bb9b318c2d660163b545300b795b43f450b5Signature · 1 line
Tom