From 89fc64e671b88833535e10b71662cbd4ac1f3003 Mon Sep 17 00:00:00 2001 From: Huaqi Fang <578567190@qq.com> Date: Wed, 21 Feb 2024 23:31:12 +0800 Subject: [PATCH] conf/evalsoc: Enable BR2_PACKAGE_HAVEGED to speedup random crng init done see https://patchwork.kernel.org/project/linux-crypto/patch/20180413013046.404-1-tytso@mit.edu/ This haveged can speedup the random crng init done, otherwise you have to random input or execute somethings to wait random: crng init done show then your command: openssl speed -elapsed -evp aes-128-gcm will not stuck at getrandom syscall Signed-off-by: Huaqi Fang <578567190@qq.com> --- conf/evalsoc/buildroot_initramfs_rv32imac_config | 1 + conf/evalsoc/buildroot_initramfs_rv32imafdc_config | 1 + conf/evalsoc/buildroot_initramfs_rv64imac_config | 1 + conf/evalsoc/buildroot_initramfs_rv64imafdc_config | 1 + 4 files changed, 4 insertions(+) diff --git a/conf/evalsoc/buildroot_initramfs_rv32imac_config b/conf/evalsoc/buildroot_initramfs_rv32imac_config index 8b7e2ce..fab0752 100644 --- a/conf/evalsoc/buildroot_initramfs_rv32imac_config +++ b/conf/evalsoc/buildroot_initramfs_rv32imac_config @@ -45,6 +45,7 @@ BR2_PACKAGE_MTD_JFFS2DUMP=y BR2_PACKAGE_MTD_MKFSJFFS2=y BR2_PACKAGE_MTD_MTDPART=y BR2_PACKAGE_MINICOM=y +BR2_PACKAGE_HAVEGED=y BR2_PACKAGE_LIBTIRPC=y # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set BR2_PACKAGE_LRZSZ=y diff --git a/conf/evalsoc/buildroot_initramfs_rv32imafdc_config b/conf/evalsoc/buildroot_initramfs_rv32imafdc_config index 7ff50a6..abec1b0 100644 --- a/conf/evalsoc/buildroot_initramfs_rv32imafdc_config +++ b/conf/evalsoc/buildroot_initramfs_rv32imafdc_config @@ -43,5 +43,6 @@ BR2_PACKAGE_MTD_JFFS2DUMP=y BR2_PACKAGE_MTD_MKFSJFFS2=y BR2_PACKAGE_MTD_MTDPART=y BR2_PACKAGE_MINICOM=y +BR2_PACKAGE_HAVEGED=y # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set BR2_PACKAGE_LRZSZ=y diff --git a/conf/evalsoc/buildroot_initramfs_rv64imac_config b/conf/evalsoc/buildroot_initramfs_rv64imac_config index 1c5b8d1..8310149 100644 --- a/conf/evalsoc/buildroot_initramfs_rv64imac_config +++ b/conf/evalsoc/buildroot_initramfs_rv64imac_config @@ -46,6 +46,7 @@ BR2_PACKAGE_MTD_JFFS2DUMP=y BR2_PACKAGE_MTD_MKFSJFFS2=y BR2_PACKAGE_MTD_MTDPART=y BR2_PACKAGE_MINICOM=y +BR2_PACKAGE_HAVEGED=y BR2_PACKAGE_LIBTIRPC=y # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set BR2_PACKAGE_LRZSZ=y diff --git a/conf/evalsoc/buildroot_initramfs_rv64imafdc_config b/conf/evalsoc/buildroot_initramfs_rv64imafdc_config index 3fe2831..eb28ef9 100644 --- a/conf/evalsoc/buildroot_initramfs_rv64imafdc_config +++ b/conf/evalsoc/buildroot_initramfs_rv64imafdc_config @@ -44,5 +44,6 @@ BR2_PACKAGE_MTD_JFFS2DUMP=y BR2_PACKAGE_MTD_MKFSJFFS2=y BR2_PACKAGE_MTD_MTDPART=y BR2_PACKAGE_MINICOM=y +BR2_PACKAGE_HAVEGED=y # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set BR2_PACKAGE_LRZSZ=y