From e183f478161e096d36628aabab8981462be25fd9 Mon Sep 17 00:00:00 2001 From: Francisco Gil Date: Mon, 16 Sep 2024 12:24:07 +0200 Subject: [PATCH] ccimx9: bootscript: add logic to emulate a ccimx91 on a ccimx93 Based on the environment variable emulate-cc91: * Limit the ram memory to 512MB * Enable the overlay _ov_som_emulate-ccimx91_ccimx93.dtbo * Disable the npu node Signed-off-by: Francisco Gil --- meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx9/boot.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx9/boot.txt b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx9/boot.txt index c6b5db30f..eb54b8080 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx9/boot.txt +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx9/boot.txt @@ -80,6 +80,12 @@ if test "${soc_type}" = "imx93"; then test "${cpu_type}" = "imx9321"; then module_has_npu="1" fi + if test "${emulate-cc91}" = "yes"; then + echo "Emulating a ConnectCore 91 (emulate-cc91=yes)" + module_has_npu="0" + setenv extra_bootargs ${extra_bootargs} mem=512M + setenv overlays _ov_som_emulate-ccimx91_ccimx93.dtbo,${overlays} + fi fi if test "${module_has_npu}" = "1" && test -z "${disable_npu}"; then