mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
79c8541924
This patch rewrites prep_kernel() in the zImage wrapper code to be clearer and more flexible. Notable changes: - Handling of the initrd image from prep_kernel() has moved into a new prep_initrd() function. - The address of the initrd image is now added as device tree properties, as the kernel expects. - We only copy a packaged initrd image to a new location if it is in danger of being clobbered when the kernel moves to its final location, instead of always. - By default we decompress the kernel directly to address 0, instead of requiring it to relocate itself. Platforms (such as OF) where doing this could clobber still-live firmware data structures can override the vmlinux_alloc hook to provide an alternate place to decompress the kernel. - We no longer pass lots of information between functions in global variables. Signed-off-by: David Gibson <dwg@au1.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org> |
||
---|---|---|
.. | ||
dts | ||
.gitignore | ||
addnote.c | ||
addRamDisk.c | ||
crt0.S | ||
div64.S | ||
dummy.c | ||
elf.h | ||
flatdevtree_env.h | ||
flatdevtree_misc.c | ||
flatdevtree.c | ||
flatdevtree.h | ||
gunzip_util.c | ||
gunzip_util.h | ||
hack-coff.c | ||
install.sh | ||
io.h | ||
main.c | ||
Makefile | ||
mktree.c | ||
ns16550.c | ||
of.c | ||
ops.h | ||
page.h | ||
ppc_asm.h | ||
README | ||
rs6000.h | ||
serial.c | ||
simple_alloc.c | ||
stdio.c | ||
stdio.h | ||
string.h | ||
string.S | ||
types.h | ||
util.S | ||
wrapper | ||
zImage.coff.lds.S | ||
zImage.lds.S |
To extract the kernel vmlinux, System.map, .config or initrd from the zImage binary: objcopy -j .kernel:vmlinux -O binary zImage vmlinux.gz objcopy -j .kernel:System.map -O binary zImage System.map.gz objcopy -j .kernel:.config -O binary zImage config.gz objcopy -j .kernel:initrd -O binary zImage.initrd initrd.gz Peter