diff options
author | guoyin.chen <guoyin.chen@freescale.com> | 2015-05-22 17:37:48 +0800 |
---|---|---|
committer | guoyin.chen <guoyin.chen@freescale.com> | 2015-06-09 07:04:49 +0800 |
commit | 307dd82d6236dc5ebdc228528e6eaed31e8a2d3d (patch) | |
tree | aceae7a1893e517483193f12524b2cdcb4389974 /include/fastboot.h | |
parent | e28336b4e0bbc0471ef45fa995fcb99e53fe2b7a (diff) | |
download | u-boot-imx-307dd82d6236dc5ebdc228528e6eaed31e8a2d3d.zip u-boot-imx-307dd82d6236dc5ebdc228528e6eaed31e8a2d3d.tar.gz u-boot-imx-307dd82d6236dc5ebdc228528e6eaed31e8a2d3d.tar.bz2 |
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 <guoyin.chen@freescale.com>
Diffstat (limited to 'include/fastboot.h')
-rw-r--r-- | include/fastboot.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 { |