The tpm_rng kernel module was removed raspberrypi/linux@6e592a0.
To still use the TPM as hwrng device you need to change the value of '/sys/class/misc/hw_random/rng_current' to the desired value.
To do so:
-
Check if the TPM is available:
# cat /sys/class/misc/hw_random/rng_available
The output should look like this:
3f104000.rng tpm-rng-0
-
Write the desired value to rng_current
# echo tpm-rng-0 > /sys/class/misc/hw_random/rng_current
For more information see https://github.com/raspberrypi/linux/blob/rpi-4.19.y/Documentation/hw_random.txt
PS: Sorry for spamming Issues. This will be the last one. :)