From: Wolfgang Denk Date: Tue, 24 Jun 2003 20:24:30 +0200 Subject: [U-Boot-Users] FADS and ICU862 Environment problems In-Reply-To: Your message of "Mon, 23 Jun 2003 14:42:11 PDT." <20030623214211.GA10366@zumanetworks.com> Message-ID: <20030624182435.1C912C5FD7@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 <20030623214211.GA10366@zumanetworks.com> you wrote: > > > I see no discrepancy - ENV_IS_EMBEDDED is NOT set for ICU862 > > I'm sorry, i must be dense, i'm still not getting this (i do not know > anything about the ICU board) ... > > So, leave in the ifdef ICU862 case, but what about FADS (and other > boards) which may or may not have ENV_IS_EMBEDDED set? I don't know anything about the FADS board. I tried to use one once. Probably I will never touch one again. > shouldn't they also NOT initialize past the bss into environment.o if > ENV_IS_EMBEDDED is not set, but not refer to the "environment" symbol if > ENV_IS_EMBEDDED IS set? It depends on the flash layout, i. e. where your environment is located. > #if !defined(ENV_IS_EMBEDDED) || defined(CONFIG_ICU862) No. "!defined(ENV_IS_EMBEDDED)" might include situations where the environment is in EEPROM or so. > Sorry that this is taking so long to explain, but now i'm hopelessly > confused ;/ Me too. What's wrong with the existing code? Where does it cause problems? 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 Cleverness and Style have no place in getting a project completed. -- Tom Christiansen