diff options
author | Ji Luo <ji.luo@nxp.com> | 2018-08-23 19:12:45 +0800 |
---|---|---|
committer | faqiang.zhu <faqiang.zhu@nxp.com> | 2018-11-12 09:18:37 +0800 |
commit | c14e9d4e276c408db200a632029a8193944348f3 (patch) | |
tree | 92582988f4a35fa40766fd34842436d91feb9e72 /include | |
parent | d4a0dbd9a467984d7f4a4861213298e2b95a3327 (diff) |
[iot] Support lock vboot for Android Things
Supoort "fastboot oem at-lock-vboot" command for Android
Things, this command can only be called after perm-attr
have been fused.
Test: build and boot ok on imx7d_pico and AIY.
Change-Id: Ifcfeb2a38d88c5d12b46a1d9ea61b182ae2e7bcb
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fsl_avb.h | 2 | ||||
-rw-r--r-- | include/fsl_fastboot.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/fsl_avb.h b/include/fsl_avb.h index 2964b799d3..1b8d5f9d01 100644 --- a/include/fsl_avb.h +++ b/include/fsl_avb.h @@ -257,5 +257,7 @@ int avb_atx_get_unlock_challenge(struct AvbAtxOps* atx_ops, /* Verify ATX unlock credential */ int avb_atx_verify_unlock_credential(struct AvbAtxOps* atx_ops, uint8_t *staged_buffer); +/* Check if the perm-attr have been fused. */ +bool perm_attr_are_fused(void); #endif /* __FSL_AVB_H__ */ diff --git a/include/fsl_fastboot.h b/include/fsl_fastboot.h index c3fd85eb38..7ea2b5477f 100644 --- a/include/fsl_fastboot.h +++ b/include/fsl_fastboot.h @@ -97,6 +97,7 @@ #ifdef CONFIG_AVB_ATX #define FASTBOOT_AVB_AT_PERM_ATTR "fuse at-perm-attr" #define FASTBOOT_AT_UNLOCK_VBOOT "at-unlock-vboot" +#define FASTBOOT_AT_LOCK_VBOOT "at-lock-vboot" #define FASTBOOT_AT_GET_UNLOCK_CHALLENGE "at-get-vboot-unlock-challenge" #endif /* CONFIG_AVB_ATX */ #endif /* CONFIG_ANDROID_THINGS_SUPPORT */ |