From: Wolfgang Denk Date: Thu, 26 Jun 2003 08:50:27 +0200 Subject: [U-Boot-Users] FADS and ICU862 Environment problems In-Reply-To: Your message of "Tue, 24 Jun 2003 16:59:53 PDT." <20030624235953.GA16810@zumanetworks.com> Message-ID: <20030626065032.BCAEBC5FD7@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 <20030624235953.GA16810@zumanetworks.com> you wrote: > > > 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. > > In which case NOTHING in environment.c is compiled, and "environment" > goes unresolved.... But this is normal for a non-embedded environment. If you don;t embed it with the U-Boot image it will not be initialized after installing the image anyway (because it is not included), so there is little sense initializing it at compile time. There are several other options: in cases where the environment is directly adjecent to the U-Boot image (it looks as if the FADS is such a configuration) you can "include" the environment, producing a bigger image which then contains an initialized environment. It is up for the board maintainer to decide what he wants. 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 All I ask is a chance to prove that money can't make me happy.