mirror of https://gitee.com/openkylin/linux.git
c8e3c8b21b
The zImage wrapper has a bug where it doesn't claim() the memory for the kernel properly, it forgets to take into account the offset between the ELF header and the kernel itself. This results on some machines, like G5s, into a kernel that crashes at boot when clearing the BSS. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> |
||
---|---|---|
.. | ||
Makefile | ||
README | ||
addRamDisk.c | ||
addnote.c | ||
crt0.S | ||
div64.S | ||
elf.h | ||
install.sh | ||
main.c | ||
page.h | ||
ppc_asm.h | ||
prom.c | ||
prom.h | ||
stdio.h | ||
string.S | ||
string.h | ||
zImage.lds |
README
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