diff options
author | Ji Luo <ji.luo@nxp.com> | 2020-07-22 19:03:32 +0800 |
---|---|---|
committer | Ji Luo <ji.luo@nxp.com> | 2020-07-28 10:13:57 +0800 |
commit | 30df087bfc5e31413473f85dfefaa7176bc394a8 (patch) | |
tree | a4edc517e21aa104575de7243f01ec285764371e /lib | |
parent | 1c48a938cdb5b6b3e4af8a2cfd8a39ea8a427ba4 (diff) |
MA-17541-1 Support virtual A/B update
A 'misc_virtual_ab_message' struct will be stored at the 32kB offset
in misc partition, which will be used to record the virtual A/B update
status.
Bootloader should take care of this status, some operations must be
restricted. This commit will:
1. Restrict erase/flash operations to "misc", "userdata" or
"metadata" partitions if the merge status are "SNAPSHOTTED" or
"MERGING".
2. Restrict slot switch if the merge status is "MERGING".
3. Output a warning in slot switch if the merge status is "SNAPSHOTTED".
4. Set the merge status as "CANCELLED" if image flash happen.
Test: 1. fastboot erase/flash "userdata", "misc", "metadata" after virtual
A/B update
2. slot switch after virtual A/B update
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Change-Id: I33f0041c5e76913d3970d943cad52353e0ac5f2d
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 840359d4e6..3771ac9b23 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -384,6 +384,9 @@ config TRUSTY_UNLOCK_PERMISSION config VENDOR_BOOT_SUPPORT bool "Support vendor boot load" +config VIRTUAL_AB_SUPPORT + bool "Support virtual AB update" + endmenu menu "Hashing Support" |