Skip to contentSkip to conversation

doc: board: ti: Add optee rng support

PATCH In review Udit Kumar 5 participants 7 messages Apr 10, 2025 – Apr 16, 2025

lore
Share & tools
lore

Udit Kumar

author
#0 lore raw

PATCH 1/1 doc: board: ti: Add optee rng support

J722S has hw rng, which can be used by OPTEE.
So remove option to use SW TRNG by OPTEE.

---
reference discussion
https://lore.kernel.org/all/[email protected]/

Bootlogs with optee trng
https://gist.github.com/uditkumarti/5f90210b23e67cd4eb6d06a024031ee8#file-gistfile1-txt-L1970

 doc/board/ti/j722s_evm.rst | 1 -
 1 file changed, 1 deletion(-)
doc/board/ti/j722s_evm.rst +0 -1
index e5a1be50c4f..edc29a4f9e4 100644
@@ -74,7 +74,6 @@ Set the variables corresponding to this platform:
  $ export UBOOT_CFG_CORTEXA=j722s_evm_a53_defconfig
  $ export TFA_BOARD=lite
  $ export OPTEE_PLATFORM=k3-am62x
- $ export OPTEE_EXTRA_ARGS="CFG_WITH_SOFTWARE_PRNG=y"
 
 .. j722s_evm_rst_include_start_build_steps
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 29 lines · Udit Kumar

J722S has hw rng, which can be used by OPTEE.
So remove option to use SW TRNG by OPTEE.

---
reference discussion
https://lore.kernel.org/all/[email protected]/

Bootlogs with optee trng
https://gist.github.com/uditkumarti/5f90210b23e67cd4eb6d06a024031ee8#file-gistfile1-txt-L1970

 doc/board/ti/j722s_evm.rst | 1 -
 1 file changed, 1 deletion(-)
doc/board/ti/j722s_evm.rst +0 -1
index e5a1be50c4f..edc29a4f9e4 100644
@@ -74,7 +74,6 @@ Set the variables corresponding to this platform:
  $ export UBOOT_CFG_CORTEXA=j722s_evm_a53_defconfig
  $ export TFA_BOARD=lite
  $ export OPTEE_PLATFORM=k3-am62x
- $ export OPTEE_EXTRA_ARGS="CFG_WITH_SOFTWARE_PRNG=y"
 
 .. j722s_evm_rst_include_start_build_steps
 
Signature · 1 line
2.34.1
Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
Reviewed-by on v1 1/1
#2 lore raw
In reply to Udit Kumar
Quoted 19 lines · Udit Kumar

J722S has hw rng, which can be used by OPTEE.
So remove option to use SW TRNG by OPTEE.

---
reference discussion
https://lore.kernel.org/all/[email protected]/

Bootlogs with optee trng
https://gist.github.com/uditkumarti/5f90210b23e67cd4eb6d06a024031ee8#file-gistfile1-txt-L1970

 doc/board/ti/j722s_evm.rst | 1 -
 1 file changed, 1 deletion(-)
doc/board/ti/j722s_evm.rst +0 -0
index e5a1be50c4f..edc29a4f9e4 100644

doc/board/ti/j722s_evm.rst Set the variables corresponding to this platform: · line 77

Quoted 4 lines
doc/board/ti/j722s_evm.rst +0 -1
@@ -74,7 +74,6 @@ Set the variables corresponding to this platform:
  $ export UBOOT_CFG_CORTEXA=j722s_evm_a53_defconfig
  $ export TFA_BOARD=lite
  $ export OPTEE_PLATFORM=k3-am62x
- $ export OPTEE_EXTRA_ARGS="CFG_WITH_SOFTWARE_PRNG=y"

Fine by me,

Signature · 3 lines
Best regards,
Dhruva Gole
Texas Instruments Incorporated
#4 lore raw
Quoted 10 lines · Michael Walle

Hi,

Quoted 8 lines

J722S has hw rng, which can be used by OPTEE.
So remove option to use SW TRNG by OPTEE.

---
reference discussion
https://lore.kernel.org/all/[email protected]/

Quoted 6 lines
Quoted 2 lines

Bootlogs with optee trng
https://gist.github.com/uditkumarti/5f90210b23e67cd4eb6d06a024031ee8#file-gistfile1-txt-L1970

I can confirm the TRNG will work on u-boot as well as linux. Thanks!

just curious: Did you have to change .configs for either?

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#5 lore raw

Hi,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

J722S has hw rng, which can be used by OPTEE.
So remove option to use SW TRNG by OPTEE.

---
reference discussion
https://lore.kernel.org/all/[email protected]/

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Bootlogs with optee trng
https://gist.github.com/uditkumarti/5f90210b23e67cd4eb6d06a024031ee8#file-gistfile1-txt-L1970

I can confirm the TRNG will work on u-boot as well as linux. Thanks!

just curious: Did you have to change .configs for either?

We are using the (arm64) defconfig in linux, so no.

Regarding u-boot, I don't know because we are using our own config and I had to enable CONFIG_OPTEE there (as well as CONFIG_OPTEE_SERVICE_DISCOVERY, but that one is default y).

-michael

#6 lore raw
In reply to Udit Kumar
Quoted 4 lines · Udit Kumar

J722S has hw rng, which can be used by OPTEE.
So remove option to use SW TRNG by OPTEE.

Applied to u-boot/master, thanks!

[1/1] doc: board: ti: Add optee rng support

      commit: a8baac546fd9bfbf3f36af3d35b5a284a9664f4c
Signature · 1 line
Tom