diff options
author | Zhang Sanshan <b51434@freescale.com> | 2015-07-06 10:26:01 +0800 |
---|---|---|
committer | Zhang Sanshan <b51434@freescale.com> | 2015-07-07 16:32:18 +0800 |
commit | b026e66a5bb6c2b6fda9e353dfe9061306c69da4 (patch) | |
tree | 3751cb2d62ebabae15965916ee41bfe817446159 /common/cmd_fastboot.c | |
parent | 7c250c44fb697e281afe4924d4356525cfdab6d3 (diff) | |
download | u-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 |
MA-6860-1 refine fastboot in ubootrel_imx_3.14.38_6ul7d_betal5.1.1_2.0.0_7d-betaimx_v2015.04_3.14.38_6ul7d_beta
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.c | 6 |
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 |