Usb Kernel Debug

Use when the Linux end of a USB link has to explain itself on real hardware — enumeration failures, STALLed control transfers, missing/short bulk or interrupt transfers, isochronous dropouts, descriptor problems, port reset storms, repeated re-enumeration, address errors, xHCI ring/command errors, "device descriptor read error", babble. On a Linux PC host it captures the host-side URBs with usbmon + tshark into a Wireshark pcapng and turns on the kernel's dynamic debug for the host's reasoning; on a Linux gadget peer (e.g. a Raspberry Pi in device role) only dynamic debug applies, since no URBs traverse a gadget. Pair it with a wire sniffer and target-side debugging for what the kernel cannot see.

hathach Updated 7.3k repo stars

File contents

hathach/agentrc commit c1afae8a62

Frequently asked questions

npx get-skill add hathach/usb-kernel-debug-2