Skip to contentSkip to conversation

optee-os: Enable OP-TEE TRNG in AM62X and AM62PX

PATCH Superseded Kamlesh Gurudasani 2 participants 2 messages Nov 8, 2023

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 optee-os: Enable OP-TEE TRNG in AM62X and AM62PX

Enable TRNG in AM62X and AM62PX, as bugs related to TRNG has been fixed now.

TF-A fix:
https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/commit/?id=d7a7135d32a8c7da004c0c19b75bd4e2813f9759

OP-TEE fix:
https://github.com/OP-TEE/optee_os/commit/e313f4765fd0478bb66985827441411793433773

---
Changes in V3:
-updated commit title and message

Changes in V2:
-updated commit message
-included changes for AM62p

---
 meta-ti-bsp/recipes-security/optee/optee-os-ti.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +2 -2
index 91b66a36..435efced 100644
@@ -6,8 +6,8 @@ inherit ti-secdev
 
 EXTRA_OEMAKE:append:k3 = "${@ ' CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}"
 
-EXTRA_OEMAKE:append:am62xx = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1"
-EXTRA_OEMAKE:append:am62pxx = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1"
+EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1"
+EXTRA_OEMAKE:append:am62pxx = " CFG_TEE_CORE_LOG_LEVEL=1"
 EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1"
 
 do_compile:append:k3() {

---
base-commit: d5e768e29b3f8091cbdedb702ff4185f73af4f3d
change-id: 20231106-enable-trng-e56f79d668e8

Best regards,

Signature · 1 line
Kamlesh Gurudasani <[email protected]>
#1 lore raw

meta-ti-bsp/recipes-security/optee/optee-os-ti.inc

Quoted 24 lines · Kamlesh Gurudasani

Enable TRNG in AM62X and AM62PX, as bugs related to TRNG has been fixed now.

TF-A fix:
https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/commit/?id=d7a7135d32a8c7da004c0c19b75bd4e2813f9759

OP-TEE fix:
https://github.com/OP-TEE/optee_os/commit/e313f4765fd0478bb66985827441411793433773

---
Changes in V3:
-updated commit title and message

Changes in V2:

(quoted diff) +0 -3
-updated commit message
-included changes for AM62p
---
  meta-ti-bsp/recipes-security/optee/optee-os-ti.inc | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +0 -0
index 91b66a36..435efced 100644

You missed my request on the first patch:

When you send the V2 series, can you base the commit off of the kirkstone-wip branch. I have applied some changes to the file you are changing above (renamed it in this case) so your patch would not apply currently. Thanks.

Right now I cannot apply this patch as I have already accepted the renaming patches into the next branch and it is staged for prod release as soon as CICD passes.

Please rebase your patch on the kirkstone-wip branch and move your changes to the optee-os-ti-overrides.inc file.

Quoted 17 lines
meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +2 -3
@@ -6,8 +6,8 @@ inherit ti-secdev
 
  EXTRA_OEMAKE:append:k3 = "${@ ' CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}"
 
-EXTRA_OEMAKE:append:am62xx = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1"
-EXTRA_OEMAKE:append:am62pxx = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1"
+EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1"
+EXTRA_OEMAKE:append:am62pxx = " CFG_TEE_CORE_LOG_LEVEL=1"
  EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1"
 
  do_compile:append:k3() {
 
---

base-commit: d5e768e29b3f8091cbdedb702ff4185f73af4f3d
change-id: 20231106-enable-trng-e56f79d668e8

Best regards,

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS