mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-28 22:13:08 +00:00
8ede7515fe
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: Ley Foon Tan <ley.foon.tan@intel.com>
57 lines
1.2 KiB
Text
57 lines
1.2 KiB
Text
CONFIG_ARM=y
|
|
CONFIG_ARCH_SOCFPGA=y
|
|
CONFIG_SYS_TEXT_BASE=0x1000
|
|
CONFIG_SYS_MALLOC_F_LEN=0x2000
|
|
CONFIG_NR_DRAM_BANKS=2
|
|
CONFIG_TARGET_SOCFPGA_STRATIX10_SOCDK=y
|
|
CONFIG_IDENT_STRING="socfpga_stratix10"
|
|
CONFIG_SPL_FS_FAT=y
|
|
CONFIG_BOOTDELAY=5
|
|
CONFIG_SPL_TEXT_BASE=0xFFE00000
|
|
CONFIG_SPL_SPI_LOAD=y
|
|
CONFIG_HUSH_PARSER=y
|
|
CONFIG_SYS_PROMPT="SOCFPGA_STRATIX10 # "
|
|
CONFIG_CMD_MEMTEST=y
|
|
# CONFIG_CMD_FLASH is not set
|
|
CONFIG_CMD_GPIO=y
|
|
CONFIG_CMD_I2C=y
|
|
CONFIG_CMD_MMC=y
|
|
CONFIG_CMD_SF=y
|
|
CONFIG_CMD_SPI=y
|
|
CONFIG_CMD_USB=y
|
|
CONFIG_CMD_DHCP=y
|
|
CONFIG_CMD_MII=y
|
|
CONFIG_CMD_PING=y
|
|
CONFIG_CMD_CACHE=y
|
|
CONFIG_CMD_EXT4=y
|
|
CONFIG_CMD_FAT=y
|
|
CONFIG_CMD_FS_GENERIC=y
|
|
CONFIG_OF_EMBED=y
|
|
CONFIG_DEFAULT_DEVICE_TREE="socfpga_stratix10_socdk"
|
|
CONFIG_ENV_IS_IN_MMC=y
|
|
CONFIG_NET_RANDOM_ETHADDR=y
|
|
CONFIG_SPL_DM_SEQ_ALIAS=y
|
|
CONFIG_SPL_ALTERA_SDRAM=y
|
|
CONFIG_DM_GPIO=y
|
|
CONFIG_DWAPB_GPIO=y
|
|
CONFIG_DM_I2C=y
|
|
CONFIG_SYS_I2C_DW=y
|
|
CONFIG_DM_MMC=y
|
|
CONFIG_MMC_DW=y
|
|
CONFIG_SPI_FLASH=y
|
|
CONFIG_SF_DEFAULT_MODE=0x2003
|
|
CONFIG_SPI_FLASH_SPANSION=y
|
|
CONFIG_SPI_FLASH_STMICRO=y
|
|
CONFIG_PHY_MICREL=y
|
|
CONFIG_PHY_MICREL_KSZ90X1=y
|
|
CONFIG_DM_ETH=y
|
|
CONFIG_ETH_DESIGNWARE=y
|
|
CONFIG_MII=y
|
|
CONFIG_DM_RESET=y
|
|
CONFIG_SPI=y
|
|
CONFIG_CADENCE_QSPI=y
|
|
CONFIG_DESIGNWARE_SPI=y
|
|
CONFIG_USB=y
|
|
CONFIG_DM_USB=y
|
|
CONFIG_USB_DWC2=y
|
|
CONFIG_USB_STORAGE=y
|