-
Windows host (Debugger)
-
install windbg
-
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
-
download the iso
-
mount the iso
-
In the installation wizard, select Debugging Tools for Windows, and deselect all other components.
-
Or you can download this package and install directly https://wiki.ith.intel.com/download/attachments/1104682226/X64%20Debuggers%20And%20Tools-x64_en-us.msi?api=v2
-
-
download setup_com0com_W7_x64_signed.exe
-
no special configuration is needed.
-
-
-
- download "Com by TCP"
- Windows Guest (Target): We have to run the following commands in the cmd.exe, which has to be started as Administrator to give us enough permissions.
- bcdedit /set debug on
- bcdedit /set debugtype serial
- bcdedit /set debugport 1
- bcdedit /set baudrate 115200
- bcdedit /set {bootmgr} displaybootmenu yes
- bcdedit /timeout 10
- How to debug:
- Windows host
- Launch "Com by TCP", select any one port from the "Virtual Port Pair" above, for example COM8. Fill the Com properties as below then click "Get Com".
- Fill the SOS IP address and port, click "Client".
- Windows host
- Launch WinDbg, File->Kernel Debug…, fill the port using the peer of the port configured in "Com by TCP", for example, com9
- SOS
- Launch Guest/UOS windows
- qemu: add "-serial tcp::9090,server,nowait" to command line
- acrn-dm: add "-l comX,tcp:9090" to acrn-dm command line, where X can be 1 or 2, depending on which port is configured as the debugport above.
- Launch Guest/UOS windows