AnsweredAssumed Answered

iMX8mq boot env is not saved in correct offset

Question asked by Huong Ha on Oct 10, 2019
Latest reply on Oct 16, 2019 by Huong Ha

Hi all,

I'm using i.MX8MQ-EVK board and booting it from eMMC.

The U-boot (flash.bin) is programed to /dec/mmcblk0boot0.

In U-boot source is imx_v2018.03_4.14.98_2.0.0_ga from uboot-imx - i.MX U-Boot , file imx8mq_evk.h is changed as below:

#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?

Outcomes