mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
image: fix bootm failure for FIT image
Commit b3dd64f5d5
"bootm: use genimg_get_kernel_addr()" introduced
a bug for booting FIT image. It's because calling fit_parse_config()
twice will give us wrong value in img_addr.
Add a new function genimg_get_kernel_addr_fit() whichl will always
return fit_uname_config and fit_uname_kernel for CONFIG_FIT.
genimg_get_kernel_addr() will ignore those to parameters.
Reported-by: York Sun <yorksun@freescale.com>
Signed-off-by: Bryan Wu <pengw@nvidia.com>
This commit is contained in:
parent
f28c9708e3
commit
6c454fedf5
3 changed files with 33 additions and 18 deletions
|
@ -424,6 +424,9 @@ enum fit_load_op {
|
|||
#define IMAGE_FORMAT_FIT 0x02 /* new, libfdt based format */
|
||||
#define IMAGE_FORMAT_ANDROID 0x03 /* Android boot image */
|
||||
|
||||
ulong genimg_get_kernel_addr_fit(char * const img_addr,
|
||||
const char **fit_uname_config,
|
||||
const char **fit_uname_kernel);
|
||||
ulong genimg_get_kernel_addr(char * const img_addr);
|
||||
int genimg_get_format(const void *img_addr);
|
||||
int genimg_has_config(bootm_headers_t *images);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue