summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorguoyin.chen <guoyin.chen@freescale.com>2015-05-22 17:37:48 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2015-06-25 17:39:28 +0800
commit96edf3b9d7fd38d6059e158392eadca521ecb4d2 (patch)
treee66588aa67e80f52512e23a9f84b3a4dcc18e2b9 /include
parent02c781ffe5d3dd52fcefe7686695ca2eefce2d5f (diff)
downloadu-boot-imx-96edf3b9d7fd38d6059e158392eadca521ecb4d2.zip
u-boot-imx-96edf3b9d7fd38d6059e158392eadca521ecb4d2.tar.gz
u-boot-imx-96edf3b9d7fd38d6059e158392eadca521ecb4d2.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')
-rw-r--r--include/aboot.h2
-rw-r--r--include/fastboot.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/include/aboot.h b/include/aboot.h
index 30e4d36..383729d 100644
--- a/include/aboot.h
+++ b/include/aboot.h
@@ -23,6 +23,6 @@ static inline int is_sparse_image(void *buf)
return 0;
}
-void write_sparse_image(block_dev_desc_t *dev_desc,
+int write_sparse_image(block_dev_desc_t *dev_desc,
disk_partition_t *info, const char *part_name,
void *data, unsigned sz);
diff --git a/include/fastboot.h b/include/fastboot.h
index c81abcf..ad7bb29 100644
--- a/include/fastboot.h
+++ b/include/fastboot.h
@@ -3,7 +3,7 @@
* Windriver, <www.windriver.com>
* Tom Rix <Tom.Rix@windriver.com>
*
- * Copyright (C) 2010-2013 Freescale Semiconductor, Inc.
+ * Copyright (C) 2010-2015 Freescale Semiconductor, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -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 {