Difference between revisions of "Linux USB Debugging"
Jump to navigation
Jump to search
(Created page with "Category:LinuxCategory:USBCategory:Debugging == Miscellaneous Links == * [https://wiki.ubuntu.com/Kernel/Debugging/USB Linux Kernel USB Debugging] * [https://eli...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Linux]][[Category:USB]][[Category:Debugging]] | [[Category:Linux]][[Category:USB]][[Category:Debugging]] | ||
+ | |||
+ | [[File:USB Debugging Architecture.png|600px]] | ||
+ | |||
+ | == ASCII Capture == | ||
+ | |||
+ | <pre> | ||
+ | mount -t debugfs none_debugs /sys/kernel/debug | ||
+ | modprobe usbmon | ||
+ | ls -l /sys/kernel/debug/usb/usbmon | ||
+ | cat /sys/kernel/debug/usbmon/1u >/tmp/usbmon.mon | ||
+ | vbus-analyzer usbmon.mon | ||
+ | </pre> | ||
== Miscellaneous Links == | == Miscellaneous Links == | ||
* [https://wiki.ubuntu.com/Kernel/Debugging/USB Linux Kernel USB Debugging] | * [https://wiki.ubuntu.com/Kernel/Debugging/USB Linux Kernel USB Debugging] | ||
− | * [https://elinux.org/images/1/17/USB_Debugging_and_Profiling_Techniques.pdf USB Debugging and Profiling | + | * [https://elinux.org/images/1/17/USB_Debugging_and_Profiling_Techniques.pdf USB Debugging and Profiling Techniques] |
− | Techniques] |
Latest revision as of 10:48, 1 June 2021
ASCII Capture
mount -t debugfs none_debugs /sys/kernel/debug modprobe usbmon ls -l /sys/kernel/debug/usb/usbmon cat /sys/kernel/debug/usbmon/1u >/tmp/usbmon.mon vbus-analyzer usbmon.mon