Skip to main content
Associate III
February 8, 2025
Solved

Unable to save uboot environment to eMMC in STM32MP157F-DK2

  • February 8, 2025
  • 1 reply
  • 592 views

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?

 

Best answer by ThinhNguyen

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.

1 reply

ThinhNguyenAuthorBest answer
Associate III
April 9, 2025

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.