From mboxrd@z Thu Jan 1 00:00:00 1970 From: u.kleine-koenig@pengutronix.de (Uwe =?iso-8859-1?Q?Kleine-K=F6nig?=) Date: Fri, 29 Jan 2010 16:14:02 +0100 Subject: Uncompressing broken with commit e7db7b4270 In-Reply-To: <20100129150345.GA5876@laptop> References: <1264698229.7064.93.camel@pc1117.cambridge.arm.com> <20100129144601.GA27577@pengutronix.de> <20100129150345.GA5876@laptop> Message-ID: <20100129151402.GD27577@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hello, On Fri, Jan 29, 2010 at 04:04:15PM +0100, Albin Tonnerre wrote: > On Fri, 29 Jan 2010 15:46 +0100, Uwe Kleine-K?nig wrote : > > On Thu, Jan 28, 2010 at 05:03:49PM +0000, Catalin Marinas wrote: > > > Hi, > > > > For whatever reason, with commit e7db7b4270 (arm: add support for > > > LZO-compressed kernels) if the kernel Image goes beyond a certain size > > > it fails to uncompress. Reverting this commit solves the problem. > > > Removing some random kernel features also solves the uncompressing as > > > the kernel image gets smaller. > > With the same commit zImage stopped printing dots during decompression. > > > Something that isn't mentioned in the commit log of e7db7b4270 is that > > the decompressing routine for gzip is changed. > > > Before lib/inflate.c was included by arch/arm/boot/compressed/misc.c, > > since e7db7b4270 it's lib/decompress_inflate.c. > > Indeed, that's why it stopped printing dots. I'd like to have them back. > > Maybe the new implementation needs more stack space? If so it might > > help to increase the stack size. (This is defined in the last line of > > arch/arm/boot/compressed/head.S. If you change the value be sure to > > adapt the value just before the LC1 label in the same file, too.) > > If so, the decompressor would exit with an error message stating that it can't > allocate enough memory, so I doubt this is the cause. I havn't investigated but I wonder how a stack overflow would be detected. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |