Skip to contentSkip to conversation

configs: am65x_evm_a53: Re order the overlay files

PATCH New Lokesh Vutla 1 participant 2 messages Mar 17, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: am65x_evm_a53: Re order the overlay files

In case of SPL_LOAD_FIT_APPLY_OVERLAY, overlay files are applied in the order as specified in overlay structure in board/ti/am65x/evm.c:
- k3-am654-gp.dtbo
- k3-am654-idk.dtbo
- k3-am654-pcie-usb2.dtbo
- k3-am654-pcie-usb3.dtbo
- k3-am654-evm-oldi-lcd1evm.dtbo

Since it is peripheral boot and overlays are applied on the fly, if the above order is not maintained, specific overlays cannot be applied as images would have already loaded and got discarded. So create u-boot.img with the above order.

---
Fixes: LCPD-18310

- In general I see this restriction in ovelays a problem, as this issue can occur whenever a new overlay is added. May be in future we should re think on overlay design.

 configs/am65x_evm_a53_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/am65x_evm_a53_defconfig +1 -1
index 01d66554f9..659161441f 100644
@@ -60,7 +60,7 @@ CONFIG_CMD_UBI=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
 CONFIG_DEFAULT_DEVICE_TREE="k3-am654-base-board"
-CONFIG_OF_OVERLAY_LIST="k3-am654-pcie-usb2 k3-am654-idk"
+CONFIG_OF_OVERLAY_LIST="k3-am654-idk k3-am654-pcie-usb2"
 CONFIG_SPL_MULTI_DTB_FIT=y
 CONFIG_SPL_MULTI_DTB_FIT_NO_COMPRESSION=y
 CONFIG_ENV_IS_IN_MMC=y
Signature · 1 line
2.23.0
#1 lore raw

PATCH 1/1 configs: am65x_evm_a53: Re order the overlay files

Quoted 8 lines · Lokesh Vutla

In case of SPL_LOAD_FIT_APPLY_OVERLAY, overlay files are applied in the order as specified in overlay structure in board/ti/am65x/evm.c:
- k3-am654-gp.dtbo
- k3-am654-idk.dtbo
- k3-am654-pcie-usb2.dtbo
- k3-am654-pcie-usb3.dtbo
- k3-am654-evm-oldi-lcd1evm.dtbo

Quoted 6 lines

Since it is peripheral boot and overlays are applied on the fly, if the above order is not maintained, specific overlays cannot be applied as images would have already loaded and got discarded. So create u-boot.img with the above order.

Sorry please ignore this patch.

Thanks and regards,
Lokesh