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

2009-08-03 Thread Albin Tonnerre
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/misc.c to allow the use of lzo or gzip, depending on the config -

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

2009-08-06 Thread Russell King - ARM Linux
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 piggy.lzo.S necessary for lzo compression > - changes in arch/arm/boot/compres

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

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

2009-08-07 Thread Russell King - ARM Linux
On Fri, Aug 07, 2009 at 11:24:52AM +0200, Albin Tonnerre wrote: > I also happen to have issues related to the linker not finding > __aeabi_uidivmod, > but only when compiling with CONFIG_CC_OPTIMIZE_FOR_SIZE. Is it similar for > you, > or does it also fail when compiling with -O2 ? I tend not to

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

2009-08-07 Thread Alain Knaff
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 includes: >>> - changes to ach/arch/boot/Makefile to make it easi

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 p

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

2009-08-07 Thread Alain Knaff
On 08/07/09 12:21, Albin Tonnerre wrote: > Indeed, they've not been applied. However, I'd rather try to understand why > exactly this is an issue when compiling with -Os and not -O2 instead of > working > around it by removing the divisions. > > Regards, Well, I for myself couldn't get it to co

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

2009-08-07 Thread Matthieu CASTET
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 patches that remove division (zutil.h and inflate.c) >> have somehow not been applied? > > Indeed, they've not been applie

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 patches that remove division (zutil.h and inflate.c

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

2009-08-07 Thread Matthieu CASTET
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: > > Regards, > Could it be that the patches that remove

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 Tonner

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

2009-08-07 Thread Russell King - ARM Linux
On Fri, Aug 07, 2009 at 03:55:24PM +0200, Albin Tonnerre wrote: > That's true for the actual kernel image, but not for the bootstrap code we use > when compiling compressed kernels. arch/arm/boot/compressed/Makefile uses > libgcc, unless I'm overlooking something here: > > arm-unknown-linux-ucli

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

2009-08-07 Thread H. Peter Anvin
On 08/07/2009 01:00 PM, Russell King - ARM Linux wrote: > On Fri, Aug 07, 2009 at 03:55:24PM +0200, Albin Tonnerre wrote: >> That's true for the actual kernel image, but not for the bootstrap code we >> use >> when compiling compressed kernels. arch/arm/boot/compressed/Makefile uses >> libgcc, unl

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

2009-08-07 Thread Sam Ravnborg
On Fri, Aug 07, 2009 at 09:00:01PM +0100, Russell King - ARM Linux wrote: > On Fri, Aug 07, 2009 at 03:55:24PM +0200, Albin Tonnerre wrote: > > That's true for the actual kernel image, but not for the bootstrap code we > > use > > when compiling compressed kernels. arch/arm/boot/compressed/Makefil

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

2009-08-11 Thread Albin Tonnerre
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, I get the following error: Kernel: arch/arm/boot/Image is ready LD arch/arm/boot/compressed/vmlinux /home/alb

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

2009-08-11 Thread Sam Ravnborg
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 prerequisite. > > Untested patch below. > > When compiling with this patch applied, I get the following error: > > Kernel: a

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

2009-08-11 Thread Matthieu CASTET
Albin Tonnerre a écrit : > 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, I get the following error: > > Kernel: arch/arm/boot/Image is ready > LD

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 prerequisite. > > > Untested patch below. > > > > When

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

2009-08-11 Thread H. Peter Anvin
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, I get the following error: > > Kernel: arch/arm/boot/Image i

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 th

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

2009-08-11 Thread H. Peter Anvin
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 ? > Define a dummy raise, get rid of the divisions, or provide your own division function (there is pr

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 ? > > > > Define a dummy ra

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

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

2009-08-13 Thread H. Peter Anvin
On 08/13/2009 02:30 AM, Albin Tonnerre wrote: > 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 di