summaryrefslogtreecommitdiffstats
path: root/common/uimage.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-13 14:34:08 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-13 14:48:16 +0800
commitd9cefaed51917da5121443715cb9a14c237f9b9b (patch)
tree509ca71b98523335d7db6cc13d3585486779fc7d /common/uimage.c
parent3120585df8b537493681fd4c395919a341f96e6e (diff)
downloadbarebox-d9cefaed51917da5121443715cb9a14c237f9b9b.tar.gz
uimage_laod: fix ramdisk support
ramdisk U-Boot expect to ignore the compression type Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'common/uimage.c')
-rw-r--r--common/uimage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/uimage.c b/common/uimage.c
index 735b64e..442a7f0 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;