Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 753e9317a5501ade1c44fd6ea0abb2c809a0c76c
- Author: Christian Lamparter <chunkeey@gmail.com>
- Date: Sun Feb 24 22:05:28 2019 +0100
- mpc85xx: enable HAVE_KERNEL_XZ to allow lzma/xz'd zImages
- The HiveAP's 330 initramfs image failes to boot due to an
- gunzip extraction error:
- |## Booting kernel from Legacy Image at 05000000 ...
- | Image Name: Linux-4.19.24
- | Created: 2019-02-23 1:58:20 UTC
- | Image Type: PowerPC Linux Kernel Image (gzip compressed)
- | Data Size: 6752470 Bytes = 6.4 MB
- | Load Address: 00000000
- | Entry Point: 00000000
- | Verifying Checksum ... OK
- |## Flattened Device Tree blob at 01000000
- | Booting using the fdt blob at 0x1000000
- | Uncompressing Kernel Image ... Error: inflate() returned -5
- |GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover
- | Loading Device Tree to 00ffa000, end 00fffc78 ... OK
- |ft_fixup_l2cache: FDT_ERR_NOTFOUND
- The HiveAP 330 already uses a (gzip) zImage so the compressing
- it again with gzip is not necessary.
- Reported-by: Chris Blake <chrisrblake93@gmail.com>
- Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
- diff --git a/target/linux/generic/hack-4.14/302-powerpc-Enable-kernel-XZ-compression-option-on-BOOK3.patch b/target/linux/generic/hack-4.14/302-powerpc-Enable-kernel-XZ-compression-option-on-BOOK3.patch
- new file mode 100644
- index 0000000000..3897ba9983
- --- /dev/null
- +++ b/target/linux/generic/hack-4.14/302-powerpc-Enable-kernel-XZ-compression-option-on-BOOK3.patch
- @@ -0,0 +1,37 @@
- +From 26064848efbca49c643d1237dc1f8215515d52ee Mon Sep 17 00:00:00 2001
- +From: Aaro Koskinen <aaro.koskinen@iki.fi>
- +Date: Tue, 19 Jun 2018 23:52:30 +0300
- +Subject: [PATCH] powerpc: Enable kernel XZ compression option on BOOK3S_32
- +
- +Enable kernel XZ compression option on BOOK3S_32. Tested on G4
- +PowerBook.
- +
- +Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
- +[mpe: Use one select under the PPC symbol guarded by if PPC_BOOK3S]
- +Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
- +[added PPC_85xx too]
- +---
- +
- +--- a/arch/powerpc/Kconfig
- ++++ b/arch/powerpc/Kconfig
- +@@ -199,6 +199,7 @@ config PPC
- + select HAVE_IOREMAP_PROT
- + select HAVE_IRQ_EXIT_ON_IRQ_STACK
- + select HAVE_KERNEL_GZIP
- ++ select HAVE_KERNEL_XZ if PPC_BOOK3S || PPC_85xx
- + select HAVE_KPROBES
- + select HAVE_KPROBES_ON_FTRACE
- + select HAVE_KRETPROBES
- +--- a/arch/powerpc/platforms/Kconfig.cputype
- ++++ b/arch/powerpc/platforms/Kconfig.cputype
- +@@ -75,7 +75,6 @@ config PPC_BOOK3S_64
- + select HAVE_ARCH_TRANSPARENT_HUGEPAGE
- + select ARCH_SUPPORTS_NUMA_BALANCING
- + select IRQ_WORK
- +- select HAVE_KERNEL_XZ
- +
- + config PPC_BOOK3E_64
- + bool "Embedded processors"
- +--
- +2.20.1
- +
- diff --git a/target/linux/generic/hack-4.19/302-powerpc-Enable-kernel-XZ-compression-option-on-BOOK3.patch b/target/linux/generic/hack-4.19/302-powerpc-Enable-kernel-XZ-compression-option-on-BOOK3.patch
- new file mode 100644
- index 0000000000..0014e8f939
- --- /dev/null
- +++ b/target/linux/generic/hack-4.19/302-powerpc-Enable-kernel-XZ-compression-option-on-BOOK3.patch
- @@ -0,0 +1,28 @@
- +From 26064848efbca49c643d1237dc1f8215515d52ee Mon Sep 17 00:00:00 2001
- +From: Aaro Koskinen <aaro.koskinen@iki.fi>
- +Date: Tue, 19 Jun 2018 23:52:30 +0300
- +Subject: [PATCH] powerpc: Enable kernel XZ compression option on BOOK3S_32
- +
- +Enable kernel XZ compression option on BOOK3S_32. Tested on G4
- +PowerBook.
- +
- +Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
- +[mpe: Use one select under the PPC symbol guarded by if PPC_BOOK3S]
- +Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
- +[added PPC_85xx too]
- +---
- +
- +--- a/arch/powerpc/Kconfig
- ++++ b/arch/powerpc/Kconfig
- +@@ -199,7 +199,7 @@ config PPC
- + select HAVE_IOREMAP_PROT
- + select HAVE_IRQ_EXIT_ON_IRQ_STACK
- + select HAVE_KERNEL_GZIP
- +- select HAVE_KERNEL_XZ if PPC_BOOK3S
- ++ select HAVE_KERNEL_XZ if PPC_BOOK3S || PPC_85xx
- + select HAVE_KPROBES
- + select HAVE_KPROBES_ON_FTRACE
- + select HAVE_KRETPROBES
- +--
- +2.20.1
- +
- diff --git a/target/linux/mpc85xx/config-4.14 b/target/linux/mpc85xx/config-4.14
- index f057e5c910..5bd6503186 100644
- --- a/target/linux/mpc85xx/config-4.14
- +++ b/target/linux/mpc85xx/config-4.14
- @@ -183,7 +183,6 @@ CONFIG_IRQ_DOMAIN=y
- CONFIG_IRQ_FORCED_THREADING=y
- CONFIG_IRQ_WORK=y
- CONFIG_ISA_DMA_API=y
- -CONFIG_KERNEL_GZIP=y
- CONFIG_KERNEL_START=0xc0000000
- # CONFIG_KSI8560 is not set
- CONFIG_LEGACY_PTYS=y
- diff --git a/target/linux/mpc85xx/config-4.19 b/target/linux/mpc85xx/config-4.19
- index c92edcfa37..bbe50a8903 100644
- --- a/target/linux/mpc85xx/config-4.19
- +++ b/target/linux/mpc85xx/config-4.19
- @@ -170,7 +170,6 @@ CONFIG_IRQ_DOMAIN=y
- CONFIG_IRQ_FORCED_THREADING=y
- CONFIG_IRQ_WORK=y
- CONFIG_ISA_DMA_API=y
- -CONFIG_KERNEL_GZIP=y
- CONFIG_KERNEL_START=0xc0000000
- # CONFIG_KSI8560 is not set
- CONFIG_LEGACY_PTYS=y
- diff --git a/target/linux/mpc85xx/image/Makefile b/target/linux/mpc85xx/image/Makefile
- index afb2b78c1b..bcea7f2330 100644
- --- a/target/linux/mpc85xx/image/Makefile
- +++ b/target/linux/mpc85xx/image/Makefile
- @@ -78,6 +78,7 @@ define Device/hiveap-330
- DEVICE_TITLE := Aerohive HiveAP-330
- DEVICE_PACKAGES := kmod-ath9k wpad-basic kmod-tpm-i2c-atmel
- BLOCKSIZE := 128k
- + KERNEL := kernel-bin | uImage none
- KERNEL_NAME := zImage
- KERNEL_SIZE := 8m
- SUPPORTED_DEVICES := aerohive,hiveap-330
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement