mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 06:46:59 +00:00
spl: fit: Fix entry point for SPL_LOAD_FIT_FULL
The entry point is not always the same as the load address. Use the value
of the entry property if it exists.
Fixes: 8a9dc16e4d
("spl: Add full fitImage support")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6cc2182c84
commit
5264413246
1 changed files with 2 additions and 1 deletions
|
@ -901,8 +901,9 @@ int spl_load_fit_image(struct spl_image_info *spl_image,
|
|||
return ret;
|
||||
|
||||
spl_image->size = fw_len;
|
||||
spl_image->entry_point = fw_data;
|
||||
spl_image->load_addr = fw_data;
|
||||
if (fit_image_get_entry(header, ret, &spl_image->entry_point))
|
||||
spl_image->entry_point = fw_data;
|
||||
if (fit_image_get_os(header, ret, &spl_image->os))
|
||||
spl_image->os = IH_OS_INVALID;
|
||||
spl_image->name = genimg_get_os_name(spl_image->os);
|
||||
|
|
Loading…
Add table
Reference in a new issue