summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-12-14 10:53:54 +0100
committerMichal Simek <michal.simek@xilinx.com>2019-01-24 10:03:44 +0100
commit775ed87ac4015c8b17bc9d828e3bafe4a0f7ed03 (patch)
tree3dd37d2f4eae355c5f466b0a2790e03da9c6a338 /tools
parentd9eaae3bae99cf79fd1453f4980b2624a6be9501 (diff)
downloadu-boot-775ed87ac4015c8b17bc9d828e3bafe4a0f7ed03.tar.gz
tools: zynqmpimage: Align image_size/image_stored_size
Bootrom is not capable to work with non aligned bootloader sizes. SPL with OF_SEPARATE generates non-align images quite often that's why this change is required before OF_SEPARATE enableding. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/zynqmpbif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/zynqmpbif.c b/tools/zynqmpbif.c
index a33c15e1f0..8c47107c7b 100644
--- a/tools/zynqmpbif.c
+++ b/tools/zynqmpbif.c
@@ -425,8 +425,8 @@ static int bif_add_part(struct bif_entry *bf, const char *data, size_t len)
if (!bif_output.header->image_offset)
bif_output.header->image_offset =
cpu_to_le32(bf->offset);
- bif_output.header->image_size = cpu_to_le32(len);
- bif_output.header->image_stored_size = cpu_to_le32(len);
+ bif_output.header->image_size = cpu_to_le32(len_padded);
+ bif_output.header->image_stored_size = cpu_to_le32(len_padded);
bif_output.header->image_attributes &= ~HEADER_CPU_SELECT_MASK;
switch (bf->dest_cpu) {