Files
meta-bsp-imx8mm/recipes-bsp/u-boot/compulab/imx8mm/0038-Move-environment-from-4M-to-17k-address.patch
T
2023-02-09 00:44:25 +02:00

30 lines
1.1 KiB
Diff

From a93fbb4d91247528a8033cdaa6f99e8d3ca3efd7 Mon Sep 17 00:00:00 2001
From: Kirill Kapranov <kirill.kapranov@compulab.co.il>
Date: Mon, 29 Jun 2020 18:15:26 +0300
Subject: [PATCH 038/126] Move environment from 4M to 17k address
Change starting address of environment data on eMMC form (64 * 64k) to (34 * 512)
in order to avoid possible conflicts with the first partition.
Signed-off-by: Kirill Kapranov <kirill.kapranov@compulab.co.il>
---
include/configs/ucm-imx8m-mini.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/ucm-imx8m-mini.h b/include/configs/ucm-imx8m-mini.h
index e3e91c7f72..ad4e7997b1 100644
--- a/include/configs/ucm-imx8m-mini.h
+++ b/include/configs/ucm-imx8m-mini.h
@@ -197,7 +197,7 @@
(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
#define CONFIG_ENV_OVERWRITE
-#define CONFIG_ENV_OFFSET (64 * SZ_64K)
+#define CONFIG_ENV_OFFSET (34 * 512) /* Max possible GPT size */
#define CONFIG_ENV_SIZE 0x1000
#define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC2 */
#define CONFIG_MMCROOT "/dev/mmcblk1p2" /* USDHC2 */
--
2.11.0