From: Tor Krill <tor@excito.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] u-boot fails to uncompress a "gzip'ed -9" kernel
Date: Tue, 27 Jan 2009 15:44:26 +0100 [thread overview]
Message-ID: <1233067466.32516.19.camel@sid> (raw)
In-Reply-To: <497EDC59.3080405@aimvalley.nl>
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@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
>
next prev parent reply other threads:[~2009-01-27 14:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-19 11:55 [U-Boot] u-boot fails to uncompress a "gzip'ed -9" kernel N. van Bolhuis
2009-01-19 13:07 ` Wolfgang Denk
2009-01-19 13:59 ` N. van Bolhuis
2009-01-27 10:05 ` Norbert van Bolhuis
2009-01-27 13:33 ` [U-Boot] Nasty gunzip problem on MPC8313E-RDB Norbert van Bolhuis
2009-01-27 14:44 ` Tor Krill [this message]
2009-03-24 16:37 ` [U-Boot] u-boot fails to uncompress a "gzip'ed -9" kernel Norbert van Bolhuis
2009-09-30 8:21 ` [U-Boot] gunzip fails sometimes on MPC8343 André Schwarz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1233067466.32516.19.camel@sid \
--to=tor@excito.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox