BPI-R3 uboot-env in NOR

Does anyone know if the NOR can be used to store the uboot env. I was trying to find out the exact config for this but unfortunately under Environment only NAND and SPI flash are available.I am not sure if these substitute for the NOR also.

If anyone has tried this could you share the uboot drivers/options used and the memory locations?

Thanks

You can use either CONFIG_ENV_IS_IN_SPI_FLASH or CONFIG_ENV_IS_IN_MTD to store the U-Boot environment on NOR flash (OpenWrt is using CONFIG_ENV_IS_IN_MTD for the boot-from-NOR build for the BPi-R3):

Thanks for this. Unfortunately my uboot does not have CONFIG_ENV_IS_IN_MTD and will need to port openwrt’s patches. Before I do that I’d like to try the CONFIG_ENV_IS_IN_SPI_FLASH method if you think that works to. I tried the following config, but it does not seem to work. Would be gratefull if you can point out any issues/missing details.

CONFIG_SF_DEFAULT_SPEED=1000000
CONFIG_SF_DEFAULT_MODE=0x0
CONFIG_ENV_SIZE=0x40000
CONFIG_ENV_OFFSET=0x40000
CONFIG_ENV_SECT_SIZE=0x1000