diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2023-07-03 10:07:13 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-07-17 16:20:08 -0400 |
commit | 3430f24bc69d61eadf5b09999d58c468ac67c9fe (patch) | |
tree | 2be4c8232f5cb3637da9c7cc501f3c8eb9d8f3f0 /common | |
parent | 55a424437226f9ef50c3e829dafa6b494377d018 (diff) | |
download | u-boot-3430f24bc69d61eadf5b09999d58c468ac67c9fe.tar.gz u-boot-3430f24bc69d61eadf5b09999d58c468ac67c9fe.tar.bz2 u-boot-3430f24bc69d61eadf5b09999d58c468ac67c9fe.zip |
android_ab: Try backup booloader_message
Some devices keep 2 copies of the bootloader_message in the misc
partition and write each in sequence when updating. This ensures that
there is always one valid copy of the bootloader_message. Teach u-boot
to optionally try a backup bootloader_message from a specified offset if
the primary one fails its CRC check.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index 42baca20a6..f5ad63ce16 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -936,6 +936,15 @@ config ANDROID_AB allows a bootloader to try a new version of the system but roll back to previous version if the new one didn't boot all the way. +config ANDROID_AB_BACKUP_OFFSET + hex "Offset of backup bootloader control" + depends on ANDROID_AB + default 0x0 + help + If non-zero, a backup bootloader message starting at this offset in + the partition will tried in the event that the primary one (starting + at offset 0) fails its checksum. + endmenu menu "Blob list" |