bml fixes

Change-Id: I442ef3c155bab36db578ca5735215aedda353c29
This commit is contained in:
Koushik Dutta 2011-04-22 12:12:32 -07:00
parent eee085415f
commit f573510b50
3 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ LOCAL_MODULE := recovery
LOCAL_FORCE_STATIC_EXECUTABLE := true
RECOVERY_VERSION := ClockworkMod Recovery v3.0.2.4
RECOVERY_VERSION := ClockworkMod Recovery v3.0.2.5
LOCAL_CFLAGS += -DRECOVERY_VERSION="$(RECOVERY_VERSION)"
RECOVERY_API_VERSION := 2
LOCAL_CFLAGS += -DRECOVERY_API_VERSION=$(RECOVERY_API_VERSION)

View File

@ -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;
}
}

View File

@ -153,7 +153,6 @@ int try_mount(const char* device, const char* mount_point, const char* fs_type,
else {
char mount_cmd[PATH_MAX];
sprintf(mount_cmd, "mount -t %s -o%s %s %s", fs_type, fs_options, device, mount_point);
LOGE("%s\n", mount_cmd);
ret = __system(mount_cmd);
}
if (ret == 0)