Where can I find valid configuration of /etc/fw_env.conf for imx8mqevk booting from the external SD?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where can I find valid configuration of /etc/fw_env.conf for imx8mqevk booting from the external SD?

279 Views
mbdillon88
Contributor I

I'm using an imx8mqevk dev board and I'm booting using the micro SD. I've configured the build to include u-boot-fw-utils in the image as described here:

https://community.nxp.com/t5/P-Series/How-do-I-get-fw-printenv-and-fw-setenv-included-in-my-rootfs/m...

However, I'm having trouble identifying valid settings for the /etc/fw_env.conf. I've identified that uboot-imx uses the following values in imx8mq_evk.h:

https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx8mq_evk.h?h=lf-5.4.y_v2...

 

#define CONFIG_ENV_OVERWRITE
#define CONFIG_ENV_OFFSET               (64 * SZ_64K)
#define CONFIG_ENV_SIZE			0x1000
#define CONFIG_SYS_MMC_ENV_DEV		1   /* USDHC2 */
#define CONFIG_MMCROOT			"/dev/mmcblk1p2"  /* USDHC2 */

 

I assumed that if this were correct, my valid settings should be 

 

# MTD device name       Device offset   Env. size       Flash sector size
/dev/mmcblk1            0x400000        0x1000

 

or perhaps /dev/mmcblk1p1. However, using either of these options gives me the same result:

 

root@imx8mqevk:~#fw_printenv
Cannot read environment, using default
Cannot read default environment from file

 

Do you know where I can find a valid fw_env.conf for this board?

Thanks,

Martin Dillon

0 Kudos
0 Replies