Flashutils: detect /dev/block/sd* as emmc
Change-Id: I067a58e5053748b9613ea6b4ac76a1c5285abc7d
This commit is contained in:
committed by
Dees Troy
parent
4f74d14f8c
commit
0de3b7ed61
@@ -54,7 +54,7 @@ static int detect_partition(const char *partitionType, const char *partition)
|
||||
int type = device_flash_type();
|
||||
if (strstr(partition, "/dev/block/mtd") != NULL)
|
||||
type = MTD;
|
||||
else if (strstr(partition, "/dev/block/mmc") != NULL)
|
||||
else if (strstr(partition, "/dev/block/mmc") != NULL || strstr(partition, "/dev/block/sd") != NULL)
|
||||
type = MMC;
|
||||
else if (strstr(partition, "/dev/block/bml") != NULL)
|
||||
type = BML;
|
||||
|
||||
Reference in New Issue
Block a user