Hello
I'm currently trying to store the environment-variables in the QSPI-Flash of my IMX8.
Currently I can find the SPI Flash as
cat /proc/mtd
dev: size erase size name
mtd0: 02000000 00010000 "30bb0000.spi"
or
/dev# dmesg | grep spi
spi-nor spi3.0: n25q256ax1 (32768 Kbytes)
or
u-boot=> sf probe 0 0 0
SF: Detected n25q256ax1 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
In my .config file
(cd ~/yocto/build/tmp/work/imx8mnddr4evk-poky-linux/u-boot-imx/1_2020.04-r0/git/imx8mn_ddr4_evk_config/)
I've made the following changes with 'make menuconfig' :
# CONFIG_ENV_IS_IN_MMC is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
CONFIG_USE_ENV_SPI_BUS=y
CONFIG_ENV_SPI_BUS=0
CONFIG_USE_ENV_SPI_CS=y
CONFIG_ENV_SPI_CS=0
CONFIG_USE_ENV_SPI_MAX_HZ=y
CONFIG_ENV_SPI_MAX_HZ=10000000
CONFIG_USE_ENV_SPI_MODE=y
CONFIG_ENV_SPI_MODE=0x0
# CONFIG_SYS_REDUNDAND_ENVIRONMENT is not set
CONFIG_ENV_ADDR=0x100000
CONFIG_ENV_SIZE=0x4000
CONFIG_ENV_SECT_SIZE=0x4000
But this does not work. Does anybody have an idea ?