IMX8 Nano EVK - Storing environment-variables in SPI flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8 Nano EVK - Storing environment-variables in SPI flash

297件の閲覧回数
OliverT
Contributor I

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 ?

ラベル(1)
0 件の賞賛
0 返答(返信)