| Summary: | rng-tools has forced dependency on jitterentropy-library ; It slows boot considerably | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Axel Voitier <axel.voitier> |
| Component: | Other | Assignee: | Matt Weber <matthew.weber> |
| Status: | RESOLVED MOVED | ||
| Severity: | normal | CC: | buildroot, yann.morin.1998 |
| Priority: | P5 | ||
| Version: | 2019.11.1 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Axel Voitier
2020-01-28 15:37:55 UTC
Sorry to hear about the boot delay issue. The reason it was added by default was I noticed the init script had handled a case of adding entropy when a hwrng wasn't present. I didn't realize the impact when hwrng was enabled. I agree, I think something like a new kconfig sub option named "enable source jitterentropy" under rngd might be best (with a solid help description outlining when to enable it). There isn't a ideal way to get a linux config option to trigger a dependency in the buildroot build. We could tailor the initscript and have it check if there is a hwrng enabled by checking for dev node existence if that is consistance. However we can't probably depend on the linux config being present and parse-able. Would you mind testing this proposed fix? http://patchwork.ozlabs.org/patch/1233971/ (In reply to Matt Weber from comment #2) I can confirm it works in my case. Although, I am not using systemd, so I cannot test that part of the patch. Cheers, Axel Looks like there is a updated rng-tools version. Would you mind testing this patch without the proposed jitterentropy selection changes I previously proposed? http://patchwork.ozlabs.org/patch/1235396/ Yegor noted in the http://patchwork.ozlabs.org/patch/1233971/ thread that the bump of rng-tools made the startup cost of having jitterentropy as a source better. Axel, I'll let you confirm if you feel this did enough or if we still need to breakout providing the user an option. Has this issue been resolved. I am using Buildroot-2021.08 and targeting the RPI Zero with no input device. I need a minimal system for fast boot and so have removed BusyBox (set Init System to None) and using devtmpfs + mdev. I have tried all combinations of HW_RANDOM in the kernel and rng-tools, Jitternentropy Library and NIST Entropy Beacon support. In all cases there is a very long delay before finally getting the random: crng init done message. Thank you for your report.
The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
https://gitlab.com/buildroot.org/buildroot/-/issues
We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.
Thank you!
|