On 04/23/2015 08:31 PM, riku.voipio@linaro.org wrote:
From: Riku Voipio riku.voipio@linaro.org
For linaro-uefi: This patch is for Hikey - ArmVExpressFastBoot is obviously the wrong place to implement this, but something is needed now ;)
As for proper implementation, it seems AndroidFastbootApp is the right place. This requires changing at least FASTBOOT_PLATFORM_FLASH, adding with a "offset" parameter. Since I'm new to the codebase and conventions, I don't think it make sense for me to try to fit the code for upstream, until I've got instructions from you UEFI team.. Particularly if ABI compatability is needed or it is ok to change the function parameters.
Original commit comments:
Adds support for current Fastboot Sparse images. Tested to be able to flash both a a small image (60MB) And a large 1.5GB image. The code in it's current form doesn't do many checks, so no defences against corrupt and bad images. That is on todo after the AndroidFastbootApp / ArmVExpressFastBoot code is clear.
Cc: Zhangfei Gao zhangfei.gao@linaro.org Cc: Olivier Martin olivier.martin@arm.com Signed-off-by: Riku Voipio riku.voipio@linaro.org
Thanks Riku
Have verified on hikey board with 1.1G debin filesystem.
Tested-by: Zhangfei Gao zhangfei.gao@linaro.org