summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Tretter <[email protected]>2018-12-03 16:37:53 +0100
committerMichal Simek <[email protected]>2019-01-24 10:03:42 +0100
commit16c78cba92f0cb24d56eaa87356beaca4a2d7f56 (patch)
tree5ac4e266203f224a2bcdc28c33eefb43ba25f77f /include
parentaff66f22d6eeb27c6329c0a3c1ebc52914c8affa (diff)
tools: zynqmpimage: round up partition size
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 <[email protected]> Reviewed-by: Alexander Graf <[email protected]> Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions