summaryrefslogtreecommitdiff
path: root/run-qemu
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-02-05 12:19:04 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-02-05 12:19:04 +0000
commitaa192b250c709db4b071b9fd506a0e6583884f24 (patch)
treeabe86fbe34be3e5898680cc084d077090e1d1170 /run-qemu
parent3a48a219967d6f6bd39241206a7dc57355566444 (diff)
downloadlh-bootstrap-aa192b250c709db4b071b9fd506a0e6583884f24.tar.xz
Add arm and x86_64 qemus, increase init-eth0 sleep to 3
Diffstat (limited to 'run-qemu')
-rwxr-xr-xrun-qemu6
1 files changed, 4 insertions, 2 deletions
diff --git a/run-qemu b/run-qemu
index 8bd4c98..e3c8aa8 100755
--- a/run-qemu
+++ b/run-qemu
@@ -5,10 +5,12 @@ if test -n "$CONSOLE" ; then
fi
case "$QEMU_ARCH" in
- aarch64) cpuoption="-cpu cortex-a57" ;;
+ arm) cpuoption="-M virt -cpu cortex-a15" ;;
+ aarch64) cpuoption="-M virt -cpu cortex-a57" ;;
+ x86_64) cpuoption="-M pc -cpu qemu64"
esac
-exec qemu-system-${QEMU_ARCH} -nographic -M virt $cpuoption -smp 4 -m 2G -nodefaults -display none -serial mon:stdio \
+exec qemu-system-${QEMU_ARCH} -nographic $cpuoption -smp 4 -m 2G -nodefaults -display none -serial mon:stdio \
-kernel "$OUTPUT/kernel" \
-append "root=/dev/vda $consoleoption" \
-drive if=virtio,file=$OUTPUT/rootfs.qcow2,format=qcow2,media=disk,index=1 \