From b026e66a5bb6c2b6fda9e353dfe9061306c69da4 Mon Sep 17 00:00:00 2001 From: Zhang Sanshan Date: Mon, 6 Jul 2015 10:26:01 +0800 Subject: MA-6860-1 refine fastboot in uboot 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 --- common/cmd_fastboot.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/cmd_fastboot.c') 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 -- cgit v1.1