From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessandro Rubini Date: Wed, 5 Aug 2009 17:46:03 +0200 Subject: [U-Boot] [U-BOOT] error: end address not on sector boundary when I use saveenv cmd In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB0305FC60C1@dbde02.ent.ti.com> References: <5A47E75E594F054BAF48C5E4FC4B92AB0305FC60C1@dbde02.ent.ti.com> <5A47E75E594F054BAF48C5E4FC4B92AB0305FC5F45@dbde02.ent.ti.com> <20090805103939.GA27931@mail.gnudd.com> Message-ID: <20090805154603.GA1860@mail.gnudd.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > I already looked at my config file, but couldn't root cause the problem > Here are some of the definitions from my configs, incase anything wrong > CONFIG_SYS_FLASH_BASE 0x10000000 > CONFIG_ENV_ADDR 0x10040000 Ok. But you'd better copy whole lines from config file instead of choosing words from them. Sometimes the error is in the details. > SECTOR_SIZE SZ_256K // 256KB sector size (the comment is redundant here) so the environment is in the second sector (it starts at the beginning of a sector). You problem is with the end, so CFG_ENV_SIZE must be wrong in your config. It should be 256k as well. /alessandro