forked from OERV-BSP/u-boot
arm: dts: k3: binman: Fix DM firmware selection
Just like TF-A and OP-TEE, the documentation states a custom path for DM can be provided at build time by setting TI_DM. This should then set ti-dm-path which updates ti-dm node filenames in binman. Two issues prevent this from functioning for most K3 boards. One is when then DM firmware name is inside a blob-ext node instead of a ti-dm node. The second is when the filename in the ti-dm node is a pointer to a blob-ext node. In this case even though the filename is updated, the filename in the blob-ext is not, so build can fail if the default file in the blob-ext cannot be found, even if the updated ti-dm file does exist. Fix both of these for all K3 by removing any indirect ti-dm nodes and making sure all DM nodes are labeled with "ti-dm". Signed-off-by: Andrew Davis <afd@ti.com> Reviewed-by: Bryan Brattlof <bb@ti.com> Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
This commit is contained in:
@@ -71,13 +71,6 @@
|
||||
#define AM625_BEAGLEPLAY_DTB "dts/upstream/src/arm64/ti/k3-am625-beagleplay.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
blob-ext {
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
|
||||
tifsstub-gp {
|
||||
filename = "tifsstub.bin_gp";
|
||||
ti-secure-rom {
|
||||
@@ -153,8 +146,8 @@
|
||||
os = "DM";
|
||||
load = <0x89000000>;
|
||||
entry = <0x89000000>;
|
||||
blob-ext {
|
||||
filename = "ti-dm.bin";
|
||||
ti-dm {
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -158,13 +158,6 @@
|
||||
#define AM625_PHYBOARD_LYRA_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
blob-ext {
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
|
||||
tifsstub-hs {
|
||||
filename = "tifsstub.bin_hs";
|
||||
ti-secure-rom {
|
||||
@@ -270,8 +263,8 @@
|
||||
content = <&dm>;
|
||||
keyfile = "custMpk.pem";
|
||||
};
|
||||
dm: blob-ext {
|
||||
filename = "ti-dm.bin";
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -418,8 +411,8 @@
|
||||
fit {
|
||||
images {
|
||||
dm {
|
||||
blob-ext {
|
||||
filename = "ti-dm.bin";
|
||||
ti-dm {
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -156,14 +156,6 @@
|
||||
#define AM625_SK_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
blob-ext {
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
tifsstub-hs {
|
||||
filename = "tifsstub.bin_hs";
|
||||
ti-secure-rom {
|
||||
@@ -270,7 +262,8 @@
|
||||
keyfile = "custMpk.pem";
|
||||
};
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -397,7 +390,8 @@
|
||||
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -144,13 +144,6 @@
|
||||
#define VERDIN_AM62_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
blob-ext {
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
|
||||
tifsstub-hs {
|
||||
filename = "tifsstub.bin_hs";
|
||||
ti-secure-rom {
|
||||
@@ -257,7 +250,7 @@
|
||||
keyfile = "custMpk.pem";
|
||||
};
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -380,7 +373,7 @@
|
||||
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -164,14 +164,6 @@
|
||||
#define AM62A7_PHYBOARD_LYRA_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
blob-ext {
|
||||
filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
tifsstub-hs {
|
||||
filename = "tifsstub.bin_hs";
|
||||
ti-secure-rom {
|
||||
@@ -276,7 +268,8 @@
|
||||
keyfile = "custMpk.pem";
|
||||
};
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -462,7 +455,8 @@
|
||||
};
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -148,14 +148,6 @@
|
||||
#define AM62A7_SK_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
blob-ext {
|
||||
filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
tifsstub-hs {
|
||||
filename = "tifsstub.bin_hs";
|
||||
ti-secure-rom {
|
||||
@@ -260,7 +252,8 @@
|
||||
keyfile = "custMpk.pem";
|
||||
};
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -385,7 +378,8 @@
|
||||
};
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -127,14 +127,6 @@
|
||||
#define AM62PX_SK_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
|
||||
blob-ext {
|
||||
filename = "ti-dm/am62pxx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
tifsstub-hs {
|
||||
filename = "tifsstub.bin_hs";
|
||||
ti-secure-rom {
|
||||
@@ -210,7 +202,8 @@
|
||||
};
|
||||
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/am62pxx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -164,15 +164,6 @@
|
||||
#define BEAGLEY_AI_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
|
||||
blob-ext {
|
||||
filename = "ti-dm/j722s/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
ti-spl {
|
||||
insert-template = <&ti_spl_template>;
|
||||
|
||||
@@ -185,7 +176,8 @@
|
||||
};
|
||||
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/j722s/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -58,17 +58,18 @@
|
||||
#else // CONFIG_ARM64
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
|
||||
blob-ext {
|
||||
filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
tispl {
|
||||
insert-template = <&ti_spl>;
|
||||
|
||||
fit {
|
||||
images {
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
u-boot {
|
||||
@@ -77,6 +78,16 @@
|
||||
|
||||
tispl-unsigned {
|
||||
insert-template = <&ti_spl_unsigned>;
|
||||
|
||||
fit {
|
||||
images {
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
u-boot-unsigned {
|
||||
|
||||
@@ -237,13 +237,6 @@
|
||||
#define J7200_EVM_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
blob-ext {
|
||||
filename = "ti-dm/j7200/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
ti-spl {
|
||||
insert-template = <&ti_spl_template>;
|
||||
|
||||
@@ -345,7 +338,8 @@
|
||||
keyfile = "custMpk.pem";
|
||||
};
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/j7200/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -430,7 +424,8 @@
|
||||
images {
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/j7200/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -212,13 +212,6 @@
|
||||
#define J721E_BBAI64_DTB "dts/upstream/src/arm64/ti/k3-j721e-beagleboneai64.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
blob-ext {
|
||||
filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
|
||||
ti-spl_unsigned {
|
||||
filename = "tispl.bin_unsigned";
|
||||
pad-byte = <0xff>;
|
||||
@@ -263,8 +256,8 @@
|
||||
os = "DM";
|
||||
load = <0x89000000>;
|
||||
entry = <0x89000000>;
|
||||
blob-ext {
|
||||
filename = "ti-dm.bin";
|
||||
ti-dm {
|
||||
filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -333,13 +333,6 @@
|
||||
#define J721E_EVM_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
blob-ext {
|
||||
filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
ti-spl {
|
||||
insert-template = <&ti_spl_template>;
|
||||
|
||||
@@ -467,7 +460,8 @@
|
||||
keyfile = "custMpk.pem";
|
||||
};
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -551,7 +545,8 @@
|
||||
images {
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -145,13 +145,6 @@
|
||||
#define J721S2_EVM_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
blob-ext {
|
||||
filename = "ti-dm/j721s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
ti-spl {
|
||||
insert-template = <&ti_spl_template>;
|
||||
|
||||
@@ -286,7 +279,8 @@
|
||||
keyfile = "custMpk.pem";
|
||||
};
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/j721s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -371,7 +365,8 @@
|
||||
images {
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/j721s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -116,15 +116,6 @@
|
||||
#define J722S_EVM_DTB "u-boot.dtb"
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
|
||||
blob-ext {
|
||||
filename = "ti-dm/j722s/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
ti-spl {
|
||||
insert-template = <&ti_spl_template>;
|
||||
|
||||
@@ -137,7 +128,8 @@
|
||||
};
|
||||
|
||||
dm: ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
filename = "ti-dm/j722s/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -43,17 +43,18 @@
|
||||
#else // CONFIG_ARM64
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
|
||||
blob-ext {
|
||||
filename = "ti-dm/j742s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
tispl {
|
||||
insert-template = <&ti_spl>;
|
||||
|
||||
fit {
|
||||
images {
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm/j742s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
u-boot {
|
||||
@@ -62,6 +63,16 @@
|
||||
|
||||
tispl-unsigned {
|
||||
insert-template = <&ti_spl_unsigned>;
|
||||
|
||||
fit {
|
||||
images {
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm/j742s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
u-boot-unsigned {
|
||||
|
||||
@@ -165,8 +165,8 @@
|
||||
keyfile = "custMpk.pem";
|
||||
};
|
||||
|
||||
dm: blob-ext {
|
||||
filename = "ti-dm.bin";
|
||||
dm: ti-dm {
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -254,8 +254,8 @@
|
||||
fit {
|
||||
images {
|
||||
dm {
|
||||
blob-ext {
|
||||
filename = "ti-dm.bin";
|
||||
ti-dm {
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -52,17 +52,18 @@
|
||||
#else // CONFIG_ARM64
|
||||
|
||||
&binman {
|
||||
ti-dm {
|
||||
filename = "ti-dm.bin";
|
||||
|
||||
blob-ext {
|
||||
filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
optional;
|
||||
};
|
||||
};
|
||||
|
||||
tispl {
|
||||
insert-template = <&ti_spl>;
|
||||
|
||||
fit {
|
||||
images {
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
u-boot {
|
||||
@@ -71,6 +72,16 @@
|
||||
|
||||
tispl-unsigned {
|
||||
insert-template = <&ti_spl_unsigned>;
|
||||
|
||||
fit {
|
||||
images {
|
||||
dm {
|
||||
ti-dm {
|
||||
filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
u-boot-unsigned {
|
||||
|
||||
Reference in New Issue
Block a user