summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/run
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-09-30 18:05:47 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2019-09-30 23:48:44 +0200
commit36494aff2cc8194085ee60e2479d554dbd69773b (patch)
treeba0525043b826aa3291e6a51608898ff6c52b9de /configs/platform-v7a/run
parent373322c21d19e6f1770c286392d264c7c31097b1 (diff)
downloadDistroKit-36494aff2cc8194085ee60e2479d554dbd69773b.tar.gz
DistroKit-36494aff2cc8194085ee60e2479d554dbd69773b.tar.xz
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 <m.olbrich@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/run')
-rwxr-xr-xconfigs/platform-v7a/run1
1 files changed, 1 insertions, 0 deletions
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