mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
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>
This commit is contained in:
@@ -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)
|
if (!bif_output.header->image_offset)
|
||||||
bif_output.header->image_offset =
|
bif_output.header->image_offset =
|
||||||
cpu_to_le32(bf->offset);
|
cpu_to_le32(bf->offset);
|
||||||
bif_output.header->image_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);
|
bif_output.header->image_stored_size = cpu_to_le32(len_padded);
|
||||||
|
|
||||||
bif_output.header->image_attributes &= ~HEADER_CPU_SELECT_MASK;
|
bif_output.header->image_attributes &= ~HEADER_CPU_SELECT_MASK;
|
||||||
switch (bf->dest_cpu) {
|
switch (bf->dest_cpu) {
|
||||||
|
Reference in New Issue
Block a user