[U-Boot] [RFC] ARM: mx31pdk: Use the new relocation scheme

Stefano Babic sbabic at denx.de
Thu Jan 13 14:38:19 CET 2011


On 01/12/2011 01:49 PM, Fabio Estevam wrote:
> Hi,

Hi Fabio,

> 
> I am trying to make the new relocation scheme to work on the mx31pdk board.
> 
> With this patch applied the mx31pdk build works, but not able to get a U-boot prompt yet.

I have tried to imagine some issues, but I cannot find a clear reason.
Building with your patch I checked that nand_spl is still less than 2KB
code, and that matches the NAND page, as required by i.MX31 - so it is
not a problem.

Have you tried to disable the relocation, just to check if the
relocation is an issue with CONFIG_SKIP_RELOCATE_UBOOT ? This is not a
solution, but only to check what happens.

> 
> I copied the nand_spl/board/karo/tx25/u-boot.lds to the mx31pdk one.
> 
> I am not certain whether the CONFIG_SYS_TEXT_BASE should be changed or not:
> 
> ifdef CONFIG_NAND_SPL
> CONFIG_SYS_TEXT_BASE = 0x87ec0000
> else
> CONFIG_SYS_TEXT_BASE = 0x87f00000
> endif

I think they are ok - both addresses are valid RAM addresses. The
relocation will move then the code at the end of the RAM. And as I
understood from i.MX31 manual, the NFC controller does not use the IRAM
at all, so the area pointed by your starting stack pointer should not be
overwritten.

> 
> If anyone has any comments/suggestions I will appreciate it.

No great idea, really. Probably you need to attach a JTAG debugger and
see what happens.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list