2023-02-20 00:03:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-09-11 21:21:43 +00:00
|
|
|
if [[ $1 == "debug" ]]
|
|
|
|
then
|
2023-10-27 16:03:45 +00:00
|
|
|
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
|
2023-10-27 16:03:45 +00:00
|
|
|
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
|
2023-02-20 00:03:46 +00:00
|
|
|
# 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
|
2023-02-20 00:03:46 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|