If we're booting some u-boot module with compressed payload, we have to
use the pointer where the image really has been loaded (unzipped) to
instead the pointer to the payload of the u-boot module.

Signed-off-by: Hannes Schmelzer <hannes.schmel...@br-automation.com>
---

 arch/x86/lib/bootm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c
index 54c22fe..4102bcb 100644
--- a/arch/x86/lib/bootm.c
+++ b/arch/x86/lib/bootm.c
@@ -94,8 +94,8 @@ static int boot_prep_linux(bootm_headers_t *images)
                        len = os_len;
                } else {
                        /* otherwise get image data */
-                       data = (void *)image_get_data(hdr);
-                       len = image_get_data_size(hdr);
+                       data = (void *)images->os.load;
+                       len = 0;
                }
                is_zimage = 1;
 #if defined(CONFIG_FIT)
-- 
2.7.4


_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to