From 31831aa85180f2237f1b95630843c3c6ac64f45c Mon Sep 17 00:00:00 2001 From: "ji.luo" Date: Tue, 12 Sep 2017 15:34:59 +0800 Subject: MA-10338-1 Correct 'fastboot getvar partition-type' command Correct some partition file system type from 'emmc' to 'raw'. Change-Id: If417ab9f14abfe27b4d5da5f7354922a80c4df18 Signed-off-by: ji.luo --- drivers/usb/gadget/f_fastboot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index a4c4cc5788..a92c5c26dd 100755 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -935,7 +935,7 @@ static int _fastboot_parts_add_ptable_entry(int ptable_index, #endif strcpy(ptable[ptable_index].fstype, "ext4"); else - strcpy(ptable[ptable_index].fstype, "emmc"); + strcpy(ptable[ptable_index].fstype, "raw"); return 0; } @@ -1007,6 +1007,7 @@ static int _fastboot_parts_load_from_ptable(void) ptable[PTN_GPT_INDEX].length = ANDROID_GPT_SIZE / dev_desc->blksz; ptable[PTN_GPT_INDEX].partition_id = user_partition; ptable[PTN_GPT_INDEX].flags = FASTBOOT_PTENTRY_FLAGS_UNERASEABLE; + strcpy(ptable[PTN_GPT_INDEX].fstype, "raw"); /* Bootloader */ strcpy(ptable[PTN_BOOTLOADER_INDEX].name, FASTBOOT_PARTITION_BOOTLOADER); ptable[PTN_BOOTLOADER_INDEX].start = @@ -1015,6 +1016,7 @@ static int _fastboot_parts_load_from_ptable(void) ANDROID_BOOTLOADER_SIZE / dev_desc->blksz; ptable[PTN_BOOTLOADER_INDEX].partition_id = boot_partition; ptable[PTN_BOOTLOADER_INDEX].flags = FASTBOOT_PTENTRY_FLAGS_UNERASEABLE; + strcpy(ptable[PTN_BOOTLOADER_INDEX].fstype, "raw"); int tbl_idx; int part_idx = 1; -- cgit v1.2.3