I'm using i.MX8MQ-EVK board and booting it from eMMC.
The U-boot (flash.bin) is programed to /dec/mmcblk0boot0.
#define CONFIG_ENV_OFFSET 0x3F0000 /* (64 * SZ_64K) */
#define CONFIG_ENV_SIZE 0x8000
#define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC1 */ /* USDHC2 - 1 */
If I understand correctly, boot environments must be saved at offset 0x3F0000 of mmcblk0boot0. But when I dump this partition, I do not see that.
I know the size of boot0 is 0x400000.
When I build U-boot, the config CONFIG_ENV_IS_IN_MMC=y. So, the boot environments seem to be stored somewhere, not in boot0 partition.
So, could anyone show me how can I store boot env in a specific offset of eMMC (boot0 partition) correctly?