From ca3d27981ff633d9983b8079b04207ab2961a312 Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Mon, 27 Apr 2020 17:14:32 +0200 Subject: [PATCH] Revert "imx-boot: add patch to fix imx-boot images with M4 demos" This reverts commit 03d40edfd0215a6a421e7567fd75606331b338d2. The build of U-Boot without the flags field, incorporated changes that made the Cortex M4 acquired certain resources (like GPIOs) that were later not available for the Cortex A35 cores. Revert this patch so that such changes only take place on images that contain the M4 applications. Signed-off-by: Hector Palacios https://jira.digi.com/browse/DEL-7073 (cherry picked from commit 28ce9340f55a35199dacf1bcbf83dc016b6a2fc7) --- ..._BD_FLAGS_ALT_CONFIG-flag-in-flash_r.patch | 31 ------------------- .../imx-mkimage/imx-boot_1.0.bbappend | 3 -- 2 files changed, 34 deletions(-) delete mode 100644 meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot/0001-iMX8QX-remove-SC_BD_FLAGS_ALT_CONFIG-flag-in-flash_r.patch diff --git a/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot/0001-iMX8QX-remove-SC_BD_FLAGS_ALT_CONFIG-flag-in-flash_r.patch b/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot/0001-iMX8QX-remove-SC_BD_FLAGS_ALT_CONFIG-flag-in-flash_r.patch deleted file mode 100644 index 6487ea4ca..000000000 --- a/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot/0001-iMX8QX-remove-SC_BD_FLAGS_ALT_CONFIG-flag-in-flash_r.patch +++ /dev/null @@ -1,31 +0,0 @@ -From: Gabriel Valcazar -Date: Fri, 19 Jul 2019 10:42:35 +0200 -Subject: [PATCH] iMX8QX: remove SC_BD_FLAGS_ALT_CONFIG flag in - flash_regression_linux_m4 target - -This flag breaks the ccimx8x U-Boot due to the code that is executed in the -SCFW when it's set. Make the build command the same as the "flash_all" target -in the rel_imx_4.14.78_1.0.0_ga tag, since the M4 demos still seem to work as -expected when the flag is removed. The "-p3" parameter also needs to be removed -for the images to boot properly. - -https://jira.digi.com/browse/DEL-6677 - -Signed-off-by: Gabriel Valcazar ---- - iMX8QX/soc.mak | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/iMX8QX/soc.mak b/iMX8QX/soc.mak -index e08cf3c..88f990a 100755 ---- a/iMX8QX/soc.mak -+++ b/iMX8QX/soc.mak -@@ -120,7 +120,7 @@ flash_linux_m4_xip: $(MKIMG) $(AHAB_IMG) scfw_tcm.bin u-boot-atf-container.img m - ./$(QSPI_PACKER) $(QSPI_HEADER) - - flash_regression_linux_m4: $(MKIMG) $(AHAB_IMG) scfw_tcm.bin u-boot-atf.bin m4_image.bin -- ./$(MKIMG) -soc QX -rev B0 -append $(AHAB_IMG) -c -flags 0x00200000 -scfw scfw_tcm.bin -ap u-boot-atf.bin a35 0x80000000 -p3 -m4 m4_image.bin 0 0x34FE0000 -out flash.bin -+ ./$(MKIMG) -soc QX -rev B0 -append $(AHAB_IMG) -c -scfw scfw_tcm.bin -ap u-boot-atf.bin a35 0x80000000 -m4 m4_image.bin 0 0x34FE0000 -out flash.bin - - flash_regression_linux_m4_ddr: $(MKIMG) $(AHAB_IMG) scfw_tcm.bin u-boot-atf.bin m4_image.bin - ./$(MKIMG) -soc QX -rev B0 -append $(AHAB_IMG) -c -flags 0x00200000 -scfw scfw_tcm.bin -ap u-boot-atf.bin a35 0x80000000 -p3 -m4 m4_image.bin 0 0x88000000 -out flash.bin diff --git a/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend b/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend index 6437b2149..2e77ecced 100644 --- a/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend +++ b/meta-digi-arm/recipes-bsp/imx-mkimage/imx-boot_1.0.bbappend @@ -1,9 +1,6 @@ # Copyright 2019,2020 Digi International, Inc. inherit boot-artifacts -FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" -SRC_URI_append_ccimx8x = " file://0001-iMX8QX-remove-SC_BD_FLAGS_ALT_CONFIG-flag-in-flash_r.patch" - IMX_EXTRA_FIRMWARE_ccimx8x = "digi-sc-firmware imx-seco" DEPENDS_append_ccimx8x = " coreutils-native"