diff options
author | ji.luo <ji.luo@nxp.com> | 2017-09-12 15:34:59 +0800 |
---|---|---|
committer | ji.luo <ji.luo@nxp.com> | 2017-11-22 10:35:48 +0800 |
commit | 31831aa85180f2237f1b95630843c3c6ac64f45c (patch) | |
tree | 3e0f2d25049e6df0971bd75139ac9f245019f7f8 | |
parent | c1ec08e07d5f43ab6442fa383bcb755606d44576 (diff) |
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 <ji.luo@nxp.com>
-rwxr-xr-x | drivers/usb/gadget/f_fastboot.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |