Is the A64’s true hardware random generator activated in Mobian’s 5.10 kernel build?
#1
The 5.10 kernel release brought support for the Pinephone A64 processor’s true hardware random number generator under the sun8i-ce module. However, even after I load the module I am not getting a working /dev/hwrng.

The patch adding this support to the 5.10 kernel provides a new kernel option that must be activated before building the kernel:

Code:
+config CRYPTO_DEV_SUN8I_CE_TRNG
+    bool "Support for Allwinner Crypto Engine TRNG"
+    depends on CRYPTO_DEV_SUN8I_CE
+    select HW_RANDOM
+    help
+      Select this option if you want to provide kernel-side support for
+      the True Random Number Generator found in the Crypto Engine.

Is this option selected in Mobian's kernel build? If not, could I request that it be activated?
  Reply
#2
You may need to file this on the mobian bug tracker
  Reply
#3
(01-16-2021, 02:16 PM)LibrePhoneUser Wrote:
Code:
+config CRYPTO_DEV_SUN8I_CE_TRNG
+    bool "Support for Allwinner Crypto Engine TRNG"
+    depends on CRYPTO_DEV_SUN8I_CE
+    select HW_RANDOM
+    help
+      Select this option if you want to provide kernel-side support for
+      the True Random Number Generator found in the Crypto Engine.

Is this option selected in Mobian's kernel build? If not, could I request that it be activated?

No, Mobian stock kernel does not have this set. You can easily find out for yourself:

Code:
mobian@pinephone:~$ zgrep SUN8I_CE /proc/config.gz
CONFIG_CRYPTO_DEV_SUN8I_CE=m
CONFIG_CRYPTO_DEV_SUN8I_CE_DEBUG=y
# CONFIG_CRYPTO_DEV_SUN8I_CE_HASH is not set
# CONFIG_CRYPTO_DEV_SUN8I_CE_PRNG is not set
# CONFIG_CRYPTO_DEV_SUN8I_CE_TRNG is not set
  Reply
#4
Thanks, I have filed a bug on the Mobian tracker. Sorry that I forgot all about /proc/config to see what kernel options had been selected at build time.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Loving latest Mobian Update drh 0 1 1 minute ago
Last Post: drh
  Axolotl on PinePhone / Mobian arno_nuehm 174 76,664 4 hours ago
Last Post: arno_nuehm
  Dark theme (on Mobian)? TRS-80 10 3,282 08-10-2022, 07:49 PM
Last Post: jurop88
  PP Keyboard doesn't charge Pinephone (Mobian) jojuma 1 108 08-06-2022, 01:10 AM
Last Post: elode
  DDing mobian to emmc or microSD not starting... Mr.Berzerk 2 101 08-05-2022, 06:09 PM
Last Post: mark1250
  Battery problem with a Pinephone keyboard and Mobian elode 0 133 07-26-2022, 06:25 AM
Last Post: elode
  Improper Storage After Flashing Mobian Ferriah 1 161 07-23-2022, 05:11 AM
Last Post: LibrePhoneUser
  Mobian website requires javascript user641 0 210 06-30-2022, 11:39 PM
Last Post: user641
  Hardware VIdeo Acceleration on Mobian biketool 3 790 06-21-2022, 01:01 PM
Last Post: biketool
  cryptocurrency on mobian/pinephone biketool 31 8,183 06-15-2022, 03:14 PM
Last Post: Hobbes42

Forum Jump:


Users browsing this thread: 2 Guest(s)