From 49b633b1e52ea4b9092ffcc0086807abe1f4529e Mon Sep 17 00:00:00 2001 From: fang hui Date: Mon, 21 Dec 2015 10:30:23 +0800 Subject: MA-7373 - [brillo]: store slot meta data in a raw partition, no file system. Partition name change from slotmeta to misc. Read/write raw data on partition misc, not use ext4 file system. Store meta in bootloader_message.slot_suffix, as defined in bootable/recovery/bootloader.h The first 4 bytes of boot_ctl are defined as magic number. Signed-off-by: fang hui --- drivers/usb/gadget/f_fastboot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/usb/gadget/f_fastboot.c') diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 400f941..3263ecc 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -169,7 +169,7 @@ enum { #ifdef CONFIG_BRILLO_SUPPORT PTN_KERNEL_B_INDEX, PTN_SYSTEM_B_INDEX, - PTN_SLOTMETA_INDEX, + PTN_MISC_INDEX, #endif PTN_NUM }; @@ -1251,10 +1251,10 @@ static int _fastboot_parts_load_from_ptable(void) FASTBOOT_PARTITION_SYSTEM_B, dev_desc, ptable); - _fastboot_parts_add_ptable_entry(PTN_SLOTMETA_INDEX, - CONFIG_ANDROID_SLOTMETA_PARTITION_MMC, + _fastboot_parts_add_ptable_entry(PTN_MISC_INDEX, + CONFIG_ANDROID_MISC_PARTITION_MMC, user_partition, - FASTBOOT_PARTITION_SLOTMETA, + FASTBOOT_PARTITION_MISC, dev_desc, ptable); #else _fastboot_parts_add_ptable_entry(PTN_KERNEL_INDEX, -- cgit v1.1