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
  What do you use for voice chat on Mobian? ragreenburg 6 249 Yesterday, 03:27 PM
Last Post: ragreenburg
  Mobian repository status henrythemouse 5 408 Yesterday, 04:23 AM
Last Post: biketool
  Pure Maps GPS on Pinephone Mobian godzillest 3 166 Yesterday, 03:07 AM
Last Post: mouffa
  Keyboard stopped working on disk encryption screen on Mobian after update cowsay 0 52 07-28-2021, 05:46 PM
Last Post: cowsay
  Wipe function on mobian? Wahtone 5 365 07-28-2021, 06:18 AM
Last Post: biketool
  Axolotl on PinePhone / Mobian arno_nuehm 105 28,230 07-23-2021, 01:20 PM
Last Post: Zebulon Walton
  Dark theme (on Mobian)? TRS-80 6 359 07-14-2021, 01:35 PM
Last Post: biketool
  (Gnome) Maps won't start on Mobian? TRS-80 3 269 07-11-2021, 12:09 PM
Last Post: TRS-80
  Mobian Constant Vibration tumblingdog 4 843 07-10-2021, 02:40 AM
Last Post: aed
  Mobian not updating via Software app FOSSagent0 5 623 07-08-2021, 07:37 PM
Last Post: tophneal

Forum Jump:


Users browsing this thread: 1 Guest(s)