Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Sept/Oct 2019 Issue of The NT Insider available


Download PDF here: http://insider.osr.com/2019/ntinsider_2019_01.pdf

It’s a particularly BIG issue, too: 40 pages of technical goodness, ranging from WDF to Minifilters. Check it out.
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

how do check if network adapter supports windbg kernel debug

tony_zhutony_zhu Member Posts: 29
edited September 6 in WINDBG

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!

Comments

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,138

    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.

  • tony_zhutony_zhu Member Posts: 29

    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

  • Scott_Noone_(OSR)Scott_Noone_(OSR) Administrator Posts: 3,183

    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

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,138

    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.

  • tony_zhutony_zhu Member Posts: 29

    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

  • Scott_Noone_(OSR)Scott_Noone_(OSR) Administrator Posts: 3,183

    Why not just plug in another network adapter as Tim suggested?

    -scott
    OSR

  • tony_zhutony_zhu Member Posts: 29

    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.

  • Scott_Noone_(OSR)Scott_Noone_(OSR) Administrator Posts: 3,183

    USB3? I have never tried it but I've heard people having good luck with it (unlike USB2, which never really worked).

    -scott
    OSR

  • Pavel_APavel_A Member Posts: 2,689

    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.

    If space allows, try to find a PCIe extender adapter or flexible cable.

    -- pa

  • Eric_WittmayerEric_Wittmayer Member Posts: 31

    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

    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

  • MajorTomMajorTom Member - All Emails Posts: 133
    There is also ‘official’ list of devices supporting KDNET at the msdn:

    https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/supported-ethernet-nics-for-network-kernel-debugging-in-windows-10
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 21 Oct 2019 OSR Seminar Space & ONLINE
Internals & Software Drivers 18 Nov 2019 Dulles, VA
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 27 Apr 2020 OSR Seminar Space & ONLINE