Skip to contentSkip to conversation

ANDROID: Add some features link to OPTEE TA AVB

PATCH In review Guillaume La Roque (TI.com) 3 participants 6 messages Oct 2, 2025 – Oct 3, 2025 Library code

lore
Share & tools
lore
#0 lore raw

cover ANDROID: Add some features link to OPTEE TA AVB

This series add some Android features link to Android Verify Boot, device lock/unlock and keymint TA

- Add support of fastboot flashing lock/unlock and lock_critical/unlock_critical with Optee TA AVB if supported or with env variable (for development only)
- Add support of get root or trust with TA AVB and Keymint TA

This series will be upstream after release.

---
Guillaume La Roque (TI.com) (2):
PENDING: fastboot: Implement Android bootloader locking with CONFIG_FASTBOOT_LOCKING
PENDING: avb: Add automatic Root of Trust integration for Android KeyMint

 boot/bootmeth_android.c       |  15 ++
 cmd/Kconfig                   |  13 +
 cmd/Makefile                  |   1 +
 cmd/avb.c                     |  13 +
 cmd/cmd_avb_rot.c             | 129 ++++++++++
 common/avb_verify.c           | 183 ++++++++++++++-
 drivers/fastboot/Kconfig      |  21 ++
 drivers/fastboot/fb_command.c | 450 +++++++++++++++++++++++++++++++++++
 drivers/fastboot/fb_getvar.c  |  68 ++++++
 include/avb_root_of_trust.h   |  50 ++++
 include/avb_verify.h          |   9 +
 include/fastboot.h            |   5 +
 lib/Kconfig                   |  18 ++
 lib/Makefile                  |   1 +
 lib/avb_root_of_trust.c       | 534 ++++++++++++++++++++++++++++++++++++++++++
 15 files changed, 1503 insertions(+), 7 deletions(-)

---
base-commit: 5b93c3ec7f9d66dc40d062a47a4a880f7d346b7a
change-id: 20251002-avb-6be401c09050

Best regards,

Signature · 1 line
Guillaume La Roque (TI.com) <[email protected]>
#1 lore raw

PATCH 1/2 PENDING: fastboot: Implement Android bootloader locking with CONFIG_FASTBOOT_LOCKING

Add comprehensive Android Verified Boot security implementation with:
- New CONFIG_FASTBOOT_LOCKING config option to enable/disable features
- fastboot flashing lock/unlock commands with user confirmation
- fastboot flashing lock_critical/unlock_critical for critical partitions
- fastboot flashing get_unlock_ability command for unlock ability status
- Device lock state verification before flash/erase operations
- Critical partition protection (bootloader, radio, tiboot3, tispl, u-boot, etc.)
- getvar support for unlocked, unlock_ability, and critical_unlocked states
- Environment variable storage for lock states with graceful fallbacks
- User confirmation prompts for unlock operations with safety warnings

This implementation uses environment variables instead of OPTEE TA AVB:
- device_unlocked: "1" if unlocked, "0" if locked
- critical_unlocked: "1" if critical partitions unlocked, "0" if locked
- fastboot.unlock_ability: "1" if unlock allowed, "0" if not

When CONFIG_FASTBOOT_LOCKING is disabled, all locking functions return appropriate stub responses and devices behave as unlocked.

This follows Android specification requirements for bootloader security and provides proper protection against unauthorized partition modifications on locked devices without requiring OPTEE TA AVB dependency.

---
 common/avb_verify.c           | 183 ++++++++++++++++-
 drivers/fastboot/Kconfig      |  21 ++
 drivers/fastboot/fb_command.c | 450 ++++++++++++++++++++++++++++++++++++++++++
 drivers/fastboot/fb_getvar.c  |  68 +++++++
 include/avb_verify.h          |   9 +
 include/fastboot.h            |   5 +
 6 files changed, 729 insertions(+), 7 deletions(-)
common/avb_verify.c +176 -7
index 29a3272579cf..48a73a630812 100644
@@ -6,6 +6,7 @@
 #include <avb_verify.h>
 #include <blk.h>
 #include <cpu_func.h>
+#include <env.h>
 #include <image.h>
 #include <malloc.h>
 #include <part.h>
@@ -819,23 +820,191 @@ static AvbIOResult write_rollback_index(AvbOps *ops,
  */
 static AvbIOResult read_is_device_unlocked(AvbOps *ops, bool *out_is_unlocked)
 {
-#ifndef CONFIG_OPTEE_TA_AVB
-	/* For now we always return that the device is unlocked. */
-	debug("%s: device locking is not implemented\n", __func__);
+#if defined(CONFIG_OPTEE_TA_AVB) && defined(CONFIG_FASTBOOT_LOCKING)
+	/* Use AVB TA when both TA_AVB and fastboot locking are enabled */
+	AvbIOResult rc;
+	struct tee_param param = { .attr = TEE_PARAM_ATTR_TYPE_VALUE_OUTPUT };
+
+	debug("%s: reading device lock state via AVB TA\n", __func__);
+	rc = invoke_func(ops->user_data, TA_AVB_CMD_READ_LOCK_STATE, 1, &param);
+	if (rc) {
+		debug("%s: AVB TA failed (rc=%d), falling back to environment\n", __func__, rc);
+		goto fallback_env;
+	}
+	*out_is_unlocked = !param.u.value.a;
+	debug("%s: AVB TA returned lock_state=%llu (unlocked=%d)\n",
+	      __func__, (unsigned long long)param.u.value.a, *out_is_unlocked);
+	return AVB_IO_RESULT_OK;
 
+fallback_env:
+#endif
+#ifdef CONFIG_FASTBOOT_LOCKING
+	/* Use environment variable when fastboot locking is enabled */
+	char *device_unlocked = env_get("device_unlocked");
+
+	debug("%s: reading device lock state via environment\n", __func__);
+	*out_is_unlocked = (device_unlocked && !strcmp(device_unlocked, "1"));
+	debug("%s: environment device_unlocked=%s (unlocked=%d)\n", __func__,
+	      device_unlocked ? device_unlocked : "NULL", *out_is_unlocked);
+	return AVB_IO_RESULT_OK;
+#else
+	/* For systems without fastboot locking, always return unlocked */
+	debug("%s: device locking is not implemented, returning unlocked\n", __func__);
 	*out_is_unlocked = true;
+	return AVB_IO_RESULT_OK;
+#endif
+}
 
+/**
+ * write_is_device_unlocked() - sets whether the device is unlocked
+ *
+ * @ops: contains AVB ops handlers
+ * @is_unlocked: device unlock state to set, true if unlocked,
+ *       false otherwise
+ *
+ * @return:
+ *       AVB_IO_RESULT_OK: state is set successfully
+ *       AVB_IO_RESULT_ERROR_IO: an error occurred
+ */
+AvbIOResult write_is_device_unlocked(AvbOps *ops, bool is_unlocked)
+{
+#ifdef CONFIG_OPTEE_TA_AVB
+	/* Use AVB TA when available */
+	AvbIOResult rc;
+	struct tee_param param = { .attr = TEE_PARAM_ATTR_TYPE_VALUE_INPUT };
+
+	debug("%s: setting device lock state via AVB TA (unlocked=%d)\n", __func__, is_unlocked);
+	/* TA expects lock state (opposite of unlock state) */
+	param.u.value.a = !is_unlocked;
+
+	rc = invoke_func(ops->user_data, TA_AVB_CMD_WRITE_LOCK_STATE, 1, &param);
+	if (rc != AVB_IO_RESULT_OK) {
+		debug("%s: AVB TA failed (rc=%d)\n", __func__, rc);
+		return rc;
+	}
+	debug("%s: AVB TA write successful\n", __func__);
 	return AVB_IO_RESULT_OK;
 #else
+	/* No AVB TA available */
+	debug("%s: AVB TA not available\n", __func__);
+	return AVB_IO_RESULT_ERROR_IO;
+#endif
+}
+
+/**
+ * avb_is_device_unlocked() - checks if device is unlocked using AVB TA or environment
+ *
+ * This function can be called without AVB operations and will use the AVB TA
+ * if available, otherwise fall back to environment variables.
+ *
+ * @return: true if device is unlocked, false if locked
+ */
+bool avb_is_device_unlocked(void)
+{
+#ifdef CONFIG_OPTEE_TA_AVB
+	/* Try to use AVB TA if available */
+	struct AvbOpsData *ops_data;
 	AvbIOResult rc;
 	struct tee_param param = { .attr = TEE_PARAM_ATTR_TYPE_VALUE_OUTPUT };
+	bool is_unlocked;
 
-	rc = invoke_func(ops->user_data, TA_AVB_CMD_READ_LOCK_STATE, 1, &param);
-	if (rc)
+	/* Try to get AVB ops data - this is a best effort attempt */
+	ops_data = (struct AvbOpsData *)avb_ops_alloc(0);
+	if (ops_data) {
+		debug("%s: reading device lock state via AVB TA\n", __func__);
+		rc = invoke_func(ops_data, TA_AVB_CMD_READ_LOCK_STATE, 1, &param);
+		if (rc == AVB_IO_RESULT_OK) {
+			is_unlocked = !param.u.value.a;
+			debug("%s: AVB TA returned lock_state=%llu (unlocked=%d)\n",
+			      __func__, (unsigned long long)param.u.value.a, is_unlocked);
+			avb_ops_free(&ops_data->ops);
+			return is_unlocked;
+		}
+		debug("%s: AVB TA failed (rc=%d)\n", __func__, rc);
+		avb_ops_free(&ops_data->ops);
+	}
+#endif
+
+	/* No AVB TA available or failed */
+	debug("%s: AVB TA not available, returning false (locked)\n", __func__);
+	return false;
+}
+
+/* Forward declarations for static functions used by critical lock functions */
+static AvbIOResult read_persistent_value(AvbOps *ops, const char *name,
+					 size_t buffer_size, u8 *out_buffer,
+					 size_t *out_num_bytes_read);
+static AvbIOResult write_persistent_value(AvbOps *ops, const char *name,
+					  size_t value_size, const u8 *value);
+
+/**
+ * write_is_device_critical_unlocked() - sets whether the device critical
+ * partitions are unlocked using AVB persistent values
+ *
+ * Uses a separate AVB persistent value "critical_unlocked" to manage critical lock state
+ * independently from the standard device lock state.
+ *
+ * @ops: contains AVB ops handlers
+ * @is_unlocked: device unlock state to write
+ *
+ * @return:
+ *      AVB_IO_RESULT_OK, on success
+ *      AVB_IO_RESULT_ERROR_*, on error
+ */
+AvbIOResult write_is_device_critical_unlocked(AvbOps *ops, bool is_unlocked)
+{
+	/* Use AVB persistent value for critical unlock state */
+	AvbIOResult rc;
+	u8 unlock_state = is_unlocked ? 1 : 0;
+
+	debug("%s: setting critical lock state via AVB persistent value (unlocked=%d)\n",
+	      __func__, is_unlocked);
+
+	rc = write_persistent_value(ops, "critical_unlocked", 1, &unlock_state);
+	if (rc != AVB_IO_RESULT_OK) {
+		debug("%s: AVB persistent value write failed (rc=%d)\n", __func__, rc);
 		return rc;
-	*out_is_unlocked = !param.u.value.a;
+	}
+	debug("%s: AVB persistent value write successful\n", __func__);
 	return AVB_IO_RESULT_OK;
-#endif
+}
+
+/**
+ * avb_is_device_critical_unlocked() - checks if device critical partitions
+ * are unlocked using AVB persistent values
+ *
+ * Uses a separate AVB persistent value "critical_unlocked" to check critical lock state
+ * independently from the standard device lock state.
+ *
+ * @return: true if critical partitions are unlocked, false if locked
+ */
+bool avb_is_device_critical_unlocked(void)
+{
+	/* Use AVB persistent value for critical unlock state */
+	AvbOps *ops;
+	AvbIOResult rc;
+	u8 unlock_state = 0;
+	size_t num_bytes_read = 0;
+
+	ops = avb_ops_alloc(0);
+	if (!ops)
+		return false;  /* Default to locked if no AVB available */
+
+	debug("%s: reading critical lock state via AVB persistent value\n", __func__);
+	rc = read_persistent_value(ops, "critical_unlocked", 1, &unlock_state, &num_bytes_read);
+	if (rc != AVB_IO_RESULT_OK || num_bytes_read != 1) {
+		debug("%s: AVB persistent value read failed (rc=%d, bytes=%zu)\n",
+		      __func__, rc, num_bytes_read);
+		avb_ops_free(ops);
+		return false;  /* Default to locked if read fails */
+	}
+
+	bool unlocked = (unlock_state == 1);
+
+	debug("%s: AVB persistent value critical_unlocked=%u (unlocked=%d)\n",
+	      __func__, unlock_state, unlocked);
+	avb_ops_free(ops);
+	return unlocked;
 }
 
 /**
drivers/fastboot/Kconfig +21 -0
index 843171902ae6..77d83af2a685 100644
@@ -264,6 +264,27 @@ config FASTBOOT_OEM_BOARD
 	  command allows running vendor custom code defined in board/ files.
 	  Otherwise, it will do nothing and send fastboot fail.
 
+config FASTBOOT_LOCKING
+	bool "Enable fastboot locking/unlocking commands"
+	help
+	  This adds support for the Android fastboot locking commands:
+	  - flashing lock
+	  - flashing unlock
+	  - flashing lock_critical
+	  - flashing unlock_critical
+	  - flashing get_unlock_ability
+
+	  It also adds corresponding getvar support for unlocked, unlock_ability,
+	  and critical_unlocked variables. The implementation uses environment
+	  variables to store the lock states:
+	  - device_unlocked: "1" if unlocked, "0" if locked
+	  - critical_unlocked: "1" if critical partitions unlocked, "0" if locked
+	  - fastboot.unlock_ability: "1" if unlock allowed, "0" if not
+
+	  When enabled, flash and erase commands will check lock state before
+	  allowing operations on partitions. Critical partitions (bootloader,
+	  tiboot3, tispl, u-boot, etc.) have additional protection.
+
 endif # FASTBOOT
 
 endmenu
drivers/fastboot/fb_command.c +450 -0

490 lines not on this page · raw message

drivers/fastboot/fb_getvar.c +68 -0

86 lines not on this page · raw message

include/avb_verify.h +9 -0
index 5d998b5a3027..29c028b74fdf 100644
@@ -9,6 +9,7 @@
 #include <../lib/libavb/libavb.h>
 #include <mapmem.h>
 #include <mmc.h>
+#include <stdbool.h>
 
 #define AVB_MAX_ARGS			1024
 #define VERITY_TABLE_OPT_RESTART	"restart_on_corruption"
@@ -54,6 +55,14 @@ char *avb_set_ignore_corruption(const char *cmdline);
 char *append_cmd_line(char *cmdline_orig, char *cmdline_new);
 const char *str_avb_io_error(AvbIOResult res);
 const char *str_avb_slot_error(AvbSlotVerifyResult res);
+
+/* Device lock state functions */
+AvbIOResult write_is_device_unlocked(AvbOps *ops, bool is_unlocked);
+bool avb_is_device_unlocked(void);
+
+/* Critical partitions lock state functions */
+AvbIOResult write_is_device_critical_unlocked(AvbOps *ops, bool is_unlocked);
+bool avb_is_device_critical_unlocked(void);
 /**
  * ============================================================================
  * I/O helper inline functions
include/fastboot.h +5 -0
index b106d6177493..634758243552 100644
@@ -51,6 +51,11 @@ enum {
 	FASTBOOT_COMMAND_OEM_RUN,
 	FASTBOOT_COMMAND_OEM_CONSOLE,
 	FASTBOOT_COMMAND_OEM_BOARD,
+	FASTBOOT_COMMAND_FLASHING_LOCK,
+	FASTBOOT_COMMAND_FLASHING_UNLOCK,
+	FASTBOOT_COMMAND_FLASHING_LOCK_CRITICAL,
+	FASTBOOT_COMMAND_FLASHING_UNLOCK_CRITICAL,
+	FASTBOOT_COMMAND_FLASHING_GET_UNLOCK_ABILITY,
 	FASTBOOT_COMMAND_ACMD,
 	FASTBOOT_COMMAND_UCMD,
 	FASTBOOT_COMMAND_COUNT
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 PENDING: avb: Add automatic Root of Trust integration for Android KeyMint

In reply to Guillaume La Roque (TI.com)

Implement automatic collection and storage of Root of Trust data during AVB verification for Android KeyMint attestation support.

Key features:
- Automatic Root of Trust storage triggered by avb_slot_verify() calls
- Integration in both AVB commands and Android bootloader flows
- Enhanced device lock state detection with multiple fallback methods
- Optimized public key handling with SHA-256 hashing for large keys
- Comprehensive boot state mapping (GREEN/YELLOW/ORANGE/RED)
- Secure storage via AVB TA in OP-TEE persistent storage

Changes:
- Add avb_store_root_of_trust_from_verification() with enhanced error handling
- Integrate automatic storage in cmd/avb.c and boot/bootmeth_android.c
- Add CONFIG_AVB_ROOT_OF_TRUST and CONFIG_CMD_AVB_ROT Kconfig options
- Include avb_rot debug commands for testing and validation
- Update AM62x Android configuration with proper dependencies

The Root of Trust data includes verified boot key, device lock state, verified boot state, boot image hash, and timestamp, enabling Android KeyMint to provide hardware-backed key attestation.

---
 boot/bootmeth_android.c     |  15 ++
 cmd/Kconfig                 |  13 ++
 cmd/Makefile                |   1 +
 cmd/avb.c                   |  13 ++
 cmd/cmd_avb_rot.c           | 129 +++++++++++
 include/avb_root_of_trust.h |  50 +++++
 lib/Kconfig                 |  18 ++
 lib/Makefile                |   1 +
 lib/avb_root_of_trust.c     | 534 ++++++++++++++++++++++++++++++++++++++++++++
 9 files changed, 774 insertions(+)
boot/bootmeth_android.c +15 -0
index 8c2bde10e171..ecb3c1e2ea12 100644
@@ -11,6 +11,7 @@
 #include <android_image.h>
 #if CONFIG_IS_ENABLED(AVB_VERIFY)
 #include <avb_verify.h>
+#include <avb_root_of_trust.h>
 #endif
 #include <bcb.h>
 #include <blk.h>
@@ -451,6 +452,18 @@ static int run_avb_verification(struct bootflow *bflow)
 				 AVB_HASHTREE_ERROR_MODE_RESTART_AND_INVALIDATE,
 				 &out_data);
 
+	if (CONFIG_IS_ENABLED(AVB_ROOT_OF_TRUST)) {
+		/* Store Root of Trust data immediately after AVB verification */
+		printf("INFO: [Bootmeth] Storing Root of Trust data from AVB verification...\n");
+		ret = avb_store_root_of_trust_from_verification(out_data,
+								result);
+		if (ret != 0)
+			printf("WARN: [Bootmeth] Failed to store Root of Trust data (ret=%d)\n",
+			       ret);
+		else
+			printf("INFO: [Bootmeth] Root of Trust data stored successfully\n");
+	}
+
 	if (!unlocked) {
 		/* When device is locked, we only accept AVB_SLOT_VERIFY_RESULT_OK */
 		if (result != AVB_SLOT_VERIFY_RESULT_OK) {
@@ -496,6 +509,7 @@ static int run_avb_verification(struct bootflow *bflow)
 
 	return log_msg_ret("avb cmdline", ret);
 }
+
 #else
 static int run_avb_verification(struct bootflow *bflow)
 {
@@ -510,6 +524,7 @@ static int run_avb_verification(struct bootflow *bflow)
 
 	return 0;
 }
+
 #endif /* AVB_VERIFY */
 
 static int boot_android_normal(struct bootflow *bflow)
cmd/Kconfig +13 -0
index 29de857ba7c2..e1841c97e709 100644
@@ -3049,6 +3049,19 @@ config CMD_AVB
 	    avb write_part - write data to partition
 	    avb verify - run full verification chain
 
+config CMD_AVB_ROT
+	bool "avb_rot - Android Verified Boot Root of Trust commands"
+	depends on AVB_ROOT_OF_TRUST
+	help
+	  Enables "avb_rot" command for Android Verified Boot Root of Trust
+	  functionality. This includes subcommands:
+	    avb_rot setup - Setup Root of Trust from AVB verification
+	    avb_rot legacy - Setup Root of Trust using legacy method
+	    avb_rot info - Show Root of Trust implementation information
+
+	  These commands are useful for testing and debugging Root of Trust
+	  functionality during development and integration with Android KeyMint.
+
 config CMD_STACKPROTECTOR_TEST
 	bool "Test command for stack protector"
 	depends on STACKPROTECTOR
cmd/Makefile +1 -0
index 36e79cc3c282..a246d6351b93 100644
@@ -233,6 +233,7 @@ obj-$(CONFIG_CMD_BLOB) += blob.o
 
 # Android Verified Boot 2.0
 obj-$(CONFIG_CMD_AVB) += avb.o
+obj-$(CONFIG_CMD_AVB_ROT) += cmd_avb_rot.o
 
 # Foundries.IO SCP03
 obj-$(CONFIG_CMD_SCP03) += scp03.o
cmd/avb.c +13 -0
index 8fbd48ee5a21..ec23f3494daf 100644
@@ -4,6 +4,7 @@
  */
 
 #include <avb_verify.h>
+#include <avb_root_of_trust.h>
 #include <command.h>
 #include <env.h>
 #include <image.h>
@@ -288,6 +289,18 @@ int do_avb_verify_part(struct cmd_tbl *cmdtp, int flag,
 				AVB_HASHTREE_ERROR_MODE_RESTART_AND_INVALIDATE,
 				&out_data);
 
+	/* Store Root of Trust data immediately after AVB verification */
+	if (IS_ENABLED(CONFIG_AVB_ROOT_OF_TRUST)) {
+		printf("INFO: Storing Root of Trust data from AVB verification...\n");
+		ret = avb_store_root_of_trust_from_verification(out_data,
+								slot_result);
+		if (ret != 0)
+			printf("WARN: Failed to store Root of Trust data (ret=%d)\n",
+			       ret);
+		else
+			printf("INFO: Root of Trust data stored successfully\n");
+	}
+
 	/*
 	 * LOCKED devices with custom root of trust setup is not supported (YELLOW)
 	 */
cmd/cmd_avb_rot.c new file +129 -0

129 lines not on this page · raw message

include/avb_root_of_trust.h new file +50 -0

50 lines not on this page · raw message

lib/Kconfig +18 -0
index fbc9de90669a..b81d4d3edc5a 100644
@@ -551,6 +551,24 @@ config LIBAVB
 	  device. Introduces such features as boot chain of trust, rollback
 	  protection etc.
 
+config AVB_ROOT_OF_TRUST
+	bool "Android Verified Boot Root of Trust support"
+	depends on AVB_VERIFY
+	depends on OPTEE_TA_AVB
+	help
+	  This enables Root of Trust functionality for Android Verified Boot 2.0.
+	  Root of Trust provides cryptographic evidence of the device's boot state
+	  and verified boot chain to Android's KeyMint service for key attestation.
+
+	  When enabled, the bootloader will collect and store Root of Trust data
+	  during AVB verification, including the verified boot key, device lock
+	  state, verified boot state, and boot image hash. This data is securely
+	  stored via the AVB Trusted Application in OP-TEE for later retrieval
+	  by the Android KeyMint Trusted Application.
+
+	  This feature requires the AVB TA (CONFIG_OPTEE_TA_AVB) to be enabled
+	  to securely store and manage Root of Trust data.
+
 endmenu
 
 menu "Hashing Support"
lib/Makefile +1 -0
index 2643bfc867cb..ebabd18c46c8 100644
@@ -93,6 +93,7 @@ obj-$(CONFIG_$(PHASE_)LZ4) += lz4_wrapper.o
 obj-$(CONFIG_$(PHASE_)LIB_RATIONAL) += rational.o
 
 obj-$(CONFIG_LIBAVB) += libavb/
+obj-$(CONFIG_AVB_ROOT_OF_TRUST) += avb_root_of_trust.o
 
 obj-$(CONFIG_$(PHASE_)OF_LIBFDT) += libfdt/
 obj-$(CONFIG_$(PHASE_)OF_REAL) += fdtdec_common.o fdtdec.o
lib/avb_root_of_trust.c new file +534 -0

534 lines not on this page · raw message

Signature · 1 line
2.34.1
Acked-by on the v1 series
#3 lore raw
In reply to Guillaume La Roque (TI.com)
Quoted 35 lines

This series add some Android features link to Android Verify Boot, device lock/unlock and keymint TA

- Add support of fastboot flashing lock/unlock and lock_critical/unlock_critical with Optee TA AVB if supported or with env variable (for development only)
- Add support of get root or trust with TA AVB and Keymint TA

This series will be upstream after release.

---
Guillaume La Roque (TI.com) (2):
PENDING: fastboot: Implement Android bootloader locking with
CONFIG_FASTBOOT_LOCKING
PENDING: avb: Add automatic Root of Trust integration for Android
KeyMint

 boot/bootmeth_android.c       |  15 ++
 cmd/Kconfig                   |  13 +
 cmd/Makefile                  |   1 +
 cmd/avb.c                     |  13 +
 cmd/cmd_avb_rot.c             | 129 ++++++++++
 common/avb_verify.c           | 183 ++++++++++++++-
 drivers/fastboot/Kconfig      |  21 ++
 drivers/fastboot/fb_command.c | 450 +++++++++++++++++++++++++++++++++++
 drivers/fastboot/fb_getvar.c  |  68 ++++++
 include/avb_root_of_trust.h   |  50 ++++
 include/avb_verify.h          |   9 +
 include/fastboot.h            |   5 +
 lib/Kconfig                   |  18 ++
 lib/Makefile                  |   1 +
 lib/avb_root_of_trust.c       | 534
++++++++++++++++++++++++++++++++++++++++++
 15 files changed, 1503 insertions(+), 7 deletions(-)
Quoted 7 lines

---
base-commit: 5b93c3ec7f9d66dc40d062a47a4a880f7d346b7a
change-id: 20251002-avb-6be401c09050

Best regards,
--
Guillaume La Roque (TI.com) <[email protected]>

Acked-by on the v1 series
#4 lore raw
In reply to Guillaume La Roque (TI.com)
Quoted 44 lines · Guillaume La Roque (TI.com)

This series add some Android features link to Android Verify Boot, device lock/unlock and keymint TA

- Add support of fastboot flashing lock/unlock and lock_critical/unlock_critical with Optee TA AVB if supported or with env variable (for development only)
- Add support of get root or trust with TA AVB and Keymint TA

This series will be upstream after release.

---
Guillaume La Roque (TI.com) (2):
PENDING: fastboot: Implement Android bootloader locking with
CONFIG_FASTBOOT_LOCKING
PENDING: avb: Add automatic Root of Trust integration for Android
KeyMint

 boot/bootmeth_android.c       |  15 ++
 cmd/Kconfig                   |  13 +
 cmd/Makefile                  |   1 +
 cmd/avb.c                     |  13 +
 cmd/cmd_avb_rot.c             | 129 ++++++++++
 common/avb_verify.c           | 183 ++++++++++++++-
 drivers/fastboot/Kconfig      |  21 ++
 drivers/fastboot/fb_command.c | 450 +++++++++++++++++++++++++++++++++++
 drivers/fastboot/fb_getvar.c  |  68 ++++++
 include/avb_root_of_trust.h   |  50 ++++
 include/avb_verify.h          |   9 +
 include/fastboot.h            |   5 +
 lib/Kconfig                   |  18 ++
 lib/Makefile                  |   1 +
 lib/avb_root_of_trust.c       | 534
++++++++++++++++++++++++++++++++++++++++++
 15 files changed, 1503 insertions(+), 7 deletions(-)

---
base-commit: 5b93c3ec7f9d66dc40d062a47a4a880f7d346b7a
change-id: 20251002-avb-6be401c09050

Best regards,
--
Guillaume La Roque (TI.com) <[email protected]>

#5 lore raw

hi all,

please ignore this patchset it’s an error sorry for noise.

guillaume

Le jeu. 2 oct. 2025 à 18:58, Maxime Fournier <[email protected]> a écrit :

Quoted 49 lines
Quoted 44 lines · Guillaume La Roque (TI.com)

This series add some Android features link to Android Verify Boot, device lock/unlock and keymint TA

- Add support of fastboot flashing lock/unlock and lock_critical/unlock_critical with Optee TA AVB if supported or with env variable (for development only)
- Add support of get root or trust with TA AVB and Keymint TA

This series will be upstream after release.

---
Guillaume La Roque (TI.com) (2):
PENDING: fastboot: Implement Android bootloader locking with
CONFIG_FASTBOOT_LOCKING
PENDING: avb: Add automatic Root of Trust integration for Android
KeyMint

 boot/bootmeth_android.c       |  15 ++
 cmd/Kconfig                   |  13 +
 cmd/Makefile                  |   1 +
 cmd/avb.c                     |  13 +
 cmd/cmd_avb_rot.c             | 129 ++++++++++
 common/avb_verify.c           | 183 ++++++++++++++-
 drivers/fastboot/Kconfig      |  21 ++
 drivers/fastboot/fb_command.c | 450 +++++++++++++++++++++++++++++++++++
 drivers/fastboot/fb_getvar.c  |  68 ++++++
 include/avb_root_of_trust.h   |  50 ++++
 include/avb_verify.h          |   9 +
 include/fastboot.h            |   5 +
 lib/Kconfig                   |  18 ++
 lib/Makefile                  |   1 +
 lib/avb_root_of_trust.c       | 534
++++++++++++++++++++++++++++++++++++++++++
 15 files changed, 1503 insertions(+), 7 deletions(-)

---
base-commit: 5b93c3ec7f9d66dc40d062a47a4a880f7d346b7a
change-id: 20251002-avb-6be401c09050

Best regards,
--
Guillaume La Roque (TI.com) <[email protected]>