[U-Boot] [RFC] arm926ejs: fix jump to RAM nand_boot

Wolfgang Denk
2010-11-02T08:33:18Z

Dear Heiko Schocher,

In message <4CCFAFE4.3000600@denx.de> you wrote:
>
> - preloader copies first page of nand (nand_spl code) to
> 0xbb000000 (some cpu internal mem) and jumps to this address
> - nand_spl does lowlevelinit, relocate itself to TEXT_BASE (nand_spl code)

Why is this relocation needed? I understand that this 0xbb000000
address is determined by the given hardware ans as such always fix?

> But as codesize changes (and with it relocation address) this
> is not a perfect solution.

Indeed. CONFIG_SYS_NAND_U_BOOT_SIZE should be dropped, and the avtual
value should be derived from the actual U-Boot image building
process.

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
"I've seen it. It's rubbish." - Marvin the Paranoid Android