cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to save uboot environment to eMMC in STM32MP157F-DK2

ThinhNguyen
Associate II

I use default uboot in openSTLinux. I use the command below to save uboot environment.

$ env save

 but it showed an error, and the environement did not save. please see the picture below.

 

ThinhNguyen_0-1739005149578.png

 

How to fix it?

 

1 ACCEPTED SOLUTION

Accepted Solutions
ThinhNguyen
Associate II

To Fix it modify uboot configuration. Below is an example:

CONFIG_ENV_OFFSET=0x884400
CONFIG_ENV_SIZE=0x4000
CONFIG_ENV_OFFSET_REDUND=0x8C4200
CONFIG_ENV_SIZE_REDUND=0x4000
CONFIG_SYS_MMC_ENV_DEV=0
 
For the Environment offset, please prefer to Flash layout to find the corect value.

View solution in original post

1 REPLY 1
ThinhNguyen
Associate II

To Fix it modify uboot configuration. Below is an example:

CONFIG_ENV_OFFSET=0x884400
CONFIG_ENV_SIZE=0x4000
CONFIG_ENV_OFFSET_REDUND=0x8C4200
CONFIG_ENV_SIZE_REDUND=0x4000
CONFIG_SYS_MMC_ENV_DEV=0
 
For the Environment offset, please prefer to Flash layout to find the corect value.