[U-Boot] nand spl build with wrong CONFIG_SYS_TEXT_BASE
Wolfgang Denk
wd at denx.de
Tue Nov 9 18:22:36 CET 2010
Dear Haiying Wang,
In message <1289320865.2168.92.camel at 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
> <command-line>: 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
More information about the U-Boot
mailing list