Skip to contentSkip to conversation

board: ti: am65x: Overwrite get_overlay_mmc

PATCH In review Judith Mendez 2 participants 2 messages Aug 25, 2025 – Sep 11, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: ti: am65x: Overwrite get_overlay_mmc

Unlike other K3 SoC's, am65 SoC has the capability to detect daughter cards and automatically generate a list of white-space separated overlays in name_overlays environment variable.

When applied during boot with get_overlay_mmc, the path to overlays with default distribution is incorrect where path is currently: boot/dtb and the overlays exist in boot/dtb/ti.

Fix the path in get_overlay_mmc so that overlays are automatically applied correctly during boot time.

---
 board/ti/am65x/am65x.env | 9 +++++++++
 1 file changed, 9 insertions(+)
board/ti/am65x/am65x.env +9 -0
index 631997e4c97..b6cdfc9bd96 100644
@@ -17,6 +17,15 @@ bootpart=1:2
 bootdir=/boot
 rd_spec=-
 
+get_overlay_mmc=
+	fdt address ${fdtaddr};
+	fdt resize 0x100000;
+	for overlay in $name_overlays;
+	do;
+	load mmc ${bootpart} ${dtboaddr} ${bootdir}/dtb/ti/${overlay} &&
+	fdt apply ${dtboaddr};
+	done;
+
 init_ubi=
     run args_all args_ubi;
     sf probe;
Signature · 1 line
2.49.0
#1 lore raw
Quoted 9 lines · Judith Mendez

Unlike other K3 SoC's, am65 SoC has the capability to detect daughter cards and automatically generate a list of white-space separated overlays in name_overlays environment variable.

When applied during boot with get_overlay_mmc, the path to overlays with default distribution is incorrect where path is currently: boot/dtb and the overlays exist in boot/dtb/ti.

[...]

Applied to u-boot/next, thanks!

[1/1] board: ti: am65x: Overwrite get_overlay_mmc

      commit: 8633643769b5d5b30567b89a1c0fb00b8f2ac7b2
Signature · 1 line
Tom