[PATCH 0/7] Re-organize linker layouts
Stephen Boyd
sboyd at codeaurora.org
Mon Jul 11 16:17:27 EDT 2011
On 7/8/2011 11:24 AM, Nicolas Pitre wrote:
> On Fri, 8 Jul 2011, Stephen Boyd wrote:
>> Why can't this work via atags (or DT for that matter)? atags have always
>> said where ram starts and we should be able to write some code that
>> parses the atags/DT and figures out the final resting place of the
>> decompressed image.
> Possibly. But that would be an MSM special case.
>
Hmm. I thought ST-Erricson folks had something similar.
Anyway, maybe we've been going about this the wrong way. Couldn't we
just make TEXT_OFFSET be 0x00208000 and then make sure to remove the
first 2MB of memory in a machine->reserve() routine if we're MSM?
Something like PHYS_OFFSET=0xN0000000 and TEXT_OFFSET=0x00208000 so that
our text ends up at the right place (0xN0208000) and AUTO_ZRELADDR will
be happy. This seems to work as long as I fixup the atags to say memory
starts at 0xN000000 instead of 0xN0200000.
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
More information about the linux-arm-kernel
mailing list