Re: [PATCH V2 6/8] lzma: Make lzma available to non initramfs/initrd code

2010-01-06 Thread Albin Tonnerre
ing. And I > didn't get down and work what the appropriate fix is, and I don't want > to break linux-next in serious ways. > > > So what to do? I guess I could go ahead with the mainline merge, and > Stephen drops from linux-next until it has > been fixed up?

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

2009-09-04 Thread Albin Tonnerre
On Fri, Aug 14, 2009 at 12:08:28PM +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 i

[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 --- 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, as this symbol is required by lib1funcs

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 > >

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

2009-08-13 Thread Albin Tonnerre
On Tue, Aug 11, 2009 at 09:31:25AM -0700, H. Peter Anvin wrote : > On 08/11/2009 09:27 AM, Albin Tonnerre wrote: > > > > So I guess the only options left are either define a dummy raise() > > function, or > > get rid of the divisions like Alain Knaff did in his patch

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 pa

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

2009-08-11 Thread Albin Tonnerre
On Tue, Aug 11, 2009 at 03:39:43PM +0200, Sam Ravnborg wrote : > On Tue, Aug 11, 2009 at 11:44:18AM +0200, Albin Tonnerre wrote: > > Hi Sam, > > > > On Fri, Aug 07, 2009 at 11:08:16PM +0200, Sam Ravnborg wrote : > > > We could add libgcc as a prerequisi

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

2009-08-11 Thread Albin Tonnerre
]: *** [arch/arm/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,

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 : &

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

2009-08-07 Thread Albin Tonnerre
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: > >>> Regards, > >> Could it be that the pa

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

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 > >

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 wrote: > > When unaligned accesses are required for uncompressing a kernel (such as > > for LZO decompression on ARM in a patch that follows), including > &

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 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 6/6] Add LZO compression support for initramfs and old-style initrd

2009-08-03 Thread Albin Tonnerre
Signed-off-by: Albin Tonnerre --- 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 changed, 31 insertions(+), 5

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

2009-08-03 Thread Albin Tonnerre
Signed-off-by: Albin Tonnerre --- 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 index bb1326d..8639349 100644

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

2009-08-03 Thread Albin Tonnerre
This is the third and last part of the patch, which contains the necessary changes to the x86 Kconfig and boot/compressed to allow the use of this new compression method Signed-off-by: Albin Tonnerre --- arch/x86/Kconfig |1 + arch/x86/boot/compressed/Makefile |5

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

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

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

2009-08-03 Thread Albin Tonnerre
of kernel bootstrap code, we need linux/slab.h for memory allocation functions. - ... and we also need a call to set_error_fn so that the provided error function is used correctly Signed-off-by: Albin Tonnerre --- include/linux/decompress/unlzo.h | 10 ++ init/Kconfig

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

2009-08-03 Thread Albin Tonnerre
they need is the declaration of types such as u32 or u64, so should be enough Signed-off-by: Albin Tonnerre --- include/linux/unaligned/be_byteshift.h |2 +- include/linux/unaligned/le_byteshift.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux

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

2009-08-03 Thread Albin Tonnerre
de it if STATIC is defined. Signed-off-by: Albin Tonnerre --- 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/decompress_bunzip2.c index 70

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 cha

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

2009-07-29 Thread Albin Tonnerre
Signed-off-by: Albin Tonnerre --- 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 index bb1326d..8639349 100644

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

2009-07-29 Thread Albin Tonnerre
e existing 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 --- Changelog since v1: lib/decompress_unlzo.c - Rename lzo_decompress to unlzo to match the prototype in decompre

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 i

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

2009-07-22 Thread Albin Tonnerre
On Wed, Jul 22, 2009 at 03:28:09PM +, kevin.gran...@gmail.com wrote : > On Jul 22, 2009 9:01am, Albin Tonnerre > wrote: > > This is the first part of the lzo patch > > > > The lzo compressor is worse than gzip at compression, but faster at > > > > extracti

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

2009-07-22 Thread Albin Tonnerre
This is the third and last part of the patch, which contains the necessary changes to the x86 Kconfig and boot/compressed to allow the use of this new compression method Signed-off-by: Albin Tonnerre --- arch/x86/Kconfig |1 + arch/x86/boot/compressed/Makefile |5

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

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

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

2009-07-22 Thread Albin Tonnerre
they need is the declaration of types such as u32 or u64, so should be enough Signed-off-by: Albin Tonnerre --- include/linux/unaligned/be_byteshift.h |2 +- include/linux/unaligned/le_byteshift.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux

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

2009-07-22 Thread Albin Tonnerre
e existing 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 --- include/linux/decompress/unlzo.h | 10 +++ init/Kconfig | 18 - lib/decompre

[PATCH 1/5] lib/decompress_*: only include if STATIC is not defined

2009-07-22 Thread Albin Tonnerre
de it if STATIC is defined. Signed-off-by: Albin Tonnerre --- 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/decompress_bunzip2.c index 70

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 o

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

2009-07-03 Thread Albin Tonnerre
ilter-out FORCE, $^) > $@ && $(call size_append, $(filter-out FORCE,$^)) >> $@ ) || (rm -f $@ ; false) does the trick, as lzma is able to write the file size in the header (and I think the second part is useless, as it's the filesize encoded in 32bits little-endian). Howeve