diff options
author | Thorsten Glaser <tg@mirbsd.org> | 2011-01-06 00:22:34 +0000 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-06 01:53:03 +0100 |
commit | 5bd743ad60b85f005235aac2435563b168e012e3 (patch) | |
tree | 7c4640a0f7ec94e19f9686aa4d2fb24cd08207be /mk/tools.mk | |
parent | 259ed65c86100f18cc584cc547413541534f66ff (diff) |
Add experimental code to self-relocate vmlinuz on e.g. brcm
This is needed for the following reason: our memory layout
looks like this:
| |vmlinux | |CFE| * |
| | |vmlinuz | |
^
Since CFE can only load to the spot marked with ‘^’ anyway,
we load vmlinub.elf there which is basically a big rodata
blob containing vmlinuz and minimal code moving it to the
location pointed with vmlinuz above. Another solution would
be to use CFE’s “boot -raw” to place it on the location marked
with ‘*’ above (but the CFE location and size are dynamic, and
since it insists on loading to 0x80001000 anyway, this point
is virtually moot).
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'mk/tools.mk')
0 files changed, 0 insertions, 0 deletions