From: Wolfgang Denk Date: Tue, 09 Nov 2010 17:23:43 +0100 Subject: [U-Boot] nand spl build with wrong CONFIG_SYS_TEXT_BASE In-Reply-To: <1289314359.2168.20.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> Message-ID: <20101109162343.31A76D314CE@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 <1289314359.2168.20.camel@haiying-laptop> you wrote: > > > You did not answer my question. The error message shows _where_ the > > previous definition came from. Please check this. > OK, the error message is: > "In file included > from /home/haiying/Opensource/Kumar/u-boot-mpc85xx/include/config.h:5, > from ns16550.c:7: > /home/haiying/Opensource/Kumar/u-boot-mpc85xx/include/configs/MPC8536DS.h:40:1: warning: "CONFIG_SYS_TEXT_BASE" redefined > " Is this all the error messages you get? Normally tehre should be another message, for example: [filename]:[lineno]:[column]: warning: this is the location of the previous definition or, if there was a "-DCONFIG_SYS_TEXT_BASE=..." on the command line: : warning: this is the location of the previous definition > Here are the lines in MPC8536DS.h(using git diff result, so that the > changes I made can be seen clearly) This doesn't help, as it doesn't show where the other definition is coming from. > Yes, now the problem is only one define of CONFIG_SYS_TEXT_BASE is > allowed for one board config,i.e CONFIG_NAND, but two images need to be > generated for nand boot, one is u-boot-spl.bin, the other is u-boot.bin. > They need different CONFIG_SYS_TEXT_BASE. Maybe they should use different variables then, say CONFIG_SYS_TEXT_BASE and CONFIG_SYS_TEXT_BASE_SPL ? 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 first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time.