ubiformat: Add ubiformat write function
The ubiformat C API expects an image file as argument. With upcoming
Android fastboot sparse image support we can no longer provide a
complete image anymore. With this patch we can write an image in
multiple chunks after we've formatted a MTD device with ubiformat.

ubiformat_write will skip the EC header in both the MTD device we
write to and also the image we read from, so we can flash an image
on a MTD device containing EC headers already.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e0e4c72 commit 91e08222389da159944d918bbe6eee7510da8872
@Sascha Hauer Sascha Hauer authored on 10 Jan 2018
Showing 2 changed files
View
common/ubiformat.c
View
include/ubiformat.h