[U-Boot] [PATCH] x86/bootm: fix compressed image boot
Hannes Schmelzer
hannes.schmelzer at br-automation.com
Thu Oct 11 05:45:15 UTC 2018
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.schmelzer at 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
More information about the U-Boot
mailing list