From a56aac0e2248530f78e608886a18a3443d0079b6 Mon Sep 17 00:00:00 2001 From: Christoph Ostarek Date: Fri, 3 Nov 2023 17:19:35 +0100 Subject: [PATCH] collect-info.sh: collect usb info collect info about usb devices to help debugging Signed-off-by: Christoph Ostarek --- pkg/debug/scripts/collect-info.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/debug/scripts/collect-info.sh b/pkg/debug/scripts/collect-info.sh index da51a3169d..0bf6925917 100755 --- a/pkg/debug/scripts/collect-info.sh +++ b/pkg/debug/scripts/collect-info.sh @@ -5,7 +5,7 @@ # # Script version, don't forget to bump up once something is changed -VERSION=10 +VERSION=11 # Add required packages here, it will be passed to "apk add". # Once something added here don't forget to add the same package @@ -225,6 +225,13 @@ echo "- lsusb, dmesg, ps, lspci, lsblk, lshw, lsof, lsmod, logread, dmidecode, l chroot /hostfs lsusb -vvv > "$DIR/lsusb-vvv" chroot /hostfs lsusb -vvv -t > "$DIR/lsusb-vvv-t" +{ + find /sys/devices/ -path '*/usb[0-9]/*' -name "uevent" -exec awk '{print FILENAME ":" $0}' {} \; + find /sys/devices/ -path '*/usb[0-9]/*' -name "product" -exec awk '{print FILENAME ":" $0}' {} \; + echo "ls -l /sys/class/net/" + ls -l /sys/class/net/ +} > "$DIR/sys-fs-usb" + dmesg > "$DIR/dmesg" ps -xao uid,pid,ppid,vsz,rss,c,pcpu,pmem,stime,tname,stat,time,cmd \ > "$DIR/ps-xao"