From dbdd9890182a3a8897184bcdee6ff4239219ed3c Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Thu, 23 Nov 2023 14:10:45 +0100 Subject: [PATCH] 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 --- .../recipes-bsp/u-boot/u-boot-dey/ccmp13-dvk/boot.txt | 4 ++++ .../recipes-bsp/u-boot/u-boot-dey/ccmp15-dvk/boot.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp13-dvk/boot.txt b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp13-dvk/boot.txt index de798cf2f..34d09e9cd 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp13-dvk/boot.txt +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp13-dvk/boot.txt @@ -74,6 +74,10 @@ fi if test "${boot_device}" = "mmc"; then dboot linux mmc 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} fi diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp15-dvk/boot.txt b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp15-dvk/boot.txt index fad34695e..e51ef8d27 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp15-dvk/boot.txt +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp15-dvk/boot.txt @@ -85,6 +85,10 @@ fi if test "${boot_device}" = "mmc"; then dboot linux mmc 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} fi