Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results
The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
I have typed the following commands in admin cmd :
bcdedit /debug on
bcdedit /dbgsettings net hostip:w.x.y.z port:n
and also
bcdedit /set {dbgsettings} busparams b.d.f
but still my windbg on host can NOT connect to target.
I have double checked ip , port, key, and bus number , device number, function, they should be all matching.
So my question is that is there any tool like usbview.exe that can tell if the usb port supports debug?
Or is there any way other than tool to check, i don't mind writing some code or script as long as it can find out if network adapter support network debug?
Thanks in advance!
Upcoming OSR Seminars | ||
---|---|---|
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead! | ||
Kernel Debugging | 16-20 October 2023 | Live, Online |
Developing Minifilters | 13-17 November 2023 | Live, Online |
Internals & Software Drivers | 4-8 Dec 2023 | Live, Online |
Writing WDF Drivers | 10-14 July 2023 | Live, Online |
Comments
Don't do the USB thing. That only leads to tears.
Are your two machines on the same subnet? WinDbg can't cross subnets. Did you understand that w.x.y.z is the IP address of the machine running windbg? How did you get the IP address of the debug target? How are you configuring WinDbg? By dialog, or by command line?
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
Hi Tim Roberts,
1.yes, they are on the same subnet as i do windbg debugging day by day.
2.yes, i understand w.x.y.z is the ip of the host.
3. i don't think i need to know ip address of debug target, right?
4. from windbg GUI, open file->kernel debug->net , then input port number, key
and by the way i am debugging intel non public released mother board
WinDbg ships with a utility kdnet.exe that will tell you if your NIC supports network debugging. However, I think this is just based on vendor ID/device ID and not any special properties of the NIC.
-scott
OSR
I see, so you have success, except for this one specific motherboard. Does the chipset have some new network adapter? I suppose you could try plugging in an older net card just for debugging purposes.
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.
and if debugview remote can help my situation ? it seems like debugview can have client running in target system, and let debuview connect to this client to view the kernel log? but how to do this, can NOT find any useful from internet
Why not just plug in another network adapter as Tim suggested?
-scott
OSR
This intel non public released motherboard has only two pcie slots, one being pcie X 1, other being pcie X 4. And now if i plug in video card into pcie X 1, windows can not detect such video card in device manager and so i can not install driver and debug code using pcie X 1. So i can only use pcie X 4 slot to install video card because this slot can let windows detect my video card . But here is the issue, pcie X 4 slot is so close to pcie X 1, after video card is plugged into pcie X 4 slot, video card's fan is right above pcie X 1 slot, and so i can not install network adapter.
USB3? I have never tried it but I've heard people having good luck with it (unlike USB2, which never really worked).
-scott
OSR
If space allows, try to find a PCIe extender adapter or flexible cable.
-- pa
I've had good luck with kernel debug over USB3. It has the occasional hiccup but mostly just works. I do wish firewire was still supported so i didn't have to switch between USB3 and firewire every time i switch my debug machine from Win10 to Win7> @Tim_Roberts said:
windbg? How did you get the IP address of the debug target? How are you configuring WinDbg? By dialog, or by command line?
The network debug doesn't seem to work as well for me but it's been awhile since i tried.
I'll give the network debug a try if you give the USB3 debug a try Mr. Roberts.
Eric
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/supported-ethernet-nics-for-network-kernel-debugging-in-windows-10