From 307dd82d6236dc5ebdc228528e6eaed31e8a2d3d Mon Sep 17 00:00:00 2001 From: "guoyin.chen" Date: Fri, 22 May 2015 17:37:48 +0800 Subject: MA-6732 Add sparse image flash support for uboot's fastboot Add aboot.o based on CONFIG_FASTBOOT Add partition index for fastboot ptn table Add return value for write_sparse_image to know the sparse write status Add path to write_sparse_image based on the image received and partition to be flashed Signed-off-by: guoyin.chen --- include/fastboot.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/fastboot.h') diff --git a/include/fastboot.h b/include/fastboot.h index c81abcf..7460c24 100644 --- a/include/fastboot.h +++ b/include/fastboot.h @@ -134,6 +134,11 @@ #define FASTBOOT_MMC_USER_PARTITION_ID 0 #define FASTBOOT_MMC_NONE_PARTITION_ID -1 +#define FASTBOOT_PARTITION_BOOT "boot" +#define FASTBOOT_PARTITION_RECOVERY "recovery" +#define FASTBOOT_PARTITION_SYSTEM "system" +#define FASTBOOT_PARTITION_BOOTLOADER "bootloader" + enum { DEV_SATA, DEV_MMC, @@ -213,6 +218,8 @@ struct fastboot_ptentry { unsigned int flags; /* partition id: 0 - normal partition; 1 - boot partition */ unsigned int partition_id; + /* partition number in block device */ + unsigned int partition_index; }; struct fastboot_device_info { -- cgit v1.1