ADLINK / meta-adlink-nxp

Single Yocto layer for NXP iMX6 & iMX8M & iMX8MPlus based Computer on Modules. (SMARC)
12 stars 14 forks source link

Yocto Harknott image and saveenv from u-boot #32

Open gnulux opened 1 year ago

gnulux commented 1 year ago

I have build core-image-mininal succesfully . However it is not possible to save variable from U-BOOT When i try "saveenv" i have this message :

Environment size: 2331/4092 bytes u-boot=> saveenv Saving Environment to MMC... Writing to MMC(2)... MMC: block number 0x2008 exceeds max(0x2000) failed Failed (1)

How to solve this issue ?

gnulux commented 2 months ago

Hi , I still not can save my env when booting from eMMc

kkraman02 commented 2 months ago

Option-1 If you boot from an SD card, you might get the error. Flash the image on the eMMC and boot from eMMC; the problem will be gone. If you're still facing the error, you can go for Option-2.

Option-2 You can adjust the variables here to make it work. # Example adjustment to 2 MB (CONFIG_ENV_OFFSET=0x200000). Then, rebuild the Yocto image with the new configuration.

https://github.com/ADLINK/meta-adlink-nxp/blob/scarthgap/recipes-bsp/u-boot/u-boot-imx/adlink_lec8mp_defconfig CONFIG_ENV_OFFSET=0x400000