summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2020-11-29 15:26:55 +0800
committerJi Luo <ji.luo@nxp.com>2020-12-02 14:37:20 +0800
commite42dee801ec55bc40347cbb98f13bfb5899f0368 (patch)
treeab8c073f4d61eb62bd0e72a6a476de61f3e2ff89 /lib
parent16de6daf3dc5089f1373407fc735909f2fef0769 (diff)
MA-18342 Sync misc partition ID with GPT
Automotive will find the misc partition by the ID instead of by name to decrease the boot time. But the misc partition ID is different between Android 10 and Android 11 release. This commit sync the misc partition ID with GPT. Test: slot switch on imx8qm. Change-Id: I05c3bfdb98bc1ab179b4343111f4c33d768af5cf Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/avb/fsl/fsl_bootctrl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/avb/fsl/fsl_bootctrl.c b/lib/avb/fsl/fsl_bootctrl.c
index 60ca7cba0d..38733cebb1 100755
--- a/lib/avb/fsl/fsl_bootctrl.c
+++ b/lib/avb/fsl/fsl_bootctrl.c
@@ -463,7 +463,8 @@ out:
#define PARTITION_NAME_LEN 13
#define PARTITION_BOOTLOADER "bootloader"
#ifdef CONFIG_ANDROID_AUTO_SUPPORT
-#define PARTITION_MISC_ID 11
+/* This should always sync with the gpt */
+#define PARTITION_MISC_ID 9
#endif
extern int mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value);