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

Implement passing of random number generator via FDT #115

Open
abrodkin opened this issue Dec 19, 2022 · 2 comments
Open

Implement passing of random number generator via FDT #115

abrodkin opened this issue Dec 19, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@abrodkin
Copy link
Member

One of the problems we faced when used SSH server on QEMU for ARC was a long time taken for random number generator to collect enough entropy before start. We even used to implement hacks like redirecting garbage from the host's stdin to facilitate that process.
But apparently there's a nicer way to do it - we may pass a pre-defined RNG seed to the kernel on boot.

On target which support device tree in the Linux kernel that could be easily done with a special .dts node /chosen/rng-seed (see https://elixir.bootlin.com/linux/v6.0/source/drivers/of/fdt.c#L1203).

As a good example - qemu/qemu@e4b4f0b

@shahab-vahedi
Copy link
Member

For the record, in buildroot, there already is a way to get things boot up pretty fast in a non-hackish way:

BR2_PACKAGE_HAVEGED=y

# Using Dropbear SSH instead of OpenSSH is optional, but strongly advised.
BR2_PACKAGE_DROPBEAR=y
BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS=y
# BR2_PACKAGE_DROPBEAR_SMALL is not set

It boots and power downs in less than 30 seconds.
haveged_boot

@shahab-vahedi shahab-vahedi added the enhancement New feature or request label Dec 20, 2022
@shahab-vahedi
Copy link
Member

I believe this feature is not as necessary/relevant as it was in the past. Nevertheless, if you still think there is a (business) case to add this feature, please make a pull request along with the qualifications and we will be happy to have it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants