From d9cefaed51917da5121443715cb9a14c237f9b9b Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Mon, 13 Aug 2012 14:34:08 +0800 Subject: uimage_laod: fix ramdisk support ramdisk U-Boot expect to ignore the compression type Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/uimage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/uimage.c') diff --git a/common/uimage.c b/common/uimage.c index 735b64e8fd..442a7f0977 100644 --- a/common/uimage.c +++ b/common/uimage.c @@ -334,7 +334,8 @@ int uimage_load(struct uimage_handle *handle, unsigned int image_no, if (ret < 0) return ret; - if (hdr->ih_comp == IH_COMP_NONE) + /* if ramdisk U-Boot expect to ignore the compression type */ + if (hdr->ih_comp == IH_COMP_NONE || hdr->ih_type == IH_TYPE_RAMDISK) uncompress_fn = uncompress_copy; else uncompress_fn = uncompress; -- cgit v1.2.3