From b15e0dc482e2136ca4a9157eaceed1ed0c2a23c1 Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Sun, 15 Feb 2026 09:44:30 -0800 Subject: rl: Add x86_64 QEMU launch --- rushmore-linux/rl-qemu.sh | 32 +++++++++++++++++++++++++------- 1 file 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 -- cgit v1.2.3