From: Wolfgang Denk Date: Mon, 23 Jun 2003 23:35:48 +0200 Subject: [U-Boot-Users] FADS and ICU862 Environment problems In-Reply-To: Your message of "Mon, 23 Jun 2003 14:25:53 PDT." <20030623212553.GA10209@zumanetworks.com> Message-ID: <20030623213554.0BF34C5FD7@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 <20030623212553.GA10209@zumanetworks.com> you wrote: > > shouldn't the ifdef depend on ENV_IS_EMBEDDED? If that is set, even > in the ICU862 case, nothing in environment.c gets compiled (ALL of > the code is ifdef'ed out), and "environment" will be unresolved.. ENV_IS_EMBEDDED? is not set on the ICU862 board, since the environment is located after the end of the U-Boot image, but not embedded within it. > > The #ifdef in "cpu/mpc8xx/start.S" makes sure that clear_bss() does > > not attempt to clear any memory that belongs to the environment. > > but only if ENV_IS_EMBEDDED is NOT set... unless i'm missing something > obvious? I see no discrepancy - ENV_IS_EMBEDDED is NOT set for ICU862 > > Split it now, and submit any stable parts of it. > > Too much is tangled together, i will try, but it doesn't look good. I know how that feels. Split splittable parts, then. 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 Calm down, it's *__only* ones and zeroes.