]> git.dujemihanovic.xyz Git - u-boot.git/commit
image: fix bootm failure for FIT image
authorBryan Wu <cooloney@gmail.com>
Fri, 15 Aug 2014 23:51:38 +0000 (16:51 -0700)
committerTom Rini <trini@ti.com>
Thu, 21 Aug 2014 16:01:29 +0000 (12:01 -0400)
commit6c454fedf5195e4160bd7aa398f7a4bb17d7157c
tree6fb190e57815b3afa3883245bf076008be07f577
parentf28c9708e35d8cc9c5a116dbe13ee9281affb097
image: fix bootm failure for FIT image

Commit b3dd64f5d537 "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>
common/bootm.c
common/image.c
include/image.h