Skip to contentSkip to conversation

configs: am65x_evm: Use envboot before distro_bootcmd

PATCH In review Devarsh Thakkar 2 participants 2 messages Sep 8, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: am65x_evm: Use envboot before distro_bootcmd

Use envboot cmd before issuring distro_bootcmd as otherwise environment variables from uEnv.txt are not getting imported.

The commands after distro_bootcmd have no impact since board starts booting after distro_bootcmd, so it need to run last after all environment variables are configured correctly.

Fixes bde6ac54905 ("configs: am65x_evm: Switch envboot out for

distro_bootcmd")

---
Boot logs (with display overlay) :
https://gist.github.com/devarsht/2bac56933847d3e954d6ee275d711e27

---
 configs/am65x_evm_a53_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/am65x_evm_a53_defconfig +1 -1
index 4301553af8..4f1ef10e69 100644
@@ -34,7 +34,7 @@ CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
 CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
-CONFIG_BOOTCOMMAND="run findfdt; run distro_bootcmd; run init_${boot}; run boot_rprocs; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern"
+CONFIG_BOOTCOMMAND="run envboot; run distro_bootcmd;"
 CONFIG_LOGLEVEL=7
 CONFIG_CONSOLE_MUX=y
 CONFIG_SPL_MAX_SIZE=0x58000
Signature · 1 line
2.34.1
#1 lore raw
Quoted 23 lines · Devarsh Thakkar

Use envboot cmd before issuring distro_bootcmd as otherwise environment variables from uEnv.txt are not getting imported.

The commands after distro_bootcmd have no impact since board starts booting after distro_bootcmd, so it need to run last after all environment variables are configured correctly.

Fixes bde6ac54905 ("configs: am65x_evm: Switch envboot out for

distro_bootcmd")

---
Boot logs (with display overlay) :
https://gist.github.com/devarsht/2bac56933847d3e954d6ee275d711e27

---
 configs/am65x_evm_a53_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/am65x_evm_a53_defconfig +0 -0
index 4301553af8..4f1ef10e69 100644

configs/am65x_evm_a53_defconfig CONFIG_SPL_LOAD_FIT=y · line 40

Quoted 8 lines
configs/am65x_evm_a53_defconfig +1 -1
@@ -34,7 +34,7 @@ CONFIG_SPL_LOAD_FIT=y
 CONFIG_SPL_LOAD_FIT_ADDRESS=0x81000000
 CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_DISTRO_DEFAULTS=y
-CONFIG_BOOTCOMMAND="run findfdt; run distro_bootcmd; run init_${boot}; run boot_rprocs; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern"
+CONFIG_BOOTCOMMAND="run envboot; run distro_bootcmd;"
 CONFIG_LOGLEVEL=7
 CONFIG_CONSOLE_MUX=y
 CONFIG_SPL_MAX_SIZE=0x58000

This should just be switched to standard boot instead.

Signature · 1 line
Tom