Other Parts Discussed in Thread: AM5728, PMP
My customer has been having a problem getting the spi flash to save the environment variables.
He added this to am57xx_evm.h config file:
#define CONFIG_SPI_BOOT
#if defined(CONFIG_SPI_BOOT)
# undef CONFIG_ENV_IS_NOWHERE
# define CONFIG_ENV_IS_IN_SPI_FLASH
# define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
# define CONFIG_ENV_OFFSET 0x1D0000
# define CONFIG_ENV_SECT_SIZE (4 << 10) /* 4 KB sectors */
#endif /*SPI support*/
but when uboot reads the environment he gets garbage back, the CRC's aren't matching. Do you have any idea why?
He suspects that the SPI flash or driver isn't fully initialized when it tries to read the environment variables from flash and that's why he is receiving a CRC fail, but even after saving the environment variables to flash and re-reading them, they are not being retained after a boot.
Thanks.