From: Wolfgang Denk Date: Tue, 24 Jun 2003 22:38:22 +0200 Subject: [U-Boot-Users] FADS and ICU862 Environment problems In-Reply-To: Your message of "Tue, 24 Jun 2003 13:28:53 PDT." <20030624202853.GA15860@zumanetworks.com> Message-ID: <20030624203827.CA2A1C5FD7@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20030624202853.GA15860@zumanetworks.com> you wrote: > On Tue, Jun 24, 2003 at 08:24:30PM +0200, Wolfgang Denk wrote: > > Me too. What's wrong with the existing code? Where does it cause > > problems? > > in FADS, where ENV_IS_EMBEDDED may or may not be set, depending on how > big MONITOR_LENGTH is... (i.e. past FLASH_ENV_BASE or not) But this is exactly the point of defining MONITOR_LENGTH: _if_ the environment shall be embedded in the U-Boot image (ENV_IS_EMBEDDED will be set), then MONITOR_LENGTH must be big enough to include the environment; and if the environment shall be in a separate flash sector, then MONITOR_LENGTH must be small enough NOT to include the environment. I don't know who designed it that way (because I don't care about the FADS board), but according to "board/fads/u-boot.lds" the environment on this board is aligned on a 256kB boundary _after_ the U-Boot image. So MONITOR_LENGTH must not include the environment, and ENV_IS_EMBEDDED shall not be set. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de This is now. Later is later.