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
  Axolotl on PinePhone / Mobian arno_nuehm 222 237,692 06-19-2025, 01:52 AM
Last Post: zetabeta
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 64 20,911 06-17-2025, 06:27 AM
Last Post: anonymous
  VoIP account on mobian dialer j_s 0 88 06-15-2025, 04:19 PM
Last Post: j_s
  Mobian Pinephone Notification LED biketool 2 230 06-07-2025, 03:19 PM
Last Post: KC9UDX
  Vivaldi Web browser nearly native for Mobian biketool 3 564 05-06-2025, 02:19 AM
Last Post: biketool
  mobian calamares fail merom 2 641 04-29-2025, 02:10 PM
Last Post: mdk
  mobian phosh on screen keyboard not popping up for Chromium/Electron apps grump_fiddle_reinstall 1 755 01-15-2025, 08:08 PM
Last Post: Kevin Kofler
  How to use QR codes on Mobian Sid(unstable) Pinephone Pro biketool 1 684 01-02-2025, 12:47 PM
Last Post: zetabeta
  Upgrade to Mobian (Trixie) Staging biketool 13 3,197 12-29-2024, 10:35 AM
Last Post: biketool
  Mobian Bulleyes aberrio 0 884 12-16-2024, 08:27 AM
Last Post: aberrio

Forum Jump:


Users browsing this thread: 1 Guest(s)
OSZAR »