balena-os / balena-raspberrypi

Balena support for RaspberryPI boards
https://www.balena.io/os/
Apache License 2.0
194 stars 76 forks source link

raspberrypi3-64 and raspberrypi4-64 fail to initialize hwrng #922

Open rcooke-warwick opened 2 years ago

rcooke-warwick commented 2 years ago

for the above device types, rngd fails to initialise the hwrng entropy source:

Aug 06 14:41:01 rngd[1518]: Initializing available sources
Aug 06 14:41:01 rngd[1518]: [hwrng ]: Initialized
Aug 06 14:41:01 rngd[1518]: [rndr  ]: No HW SUPPORT
Aug 06 14:41:01 rngd[1518]: [rndr  ]: Initialization Failed

This problem doesn't appear on the raspberrypi3 or fincm3 device types

jellyfish-bot commented 2 years ago

[rcooke-warwick] This has attached https://jel.ly.fish/a13bcce9-7878-465c-940f-cd12b1d27a37

rcooke-warwick commented 2 years ago

I wouldn't be opposed to adding a simple test to the OS test suite too, to just check the logs to see if hwrng initialised without issue

rcooke-warwick commented 2 years ago

Ok I looked at this again and I realised I made a mistake - hwrng does initialise fine, its rndr that doesn't - which is:

    Entropy drawn from the RNDR instruction (aarch64 only)

So I'm not sure if this is actually a problem