android_kernel_xiaomi_sm8350/arch/ppc64/boot
Olaf Hering 8a76baf020 [PATCH] ppc64 boot: remove need for imagesize.c
Compute the vmlinux size at runtime.

Use Z_FULL_FLUSH instead of Z_FINISH, to extract only the ELF header
and ELF program header.

 ->p_memsz is the required memory range for the executable, including bss
 ->p_filesz is the size of .text, .data and other runtime sections

These values must be used for the claim call.
All additional memory needed by the kernel is claimed in prom_init, remove
the extra Mb.

Pass the full memsize as target area to gunzip, otherwise not everything
will be uncompressed.

flush_cache has to flush all runtime sections, do not reduce the memrange
by the ->p_offset value because its just that: an offset.

Remove the Makefile code to produce an imagesize.c, its not needed anymore.
Remove all FORCE flags, to not rebuild the zImage if vmlinux was not changed.

Signed-off-by: Olaf Hering <olh@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-10-29 15:05:10 +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: make arch/ppc64/boot standalone 2005-08-29 10:53:31 +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] use ${CROSS_COMPILE}installkernel in arch/*/boot/install.sh 2005-06-23 09:45:07 -07:00
main.c [PATCH] ppc64 boot: remove need for imagesize.c 2005-10-29 15:05:10 +10:00
Makefile [PATCH] ppc64 boot: remove need for imagesize.c 2005-10-29 15:05:10 +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: make arch/ppc64/boot standalone 2005-08-29 10:53:31 +10:00
zImage.lds Linux-2.6.12-rc2 2005-04-16 15:20:36 -07: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