Re: Status of bzip2 and lzma kernel compression for ARM?

2009-07-13 Thread Albin Tonnerre
On Fri, Jul 03, 2009 at 05:43:27PM +0200, Albin Tonnerre wrote : However, it now hangs right after the 'done, booting the kernel.' After some further work, here's an updated patch that works properly on ARM, at least for gzip and lzma (I'm getting an 'out of memory' error with bzip2

[PATCH 2/5] include/linux/unaligned/{l,b}e_byteshift.h: Fix usage for compressed kernels

2009-07-22 Thread Albin Tonnerre
nothing from linux/kernel.h, all they need is the declaration of types such as u32 or u64, so linux/types.h should be enough Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- include/linux/unaligned/be_byteshift.h |2 +- include/linux/unaligned/le_byteshift.h |2 +- 2 files

[PATCH 3/5] Add support for LZO-compressed kernels

2009-07-22 Thread Albin Tonnerre
lzo1x_decompress, as it only extracts one block at a time, while we need to extract a whole file here - config dialog for kernel compression Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- include/linux/decompress/unlzo.h | 10 +++ init/Kconfig | 18

[PATCH 4/5] Add support for LZO-compressed kernels for ARM

2009-07-22 Thread Albin Tonnerre
- Kconfig support Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- arch/arm/Kconfig |2 + arch/arm/boot/compressed/Makefile | 16 +++-- arch/arm/boot/compressed/misc.c | 110 arch/arm/boot/compressed/piggy.S

Re: [PATCH 4/5] Add support for LZO-compressed kernels for ARM

2009-07-23 Thread Albin Tonnerre
On Wed, Jul 22, 2009 at 04:01:18PM +0200, Albin Tonnerre wrote : This is the second part of patch. This part includes: - changes to ach/arch/boot/Makefile to make it easier to add new compression types - new piggy.lzo.S necessary for lzo compression - changes in arch/arm/boot/compressed

[PATCH 3/5 v2] Add support for LZO-compressed kernels

2009-07-29 Thread Albin Tonnerre
lzo1x_decompress, as it only extracts one block at a time, while we need to extract a whole file here - config dialog for kernel compression Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- Changelog since v1: lib/decompress_unlzo.c - Rename lzo_decompress to unlzo to match

[PATCH] Add LZO compression support for initramfs and old-style initrd

2009-07-29 Thread Albin Tonnerre
Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- lib/Kconfig |4 lib/Makefile |1 + lib/decompress.c |5 + usr/Kconfig | 25 - 4 files changed, 30 insertions(+), 5 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig

Re: [PATCH 5/5] Add support for LZO-compressed kernels on x86

2009-07-31 Thread Albin Tonnerre
On Wed, Jul 29, 2009 at 11:02:58PM +0200, Sam Ravnborg wrote : On Wed, Jul 29, 2009 at 01:00:36PM -0700, H. Peter Anvin wrote: On 07/22/2009 07:01 AM, Albin Tonnerre wrote: This is the third and last part of the patch, which contains the necessary changes to the x86 Kconfig and boot

[PATCH 1/6] lib/decompress_*: only include linux/slab.h if STATIC is not defined

2009-08-03 Thread Albin Tonnerre
it if STATIC is defined. Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- lib/decompress_bunzip2.c |2 +- lib/decompress_inflate.c |2 +- lib/decompress_unlzma.c |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/decompress_bunzip2.c b/lib

[PATCH 2/6] include/linux/unaligned/{l,b}e_byteshift.h: Fix usage for compressed kernels

2009-08-03 Thread Albin Tonnerre
nothing from linux/kernel.h, all they need is the declaration of types such as u32 or u64, so linux/types.h should be enough Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- include/linux/unaligned/be_byteshift.h |2 +- include/linux/unaligned/le_byteshift.h |2 +- 2 files

[PATCH 4/6] Add support for LZO-compressed kernels for ARM

2009-08-03 Thread Albin Tonnerre
- Kconfig support Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- arch/arm/Kconfig |2 + arch/arm/boot/compressed/Makefile | 16 +++-- arch/arm/boot/compressed/misc.c | 110 arch/arm/boot/compressed/piggy.S

[PATCH 6/6] Add LZO compression support for initramfs and old-style initrd

2009-08-03 Thread Albin Tonnerre
Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- lib/Kconfig |4 lib/Makefile |1 + lib/decompress.c |5 + usr/Kconfig | 25 - 4 files changed, 30 insertions(+), 5 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig

Re: [PATCH 6/6] Add LZO compression support for initramfs and old-style initrd

2009-08-03 Thread Albin Tonnerre
Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- Updated with a missing part of the description for INITRAMFS_COMPRESSION_LZO lib/Kconfig |4 lib/Makefile |1 + lib/decompress.c |5 + usr/Kconfig | 26 +- 4 files

Re: [PATCH 3/6] Add support for LZO-compressed kernels

2009-08-05 Thread Albin Tonnerre
On Tue, Aug 04, 2009 at 04:00:43PM -0700, Andrew Morton wrote : On Mon, 3 Aug 2009 16:58:18 +0200 Albin Tonnerre albin.tonne...@free-electrons.com wrote: This is the first part of the lzo patch The lzo compressor is worse than gzip at compression, but faster at extraction. Here are some

Re: [PATCH 2/6] include/linux/unaligned/{l,b}e_byteshift.h: Fix usage for compressed kernels

2009-08-05 Thread Albin Tonnerre
On Tue, Aug 04, 2009 at 03:55:50PM -0700, Andrew Morton wrote : On Mon, 3 Aug 2009 16:58:17 +0200 Albin Tonnerre albin.tonne...@free-electrons.com wrote: When unaligned accesses are required for uncompressing a kernel (such as for LZO decompression on ARM in a patch that follows

Re: [PATCH 4/6] Add support for LZO-compressed kernels for ARM

2009-08-07 Thread Albin Tonnerre
On Thu, Aug 06, 2009 at 11:40:55PM +0100, Russell King - ARM Linux wrote : On Mon, Aug 03, 2009 at 04:58:19PM +0200, Albin Tonnerre wrote: This is the second part of patch. This part includes: - changes to ach/arch/boot/Makefile to make it easier to add new compression types - new

Re: [PATCH 4/6] Add support for LZO-compressed kernels for ARM

2009-08-07 Thread Albin Tonnerre
On Fri, Aug 07, 2009 at 11:36:56AM +0200, Alain Knaff wrote : On 08/07/09 11:24, Albin Tonnerre wrote: On Thu, Aug 06, 2009 at 11:40:55PM +0100, Russell King - ARM Linux wrote : On Mon, Aug 03, 2009 at 04:58:19PM +0200, Albin Tonnerre wrote: This is the second part of patch. This part

Re: [PATCH 4/6] Add support for LZO-compressed kernels for ARM

2009-08-07 Thread Albin Tonnerre
On Fri, Aug 07, 2009 at 03:27:00PM +0200, Matthieu CASTET wrote : Albin Tonnerre a écrit : On Fri, Aug 07, 2009 at 01:50:03PM +0200, Matthieu CASTET wrote : Albin Tonnerre a écrit : On Fri, Aug 07, 2009 at 11:36:56AM +0200, Alain Knaff wrote : On 08/07/09 11:24, Albin Tonnerre wrote

Re: [PATCH 4/6] Add support for LZO-compressed kernels for ARM

2009-08-11 Thread Albin Tonnerre
/boot/compressed/vmlinux] Error 1 make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2 I've got no idea where this symbol is defined, though. Has anyone an idea on this ? Regards, -- Albin Tonnerre, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support

Re: [PATCH 4/6] Add support for LZO-compressed kernels for ARM

2009-08-11 Thread Albin Tonnerre
On Tue, Aug 11, 2009 at 09:03:14AM -0700, H. Peter Anvin wrote : On 08/11/2009 02:44 AM, Albin Tonnerre wrote: Hi Sam, On Fri, Aug 07, 2009 at 11:08:16PM +0200, Sam Ravnborg wrote : We could add libgcc as a prerequisite. Untested patch below. When compiling with this patch applied

Re: [PATCH 4/6] Add support for LZO-compressed kernels for ARM

2009-08-13 Thread Albin Tonnerre
On Thu, Aug 06, 2009 at 11:40:55PM +0100, Russell King - ARM Linux wrote : On Mon, Aug 03, 2009 at 04:58:19PM +0200, Albin Tonnerre wrote: This is the second part of patch. This part includes: - changes to ach/arch/boot/Makefile to make it easier to add new compression types - new

[PATCH 4/6 v2] Add support for LZO-compressed kernels for ARM

2009-08-14 Thread Albin Tonnerre
- Kconfig support Signed-off-by: Albin Tonnerre albin.tonne...@free-electrons.com --- Changes: Compiling with -Os failed due to missing __aeabi_uidivmod. Link using arch/arm/lib/lib1funcs.o which provides this symbol, and define a dummy __div0 function in arch/arm/boot/compressed/misc.c