diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-02-15 09:44:30 -0800 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-02-15 09:44:30 -0800 |
| commit | b15e0dc482e2136ca4a9157eaceed1ed0c2a23c1 (patch) | |
| tree | 1558ab477e0c7edb6748aa36dfd444d32fa07f96 | |
| parent | 75b54a555f3dd4075190f7e8bb576100175231ac (diff) | |
rl: Add x86_64 QEMU launch
| -rwxr-xr-x | rushmore-linux/rl-qemu.sh | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/rushmore-linux/rl-qemu.sh b/rushmore-linux/rl-qemu.sh index af9565b..d6300bd 100755 --- a/rushmore-linux/rl-qemu.sh +++ b/rushmore-linux/rl-qemu.sh @@ -3,10 +3,28 @@ set -euo pipefail DIR="$(cd "$(dirname "$0")" && pwd)" -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
\ No newline at end of file + + +arch="$(uname -m)" + +case "$(uname -m)" in + x86_64) + # set vga=ask to select 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 + ;; + aarch64) + 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
\ No newline at end of file |