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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

304件の閲覧回数
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 件の賞賛
0 返答(返信)