[U-Boot] [PATCH 1/1 V3] Add support for LZMA uncompression algorithm.

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sat Sep 13 23:27:20 CEST 2008


> Fax:   +39 02 5167 2459
> Email: luigi.mantellini at idf-hit.com
> 

> From 565ecc8ff0a21a9a9f3381c0bfaea629598b7c00 Mon Sep 17 00:00:00 2001
> From: Luigi 'Comio' Mantellini <luigi.mantellini at idf-hit.com>
> 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);
It's work without this too

Best Regards,
J.


More information about the U-Boot mailing list