]> rtime.felk.cvut.cz Git - jailhouse-test.git/commitdiff
intel_launch: Added the script for to start project on Intel CPUs.
authorMaxim Baryshnikov <barysmax@fel.cvut.cz>
Tue, 23 Feb 2016 20:13:15 +0000 (21:13 +0100)
committerMaxim Baryshnikov <barysmax@fel.cvut.cz>
Tue, 23 Feb 2016 20:13:15 +0000 (21:13 +0100)
qemu-launch-scripts/start-qemu-intel.sh [new file with mode: 0755]

diff --git a/qemu-launch-scripts/start-qemu-intel.sh b/qemu-launch-scripts/start-qemu-intel.sh
new file mode 100755 (executable)
index 0000000..750ce92
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash
+if [ -z "$1" ]; then
+       KIMG=../build/buildroot/images/bzImage
+else
+       KIMG="$1"
+fi
+echo KIMG="$KIMG"
+
+if [ -z "$2" ]; then
+       RFSIMG=../build/buildroot/images/rootfs.ext2
+else 
+       RFSIMG="$2"
+fi
+echo RFSIMG="$RFSIMG"
+
+qemu-system-x86_64 -machine q35 -m 1G -enable-kvm -smp 4 \
+        -cpu kvm64,-kvm_pv_eoi,-kvm_steal_time,-kvm_asyncpf,-kvmclock,+vmx,+x2apic \
+       -kernel "$KIMG" -append "root=/dev/sda memmap=66M$0x3b000000 nohpet" \
+       -drive file="$RFSIMG",format=raw,id=disk,if=none \
+        -device ide-hd,drive=disk -serial stdio -serial vc \
+        -device intel-hda,addr=1b.0 -device hda-duplex
+