Hello,
I’m trying to use usbmon, but I can’t find usbmon.
jetsonai@jetsonai-desktop:~$ grep CONFIG_USB_MON /boot/config-uname -r
grep: /boot/config-4.9.140-tegra: No such file or directory
Can you tell me how to use usbmon in jetson nano?
Thank you.
Hi,
Please check
Issue in running usbmon - #4 by DaneLLL
You can enable it in
kernel-4.9/arch/arm64/configs/tegra_defconfig
1 Like
Hello,
Are you saying that I have to compile the kernel to use it?
Thank you.
Hi,
Yes, it is disabled by default. You would need to enable it and rebuild/replace kernel for a try.
1 Like
Hello,
Reference url: https://www.kernel.org/doc/Documentation/usb/usbmon.txt
I was able to use usbmon as follows without having to compile the kernel. Can you do cross-validation in nvidia?
I need to check if I left a log properly.
sudo modprobe usbmon
sudo ls /sys/kernel/debug/usb/usbmon
0s 0u 1s 1t 1u 2s 2t 2u
to listen on a single bus, otherwise, to listen on all buses, type::
# cat /sys/kernel/debug/usb/usbmon/0u > /tmp/1.mon.out
This process will read until it is killed. Naturally, the output can be
redirected to a desirable location. This is preferred, because it is going
to be quite long.
Thank you.
1 Like