[PATCH v2] mkimage: fit_image: Make fit header and data align to 512

Punit Agrawal punit1.agrawal at toshiba.co.jp
Mon Mar 16 08:36:47 CET 2020


Punit Agrawal <punit1.agrawal at toshiba.co.jp> writes:

> Kever Yang <kever.yang at rock-chips.com> writes:
>
>> 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' to specify the align size in hex for better performance.
>>
>> example usage:
>>   ./tools/mkimage -E -f u-boot.its -B 200 u-boot.itb
>>
>> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>

I hit send to soon - please don't forget to update the commit subject in
the next posting.

Thanks,
Punit


[...]



More information about the U-Boot mailing list