Khadas VIM 3 SPI Flash

I solved the problem. U-Boot config have special variables for configure environment saving. The issue:
CONFIG_ENV_OFFSET must be aligned to an SPI Flash erase sector boundary and CONFIG_ENV_SECT_SIZE define the SPI flash’s sector size. For Khadas VIM 3 i used

CONFIG_ENV_OFFSET = 0x125000, because my U-boot starts from 0x0 and ends at 0x11BD70
CONFIG_ENV_SECT_SIZE = 0x1000, because this size indicated in SPI flash chip datasheet.

2 Likes