From: Nye Liu Date: Thu, 26 Jun 2003 15:10:32 -0700 Subject: [U-Boot-Users] FADS and ICU862 Environment problems In-Reply-To: <20030626220324.A6CEFC592A@atlas.denx.de> References: <20030626214057.GA28486@zumanetworks.com> <20030626220324.A6CEFC592A@atlas.denx.de> Message-ID: <20030626221032.GA28649@zumanetworks.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jun 27, 2003 at 12:03:19AM +0200, Wolfgang Denk wrote: > In message <20030626214057.GA28486@zumanetworks.com> you wrote: > > > > unresolved, meaning: > > > > ld -Bstatic -T /home/nyet/src/local/u-boot/board/fads/u-boot.lds -Ttext 0x02800000 -n cpu/mpc8xx/start.o \ > > --start-group board/fads/libfads.a cpu/mpc8xx/libmpc8xx.a lib_ppc/libppc.a fs/jffs2/libjffs2.a fs/fdos/libfdos.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a post/libpost.a post/cpu/libcpu.a common/libcommon > > .a lib_generic/libgeneric.a --end-group \ > > -Map u-boot.map -o u-boot > > cpu/mpc8xx/start.o(.got2+0x24):/local/nyet-build/u-boot-mrv/cpu/mpc8xx/start.S:99: undefined reference to `environment' > > make: *** [u-boot] Error 1 > > Strange. I see no such problems: > > -> MAKEALL FADS823 FADS850SAR FADS860T ICU862 > rm -f include/config.h include/config.mk > Configuring for FADS823 board... > text data bss dec hex filename > 95364 323632 16372 435368 6a4a8 u-boot > rm -f include/config.h include/config.mk > Configuring for FADS850SAR board... > text data bss dec hex filename > 87028 284488 16296 387812 5eae4 u-boot > rm -f include/config.h include/config.mk > Configuring for FADS860T board... > text data bss dec hex filename > 87352 38776 16336 142464 22c80 u-boot > rm -f include/config.h include/config.mk > Configuring for ICU862 board... > text data bss dec hex filename > 106712 47928 16764 171404 29d8c u-boot > > No errors, no warnings. > > I think I lost you. Please let's restart from zero. > > What exactly is your problem with the current code? Ok. To summarize: If ENV_IS_EMBEDDED is set in FADS, it does not get copied during relocation due to common/env_flash.c If ENV_IS_EMBEDDED is NOT set (by reducing MONITOR_LEN to not include ENV), i get this error. -- Nye Liu nliu at mrv.com (818) 772-6235x248 "Who would be stupid enough to quote a fictitious character?" -- Don Quixote