I noticed a typo in the lzma uncompress invocation (image_start instead image_len).
This patch correct the mistake. best regards. luigi (I'm sorry but I cannot use the git-send-email) Il lunedì 08 settembre 2008 02:46:13 Jean-Christophe PLAGNIOL-VILLARD ha scritto: > From: Luigi 'Comio' Mantellini <[EMAIL PROTECTED]> > > Signed-off-by: Luigi 'Comio' Mantellini <[EMAIL PROTECTED]> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[EMAIL PROTECTED]> > --- > Add missing lzma/Makefile > Makefile | 1 + > README | 23 ++ > common/cmd_bootm.c | 23 ++ > common/image.c | 1 + > include/image.h | 1 + > include/lzma/LzmaDecode.h | 31 ++ > include/lzma/LzmaTools.h | 31 ++ > include/lzma/LzmaTypes.h | 31 ++ > lib_generic/lzma/LGPL.txt | 504 +++++++++++++++++++++++++++ > lib_generic/lzma/LzmaDecode.c | 584 +++++++++++++++++++++++++++++++ > lib_generic/lzma/LzmaDecode.h | 113 ++++++ > lib_generic/lzma/LzmaTools.c | 142 ++++++++ > lib_generic/lzma/LzmaTools.h | 35 ++ > lib_generic/lzma/LzmaTypes.h | 45 +++ > lib_generic/lzma/Makefile | 50 +++ > lib_generic/lzma/README.txt | 28 ++ > lib_generic/lzma/history.txt | 198 +++++++++++ > lib_generic/lzma/import_lzmasdk.sh | 38 ++ > lib_generic/lzma/lzma.txt | 663 > ++++++++++++++++++++++++++++++++++++ 19 files changed, 2542 insertions(+), > 0 deletions(-) > create mode 100644 include/lzma/LzmaDecode.h > create mode 100644 include/lzma/LzmaTools.h > create mode 100644 include/lzma/LzmaTypes.h > create mode 100644 lib_generic/lzma/LGPL.txt > create mode 100644 lib_generic/lzma/LzmaDecode.c > create mode 100644 lib_generic/lzma/LzmaDecode.h > create mode 100644 lib_generic/lzma/LzmaTools.c > create mode 100644 lib_generic/lzma/LzmaTools.h > create mode 100644 lib_generic/lzma/LzmaTypes.h > create mode 100644 lib_generic/lzma/Makefile > create mode 100644 lib_generic/lzma/README.txt > create mode 100644 lib_generic/lzma/history.txt > create mode 100644 lib_generic/lzma/import_lzmasdk.sh > create mode 100644 lib_generic/lzma/lzma.txt >-- Luigi Mantellini R&D - Software Industrie Dial Face S.p.A. Via Canzo, 4 20068 Peschiera Borromeo (MI), Italy Tel.: +39 02 5167 2813 Fax: +39 02 5167 2459 Email: [EMAIL PROTECTED]
From 565ecc8ff0a21a9a9f3381c0bfaea629598b7c00 Mon Sep 17 00:00:00 2001 From: Luigi 'Comio' Mantellini <[EMAIL PROTECTED]> Date: Sat, 13 Sep 2008 10:04:32 +0200 Subject: [PATCH] Fix lzma uncompress call (image_start wrongly used instead image_len) --- common/cmd_bootm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 19257bb..897e9f6 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -347,7 +347,7 @@ static int bootm_load_os(image_info_t os, ulong *load_end, int boot_progress) int ret = lzmaBuffToBuffDecompress( (unsigned char *)load, &unc_len, - (unsigned char *)image_start, image_start); + (unsigned char *)image_start, image_len); if (ret != LZMA_RESULT_OK) { printf ("LZMA: uncompress or overwrite error %d " "- must RESET board to recover\n", ret); -- 1.5.4.3
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot