Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Added debugging guide
Browse files Browse the repository at this point in the history
  • Loading branch information
memN0ps committed Jul 31, 2024
1 parent 5a07814 commit 8691f79
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,25 @@ The diagram below illustrates the structure and flow of the Windows UEFI Blue Pi
- Debug: `cargo make build-debug`.
- Release: `cargo make build-release`.

## Debugging

- **Serial Port Logging**: Use a serial port logger to capture logs from the hypervisor.

#### Enabling Debug Modes

- Test Mode: Activate test signing with `bcdedit.exe /set testsigning on`.
- Windows Debugging: Follow the steps in this [Microsoft guide](https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/bcdedit--bootdebug).

```powershell
bcdedit.exe /bootdebug {bootmgr} on
bcdedit.exe /bootdebug on
bcdedit.exe /debug on
```

#### Network Debugging with Windbg

- Setup: `bcdedit.exe /dbgsettings net hostip:w.x.y.z port:n`.

## Usage

A UEFI blue-pill hypervisor operates under the following conditions:
Expand Down

0 comments on commit 8691f79

Please sign in to comment.