
24 Sep
2010
24 Sep
'10
6:08 p.m.
I think I have found the root cause of your issue.
I was actually lucky that it worked at all for me; and as Heiko's board skipped relocation, it would not trigger the bug either... My computing of r9/r10 in the relocate_code stage was plain wrong, based on the FLASH execution location, not the RAM one. :/
I'll post a V2 patch set within the next hour -- Heiko, this second patchset has your fixes except I mouved the r9/r10 recomputation inside the #ifndef CONFIG_SKIP_RELOCATE_UBOOT, the logic being that if we can skip relocation, then we are already running at the right location and we don't need fixing the pic base either.
Ben and Heiko, please (re-)test the patch when it's out -- sorry for the extra workload.
Amicalement,
--
Albert.