3af82a8b00
This cleans up how the zImage code manipulates the kernel command line. Notable improvements from the old handling: - Command line manipulation is consolidated into a new prep_cmdline() function, rather than being scattered across start() and some helper functions - Less stack space use: we use just a single global command line buffer, which can be initialized by an external tool as before, we no longer need another command line sized buffer on the stack. - Easier to support platforms whose firmware passes a commandline, but not a device tree. Platform code can now point new loader_info fields to the firmware's command line, rather than having to do early manipulation of the /chosen bootargs property which may then be rewritten again by the core. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org> |
||
---|---|---|
.. | ||
dts | ||
.gitignore | ||
addnote.c | ||
addRamDisk.c | ||
crt0.S | ||
devtree.c | ||
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 | ||
reg.h | ||
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