kernel-ark/arch/powerpc/boot
David Gibson 3af82a8b00 [POWERPC] Clean up zImage handling of the command line
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>
2007-04-13 03:55:14 +10:00
..
dts [POWERPC] 85xx: Add initial MPC8544 DS platform files. 2007-03-29 19:39:27 -05:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
addnote.c
addRamDisk.c
crt0.S [POWERPC] New reg.h for the zImage 2007-03-26 15:11:20 +10:00
devtree.c [POWERPC] Add device tree utility functions to zImage 2007-04-13 03:55:14 +10:00
div64.S
dummy.c
elf.h
flatdevtree_env.h
flatdevtree_misc.c [POWERPC] bootwrapper: Add dt_ops methods. 2007-03-21 22:35:21 +11:00
flatdevtree.c [POWERPC] bootwrapper: Make ft_create_node() pay attention to the parent parameter. 2007-03-16 15:49:15 +11:00
flatdevtree.h [POWERPC] bootwrapper: Make ft_create_node() pay attention to the parent parameter. 2007-03-16 15:49:15 +11:00
gunzip_util.c [POWERPC] bootwrapper: Add a fatal error helper 2007-03-26 15:11:20 +10:00
gunzip_util.h [POWERPC] Add documentation for the zImage's gunzip convenience functions 2007-03-16 16:38:19 +11:00
hack-coff.c
install.sh
io.h
main.c [POWERPC] Clean up zImage handling of the command line 2007-04-13 03:55:14 +10:00
Makefile [POWERPC] Add device tree utility functions to zImage 2007-04-13 03:55:14 +10:00
mktree.c
ns16550.c
of.c [POWERPC] bootwrapper: Add a fatal error helper 2007-03-26 15:11:20 +10:00
ops.h [POWERPC] Clean up zImage handling of the command line 2007-04-13 03:55:14 +10:00
page.h
ppc_asm.h
README
reg.h [POWERPC] New reg.h for the zImage 2007-03-26 15:11:20 +10:00
rs6000.h
serial.c
simple_alloc.c
stdio.c
stdio.h [POWERPC] Add gcc format warnings to zImage printf() 2007-03-26 15:11:20 +10:00
string.h
string.S
types.h
util.S
wrapper [POWERPC] bootwrapper: Make compression of the kernel image optional. 2007-03-21 22:35:21 +11:00
zImage.coff.lds.S [POWERPC] zImage: Cleanup and improve zImage entry point 2007-03-13 13:35:03 +11:00
zImage.lds.S [POWERPC] zImage: Cleanup and improve zImage entry point 2007-03-13 13:35:03 +11:00

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