From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH v4 8/8] mkimage: fit_image: Add option to make fit header align
Date: Fri, 24 Apr 2020 13:10:53 -0400 [thread overview]
Message-ID: <20200424171053.GN4555@bill-the-cat> (raw)
In-Reply-To: <20200330035625.25164-8-kever.yang@rock-chips.com>
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 <kever.yang@rock-chips.com>
> Reviewed-by: Punit Agrawal <punit1.agrawal@toshiba.co.jp>
> Reviewed-by: Tom Rini <trini@konsulko.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200424/fd9ed117/attachment.sig>
next prev parent reply other threads:[~2020-04-24 17:10 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-30 3:56 [PATCH v4 1/8] tool: Move ALIGN_MASK to header as common MACRO Kever Yang
2020-03-30 3:56 ` [PATCH v4 2/8] tool: aisimage: use ALIGN instead of self defiend macro Kever Yang
2020-04-24 17:09 ` Tom Rini
2020-03-30 3:56 ` [PATCH v4 3/8] tools: mkimage: use common ALIGN to do the size align Kever Yang
2020-04-24 17:09 ` Tom Rini
2020-03-30 3:56 ` [PATCH v4 4/8] tools: kwbimage: " Kever Yang
2020-04-24 17:09 ` Tom Rini
2020-03-30 3:56 ` [PATCH v4 5/8] tools: imx8mimage: remove redundant code Kever Yang
2020-04-24 17:10 ` Tom Rini
2020-03-30 3:56 ` [PATCH v4 6/8] tool: use ALIGN() to align the size Kever Yang
2020-04-24 17:10 ` Tom Rini
2020-03-30 3:56 ` [PATCH v4 7/8] libfdt: Make fdtdec_get_child_count() available for HOST Kever Yang
2020-03-30 5:29 ` Heinrich Schuchardt
2020-03-30 6:29 ` Kever Yang
2020-03-30 8:07 ` Heinrich Schuchardt
2020-03-30 23:57 ` Simon Glass
2020-04-24 17:10 ` Tom Rini
2020-03-30 3:56 ` [PATCH v4 8/8] mkimage: fit_image: Add option to make fit header align Kever Yang
2020-03-30 23:30 ` Tom Rini
2020-04-24 6:52 ` Kever Yang
2020-04-24 17:10 ` Tom Rini [this message]
2020-04-24 17:09 ` [PATCH v4 1/8] tool: Move ALIGN_MASK to header as common MACRO Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200424171053.GN4555@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox