Capture QEMU serial port output

This commit is contained in:
Josh Holtrop 2023-09-04 21:13:35 -04:00
parent ce3e2c55df
commit 4e46b98efc

View File

@ -195,7 +195,14 @@ task "run", desc: "Run HOS in QEMU" do
if File.exist?("/usr/share/edk2/x64/OVMF.fd") if File.exist?("/usr/share/edk2/x64/OVMF.fd")
ovmf = "/usr/share/edk2/x64/OVMF.fd" ovmf = "/usr/share/edk2/x64/OVMF.fd"
end end
sh %W[qemu-system-x86_64 -cpu max -bios #{ovmf} -drive file=qemu/HOS.img,format=raw -device qemu-xhci -device usb-tablet] sh %W[
qemu-system-x86_64
-cpu max
-serial file:qemu/serial.out
-bios #{ovmf}
-drive file=qemu/HOS.img,format=raw
-device qemu-xhci
-device usb-tablet]
end end
# See README.md for how to set up VirtualBox for HOS. # See README.md for how to set up VirtualBox for HOS.