You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After watching your youtube video, I couldn't get "run.bat" to work without some intervention. I'm thinking it's because my working directory is on another drive?
I got it running by cleaning up the double quotes that got inserted around the %0. I also had to clean up funky quote placement on the "-drive" arguments.
set OSNAME=CustomOS
set WORKING_FILE=%0
:: remove double quotes that are around "%0" or builddir and ovmfdir get ugly
set FIXED_WORKING_FILE=%WORKING_FILE:"=%
set BUILDDIR=%FIXED_WORKING_FILE%/../bin
set OVMFDIR=%FIXED_WORKING_FILE%/../../OVMFbin
qemu-system-x86_64 -drive "file=%BUILDDIR%/%OSNAME%.img" -m 256M -cpu qemu64 -drive "if=pflash,format=raw,unit=0,file=%OVMFDIR%/OVMF_CODE-pure-efi.fd,readonly=on" -drive "if=pflash,format=raw,unit=1,file=%OVMFDIR%/OVMF_VARS-pure-efi.fd" -net none
pause
The text was updated successfully, but these errors were encountered:
I have created a pull request that fixes the issue so that new comers will have the fixed run.bat instead of the broken one.
I hope this helps future learners
After watching your youtube video, I couldn't get "run.bat" to work without some intervention. I'm thinking it's because my working directory is on another drive?
Error:
qemu-system-x86_64: -drive file="D:\repositories\sandbox\projects\c\poncho_os\kernel\run.bat"/../bin/CustomOS.img: Unknown protocol '"D'
I got it running by cleaning up the double quotes that got inserted around the %0. I also had to clean up funky quote placement on the "-drive" arguments.
The text was updated successfully, but these errors were encountered: