ccmp1: boot script: set temp variable to skip fit re-loading

The U-Boot bootscript loads the fitImage into RAM memory to run
this bootscript. This bootscript ends up calling 'dboot' command
to run the FIT default configuration.
To avoid 'dboot' re-loading again the fitImage into RAM memory,
set this temporary variable that will be immediately reset
by 'dboot'.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2023-11-23 14:10:45 +01:00
parent 8f40cddfc6
commit dbdd989018
2 changed files with 8 additions and 0 deletions

View File

@ -74,6 +74,10 @@ fi
if test "${boot_device}" = "mmc"; then if test "${boot_device}" = "mmc"; then
dboot linux mmc dboot linux mmc
else else
if test "${dboot_kernel_var}" = "fitimage"; then
# Set temp var to avoid re-loading fitimage
setenv temp-fitimg-loaded yes
fi
dboot linux nand ${mtdbootpart} dboot linux nand ${mtdbootpart}
fi fi

View File

@ -85,6 +85,10 @@ fi
if test "${boot_device}" = "mmc"; then if test "${boot_device}" = "mmc"; then
dboot linux mmc dboot linux mmc
else else
if test "${dboot_kernel_var}" = "fitimage"; then
# Set temp var to avoid re-loading fitimage
setenv temp-fitimg-loaded yes
fi
dboot linux nand ${mtdbootpart} dboot linux nand ${mtdbootpart}
fi fi