[U-Boot] nand spl build with wrong CONFIG_SYS_TEXT_BASE

Haiying Wang Haiying.Wang at freescale.com
Fri Nov 5 16:14:22 CET 2010


Hi Scott,

Wolfgang's latest commit to change all TEXT_BASE to CONFIG_SYS_TEXT_BASE
breaks the build for nand_spl. He defined CONFIG_SYS_TEXT_BASE in board
header file for CONFIG_NAND, and renamed TEXT_BASE to
CONFIG_SYS_TEXT_BASE in nand_spl/board/.../Makefile. Then for
u-boot-spl, the CONFIG_SYS_TEXT_BASE is always the value defined in
header file, which is, for example, 0xf8f82000 for MPC8536/8569/p1_p2/,
not the one defined in nand-spl's Makefile, which is 0xfff00000. Thus it
causes the nand_spl image has wrong address from 0xf8f82000. When PAD_TO
0xfff01000, the final u-boot-spl-16k.bin will be 112M bytes. I think
83xx nand_spl might have the similar problem, but as I built 8315erdb's
nand, it failed for some other multiple define for undef errors. 

Can you take a look at it? Defining CONFIG_SYS_TEXT_BASE in header file
does impact the TEXT_BASE defined in Makefile for nand_spl.

Thanks.

Haiying





More information about the U-Boot mailing list