summaryrefslogtreecommitdiff
path: root/qemu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'qemu.sh')
-rwxr-xr-xqemu.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu.sh b/qemu.sh
new file mode 100755
index 0000000..e4459ed
--- /dev/null
+++ b/qemu.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+mkdir -p target/x86_64-unknown-uefi/debug/efi
+cp target/x86_64-unknown-uefi/debug/gb.efi target/x86_64-unknown-uefi/debug/efi/gb.efi
+qemu-system-x86_64 -drive if=pflash,format=raw,unit=0,file=OVMF_CODE.fd,readonly=on -drive if=pflash,format=raw,unit=1,file=OVMF_VARS.fd,readonly=on -drive file=fat:rw:target/x86_64-unknown-uefi/debug/efi/
+#cp target/x86_64-unknown-uefi/release/gb.efi .tmp/bootx64.efi
+#qemu-system-x86_64 -drive if=pflash,format=raw,unit=0,file=OVMF_CODE.fd,readonly=on -drive if=pflash,format=raw,unit=1,file=OVMF_VARS.fd,readonly=on -drive file=fat:rw:.tmp