blob: fab1b97b08d1cacec3a7ff4cef8f5e3a5e83dd86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/env bash
set -euo pipefail
DIR="$(cd "$(dirname "$0")" && pwd)"
case "$(uname -m)" in
x86_64)
# set vga=ask to list VGA modes
qemu-system-x86_64 \
-kernel "$DIR/out/kernel/arch/x86_64/boot/bzImage" \
-initrd "$DIR/out/initramfs.cpio.gz" \
-append "console=tty0 console=ttyS0,115200 vga=792" \
-vga std \
-display gtk \
-serial mon:stdio
;;
arm64)
qemu-system-aarch64 -machine virt -cpu cortex-a72 \
-kernel "$DIR/out/kernel/arch/arm64/boot/Image" \
-initrd "$DIR/out/initramfs.cpio.gz" \
-append "console=ttyAMA0 console=ttyS0,115200 vga=792" \
-device virtio-gpu-pci,edid=on,xres=1024,yres=768 \
-display cocoa \
-serial mon:stdio
;;
esac
|