Does u-boot support env for spi nand flash?

Tony He huangya90 at gmail.com
Tue Aug 29 08:24:02 CEST 2023


Hi,

According to env/Kconfig file, seems like below env interfaces are
supported. In my understanding,
ENV_IS_IN_NAND is used by parallel nand flash while
ENV_IS_IN_SPI_FLASH is used by spi nor
flash. There is no direct support/interface for spi nand flash.
However, we can use ENV_IS_IN_UBI
for spi nand flash, which means we can put env into one volume of UBI.
Is this correct? If yes, any
reason why no direct support/interface for spi nand flash? Thanks!

   def_bool y if !ENV_IS_IN_EEPROM && !ENV_IS_IN_EXT4 && \
                     !ENV_IS_IN_FAT && !ENV_IS_IN_FLASH && \
                     !ENV_IS_IN_MMC && !ENV_IS_IN_NAND && \
                     !ENV_IS_IN_NVRAM && !ENV_IS_IN_ONENAND && \
                     !ENV_IS_IN_REMOTE && !ENV_IS_IN_SPI_FLASH && \
                     !ENV_IS_IN_UBI

Tony


More information about the U-Boot mailing list