Skip to content
Commit 8ede7515 authored by Ley Foon Tan's avatar Ley Foon Tan Committed by Marek Vasut
Browse files

configs: stratix10: Enable CONFIG_SPI_FLASH_USE_4K_SECTORS



Fix SPI flash environment erase size error.

CONFIG_ENV_SECT_SIZE is set to 4KB. Enable CONFIG_SPI_FLASH_USE_4K_SECTORS
to allow erase one environment sector.

Fix error below:

SOCFPGA_STRATIX10 # saveenv
Saving Environment to SPI Flash...
SF: Detected mt25qu02g with page size 256 Bytes, erase size 64 KiB, total 256 MiB
Erasing SPI flash...SF: Erase offset/length not multiple of erase size
Failed (-22)

Signed-off-by: default avatarLey Foon Tan <ley.foon.tan@intel.com>
parent da0d5f6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment