From: Wolfgang Denk Date: Tue, 09 Nov 2010 18:22:36 +0100 Subject: [U-Boot] nand spl build with wrong CONFIG_SYS_TEXT_BASE In-Reply-To: <1289320865.2168.92.camel@haiying-laptop> References: <1288970062.1855.44.camel@haiying-laptop> <20101107213129.CA432220@gemini.denx.de> <1289230710.1900.27.camel@haiying-laptop> <20101108163053.E973613077C4@gemini.denx.de> <1289240747.1900.58.camel@haiying-laptop> <20101108233626.82904D48956@gemini.denx.de> <1289314359.2168.20.camel@haiying-laptop> <20101109162343.31A76D314CE@gemini.denx.de> <1289320865.2168.92.camel@haiying-laptop> Message-ID: <20101109172236.579FA4F4@gemini.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 Dear Haiying Wang, In message <1289320865.2168.92.camel@haiying-laptop> you wrote: > > It is in one of the error messages, there are others for the same error. > Here is the total message when building tlb.c for nand_spl: ... > powerpc-none-linux-gnuspe-gcc -g -Os -mrelocatable -fPIC -meabi > -ffunction-sections -fdata-sections -D__KERNEL__ > -DCONFIG_SYS_TEXT_BASE=0xf8f82000 -DRESET_VECTOR_ADDRESS=0xeffffffc ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Here we have it. > /home/haiying/u-boot-mpc85xx/include/configs/MPC8536DS.h:40:1: warning: > "CONFIG_SYS_TEXT_BASE" redefined > : warning: this is the location of the previous definition OK. Problem is understood. Th problem comes from the value of CONFIG_SYS_TEXT_BASE changing on the fly. I recommend to use CONFIG_SYS_SPLTEXT_BASE or so for the SPL image linking. > The other definition comes from include/autoconf.mk, I think. It comes from the command line, which is generated by make, which picks teh values from include/autoconf.mk indeed - which gets build initiall. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The only solution is ... a balance of power. We arm our side with exactly that much more. A balance of power -- the trickiest, most difficult, dirtiest game of them all. But the only one that preserves both sides. -- Kirk, "A Private Little War", stardate 4211.8