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

Fabio Estevam fabio.estevam at freescale.com
Fri Jan 14 19:33:58 CET 2011


Hi Stefano,

On 1/13/2011 11:38 AM, Stefano Babic wrote:
> 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.

Yes, I tried to disable relocation and U-boot still fails to boot.
 
>>
>> 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.

Yes, I am setting up a OpenOCD JTAG here to debug this.

Thanks,

Fabio Estevam





More information about the U-Boot mailing list