From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 30 Mar 2020 19:30:35 -0400 Subject: [PATCH v4 8/8] mkimage: fit_image: Add option to make fit header align In-Reply-To: <20200330035625.25164-8-kever.yang@rock-chips.com> References: <20200330035625.25164-1-kever.yang@rock-chips.com> <20200330035625.25164-8-kever.yang@rock-chips.com> Message-ID: <20200330233035.GQ27133@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Mar 30, 2020 at 11:56:24AM +0800, Kever Yang wrote: > 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 > Reviewed-by: Punit Agrawal Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: