From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sughosh Ganu Date: Tue, 23 Oct 2007 22:01:25 -0400 Subject: [U-Boot-Users] help:error occured when 'saveenv' In-Reply-To: <200710232019279531436@163.com> References: <200710232019279531436@163.com> Message-ID: <20071024020125.GB6563@GNU> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, > when running the 'saveenv' ,it promted out > > "Saving Environment to Flash... > Error: start address not on sector boundary" > > #define PHYS_FLASH_1 0x10000000 > #define PHYS_FLASH_SIZE 0x1000000 /* 16 megs main flash */ > #define CFG_FLASH_BASE PHYS_FLASH_1 > #define CFG_MAX_FLASH_BANKS 1 > #define CFG_MAX_FLASH_SECT 128 > > #define CFG_ENV_IS_IN_FLASH 1 > #ifdef CONFIG_SKIP_LOWLEVEL_INIT > #define CFG_ENV_ADDR (PHYS_FLASH_1 + 0x60000) /* after u-boot.bin */ This seems ok, as the above address is on the sector boundary (multiple of 128k). > #define CFG_ENV_SIZE 0x10000 /* sectors are 64K here */ > #else > #define CFG_ENV_ADDR (PHYS_FLASH_1 + 0xe000) /* between > #boot.bin and u-boot.bin.gz */ This seems to be the problem area. Change the offset 0xe000 so that the address is a multiple of 128k. -- sughosh