diff options
author | Pali Rohár <pali@kernel.org> | 2023-01-29 19:44:11 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-07 01:10:14 +0300 |
commit | 598e911f2391d0a9f002bc49d37a06b5ef3213cb (patch) | |
tree | 306921a6f3cffdb7836cbd18d8a50e0216a3236b /doc | |
parent | 3f837b06b76d06189055a0fcdaee4d31c7758d9e (diff) | |
download | u-boot-598e911f2391d0a9f002bc49d37a06b5ef3213cb.tar.xz |
tools: default_image: Accept images with padding
If image file is stored on flash partition then it contains padding, which
is not part of the image itself. Image data size is stored in the image
header. So use image size from the header instead of expecting that total
image file size is size of the header plus size of the image data. This
allows dumpimage to parse image files with padding (e.g. dumped from flash
partition).
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions