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
  Chatty, SMS does not work - could hardware be at fault? AntonReiser 21 267 1 hour ago
Last Post: bcnaz
  Why do you use mobian? unrealb2 17 695 09-18-2021, 03:44 AM
Last Post: TRS-80
  Axolotl on PinePhone / Mobian arno_nuehm 116 32,959 09-17-2021, 02:36 AM
Last Post: arno_nuehm
  Mobian September 13 Nightly bcnaz 1 183 09-14-2021, 03:50 PM
Last Post: bcnaz
  Updating old Mobian installation? SocialNetworkingWasAMistake 1 103 09-14-2021, 03:41 PM
Last Post: bcnaz
  kernel upgrade user641 2 145 09-13-2021, 08:26 AM
Last Post: user641
  I built a reminder app but can't seem to build a deb/snap/flatpak for it, help? ragreenburg 9 327 09-10-2021, 02:51 PM
Last Post: ragreenburg
  Installing Mobian --> "Resizing file system" forever Anna 13 2,877 09-09-2021, 04:26 AM
Last Post: spaetz
  I'd like to have a Discord client on Mobian lsitongia 2 170 09-03-2021, 06:56 PM
Last Post: ryo
  Mobian September 01, 2021 bcnaz 2 325 09-01-2021, 11:45 AM
Last Post: bcnaz

Forum Jump:


Users browsing this thread: 1 Guest(s)