BarinkOS/scripts/run_qemu.sh

19 lines
797 B
Bash
Raw Normal View History

#!/bin/bash
2023-09-11 21:21:43 +00:00
if [[ $1 == "debug" ]]
then
qemu-system-i386 -s -boot d -drive format=raw,file=disk.img -serial stdio -vga std -display gtk -m 2G -cpu core2duo -d int -no-shutdown -no-reboot
2023-09-11 21:21:43 +00:00
else
qemu-system-i386 -s -boot d -drive format=raw,file=disk.img -serial stdio -vga std -display gtk -m 2G -cpu core2duo
2023-09-11 21:21:43 +00:00
fi
# Run from harddisk
2023-09-11 21:21:43 +00:00
#qemu-system-i386 -boot d -drive format=raw,file=disk.img -serial stdio -vga std -display gtk -m 2G -cpu core2duo -d int -no-shutdown -no-reboot
# Run disk version
# qemu-system-i386 -cdrom barinkOS.iso -serial stdio -vga std -display gtk -m 2G -cpu core2duo -s -d int -no-shutdown -no-reboot
# Run the raw kernel image
# qemu-system-i386 -kernel build/kernel/myos.bin -serial stdio -vga std -display gtk -m 2G -cpu core2duo -d int -no-shutdown -no-reboot