Jump to content

Nanopi R2S - hardware rng


stranger

Recommended Posts

Last FriendlyElec nanopi-r2s image has hardware rng, what about adding it to Armbian?
For my nanopi-r2s I patched dtb, compiled kernel module with dkms and managed to make it work with rngd. Amount of enthropy increased from ~2000 with haveged/jitterenthropy to ~4000. The only problem is FIPS failures so I had to run rngd with --ignorefail flag.

Here is links to FE github:

 

https://github.com/friendlyarm/kernel-rockchip/blob/2ea3d37e1de559b9af2cd24a71bb538dddc1365a/arch/arm64/boot/dts/rockchip/rk3328.dtsi#L250-L259

https://github.com/friendlyarm/kernel-rockchip/blob/2ea3d37e1de559b9af2cd24a71bb538dddc1365a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-common.dtsi#L436-L438

https://github.com/friendlyarm/kernel-rockchip/blob/nanopi-r2-v5.4.y/drivers/char/hw_random/rockchip-rng.c

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines