Skip to content
  • Bo Shen's avatar
    env: dataflash: fix env_init issue · cca2011e
    Bo Shen authored
    
    
    As the SPI controller is not initialized before env_init(), it causes
    reading env in dataflash failed. So, although saveenv() successfully,
    it shows warning information when reboot the system as following:
    
      *** Warning - bad CRC, using default environment
    
    Let the env_relocate() to check env CRC and import it.
    
    Signed-off-by: default avatarBo Shen <voice.shen@atmel.com>
    cca2011e