From mboxrd@z Thu Jan 1 00:00:00 1970 From: xbc_5419 Date: Tue, 23 Oct 2007 20:19:30 +0800 Subject: [U-Boot-Users] help:error occured when 'saveenv' Message-ID: <200710232019279531436@163.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de hi, i have been trying to port the u-boot 1.2.0 to my board which based on the at91rm9200. when running the 'saveenv' ,it promted out "Saving Environment to Flash... Error: start address not on sector boundary" my flash is MT-28F128J3, which has 128 128KB(x16bit) erase blocks,in the include/configs/myboard.h i defined the #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 */ #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 */ #define CFG_ENV_SIZE 0x2000 /* 0x8000 */ #endif /* CONFIG_SKIP_LOWLEVEL_INIT */ what can i do to fix it ...?? Any help will be appreciated....thanks you... Best Regards Jack Xu 2007-10-23 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.denx.de/pipermail/u-boot/attachments/20071023/34cedeea/attachment.htm