[U-Boot] nand spl build with wrong CONFIG_SYS_TEXT_BASE

Wolfgang Denk wd at denx.de
Tue Nov 9 22:35:15 CET 2010


Dear Haiying Wang,

In message <1289337782.2168.148.camel at haiying-laptop> you wrote:
>
> > Assuming that your code really needs to know the start address of the
> > image, it should probably do something like this instead:
> > 
> > #ifdef NAND_SPL
> > #define CONFIG_SYS_TEXT_BASE xxx
> > #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
> > #else
> > #define CONFIG_SYS_TEXT_BASE yyy
> > #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
> > #endif
> > 
> This doesn't make sense if there is still one autoconfig.mk. The value
> for CONFIG_SYS_TEXT_BASE will always be yyy for NAND_SPL.

right. Sorry, I copied the wrong lines.

What I meant was this:

    #ifdef NAND_SPL
    #define CONFIG_SYS_TEXT_BASE_SPL xxx
    #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE_SPL
    #else
    #define CONFIG_SYS_TEXT_BASE yyy
    #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
    #endif


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
Q: What do you get when you cross an ethernet with an income statement?
A: A local area networth.


More information about the U-Boot mailing list