From be04b21ecd3fb71ddbaa19b66075f703fe6fb5ae Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Tue, 27 Feb 2024 17:00:56 +0100 Subject: [PATCH] ccimx93: add support to build FIT images Signed-off-by: Javier Viguera --- meta-digi-arm/conf/machine/include/ccimx93.inc | 7 +++++++ .../recipes-bsp/u-boot/u-boot-dey/ccimx93-dvk/boot.txt | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/meta-digi-arm/conf/machine/include/ccimx93.inc b/meta-digi-arm/conf/machine/include/ccimx93.inc index 4360a96ee..768ff8ce1 100644 --- a/meta-digi-arm/conf/machine/include/ccimx93.inc +++ b/meta-digi-arm/conf/machine/include/ccimx93.inc @@ -8,9 +8,16 @@ require conf/machine/include/imx-digi-base.inc require conf/machine/include/arm/armv8-2a/tune-cortexa55.inc # Platform u-boot settings +UBOOT_DTB_LOADADDRESS = "0x83000000" +UBOOT_DTBO_LOADADDRESS = "0x83000000" +UBOOT_ENTRYPOINT = "0x80400000" +UBOOT_ENV = "boot" UBOOT_PREFIX = "imx-boot" UBOOT_SUFFIX = "bin" +# Platform kernel settings +KERNEL_CLASSES = "kernel-fitimage" + # The bootloader image that gets flashed consists of U-Boot and several fw binaries EXTRA_IMAGEDEPENDS += "imx-boot" BOOTLOADER_IMAGE_RECIPE = "imx-boot" diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx93-dvk/boot.txt b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx93-dvk/boot.txt index 60f89ef0e..0dc69b973 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx93-dvk/boot.txt +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx93-dvk/boot.txt @@ -84,6 +84,10 @@ if test "${module_has_npu}" = "1" && test -z "${disable_npu}"; then setenv overlays _ov_som_npu_ccimx93.dtbo,${overlays} fi +if test "${dboot_kernel_var}" = "fitimage"; then + # Set temp var to avoid re-loading fitimage + setenv temp-fitimg-loaded yes +fi dboot linux mmc ${mmcbootdev}:${mmcpart} #