Hao to setup windbg on windows10 LTSC img

 

  • 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".

  • 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.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章