From 36494aff2cc8194085ee60e2479d554dbd69773b Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Mon, 30 Sep 2019 18:05:47 +0200 Subject: platform-v7a: enable virtio hardware random number generator This speeds up the first boot in qemu quite a bit when ssh keys are generated. Signed-off-by: Michael Olbrich --- configs/platform-v7a/kernelconfig | 2 +- configs/platform-v7a/run | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/platform-v7a/kernelconfig b/configs/platform-v7a/kernelconfig index ac3b14b..659b12b 100644 --- a/configs/platform-v7a/kernelconfig +++ b/configs/platform-v7a/kernelconfig @@ -1661,7 +1661,7 @@ CONFIG_HW_RANDOM=y # CONFIG_HW_RANDOM_TIMERIOMEM is not set CONFIG_HW_RANDOM_BCM2835=y CONFIG_HW_RANDOM_OMAP=y -# CONFIG_HW_RANDOM_VIRTIO is not set +CONFIG_HW_RANDOM_VIRTIO=y CONFIG_HW_RANDOM_IMX_RNGC=y # CONFIG_RAW_DRIVER is not set # CONFIG_TCG_TPM is not set diff --git a/configs/platform-v7a/run b/configs/platform-v7a/run index 7ff747f..935d63b 100755 --- a/configs/platform-v7a/run +++ b/configs/platform-v7a/run @@ -80,6 +80,7 @@ QEMU_ARGS=( "${QEMU_ARGS[@]}" -rtc base=2000-01-01 ) # Configure watchdog # no watchdog available on vexpress #QEMU_ARGS=( "${QEMU_ARGS[@]}" -watchdog i6300esb -watchdog-action poweroff ) +QEMU_ARGS=( "${QEMU_ARGS[@]}" -object rng-random,filename=/dev/random,id=rng0 -device virtio-rng-device,rng=rng0 ) # SCSI bus QEMU_ARGS=( "${QEMU_ARGS[@]}" -device virtio-scsi-device,id=scsi ) # Add virtual SCSI device if available -- cgit v1.2.3