Skip to contentSkip to conversation

ARM: add missing HAVE_KERNEL_GZIP

PATCH New Guennadi Liakhovetski 3 participants 4 messages Sep 28, 2009 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: add missing HAVE_KERNEL_GZIP

Kernel fails to uncompress itself and boot without this patch.

---

No idea if this is the correct or even needed fix. I did observe a failure to boot with a post 2.6.31 kernel about two weeks ago without this patch (from u-boot), but it might well have become irrelevant by now.

arch/arm/Kconfig +1 -0
index aef63c8..fca630e 100644
@@ -18,6 +18,7 @@ config ARM
 	select HAVE_KRETPROBES if (HAVE_KPROBES)
 	select HAVE_FUNCTION_TRACER if (!XIP_KERNEL)
 	select HAVE_GENERIC_DMA_COHERENT
+	select HAVE_KERNEL_GZIP
 	help
 	  The ARM series is a line of low-power-consumption RISC chip designs
 	  licensed by ARM Ltd and targeted at embedded applications and
#1 lore raw

PATCH 1/1 ARM: add missing HAVE_KERNEL_GZIP

Hi Guennadi,

Quoted 1 line · Guennadi Liakhovetski

Kernel fails to uncompress itself and boot without this patch.

I have no problem booting yesterday's linus/master without that change.

What is the exact problem you see?

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                              | Uwe Kleine-K?nig            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |
#2 lore raw

PATCH 1/1 ARM: add missing HAVE_KERNEL_GZIP

Quoted 7 lines · Uwe Kleine-K?nig

Hi Guennadi,

Quoted 1 line · Guennadi Liakhovetski

Kernel fails to uncompress itself and boot without this patch.

I have no problem booting yesterday's linus/master without that change.

What is the exact problem you see?

Don't remember the error message exactly - something like "cannot uncompress" or "missing decompressor"... Observed on a i.MX31 system, although, if the problem were real, it probably would be present on all ARMs - none defines any of those decompressors. Will have to double-check then.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#3 lore raw

PATCH 1/1 ARM: add missing HAVE_KERNEL_GZIP

Quoted 8 lines · Somebody in the thread at some point
Quoted 6 lines · Uwe Kleine-K?nig

Hi Guennadi,

Quoted 1 line · Guennadi Liakhovetski

Kernel fails to uncompress itself and boot without this patch.

I have no problem booting yesterday's linus/master without that change.

Quoted 7 lines
Quoted 1 line

What is the exact problem you see?

Don't remember the error message exactly - something like "cannot uncompress" or "missing decompressor"... Observed on a i.MX31 system, although, if the problem were real, it probably would be present on all ARMs - none defines any of those decompressors. Will have to double-check then.

Just a comment on this, I run on an iMX device with an uncompressed kernel for a nice decrease in early boot time. The kernel comes in at 3MB uncompressed and the Qi bootloader I used pulls that in around half a second from uSD.

I use gzip for something else as it happens, but in the uncompressed case, boot is not dependent on gzip in the kernel.

-Andy