loader/u-boot: fix alignment of uimage components.
The "blobs" in a U-Boot uimage are aligned at 4 bytes, which we did not take into account. Found this when adding a 3rd blob containing the Flattened Device Tree for ARM.
This commit is contained in:
parent
c21a3b20c9
commit
7418443d12
@ -55,7 +55,7 @@ image_multi_getimg(struct image_header *image, uint32 idx, uint32 *data, uint32
|
||||
*size = ntohl(sizes[i]);
|
||||
return true;
|
||||
}
|
||||
base += ntohl(sizes[i]);
|
||||
base += (ntohl(sizes[i]) + 3) & ~3;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user