#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
#ifdef CONFIG_AMD_LV800
#define PHYS_FLASH_SIZE 0x00200000 /* 2MB */
#define CFG_MAX_FLASH_SECT (19) /* max number of sectors on one chip */
#define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x1F0000) /* addr of environment */
#endif
//#define CFG_ENV_IS_IN_FLASH 1
#define CFG_ENV_IS_IN_NAND 1
#define CFG_ENV_OFFSET 0x40000
#define CFG_ENV_SIZE64 0xc000 /* Total Size of Environment Sector */
#if(CONFIG_64MB_Nand == 1) //CONFIG_64MB_Nand == 0,所以0xc000没配置#define CFG_ENV_SIZE 0xc000 /* Total Size of Environment Sector */
#else //实际配置的是0x20000=128KB
#define CFG_ENV_SIZE 0x20000 /* Total Size of Environment Sector */
#endif
疑惑:因为nor flash的大小为2M,而#define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x1F0000) ,所以0x200000-0x1F0000=0x10000=64KB了,而上面#define CFG_ENV_SIZE 0x20000 /* Total Size of Environment Sector */ 实际上是配置了128KB了