[U-Boot] u-boot fails to uncompress a "gzip'ed -9" kernel

Tor Krill tor at excito.com
Tue Jan 27 15:44:26 CET 2009


Hi Norbert,

I missed the start of this thread. So my apologies if im barking up the
wrong tree :)

We had problems uncompressing zImages on our 8313 board. But always
suspected some memory timing issues, or perhaps some strangeness in
8313.

I tracked our problems down to a specific line in lib_generic/zlib.c And
by adding a small delay there our problems went away. (I know this is
not good practice. But with time limited that is what you do.)

Inlined (Pasted) is our patch that solved our problem:

----8<-------------------------------------------------------------
--- [74f22482c362bbc50f1188bd5d31203e7995a9b4] zlib.c 
+++ [88e71e289d0241baaa9db0624b98f00b5f1774b5] zlib.c 
@@ -1604,6 +1604,7 @@
   while (p != Z_NULL)
   {
     q = (--p)->next;
+     udelay(10);
     ZFREE(z, p, p->word.Nalloc * sizeof(inflate_huft));
     p = q;
   }
----8<-------------------------------------------------------------


/Tor

On Tue, 2009-01-27 at 11:05 +0100, Norbert van Bolhuis wrote:
> This is a MPC8313E-RDB board problem. We have 2 REV A4 boards.
> 
> I can reproduce this problem on both of the MPC8313E-RDB boards
> with any version of u-boot with a compressed file which contains
> 1 or more dynamic codes blocks and a final fixed codes block.
> 
> I have a 5k gzipped file for which the problem (already) occurs.
> 
> I could test on a PQ2FADS board. The problem doesn't occur on this
> board.
> 
> I did some memory tests (which I should've done a bit earlier) and
> the same problem (soft reset due to checkstop) occurs.
> 
> I'll make a new thread for this.
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 


More information about the U-Boot mailing list