linux-stable-rt/arch/powerpc/boot
David Gibson f79e083c2f [POWERPC] Small clarification of initrd handling
This patch makes the handling of the initrd (or initramfs) in the
zImage wrapper a little easier to follow.  Instead of passing the
initrd addresses out from prep_kernel() via the cryptic a1 and a2
parameters, use the global struct add_range, 'initrd'.  prep_kernel()
already passes information through the 'vmlinux' addr_range struct, so
this seems like a reasonable extension.

Some comments also clarify the logic with prep_kernel(): we use an
initrd included in the zImage if present, otherwise we use an initrd
passed in by the bootloader in the a1 and a2 parameters (yaboot, at
least, uses this mechanism to pass an initrd).

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-12-04 20:39:32 +11:00
..
dts [POWERPC] Make pci_read_irq_line the default on mpc7448hpc2 board 2006-12-04 20:39:27 +11:00
.gitignore [PATCH] Make git ignore new wrapper generated files 2006-11-13 14:49:22 +11:00
Makefile Merge branch 'linux-2.6' into for-linus 2006-12-04 15:59:07 +11:00
README
addRamDisk.c
addnote.c
crt0.S
div64.S
dummy.c
elf.h
flatdevtree.c [POWERPC] Add flatdevtree source 2006-10-23 12:49:18 +10:00
flatdevtree.h [POWERPC] Add flatdevtree source 2006-10-23 12:49:18 +10:00
flatdevtree_env.h [POWERPC] Add flatdevtree source 2006-10-23 12:49:18 +10:00
flatdevtree_misc.c [POWERPC] Add flatdevtree source 2006-10-23 12:49:18 +10:00
hack-coff.c
install.sh
io.h [POWERPC] Add non-OF serial console support 2006-10-23 12:49:19 +10:00
main.c [POWERPC] Small clarification of initrd handling 2006-12-04 20:39:32 +11:00
mktree.c [POWERPC] Add mktree utility to arch/powerpc/boot 2006-10-24 15:01:27 +10:00
ns16550.c [POWERPC] Add non-OF serial console support 2006-10-23 12:49:19 +10:00
of.c [POWERPC] More bootwrapper reorganization 2006-10-18 15:50:18 +10:00
ops.h [POWERPC] More bootwrapper reorganization 2006-10-18 15:50:18 +10:00
page.h
ppc_asm.h
rs6000.h
serial.c [POWERPC] Add non-OF serial console support 2006-10-23 12:49:19 +10:00
simple_alloc.c [POWERPC] Add simple memory allocator to bootwrapper 2006-10-23 12:49:19 +10:00
stdio.c [POWERPC] More bootwrapper reorganization 2006-10-18 15:50:18 +10:00
stdio.h
string.S
string.h
types.h
util.S [POWERPC] Add non-OF serial console support 2006-10-23 12:49:19 +10:00
wrapper [PATCH] Remove dtb file created by wrapper script 2006-11-13 14:48:58 +11:00
zImage.coff.lds.S [POWERPC] More bootwrapper reorganization 2006-10-18 15:50:18 +10:00
zImage.lds.S [POWERPC] Make sure initrd and dtb sections get into zImage correctly 2006-11-09 16:00:06 +11:00

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