Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rockchip RK35xx: Low RNG entropy #6806

Closed
2 tasks done
ColorfulRhino opened this issue Jun 26, 2024 · 5 comments
Closed
2 tasks done

Rockchip RK35xx: Low RNG entropy #6806

ColorfulRhino opened this issue Jun 26, 2024 · 5 comments

Comments

@ColorfulRhino
Copy link
Collaborator

What happened?

The RNG entropy pool on RK3588 (tested with NanoPi R6C) and RK3568 (tested with NanoPi R5C) always stays at 256 bits, which is very low.

In theory, the hardware based RNG generator should be active for RK35xx in the edge kernel. Something is not working as it should.

How to reproduce?

Watch your entropy with cat /proc/sys/kernel/random/entropy_avail or watch -n 1 cat /proc/sys/kernel/random/entropy_avail

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

Are you building on Windows WSL2?

  • Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Copy link

Jira ticket: AR-2388

@ColorfulRhino
Copy link
Collaborator Author

@alexl83
Copy link
Contributor

alexl83 commented Jun 27, 2024

stable at 256 while catting /dev/random on my orangepi5plus running 6.8.12

@sfx2000
Copy link
Collaborator

sfx2000 commented Jun 27, 2024

Not a bug, it's per design...

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.19-rc1&id=6e8ec2552c7d13991148e551e3325a624d73fac6

Also see issue 4170, which I opened last year against Jammy

@ColorfulRhino
Copy link
Collaborator Author

Not a bug, it's per design...

Yes, this is what I thought after some research. The commit you linked is the same that I linked above 😄

So everything is well after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants