[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#405102: marked as done (installation-report: Include info on which PCI device is in used by which kernel module)



Your message dated Sat, 06 Jan 2007 20:32:03 +0000
with message-id <E1H3ICx-0008Et-LF@ries.debian.org>
and subject line Bug#405102: fixed in installation-report 2.27
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package:  installation-report
Version:  2.25
Severity: important
Tags:     patch

In bug #403876 I got code for discover-data from Auke Kok to extract
which PCI devices the various kernel modules are attached to.  This
information would make it a lot easier to figure out which kernel
module have a problem if the Debian installation isn't working as it
should, so I believe it is important to get it included in the
installation-report package in Etch.  I set severity important because
of this.

Here is a patch to enable it, based on the current svn code.  I've
tested it on my installed system, but not in the udeb / d-i
environment.  I'm not sure if for example awk, sed and the /sys/ mount
point is available in that environment, so it might fail there.

Index: report-hw
===================================================================
--- report-hw	(revision 43704)
+++ report-hw	(working copy)
@@ -17,9 +17,11 @@
 uname -a 2>&1 | addinfo "umame -a"
 
 if type lspci >/dev/null 2>&1; then
+	lspci=lspci
 	lspci -nn  2>&1 | addinfo "lspci -nn"
 	lspci -vnn 2>&1 | addinfo "lspci -vnn"
 elif /target/usr/bin/lspci >/dev/null; then
+	lspci=/target/usr/bin/lspci
 	/target/usr/bin/lspci -nn 2>&1 | addinfo "lspci -nn"
 	/target/usr/bin/lspci -vnn 2>&1 | addinfo "lspci -vnn"
 else
@@ -49,3 +51,20 @@
 		/usr/lib/directfb-0.9.25/bin/dfbinfo 2>&1 | addinfo dfbinfo
 	fi
 fi
+
+# List which modules are refering to which PCI devices
+if [ "$lspci" ] && [ -d /sys/bus/pci/devices ] ; then
+    echo loaded modules:
+    (
+	cd /sys/bus/pci/devices
+	for address in * ; do
+	    if [ -d "$address/driver/module" ] ; then
+		module=`cd $address/driver/module ; pwd -P | xargs basename`
+		if grep -q "^$module " /proc/modules ; then
+		    address=$(echo $address |sed s/0000://)
+		    echo "`lspci -n -s $address | tail -n 1 | awk '{print $3}'` $module"
+		fi
+	    fi
+	done
+    ) | addinfo modulemap
+fi


--- End Message ---
--- Begin Message ---
Source: installation-report
Source-Version: 2.27

We believe that the bug you reported is fixed in the latest version of
installation-report, which is due to be installed in the Debian FTP archive:

installation-report_2.27.dsc
  to pool/main/i/installation-report/installation-report_2.27.dsc
installation-report_2.27.tar.gz
  to pool/main/i/installation-report/installation-report_2.27.tar.gz
installation-report_2.27_all.deb
  to pool/main/i/installation-report/installation-report_2.27_all.deb
save-logs_2.27_all.udeb
  to pool/main/i/installation-report/save-logs_2.27_all.udeb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 405102@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <joeyh@debian.org> (supplier of updated installation-report package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat,  6 Jan 2007 14:45:59 -0500
Source: installation-report
Binary: save-logs installation-report
Architecture: source all
Version: 2.27
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Joey Hess <joeyh@debian.org>
Description: 
 installation-report - system installation report
 save-logs  - save logs and configuration for debug purposes (udeb)
Closes: 405102
Changes: 
 installation-report (2.27) unstable; urgency=low
 .
   * Patch based on a patch by Petter to include info about which kernel
     module is bound to which PCI device. Closes: #405102
Files: 
 14cd52e0750d63329795bf73209f400e 797 debian-installer optional installation-report_2.27.dsc
 e8b32ced24963b6a1e3221cc2041e3b1 69529 debian-installer optional installation-report_2.27.tar.gz
 90347d4cf43932c736079493fc4b5591 44908 debian-installer standard save-logs_2.27_all.udeb
 6135eaca9dedc059bb738dac6b37422f 15092 misc optional installation-report_2.27_all.deb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFn/yf2tp5zXiKP0wRAk8oAKCDV3ZgfysBLRE9aHA06UMm3l3/QQCeNeBQ
5raeZvAZ+bLqNP+yztq6Os4=
=is5U
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: