kernel-ark/arch/powerpc/boot
mostrows@watson.ibm.com 30d8caf7c6 [POWERPC] Editable kernel command-line in zImage binary.
zImage will set /chosen/bootargs (if it is otherwise empty) with the
contents of a buffer in the section "__builtin_cmdline".  This permits
tools to edit zImage binaries to set the command-line eventually
processed by vmlinux.

--
Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-06-15 19:31:25 +10:00
..
.gitignore
addnote.c
addRamDisk.c
crt0.S
div64.S
dummy.c
elf.h
hack-coff.c
install.sh
main.c
Makefile
page.h
ppc_asm.h
prom.c
prom.h
README
rs6000.h
stdio.c
stdio.h
string.h
string.S
zImage.coff.lds
zImage.lds

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