-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.bat
49 lines (41 loc) · 1.35 KB
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@rem Run script
@echo off
set backupPath=%path%
set NSPath=%CD%
cd /d c:\Program Files\qemu
set path=%path%;%NSPath%
if exist %nspath%\vdiske2.vdi (
set DriveOptions=-cdrom %nspath%\build\image.iso -drive id=nvm,file=%nspath%\vdiske2.vdi,if=none -device nvme,serial=deadbeef,drive=nvm
) else (
set DriveOptions=-cdrom %nspath%\build\image.iso
)
qemu-system-x86_64.exe -no-reboot -no-shutdown ^
-M q35 ^
-m 64M ^
-smp 4 ^
-boot d ^
-display sdl ^
-accel tcg ^
-monitor telnet:127.0.0.1:56789,server,nowait ^
-debugcon stdio ^
-trace *nvme* -trace *msi* -D %nspath%\keep\nvmelog.txt ^
-s ^
%DriveOptions%
:-debugcon stdio ^
:-d cpu_reset ^
: -s -S -- for debugging with GDB
: -serial COM7 -- to output the serial port to somewhere real
: -kernel %nspath%/kernel.bin
: -debugcon stdio
: -monitor telnet:127.0.0.1:55555,server,nowait -- to use the QEMU console
:
:-d int ^
:-D %nspath%\keep/things.txt ^
:qemu-system-i386 -m 16M -drive file=\\.\PHYSICALDRIVE1,format=raw
rem -s -S
:-drive id=disk,file=%nspath%\vdisk.vdi,if=none ^
:-device ahci,id=ahci ^
:-device ide-hd,drive=disk,bus=ahci.0 ^
rem go back
cd /d %NSPath%
set path=%backupPath%