remarkable-linux/arch/ppc64/boot
Olaf Hering 18c5332bc1 [PATCH] ppc64: change name of target file during make install
'make install' creates a /boot/zImage[.vmode] file when the defconfig is used.

It uses the second arg as file content, which is the vmlinux, and the 5th
arg as file name, which is the BOOTIMAGE name.

A comment in an earlier patch to install.sh states that yaboot can not load
a zImage+initrd combo.  This was true in kernel 2.6.5 because it did use
bi_recs to pass the initrd info.  But this concept was always broken.
Register r3 holds the initrd address and r4 holds the initrd size.  This
works with all kernel versions.  The current code in main.c leaves r3 and
r4 alone, so the kernel should be able to see and use the memory range with
the initrd content.

If one wants to rerun mkinitrd, it is currently hard to get the uname -r
value for the installed zImage.  Without this info, mkinitrd can not know
what modules to use.  This would be fixable by including the /proc/version
output of the new kernel.  But it is simpler to just use the plain vmlinux.

So all this patch does is to write to /boot/vmlinux instead to /boot/zImage

Signed-off-by: Olaf Hering <olh@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-10-29 15:20:27 +10:00
..
addnote.c [PATCH] ppc64: make arch/ppc64/boot standalone 2005-08-29 10:53:31 +10:00
addRamDisk.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
crt0.S [PATCH] ppc64 boot: print firmware provided stackpointer 2005-10-29 15:11:35 +10:00
div64.S [PATCH] ppc64: make arch/ppc64/boot standalone 2005-08-29 10:53:31 +10:00
elf.h [PATCH] ppc64: make arch/ppc64/boot standalone 2005-08-29 10:53:31 +10:00
install.sh [PATCH] ppc64: change name of target file during make install 2005-10-29 15:20:27 +10:00
main.c [PATCH] ppc64 boot: print firmware provided stackpointer 2005-10-29 15:11:35 +10:00
Makefile [PATCH] ppc64 boot: proof that reloc works 2005-10-29 15:11:00 +10:00
page.h [PATCH] ppc64: make arch/ppc64/boot standalone 2005-08-29 10:53:31 +10:00
ppc_asm.h [PATCH] ppc64: make arch/ppc64/boot standalone 2005-08-29 10:53:31 +10:00
prom.c [PATCH] ppc64: make arch/ppc64/boot standalone 2005-08-29 10:53:31 +10:00
prom.h [PATCH] ppc64: make arch/ppc64/boot standalone 2005-08-29 10:53:31 +10:00
README Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
stdio.h [PATCH] ppc64: make arch/ppc64/boot standalone 2005-08-29 10:53:31 +10:00
string.h [PATCH] ppc64 boot: missing include for size_t 2005-10-29 15:04:21 +10:00
string.S [PATCH] ppc64 boot: fix typo in asm comments 2005-10-29 15:07:50 +10:00
zImage.lds [PATCH] ppc64 boot: proof that reloc works 2005-10-29 15:11:00 +10: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