[U-Boot-Users] HELP! can't save environment variables
joe.culler at gmail.com
Fri Mar 17 10:24:43 CET 2006
I ported u-boot to my customized s3c2410 board. My board uses
NOR flash SST39xF1601(2MB). Everything seems to be ok except it
can't save environment variables using saveenv command.
Would you tell me how to solve that issue? Thanks.
I defined smdk2410.h about flash as belows:
#define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x020000))
#define CFG_ENV_IS_IN_FLASH 1
#define CFG_ENV_SIZE 0x20000 /* Total Size of Environment Sector */
#define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
#define PHYS_FLASH_SIZE 0x00200000 /* 2MB */
#define CFG_MAX_FLASH_SECT (32) /* max number of sectors on one chip */
I also enable CFG_CMD_ENV and CFG_CMD_FLASH for CONFIG_COMMANDS.
I noticed if I defined CFG_MONITOR_BASE = CFG_FLASH_BASE,
then a message *** Warning - bad CRC, using default environment
won't be displayed on screen.
More information about the U-Boot