summaryrefslogtreecommitdiff
path: root/common
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
parent7c250c44fb697e281afe4924d4356525cfdab6d3 (diff)
downloadu-boot-imx-b026e66a5bb6c2b6fda9e353dfe9061306c69da4.zip
u-boot-imx-b026e66a5bb6c2b6fda9e353dfe9061306c69da4.tar.gz
u-boot-imx-b026e66a5bb6c2b6fda9e353dfe9061306c69da4.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')
-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