[U-Boot] [PATCH 2/2] cmd: fsfitxtract: Extract a part of a FIT multi-image stored on a filesystem

Tom Rini trini at konsulko.com
Mon May 22 14:07:37 UTC 2017


On Sat, May 20, 2017 at 09:50:20AM +0300, Alexey Ignatov wrote:

> Sometimes we interested only in one single small subimage from big multipart
> FIT. This command tries to avoid reading out the whole FIT because of memory
> or time considerations.
> Since we don't have mmap() in U-Boot, this is done by reading the file in
> small chunks and trying to parse FIT until requested image is found or
> total read size limit exceeded.
> 
> Signed-off-by: Alexey Ignatov <lexszero at gmail.com>
> ---
>  cmd/Kconfig |   7 ++
>  cmd/ximg.c  | 226 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 233 insertions(+)

We need to add an entry for cmd/Makefile as CMD_XIMG and CMD_FSFITXIMG
do not depend on eachother.  I also think you need to guard the CMD_XIMG
specific code in cmd/ximg.c when adding this for when the old command is
disabled and the new one is enabled, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170522/ab68d619/attachment.sig>


More information about the U-Boot mailing list