diff mbox series

[meta-arago,tisdk-setup-scripts,master] setup-uboot-env-am65x: Fix/update overlay ENV variable in get_overlay_net

Message ID 20230320164404.1033686-1-dannenberg@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [meta-arago,tisdk-setup-scripts,master] setup-uboot-env-am65x: Fix/update overlay ENV variable in get_overlay_net | expand

Commit Message

Andreas Dannenberg March 20, 2023, 4:44 p.m. UTC
The U-Boot ENV variable containing a list of DTB overlays to be applied
has since changed to 'name_overlays'. Update the AM65x specific ENV
setup script to account for that.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
---

Sai,
this fixes an issue reported on the E2E [1] actually quite a while ago.
We should try to get this into the upcoming AM65x SDK v8.x build.
Thanks.

[1] https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1074355/tmdx654idkevm-network-boot-do-not-apply-overlays



 setup-uboot-env-am65x.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/setup-uboot-env-am65x.sh b/setup-uboot-env-am65x.sh
index b6e043b..049a254 100644
--- a/setup-uboot-env-am65x.sh
+++ b/setup-uboot-env-am65x.sh
@@ -155,7 +155,7 @@  do_expect "\"$prompt\"" "send \"setenv init_net 'run args_all args_net; setenv a
 do_expect "\"$prompt\"" "send \"setenv args_net 'setenv bootargs console=\${console} \${optargs} rootfstype=nfs root=/dev/nfs rw nfsroot=\${serverip}:\${nfs_root},\${nfs_options} ip=dhcp'\"" $cwd/setupBoard.minicom
 do_expect "\"$prompt\"" "send \"setenv get_kern_net 'tftp \${loadaddr} \${name_kern}'\"" $cwd/setupBoard.minicom
 do_expect "\"$prompt\"" "send \"setenv get_fdt_net 'tftp \${fdtaddr} \${name_fdt}'\"" $cwd/setupBoard.minicom
-do_expect "\"$prompt\"" "send \"setenv get_overlay_net 'fdt address \${fdtaddr};fdt resize 0x100000;for overlay in \${overlay_files};do;tftp \${overlayaddr} \${overlay};fdt apply \${overlayaddr}; done'\"" $cwd/setupBoard.minicom
+do_expect "\"$prompt\"" "send \"setenv get_overlay_net 'fdt address \${fdtaddr};fdt resize 0x100000;for overlay in \${name_overlays};do;tftp \${overlayaddr} \${overlay};fdt apply \${overlayaddr}; done'\"" $cwd/setupBoard.minicom
 
 do_expect "\"$prompt\"" "send \"setenv nfs_options 'nolock,v3,tcp,rsize=4096,wsize=4096'\"" $cwd/setupBoard.minicom
 do_expect "\"$prompt\"" "send \"setenv setup_mmc ''\"" $cwd/setupBoard.minicom