aboutsummaryrefslogtreecommitdiffstats
path: root/flashutils
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2011-04-22 12:12:32 -0700
committerKoushik Dutta <koushd@gmail.com>2011-04-22 12:12:32 -0700
commitf573510b501b65b1be8003f6e9d900df01530f1d (patch)
treed6fb8ce1c4aa435444ba63f707ddc56c36013482 /flashutils
parenteee085415f673af07bf0aa630c50c9213e7a2a2c (diff)
downloadbootable_recovery-f573510b501b65b1be8003f6e9d900df01530f1d.zip
bootable_recovery-f573510b501b65b1be8003f6e9d900df01530f1d.tar.gz
bootable_recovery-f573510b501b65b1be8003f6e9d900df01530f1d.tar.bz2
bml fixes
Change-Id: I442ef3c155bab36db578ca5735215aedda353c29
Diffstat (limited to 'flashutils')
-rw-r--r--flashutils/flashutils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/flashutils/flashutils.c b/flashutils/flashutils.c
index 0b1467e..7504e4a 100644
--- a/flashutils/flashutils.c
+++ b/flashutils/flashutils.c
@@ -10,7 +10,7 @@ int the_flash_type = UNKNOWN;
int device_flash_type()
{
if (the_flash_type == UNKNOWN) {
- if (access("/dev/block/bml1", F_OK) == 0) {
+ if (access("/dev/block/bml7", F_OK) == 0) {
the_flash_type = BML;
} else if (access("/proc/emmc", F_OK) == 0) {
the_flash_type = MMC;
@@ -78,7 +78,7 @@ static int detect_partition(const char *partition)
type = MMC;
else if (strstr(partition, "/dev/block/bml") != NULL)
type = BML;
-
+
return type;
}
int restore_raw_partition(const char *partition, const char *filename)
@@ -107,6 +107,7 @@ int backup_raw_partition(const char *partition, const char *filename)
case BML:
return cmd_bml_backup_raw_partition(partition, filename);
default:
+ printf("unable to detect device type");
return -1;
}
}