summaryrefslogtreecommitdiff
path: root/include/fsl_fastboot.h
diff options
context:
space:
mode:
authorWinter Wang <wente.wang@nxp.com>2016-11-01 20:34:05 +0800
committerWinter Wang <wente.wang@nxp.com>2016-11-15 13:42:01 +0800
commitf49a79614bfda6bfa8266ba93a96428a730ef43c (patch)
treed7c3deaae758dd0a8f3f9e4241dd4aafb9ce9341 /include/fsl_fastboot.h
parent6307b157ad39c56b52fceff0584d084415abb79f (diff)
downloadu-boot-imx-f49a79614bfda6bfa8266ba93a96428a730ef43c.zip
u-boot-imx-f49a79614bfda6bfa8266ba93a96428a730ef43c.tar.gz
u-boot-imx-f49a79614bfda6bfa8266ba93a96428a730ef43c.tar.bz2
MA-8986-5 fastboot: add fsl_avb support
* support avb in picosom/evk_6ul boards; * use CONFIG_FSL_BOOTCTL instead of CONFIG_BRILLO_SUPPORT to separate using FSL version of bootctl or not; * separate all avb part with CONFIG_AVB_SUPPORT; * in picosom/evk_6ul board config headers: modify malloc size as avb needs to load the whole bootimage; add partition uuid which libavb needs. * add avb verify in boota; * add bootctl set_active cb using libavb's interface; * add bootctl getvar cb using libavb's interface; * add vbmeta_a/b partition to store vbmeta image, add avbkey partition to store avb related keyblob; * add LOCK/UNLOCK for avb; if in LOCK state, verify fail will cause boot fail; if in UNLOCK state, verify fail only print a msg and go on boot the "_a" slot, maybe it's better to use bootctl to select the bootable slot, but libavb doesn't have this interface exported. switch from LOCK to UNLOCK causes a erase of rollback_index in avbkey partition. Signed-off-by: Winter Wang <wente.wang@nxp.com>
Diffstat (limited to 'include/fsl_fastboot.h')
-rw-r--r--include/fsl_fastboot.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/fsl_fastboot.h b/include/fsl_fastboot.h
index 256bb36..1b3ed86 100644
--- a/include/fsl_fastboot.h
+++ b/include/fsl_fastboot.h
@@ -49,6 +49,13 @@
#define FASTBOOT_PARTITION_DATA "userdata"
#define FASTBOOT_PARTITION_BOOT_B "boot_b"
#define FASTBOOT_PARTITION_SYSTEM_B "system_b"
+#ifdef CONFIG_AVB_SUPPORT
+#define FASTBOOT_PARTITION_VBMETA_A "vbmeta_a"
+#define FASTBOOT_PARTITION_VBMETA_B "vbmeta_b"
+#define FASTBOOT_PARTITION_AVBKEY "avbkey"
+#define FASTBOOT_PARTITION_VBMETA_FS "emmc"
+#define FASTBOOT_PARTITION_AVBKEY_FS "emmc"
+#endif /* CONFIG_AVB_SUPPORT */
#else /* CONFIG_BRILLO_SUPPORT */
#define FASTBOOT_PARTITION_BOOT "boot"
#define FASTBOOT_PARTITION_RECOVERY "recovery"
@@ -146,6 +153,10 @@ struct fastboot_ptentry {
unsigned int partition_index;
/* partition file system type in string */
char fstype[16];
+ /* filesystem UUID as string, if exists */
+#ifdef CONFIG_PARTITION_UUIDS
+ char uuid[37];
+#endif
};
struct fastboot_device_info {