MA-10338-1 Correct 'fastboot getvar partition-type' command
authorji.luo <ji.luo@nxp.com>
Tue, 12 Sep 2017 07:34:59 +0000 (15:34 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:20 +0000 (02:37 +0800)
Correct some partition file system type from 'emmc' to 'raw'.

Change-Id: If417ab9f14abfe27b4d5da5f7354922a80c4df18
Signed-off-by: ji.luo <ji.luo@nxp.com>
drivers/usb/gadget/f_fastboot.c

index 849e800..f56c1b3 100644 (file)
@@ -1389,7 +1389,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;
 }
 
@@ -1461,12 +1461,14 @@ 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");
 
        /* Trusty OS */
        strcpy(ptable[PTN_TEE_INDEX].name, FASTBOOT_PARTITION_TEE);
        ptable[PTN_TEE_INDEX].start = 0;
        ptable[PTN_TEE_INDEX].length = TRUSTY_OS_MMC_BLKS;
        ptable[PTN_TEE_INDEX].partition_id = TEE_HWPARTITION_ID;
+       strcpy(ptable[PTN_TEE_INDEX].fstype, "raw");
 
        /* Bootloader */
        strcpy(ptable[PTN_BOOTLOADER_INDEX].name, FASTBOOT_PARTITION_BOOTLOADER);
@@ -1476,6 +1478,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;