0

I want to use my TPM as hardware random generator. I am building a system using Yocto for the AM6642-SK platform from Texas Instruments. meta-ti by default uses something called OPTEE to generate random numbers. I would like to give up this completely and enable hardware support for random number generation in the form of my TPM SLB9670. Does anyone have similar experiences with meta-ti and know how to do it? Thanks.

[EDIT] I set kernel Kconfig options:

CONFIG_OPTEE=n
CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_TPM=y

and I can see that in cat /sys/class/misc/hw_random/rng_available there is: tpm-rng-0

also in: cat /sys/class/misc/hw_random/rng_current there is: tpm-rng-0

So it seems that tmp as /dev/hwrng is enabled but still after boot up CPU load is 100%...

/dev/tpm0 device is present and it works

grandzello
  • 43
  • 4

0 Answers0