It says #elif defined(CONFIG_ENV_IS_IN_NAND)
#define CONFIG_ENV_OFFSET (60 << 20)
imx8mm_evk.h\configs\include - uboot-imx - i.MX U-Boot (codeaurora.org)
And I am very sure for it. I change the size because it is not enough for my project.
And I use the command
mmc erase 0x2000 0x10 to erase the environment during the test.
You can read my
SWUpdate OTA i.MX8MM EVK / i.MX8QXP MEK
https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/SWUpdate-OTA-i-MX8MM-EVK-i-MX8QXP-MEK/ta...
2000-u-boot-append-emmc-L5.4.70-2.3.0.patch
+--- u-boot/configs/imx8mm_evk_defconfig.orig 2021-06-18 12:28:14.278961177 +0800
++++ u-boot/configs/imx8mm_evk_defconfig 2021-06-18 12:29:23.779361965 +0800
+@@ -10,14 +10,17 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000
+ CONFIG_SYS_I2C_MXC_I2C1=y
+ CONFIG_SYS_I2C_MXC_I2C2=y
+ CONFIG_SYS_I2C_MXC_I2C3=y
+-CONFIG_ENV_SIZE=0x1000
++CONFIG_ENV_SIZE=0x2000
+ CONFIG_ENV_OFFSET=0x400000
++CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
++CONFIG_ENV_OFFSET_REDUND=0x402000
+ CONFIG_DM_GPIO=y
BTW, it is patch's patch for yocto.