Skip to contentSkip to conversation

powerpc: Enable kernel XZ compression option on 44x

PATCH Applied Christian Lamparter 2 participants 3 messages Jan 31, 2019 – Feb 8, 2019 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Enable kernel XZ compression option on 44x

Enable kernel XZ compression option on 44x. Tested on a Western Digital - MyBook Live NAS. It takes 22 seconds for the 800 MHz CPU to decompress and boot a 2.63 MiB XZ-compressed kernel simpleImage.

---
 arch/powerpc/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/Kconfig +1 -1
index 2890d36eb531..58b6ad3555e0 100644
@@ -201,7 +201,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 || 44x
 	select HAVE_KPROBES
 	select HAVE_KPROBES_ON_FTRACE
 	select HAVE_KRETPROBES
Signature · 1 line
2.20.1
#2 lore raw
Quoted 6 lines · CET Michael Ellerman
Quoted 5 lines · Christian Lamparter

Enable kernel XZ compression option on 44x. Tested on a Western Digital - MyBook Live NAS. It takes 22 seconds for the 800 MHz CPU to decompress and boot a 2.63 MiB XZ-compressed kernel simpleImage.

Quoted 8 lines
Quoted 1 line

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/423bfc69d7f491c47fc35921f7d460be

cheers

Hello,

I'm happy to report that a xz compressed kernel (as simpleImage) also booted on a TP-Link WDR4900-v1 (Freescale P1014):
<https://github.com/openwrt/openwrt/pull/1773#issuecomment-461082045>

Hence, I'm inclined to also add PPC_85xx to list in /arch/powerpc/KConfig

|select HAVE_KERNEL_XZ if PPC_BOOK3S || 44x || PPC_85xx

But on the other hand, it could very well be that more or all? PPC would benifit from having HAVE_KERNEL_XZ available. What do you think? (If you know of any interesting ARCHs, I could ask around too.)

Regards,
Christian