[U-Boot] [PATCH] Refresh LZMA-lib to 4.65
rhabarber1848
rhabarber1848 at web.de
Fri Jul 17 08:59:39 CEST 2009
Wolfgang Denk <wd at denx.de> wrote in
news:20090716211129.E9241832E416 at gemini.denx.de:
> Maybe lzmaBuffToBuffDecompress() stores an incorrect value in unc_len?
Hi,
this is correct, the unpatched version of lib_generic/lzma/LzmaTools.c
has this code in line 137:
*uncompressedSize = outProcessed;
I added the same code to the lzma465 patch and it works for me:
--- u-boot-2009.06.org/lib_generic/lzma/LzmaTools.c 2009-07-17
08:12:52.000000000 +0200
+++ u-boot-2009.06/lib_generic/lzma/LzmaTools.c 2009-07-17
08:15:37.000000000 +0200
@@ -116,6 +117,7 @@
outStream, &outProcessed,
inStream + LZMA_DATA_OFFSET, &compressedSize,
inStream, LZMA_PROPS_SIZE, LZMA_FINISH_ANY, &state, &g_Alloc);
+ *uncompressedSize = outProcessed;
if (res != SZ_OK) {
return res;
}
Attached you will find a patch which also includes the watchdog stuff I
need along with the formentioned patch. I do not know if all
WATCHDOG_RESET() calls are really necessary but I have a 66 MHz CPU here
which takes 12s to decompress a 550kb LZMA-compressed kernel.
Cheers, rhabarber1848
=ybegin line=128 size=3334 name=u-boot-2009.06_lzma_watchdog.diff
JWxJWW\ZZcXZ`XYY¤Yv¤nXJWW\ZZcXZ`YY¤Yv¤nX4WWWJWW\ZZcXZ`XY
Y¤Yv¤nX3\ZZcWZaW[aJZbd[\d_\XZZZZZZZZZJUZ\ZZ4UUUJWW\ZZcXZ`YY¤Yv¤nX3\ZZcWZaW[aJZbd[]d\_XZZZZZZ
ZZZJUZ\ZZ4jjJW[V`JU[VcJjj4JYTJv¤nXJWWJvwkJn4J\ZZbW[[WZ`JdJsJz JdJzJJTY4J4UMJfXh4UM
JfXh4UMJf¡Xh4JMJLv¤nXL4J4JMJfXh4jjJW[_`V`JU[_cVcJjj4JJJs]\JJgJWh
e4JJJs]\JJgJWhe4J4UMJRmyxpsqrk~mrnyqSJ¦¦JRmyxpsqk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