Skip to content

Commit

Permalink
Update qemu-vfat.bat
Browse files Browse the repository at this point in the history
Try R: first and then C:
  • Loading branch information
PeyTy committed Dec 26, 2023
1 parent 3402833 commit bd542d6
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions tools/qemu-vfat.bat
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
@echo off
color 0A
setlocal enableDelayedExpansion
cls

:: You must set proper paths to run this
:: Try R: first and then C:

set DRIVE=R
set WAY=\Tea\greenteaos-uefi64.iso
set ISO=%DRIVE%:%WAY%

if not exist "%ISO%" (
echo Trying alternative path...
set DRIVE=C
set ISO=!DRIVE!:!WAY!
echo !ISO!
)

set DRIVE=C
set QEMU="C:\Program Files\qemu\qemu-system-x86_64.exe"
set OVMF="..\Teapot\OVMF.fd"

%QEMU% -accel tcg -bios %OVMF% -m 2048 ^
-vga std -machine pc-q35-2.10 ^
-serial file:%DRIVE%:\Tea\qemu.log -cpu max,x2apic=off ^
-serial file:!DRIVE!:\Tea\qemu.log -cpu max,x2apic=off ^
-smp 4 ^
-cdrom %DRIVE%:\Tea\greenteaos-uefi64.iso ^
-cdrom !ISO! ^
-name "Greentea QEMU" -monitor stdio
:: -drive format=raw,file=fat:rw:%DRIVE%:\Tea\spin-off ^
::pause
Expand Down

0 comments on commit bd542d6

Please sign in to comment.