[U-Boot] [PATCH v2] tools: zynqmpimage: round up partition size

Alexander Graf agraf at suse.de
Mon Dec 3 15:44:31 UTC 2018



On 03.12.18 16:37, Michael Tretter wrote:
> The FSBL copies "Total Partition Word Length" * 4 bytes from the boot.bin,
> which implies that the partition size is 4 byte aligned. When writing the
> partition, mkimage calculates "Total Partition Word Length" by dividing
> the size by 4. This implicitly cuts unaligned bytes at the end of the
> added binary.
> 
> Instead of rounding down, the size must be round up to 4 bytes and the
> binary padded accordingly.
> 
> Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>

Reviewed-by: Alexander Graf <agraf at suse.de>


Alex


More information about the U-Boot mailing list