summaryrefslogtreecommitdiff
path: root/BoardConfig.mk
diff options
context:
space:
mode:
authorSam Protsenko <semen.protsenko@linaro.org>2019-08-02 19:25:52 +0300
committerSam Protsenko <semen.protsenko@linaro.org>2019-12-13 20:06:43 +0200
commit0dd976e6a6035b8358172193709b3ab8149e6b65 (patch)
treefc1747cf6ef3184a9a004ce71f6cd1cb27c0e3d8 /BoardConfig.mk
parent2f9acacea22b55e3c0911417ec3a403b80a4e227 (diff)
downloadbeagle-x15-0dd976e6a6035b8358172193709b3ab8149e6b65.tar.gz
Enable A/B
As boot_control HAL is now implemented for AM57x, we can enable A/B updates. Slotted partitions are specified in AB_OTA_PARTITIONS. Related changes should be implemented in bootloader (partition table). See [0] for implementation details. Next changes are made w.r.t. boot flow: - system is mounted as root, so "skip_initramfs" must be added to kernel cmdline when normal boot is requested - recovery image is not built, so recovery partition can be deleted (in partition table and in fstab) - ramdisk in boot.img contains recovery functionality and should be booted when recovery boot is requested (without "skip_initramfs" parameter in kernel cmdline) - for partitions specified in AB_OTA_PARTITIONS there should be two versions in partition table: with "_a" and "_b" suffixes [0] https://source.android.com/devices/tech/ota/ab/ab_implement Change-Id: I265c8b79c1772c57172b0a5f0094d21d5e4fa86b Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Diffstat (limited to 'BoardConfig.mk')
-rw-r--r--BoardConfig.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 5904014..af7c3a2 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -53,7 +53,11 @@ TARGET_BOOTLOADER_BOARD_NAME := beagle_x15board
TARGET_BOARD_PLATFORM := am57x
TARGET_COPY_OUT_VENDOR := vendor
+TARGET_NO_RECOVERY := true
TARGET_RECOVERY_FSTAB := device/ti/beagle_x15/$(TARGET_FSTAB)
+BOARD_USES_RECOVERY_AS_BOOT := true
+BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
+
TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
TARGET_RECOVERY_UI_LIB := librecovery_ui_beagle_x15
TARGET_RELEASETOOLS_EXTENSIONS := device/ti/beagle_x15
@@ -95,3 +99,15 @@ BOARD_AVB_ENABLE := true
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
BOARD_PREBUILT_DTBIMAGE_DIR := $(DTB_DIR)
BOARD_MKBOOTIMG_ARGS := --header_version 2
+
+# Board uses A/B OTA.
+AB_OTA_UPDATER := true
+# A/B updater updatable partitions list. Keep in sync with the partition list
+# with "_a" and "_b" variants in the device. Note that the vendor can add more
+# partitions to this list for the bootloader and radio.
+AB_OTA_PARTITIONS += \
+ boot \
+ system \
+ vbmeta \
+ dtbo \
+ vendor