Преглед на файлове

scripts/diagnostic: Add support for collecting PCI device information

Maximilian Luz преди 3 години
родител
ревизия
a0da469887
променени са 1 файла, в които са добавени 9 реда и са изтрити 0 реда
  1. 9 0
      scripts/diagnostics.sh

+ 9 - 0
scripts/diagnostics.sh

@@ -11,6 +11,7 @@ all_components=(
     "serial"
     "serial"
     "sam"
     "sam"
     "kconfig"
     "kconfig"
+    "lspci"
 )
 )
 
 
 
 
@@ -218,6 +219,14 @@ if [[ " ${components[*]} " =~ " kconfig " ]]; then
     done;
     done;
 fi
 fi
 
 
+# collect lspci
+if [[ " ${components[*]} " =~ " lspci " ]]; then
+    echo "   - kernel configuration"
+
+    sudo lspci -nn -vvv > "${tmpdir}/lspci.txt"
+    sudo lspci -nn -v -t > "${tmpdir}/lspci-tree.txt"
+fi
+
 
 
 # bundle to archive
 # bundle to archive
 echo " ==> generating archive..."
 echo " ==> generating archive..."