Developing drivers with the windows driver foundation(WDF) - Step by Step (I)
Developing a device driver is one of the toughest task in the programming career of any developer.
Configuring Kernel Debugger using Network
Hardware
- (Host) running Windows 10 (Computer name: RedDog, IP:192.168.1.109)
- (Target) running Windows 10(Computer name: BlueCat, IP:192.168.1.111 )
- A network hub and network cables to connect the two PCs
Installing Software (on Host)
- Visual Studio 2015
- Windows SDK 10
- Windows Driver Kit (WDK) 10
Setting (on Target)
C:\>ping 192.168.1.109
Pinging 192.168.1.101 with 32 bytes of data:
Reply from 192.168.1.101: bytes=32 time=4ms TTL=128
Reply from 192.168.1.101: bytes=32 time=4ms TTL=128
Reply from 192.168.1.101: bytes=32 time=3ms TTL=128
Reply from 192.168.1.101: bytes=32 time=5ms TTL=128
Ping statistics for 192.168.1.101:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 5ms, Average = 4ms
C:\> bcdedit /set {default} DEBUG YES
C:\> bcdedit /set TESTSIGNING ON
C:\> bcdedit /dbgsettings net hostip:192.168.1.101 port:50000
C:\> bcdedit /dbgsettings
key IFCHUGCEWUMW.DV0XUI5BO9K.3SOWXO8PJKV4.4MRN3R4VILB2 debugtype NET hostip 169.168.1.101 port 50000 dhcp Yes The operation completed successfully.
(on Host)
1.In Visual Studio, on the Driver menu, choose Test > Configure Devices.,and click Add new device.
2.Select Manually configure debuggers and do not provision, and click Next.
3.Add key:
IFCHUGCEWUMW.DV0XUI5BO9K.3SOWXO8PJKV4.4MRN3R4VILB2
Add Port Number:
50000
Add Host IP:
192.168.1.109 (The RedDog's IP you ping above)
4. Host successfully connect target
Status: Configured for driver testing
1.In Visual Studio, on the Driver menu, choose Test > Configure Devices.,and click Add new device.
2.Select Manually configure debuggers and do not provision, and click Next.
IFCHUGCEWUMW.DV0XUI5BO9K.3SOWXO8PJKV4.4MRN3R4VILB2
Add Port Number:
50000
Add Host IP:
192.168.1.109 (The RedDog's IP you ping above)
Status: Configured for driver testing
留言
張貼留言