linux/arch/powerpc/boot
Oliver O'Halloran 656ad58ef1 powerpc/boot: Add OPAL console to epapr wrappers
This patch adds an OPAL console backend to the powerpc boot wrapper so
that decompression failures inside the wrapper can be reported to the
user. This is important since it typically indicates data corruption in
the firmware and other nasty things.

Currently this only works when building a little endian kernel. When
compiling a 64 bit BE kernel the wrapper is always build 32 bit to be
compatible with some 32 bit firmwares. BE support will be added at a
later date. Another limitation of this is that only the "raw" type of
OPAL console is supported, however machines that provide a hvsi console
also provide a raw console so this is not an issue in practice.

Actually-written-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
[mpe: Move #ifdef __powerpc64__ to avoid warnings on 32-bit]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-07-05 23:58:54 +10:00
..
dts Merge branch 'for-4.7-dw' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata 2016-05-23 18:19:21 -07:00
.gitignore
4xx.c
4xx.h
44x.h
addnote.c
bamboo.c
cpm-serial.c
crt0.S powerpc/boot: don't clobber r6 and r7 in epapr boot 2015-03-16 18:58:35 +11:00
crtsavres.S
cuboot-8xx.c
cuboot-52xx.c
cuboot-83xx.c
cuboot-85xx-cpm2.c
cuboot-85xx.c
cuboot-824x.c
cuboot-acadia.c
cuboot-amigaone.c
cuboot-bamboo.c
cuboot-c2k.c
cuboot-ebony.c
cuboot-hotfoot.c
cuboot-katmai.c
cuboot-kilauea.c
cuboot-mpc7448hpc2.c
cuboot-pq2.c
cuboot-rainier.c
cuboot-sam440ep.c
cuboot-sequoia.c
cuboot-taishan.c
cuboot-warp.c
cuboot-yosemite.c
cuboot.c
cuboot.h
dcr.h
devtree.c
div64.S
dummy.c
ebony.c
elf.h
elf_util.c
ep88xc.c
ep405.c
ep8248e.c
epapr-wrapper.c
epapr.c
fixed-head.S
fsl-soc.c
fsl-soc.h
gamecube-head.S
gamecube.c
gunzip_util.c
gunzip_util.h
hack-coff.c
holly.c
install.sh
io.h
libfdt-wrapper.c powerpc/boot/fdt: Use unsigned long for pointer casts 2015-03-16 18:58:30 +11:00
libfdt_env.h libfdt: add fdt type definitions 2015-04-29 17:17:17 -05:00
main.c powerpc/boot: Parse chosen/cmdline-timeout parameter 2014-11-10 09:59:30 +11:00
Makefile powerpc/boot: Add OPAL console to epapr wrappers 2016-07-05 23:58:54 +10:00
mktree.c
mpc8xx.c
mpc8xx.h
mpc52xx-psc.c
mpsc.c
mv64x60.c
mv64x60.h
mv64x60_i2c.c
mvme5100.c
ns16550.c
of.c
of.h libfdt: add fdt type definitions 2015-04-29 17:17:17 -05:00
ofconsole.c
oflib.c
opal-calls.S powerpc/boot: Add OPAL console to epapr wrappers 2016-07-05 23:58:54 +10:00
opal.c powerpc/boot: Add OPAL console to epapr wrappers 2016-07-05 23:58:54 +10:00
ops.h powerpc/boot: Add OPAL console to epapr wrappers 2016-07-05 23:58:54 +10:00
page.h powerpc: Fix _ALIGN_* errors due to type difference. 2015-10-09 08:02:25 +11:00
planetcore.c powerpc/boot: drop planetcore_set_serial_speed 2015-03-16 18:50:17 +11:00
planetcore.h powerpc/boot: drop planetcore_set_serial_speed 2015-03-16 18:50:17 +11:00
ppc_asm.h powerpc/boot: Add OPAL console to epapr wrappers 2016-07-05 23:58:54 +10:00
ppcboot-hotfoot.h
ppcboot.h
pq2.c
pq2.h
ps3-head.S
ps3-hvcall.S
ps3.c
pseries-head.S
README
redboot-8xx.c
redboot-83xx.c
redboot.h
reg.h
rs6000.h powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
serial.c powerpc/boot: Add OPAL console to epapr wrappers 2016-07-05 23:58:54 +10:00
simple_alloc.c
simpleboot.c
stdio.c
stdio.h
stdlib.c
stdlib.h
string.h
string.S
swab.h
treeboot-akebono.c powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
treeboot-bamboo.c
treeboot-currituck.c powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
treeboot-ebony.c
treeboot-iss4xx.c powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
treeboot-walnut.c
types.h powerpc/boot: Add OPAL console to epapr wrappers 2016-07-05 23:58:54 +10:00
uartlite.c
ugecon.c
ugecon.h
util.S
virtex.c
virtex405-head.S
wii-head.S
wii.c
wrapper powerpc/boot: allow wrapper to work on non-english system 2015-11-26 22:11:16 +11:00
zImage.coff.lds.S
zImage.lds.S
zImage.ps3.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