summaryrefslogtreecommitdiff
path: root/common/cmd_fastboot.c
diff options
context:
space:
mode:
authorZhang Sanshan <b51434@freescale.com>2015-07-06 10:26:01 +0800
committerZhang Sanshan <b51434@freescale.com>2015-07-07 16:32:18 +0800
commitb026e66a5bb6c2b6fda9e353dfe9061306c69da4 (patch)
tree3751cb2d62ebabae15965916ee41bfe817446159 /common/cmd_fastboot.c
parent7c250c44fb697e281afe4924d4356525cfdab6d3 (diff)
downloadu-boot-imx-imx_v2015.04_3.14.38_6ul7d_beta.zip
u-boot-imx-imx_v2015.04_3.14.38_6ul7d_beta.tar.gz
u-boot-imx-imx_v2015.04_3.14.38_6ul7d_beta.tar.bz2
Enable fastboot command "fastboot flash data" Custom may need to update data partition in fastboot mode. This patch enable flash data partition in emmc\sd. Signed-off-by: Zhang Sanshan <b51434@freescale.com>
Diffstat (limited to 'common/cmd_fastboot.c')
-rw-r--r--common/cmd_fastboot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
index 4f5c3c7..4315134 100644
--- a/common/cmd_fastboot.c
+++ b/common/cmd_fastboot.c
@@ -723,8 +723,10 @@ static void process_flash_sata(const char *cmdbuf, char *response)
#if defined(CONFIG_FASTBOOT_STORAGE_MMC)
static int is_sparse_partition(struct fastboot_ptentry *ptn)
{
- if (ptn && !strncmp(ptn->name,
- FASTBOOT_PARTITION_SYSTEM, strlen(FASTBOOT_PARTITION_SYSTEM))) {
+ if (ptn && (!strncmp(ptn->name,
+ FASTBOOT_PARTITION_SYSTEM, strlen(FASTBOOT_PARTITION_SYSTEM))
+ || !strncmp(ptn->name,
+ FASTBOOT_PARTITION_DATA, strlen(FASTBOOT_PARTITION_DATA)))) {
printf("support sparse flash partition for %s\n", ptn->name);
return 1;
} else