[U-Boot] [PATCH] common: image: Remove FIT header update from image post-processing

Lokesh Vutla lokeshvutla at ti.com
Thu Nov 24 05:10:47 CET 2016



On Tuesday 22 November 2016 02:07 AM, Andrew F. Davis wrote:
> After an image is selected out of a FIT blob for further processing we
> run an optional, platform specific, post-processing function on this
> component. This post-processing may modify the position and size of the
> image, so after post-processing we update the location and size for this
> image in the FIT header. This can cause problems as the position of
> subsequent components in the FIT blob are only referenced by relative
> position to the end of the last component. When we resize or move a
> component the following components position will be calculated
> incorrectly. To fix this, we do not update the FIT header but instead
> only update our local understanding of the image data. This also allows
> us to re-run post-processing steps if needed.
> 
> Signed-off-by: Andrew F. Davis <afd at ti.com>
> Tested-by: Carlos Hernandez <ceh at ti.com>

Reviewed-by: Lokesh Vutla <lokeshvutla at ti.com>

Thanks and regards,
Lokesh



More information about the U-Boot mailing list