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
  PP Keyboard doesn't charge Pinephone (Mobian) jojuma 1 61 08-06-2022, 01:10 AM
Last Post: elode
  DDing mobian to emmc or microSD not starting... Mr.Berzerk 2 43 08-05-2022, 06:09 PM
Last Post: mark1250
  Battery problem with a Pinephone keyboard and Mobian elode 0 93 07-26-2022, 06:25 AM
Last Post: elode
  Improper Storage After Flashing Mobian Ferriah 1 133 07-23-2022, 05:11 AM
Last Post: LibrePhoneUser
  Mobian website requires javascript user641 0 189 06-30-2022, 11:39 PM
Last Post: user641
  Hardware VIdeo Acceleration on Mobian biketool 3 734 06-21-2022, 01:01 PM
Last Post: biketool
  cryptocurrency on mobian/pinephone biketool 31 7,837 06-15-2022, 03:14 PM
Last Post: Hobbes42
  Phosh 0.20 beta on mobian Anthony1224 1 439 06-11-2022, 06:29 AM
Last Post: Zebulon Walton
  Icecat on Mobian on PinePhone 3460p 15 1,969 05-15-2022, 05:41 AM
Last Post: wibble
  Dark theme (on Mobian)? TRS-80 9 3,096 05-03-2022, 04:40 AM
Last Post: wibble

Forum Jump:


Users browsing this thread: 1 Guest(s)