Enable OPTEE and "optee_rpmb" command
v2 cover Enable OPTEE and "optee_rpmb" command
Enable support to compile OPTEE driver, access AVB TA and RPMB API's access via RPC from OPTEE for lx2160.
Enable "optee_rpmb" command to write/read named persistent values created on MMC RPMB.
v1 can be referred here
https://patchwork.ozlabs.org/project/uboot/patch/20200916100058.9092-1-gaurav.jain at nxp.com/
changes w.r.t v1:
1/2:configs: lx2160a: Enable OPTEE support
- new commit
2/2:cmd: optee_rpmb command for read/write of rpmb from optee
- Modified cmd_tbl_t to struct cmd_tbl as per include/command.h
Ruchika Gupta (2):
configs: lx2160a: Enable OPTEE support
cmd: optee_rpmb command for read/write of rpmb from optee
cmd/Kconfig | 8 + cmd/Makefile | 1 + cmd/optee_rpmb.c | 272 +++++++++++++++++++++++++++++++ configs/lx2160ardb_tfa_defconfig | 5 + 4 files changed, 286 insertions(+) create mode 100644 cmd/optee_rpmb.c
Signature · 1 line
2.17.1
PATCH v2 1/2 configs: lx2160a: Enable OPTEE support
From: Ruchika Gupta <[email protected]>
Enable support to compile OPTEE driver, access AVB TA and RPMB API's access via RPC from OPTEE for lx2160
--- configs/lx2160ardb_tfa_defconfig | 5 +++++ 1 file changed, 5 insertions(+)
configs/lx2160ardb_tfa_defconfig +5 -0
@@ -80,3 +80,8 @@ CONFIG_USB_XHCI_DWC3=y CONFIG_WDT=y CONFIG_WDT_SBSA=y CONFIG_EFI_LOADER_BOUNCE_BUFFER=y +CONFIG_TEE=y +CONFIG_OPTEE=y +CONFIG_OPTEE_TA_AVB=y +CONFIG_SUPPORT_EMMC_RPMB=y +CONFIG_CMD_OPTEE_RPMB=y
Signature · 1 line
2.17.1
PATCH v2 2/2 cmd: optee_rpmb command for read/write of rpmb from optee
In reply to Gaurav JainFrom: Ruchika Gupta <[email protected]>
Enable "optee_rpmb" command to write/read named persistent values created on RPMB by opening session with OPTEE AVB TA. This provides easy test for establishing a session with OPTEE TA and storage of persistent data in MMC RPMB.
It includes following subcommands:
optee_rpmb read_pvalue - read persistent values on rpmb via OPTEE AVB TA optee_rpmb write_pvalue - write persistent values on rpmb via OPTEE AVB TA
---
Notes:
modified cmd_tbl_t to struct cmd_tbl as per command.h
cmd/Kconfig | 8 ++ cmd/Makefile | 1 + cmd/optee_rpmb.c | 272 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 281 insertions(+) create mode 100644 cmd/optee_rpmb.c
cmd/Kconfig +8 -0
@@ -1162,6 +1162,14 @@ config CMD_CLONE initial flashing by external block device without network or usb support. +config CMD_OPTEE_RPMB + bool "Enable read/write support on RPMB via OPTEE" + depends on SUPPORT_EMMC_RPMB && OPTEE + help + Enable the commands for reading, writing persistent named values + in the Replay Protection Memory Block partition in eMMC by + using Persistent Objects in OPTEE + config CMD_MTD bool "mtd" depends on MTD
cmd/Makefile +1 -0
@@ -96,6 +96,7 @@ obj-$(CONFIG_CMD_MII) += mii.o obj-$(CONFIG_CMD_MDIO) += mdio.o obj-$(CONFIG_CMD_MISC) += misc.o obj-$(CONFIG_CMD_MMC) += mmc.o +obj-$(CONFIG_CMD_OPTEE_RPMB) += optee_rpmb.o obj-$(CONFIG_MP) += mp.o obj-$(CONFIG_CMD_MTD) += mtd.o obj-$(CONFIG_CMD_MTDPARTS) += mtdparts.o
cmd/optee_rpmb.c new file +272 -0
272 lines not on this page · raw message
Signature · 1 line
2.17.1