diff options
author | Ji Luo <ji.luo@nxp.com> | 2018-10-10 17:29:35 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2018-10-11 19:41:40 -0700 |
commit | 884ef77506e8255903ba9d9b8f6d54142f242e9f (patch) | |
tree | 3c7934787819d3aead5a2c8d0188e6588dd9764e /include | |
parent | c66bb808116f24c9f8f95db974b62046d9a9e0ba (diff) |
MA-13048 [AUTO] Support program rpmb key with fastboot command
Add fastboot command "fastboot oem set-rpmb-key" to program the rpmb
key which should be staged first.
Usage:
1. fastboot stage my-rpmb-key.bin
2. fastboot oem set-rpmb-key
Test: rpmb key programed successfully on imx8qxp.
Change-Id: I95474a6367eb8ef0db16bb38680975b8c45b84f1
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry picked from commit 557981f3ace1f11f1483668dd97076e6c3f1d1cc)
Diffstat (limited to 'include')
-rw-r--r-- | include/fsl_avb.h | 3 | ||||
-rw-r--r-- | include/fsl_fastboot.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/fsl_avb.h b/include/fsl_avb.h index f992be91a1..20db2674d2 100644 --- a/include/fsl_avb.h +++ b/include/fsl_avb.h @@ -240,4 +240,7 @@ AvbABFlowResult avb_flow_dual_uboot(AvbABOps* ab_ops, /* Program ATX perm_attr into RPMB partition */ int avb_atx_fuse_perm_attr(uint8_t *staged_buffer, uint32_t size); +/* Initialize rpmb key with the staged key */ +int fastboot_set_rpmb_key(uint8_t *staged_buf, uint32_t key_size); + #endif /* __FSL_AVB_H__ */ diff --git a/include/fsl_fastboot.h b/include/fsl_fastboot.h index 813b52f711..b033aaee91 100644 --- a/include/fsl_fastboot.h +++ b/include/fsl_fastboot.h @@ -83,10 +83,15 @@ #define FASTBOOT_PARTITION_FBMISC "fbmisc" #endif +#ifdef CONFIG_ANDROID_AUTO_SUPPORT +#define FASTBOOT_SET_RPMB_KEY "set-rpmb-key" +#endif + #if defined(CONFIG_AVB_ATX) || defined(CONFIG_ANDROID_AUTO_SUPPORT) #define FASTBOOT_SET_CA_RESP "at-set-ca-response" #define FASTBOOT_GET_CA_REQ "at-get-ca-request" #endif /* CONFIG_AVB_ATX || CONFIG_ANDROID_AUTO_SUPPORT */ + #ifdef CONFIG_ANDROID_THINGS_SUPPORT #define FASTBOOT_BOOTLOADER_VBOOT_KEY "fuse at-bootloader-vboot-key" #ifdef CONFIG_AVB_ATX |