Skip to contentSkip to conversation

board: ti: am57xx: Remove "ti/omap/" from name_fit_config

PATCH Superseded Anurag Dutta 2 participants 2 messages Sep 16, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: ti: am57xx: Remove "ti/omap/" from name_fit_config

Commit 649f4a7d3ca7 ("board: ti: am57xx: Set fdtfile from C code instead of findfdt script") prepends "ti/omap/" to the actual name of the fdtfile whereas fit image boot needs exact dtb name. So, remove "ti/omap" from name_fit_config by substituting it with an empty string.

Fixes 649f4a7d3ca7 ("board: ti: am57xx: Set fdtfile from C code instead of findfdt script")

---
logs:
am57_hs: https://gist.github.com/anuragdutta731/29af0f4099961be45d458425755ba1b6
am57: https://gist.github.com/anuragdutta731/af9d326d10382d7b4d7a28382693a81a

 board/ti/am57xx/am57xx.env | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/ti/am57xx/am57xx.env +1 -1
index 7d029a3e859..ddf4b318bc7 100644
@@ -10,7 +10,7 @@ get_name_kern=
 	else
 		setenv bootfile zImage;
 	fi
-get_fit_config=setenv name_fit_config ${fdtfile}
+get_fit_config=setexpr name_fit_config gsub "ti/omap/" "" ${fdtfile};
 console=ttyS2,115200n8
 fdtfile=undefined
 finduuid=part uuid mmc 0:2 uuid
Signature · 1 line
2.34.1
#1 lore raw
Quoted 20 lines · Anurag Dutta

Commit 649f4a7d3ca7 ("board: ti: am57xx: Set fdtfile from C code instead of findfdt script") prepends "ti/omap/" to the actual name of the fdtfile whereas fit image boot needs exact dtb name. So, remove "ti/omap" from name_fit_config by substituting it with an empty string.

Fixes 649f4a7d3ca7 ("board: ti: am57xx: Set fdtfile from C code instead of findfdt script")

---
logs:
am57_hs: https://gist.github.com/anuragdutta731/29af0f4099961be45d458425755ba1b6
am57: https://gist.github.com/anuragdutta731/af9d326d10382d7b4d7a28382693a81a

  board/ti/am57xx/am57xx.env | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
board/ti/am57xx/am57xx.env +0 -0
index 7d029a3e859..ddf4b318bc7 100644

board/ti/am57xx/am57xx.env get_name_kern= · line 13

Quoted 5 lines
board/ti/am57xx/am57xx.env +1 -1
@@ -10,7 +10,7 @@ get_name_kern=
  	else
  		setenv bootfile zImage;
  	fi
-get_fit_config=setenv name_fit_config ${fdtfile}
+get_fit_config=setexpr name_fit_config gsub "ti/omap/" "" ${fdtfile};

; at last can be avoided

rest

LGTM

Quoted 3 lines
board/ti/am57xx/am57xx.env +0 -0
  console=ttyS2,115200n8
  fdtfile=undefined
  finduuid=part uuid mmc 0:2 uuid