
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@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!