aboutsummaryrefslogtreecommitdiff
path: root/tools/imagetool.h
diff options
context:
space:
mode:
authorKever Yang <kever.yang@rock-chips.com>2020-03-30 11:56:24 +0800
committerTom Rini <trini@konsulko.com>2020-04-24 10:10:01 -0400
commitebfe611be91e0075c040588a30a9996519d30aa6 (patch)
treed8d41efeafbbb876a8b3a2cb8aad66e365d81821 /tools/imagetool.h
parent10d887ddfa4f94aa94cf7a6d3dd4f28a339a2f13 (diff)
downloadu-boot-ebfe611be91e0075c040588a30a9996519d30aa6.zip
u-boot-ebfe611be91e0075c040588a30a9996519d30aa6.tar.gz
u-boot-ebfe611be91e0075c040588a30a9996519d30aa6.tar.bz2
mkimage: fit_image: Add option to make fit header align
The image is usually stored in block device like emmc, SD card, make the offset of image data aligned to block(512 byte) can avoid data copy during boot process. eg. SPL boot from FIT image with external data: - SPL read the first block of FIT image, and then parse the header; - SPL read image data separately; - The first image offset is the base_offset which is the header size; - The second image offset is just after the first image; - If the offset of imge does not aligned, SPL will do memcpy; The header size is a ramdon number, which is very possible not aligned, so add '-B size'to specify the align size in hex for better performance. example usage: ./tools/mkimage -E -f u-boot.its -B 0x200 u-boot.itb Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Punit Agrawal <punit1.agrawal@toshiba.co.jp> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/imagetool.h')
-rw-r--r--tools/imagetool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/imagetool.h b/tools/imagetool.h
index 81e5cd0..f54809c 100644
--- a/tools/imagetool.h
+++ b/tools/imagetool.h
@@ -79,6 +79,7 @@ struct image_tool_params {
bool external_data; /* Store data outside the FIT */
bool quiet; /* Don't output text in normal operation */
unsigned int external_offset; /* Add padding to external data */
+ int bl_len; /* Block length in byte for external data */
const char *engine_id; /* Engine to use for signing */
};