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

Bug#580098: firmware-b43-lpphy-installer postinst script fails when a Broadcom Ethernet device is also here

Package: firmware-b43-lpphy-installer
Severity: normal
Tags: patch

When installing firmware-b43-lpphy-installer from Squeeze on my laptop, dpkg fails to install it because its postinst script fails :

Échec de l'installation d'un paquet. Tentative de réparation : 
Paramétrage de firmware-b43-lpphy-installer ( ...
Not supported card here (PCI id 14e4:4315

The problem comes from my laptop having 2 broadcom network PCI interfaces, one wifi (LP-PHY, targeted for this package) and also an Ethernet card :

$ lspci|grep -i broad
02:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)
85:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)

$ lspci -n|grep 14e4:
02:00.0 0280: 14e4:4315 (rev 01)
85:00.0 0200: 14e4:1693 (rev 02)

These two PCI ids give the error. I propose a simple patch to workaround this, it works on my system.


-- System Information:
Debian Release: squeeze/sid
  APT prefers squeeze
  APT policy: (990, 'squeeze'), (990, 'testing'), (800, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages firmware-b43-lpphy-installer depends on:
ii  b43-fwcutter                  1:013-1    Utility for extracting Broadcom 43
ii  bzip2                         1.0.5-4    high-quality block-sorting file co
ii  wget                          1.12-2     retrieves files from the web

Versions of packages firmware-b43-lpphy-installer recommends:
ii  linux-image-2.6.32 [linux-ima 2.6.32-19  Linux kernel, version 2.6.32
ii  linux-image-2.6.32-4-amd64 [l 2.6.32-11  Linux 2.6.32 for 64-bit PCs
ii  linux-image-2.6.33 [linux-ima 2.6.33-5   Linux kernel, version 2.6.33

firmware-b43-lpphy-installer suggests no packages.

-- no debconf information
--- firmware-b43-lpphy-installer.postinst	2010-05-03 17:54:52.000000000 +0200
+++ /var/lib/dpkg/info//firmware-b43-lpphy-installer.postinst	2010-05-03 10:24:22.000000000 +0200
@@ -14,7 +14,7 @@
 # check chip
 pci=`lspci -n | grep -o "14e4:[1234567890]\+"` || true
 if [ -n "$pci" ]; then
-	if [ "`echo $pci | cut -d: -f2`" != "4315" ]; then
+	if  ! echo $pci | grep -q '14e4:4315'; then
 		echo "Not supported card here (PCI id $pci)!"
 		echo "Use proper b43 or b43legacy firmware."
 		echo "Aborting."

Reply to: