From: Wolfgang Denk Date: Thu, 22 Jun 2006 12:44:42 +0200 Subject: [U-Boot-Users] Dynamic location of the environment sector In-Reply-To: Your message of "Thu, 22 Jun 2006 13:21:54 +0300." <449A6F42.9090509@inaccessnetworks.com> Message-ID: <20060622104442.BC2DF3525C5@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 <449A6F42.9090509@inaccessnetworks.com> you wrote: > > Ok. I found what the problem was. I was looking at the TRAB board which > is a PXA board with the environment embedded and did exactly the same No, TRAB is not a PXA system. It's a s3c2400 board. > thing. What i did NOT notice is that it is mentioned explicitely in the > common/environment.c file, and that is why it works and mine did not: No, this is not correct. > #if (defined(CONFIG_CMI) || \ > defined(CONFIG_FADS) || \ > defined(CONFIG_HYMOD) || \ > defined(CONFIG_ICU862) || \ > defined(CONFIG_R360MPI) || \ > defined(CONFIG_TQM8xxL) || \ > defined(CONFIG_RRVISION) || \ > defined(CONFIG_TRAB) || \ > defined(CONFIG_MRG110_6) || \ > defined(CONFIG_PPCHAMELEONEVB) ) && \ > defined(ENV_CRC) /* Environment embedded in U-Boot .ppcenv section */ The only effect of this is to put the environment into a separate linker section. You can do this, but you don't have to. You can make this work without this setting es well. Just configure your linker script correctly. > My board is not on the first #if, so it felt back to the last #else, > thus placing the env_size and environment in the wrong order. This is an error in your linker script then. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Virtual" means never knowing where your next byte is coming from.