[U-Boot] [PATCH v6 2/2] common: image-fit: Fix load and entry addresses in FIT image

Simon Glass sjg at chromium.org
Mon Mar 7 03:39:19 CET 2016


On 29 February 2016 at 16:48, York Sun <york.sun at nxp.com> wrote:
> FIT image supports more than 32 bits in addresses by using #address-cell
> field. Fixing 64-bit support by using this field.
>
> Signed-off-by: York Sun <york.sun at nxp.com>
>
> ---
>
> Changes in v6:
>   Revert back to use original "ulong" instead of "phys_addr_t"
>   Abort getting image addresses if address is too long for "ulong"
>
> Changes in v5:
>   Split the common function into another patch.
>   Revise commit subject.
>   Update commit message as suggested by Simon.
>   Updated cover letter with testing report.
>
> Changes in v4:
>   Separate ulong to phys_addr_t change to another patch.
>
> Changes in v3:
>   Define PRIpa for host and target in common/image-fit.c so printf works
>   properly for 32-, 64-bit targets and host tools.
>
> Changes in v2:
>   Make a common function for both load and entry addresses.
>   Simplify calculation of addresses in a similar way as fdtdec_get_number()
>   fdtdec_get_number() is not used, or too many files need to be included
>     and/or twisted for host tool
>   Continue to use %08llx for print format for load and entry addresses
>     because %pa does not always work for host tool (mkimage)
>
>  common/image-fit.c |   22 +++++++++++++++++-----
>  1 file changed, 17 insertions(+), 5 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list