support using an EMMC misc partition to store recovery arguments

Change-Id: I9f912857cfc6afb8ba764f5541af7f01df029a77
diff --git a/roots.c b/roots.c
index 10b93d4..31f99ac 100644
--- a/roots.c
+++ b/roots.c
@@ -51,7 +51,6 @@
 
 static RootInfo g_roots[] = {
     { "BOOT:", g_mtd_device, NULL, "boot", NULL, g_raw },
-    { "MISC:", g_mtd_device, NULL, "misc", NULL, g_raw },
     { "PACKAGE:", NULL, NULL, NULL, NULL, g_package_file },
     { "RECOVERY:", g_mtd_device, NULL, "recovery", "/", g_raw },
     { "SYSTEM:", g_mtd_device, NULL, "system", "/system", "yaffs2" },
@@ -68,6 +67,7 @@
     { "CACHE:", g_mtd_device, NULL, "cache", "/cache", "yaffs2" },
     { "DATA:", g_mtd_device, NULL, "userdata", "/data", "yaffs2" },
     { "EXT:", "/dev/block/mmcblk0p1", "/dev/block/mmcblk0", NULL, "/sdcard", "vfat" },
+    { "MISC:", g_mtd_device, NULL, "misc", NULL, g_raw },
 #endif
 
 };
@@ -384,8 +384,10 @@
 
 #ifdef USE_EXT4
     if (strcmp(info->filesystem, "ext4") == 0) {
+        LOGW("starting to reformat ext4\n");
         reset_ext4fs_info();
         int result = make_ext4fs(info->device, NULL, NULL, 0, 0);
+        LOGW("finished reformat ext4: result = %d\n", result);
         if (result != 0) {
             LOGW("make_ext4fs failed: %d\n", result);
             return -1;