#!/bin/bash # QEMU Test Script for BBeOS # Tests the kernel and initramfs in emulation echo "Testing BBeOS in QEMU..." # Check if QEMU is available if ! command -v qemu-system-arm &> /dev/null; then echo "Error: qemu-system-arm not found" echo "Please install QEMU: sudo apt install qemu-system-arm" exit 1 fi # Run QEMU with our kernel and initramfs qemu-system-arm \ -M vexpress-a9 \ -cpu cortex-a9 \ -m 512M \ -kernel kernel-source/arch/arm/boot/zImage \ -dtb kernel-source/arch/arm/boot/dts/qcom/qcom-msm8960-blackberry-q20.dtb \ -initrd initramfs.img \ -append "console=ttyAMA0,115200 root=/dev/ram0 rw rootwait" \ -nographic \ -serial mon:stdio echo "QEMU test complete"