Package: firmware-b43-lpphy-installer
Version: 1:015-2
Severity: important

Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?
Install after going from testing to unstable. upgrade package from testing
1:015-1 to unstable 1:015-2
New package removed /lib/firmware/b43/ but failed to install new firmware.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
Ineffective: reinstall using apt-get, aptitude, synaptic.
Effective:
1. export FIRMWARE_INSTALL_DIR="/lib/firmware"
2. wget http://downloads.openwrt.org/sources/broadcom-wl-4.178.10.4.tar.bz2
3. tar xjf broadcom-wl-4.178.10.4.tar.bz2
4. sudo b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" broadcom-
wl-4.178.10.4/linux/wl_apsta.o

   * What was the outcome of this action?
Downloaded broadcom-wl-4.178.10.4.tar.bz2 and extracted firmware to
/lib/firmware/b43
rebooted and card for wifi worked.

   * What outcome did you expect instead?
Expected package firmware-b43-lpphy-installer to automatically download and
extract firmware but it did not.

There may be a problem with the shell script firmware-b43-lpphy-
installer.postinst in the source file.Version 1:015-1 works but not 1:015-2.
----------------------------------------------------------------------------------------Here
is the script from version 1:015-1:
#!/bin/sh

set -e

# check kernel version
if dpkg --compare-versions 2.6.32 gt `uname -r | cut -d- -f1`; then
        echo "Kernel too old. This firmware needs >= 2.6.32!."
        echo "Aborting!"
        exit 0
fi

# check chip
supported=0
pci=`lspci -n | grep -o "14e4:[1234567890abcdef]\+"` || true

if [ -n "$pci" ]; then
        for device in $pci; do
                device_id=`echo $device | cut -d: -f2`
                if [ $device_id = 4315 ]; then
                        supported=1
                        break
                fi
        done
fi

if [ "$supported" = 0 ]; then
        echo "No supported card found."
        echo "Use proper b43 or b43legacy firmware."
        echo "Aborting."
        exit 0
fi

tmp=`mktemp -q -d`

cd $tmp
export FIRMWARE_INSTALL_DIR="/lib/firmware"

if [ ! -d "$FIRMWARE_INSTALL_DIR" ]; then
        mkdir -p $FIRMWARE_INSTALL_DIR
fi

# use apt proxy
APT_PROXIES=$(apt-config shell \
http_proxy Acquire::http::Proxy \
https_proxy Acquire::https::Proxy \
ftp_proxy Acquire::ftp::Proxy \
)

if [ -n "$APT_PROXIES" ]; then
        eval export $APT_PROXIES
fi

wget --timeout=60 http://downloads.openwrt.org/sources/broadcom-
wl-4.178.10.4.tar.bz2
if [ $? -ne 0 ]; then
        echo "Some problem occurred during the firmware download. Please check
your internet connection."
        exit 0
    else
        if [ -d /lib/firmware/b43 ]; then
           echo "Deleting old extracted firmware..."
           rm -rf /lib/firmware/b43
        fi
fi
tar xvjf broadcom-wl-4.178.10.4.tar.bz2
cd broadcom-wl-4.178.10.4/linux
b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta.o
cd $tmp
rm -rf broadcom-wl-4.178.10.4.tar.bz2 broadcom-wl-4.178.10.4

#DEBHELPER#

----------------------------------------------------------------------------------------Here
is the script from version 1:015-2:
#!/bin/sh

set -e

latest_firmware ()
{
cd $tmp
export FIRMWARE_INSTALL_DIR="/lib/firmware"

if [ ! -d "$FIRMWARE_INSTALL_DIR" ]; then
        mkdir -p $FIRMWARE_INSTALL_DIR
fi

# use apt proxy
APT_PROXIES=$(apt-config shell \
http_proxy Acquire::http::Proxy \
https_proxy Acquire::https::Proxy \
ftp_proxy Acquire::ftp::Proxy \
)

if [ -n "$APT_PROXIES" ]; then
        eval export $APT_PROXIES
fi

wget --timeout=60 http://downloads.openwrt.org/sources/broadcom-
wl-4.178.10.4.tar.bz2
if [ $? -ne 0 ]; then
        echo "Some problem occurred during the firmware download. Please check
your internet connection."
        exit 0
    else
        if [ -d /lib/firmware/b43 ]; then
           echo "Deleting old extracted firmware..."
           rm -rf /lib/firmware/b43
        fi
fi
tar xvjf broadcom-wl-4.178.10.4.tar.bz2
cd broadcom-wl-4.178.10.4/linux
b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta.o
cd $tmp
rm -rf broadcom-wl-4.178.10.4.tar.bz2 broadcom-wl-4.178.10.4
}


# check environment
if [ "$(stat -c %d/%i /)" != "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ];
 then
    echo "A chroot environment has been detected."
    echo "Remember this firmware needs kernel >= 2.6.25."
    latest_firmware
    exit 0
 else
    echo "No chroot environment found. Starting normal installation"
fi


# check kernel version
if dpkg --compare-versions 2.6.32 gt `uname -r | cut -d- -f1`; then
        echo "Kernel too old. This firmware needs >= 2.6.32!."
        echo "Aborting!"
        exit 0
fi

# check chip
supported=0
pci=`lspci -n | grep -o "14e4:[1234567890abcdef]\+"` || true

if [ -n "$pci" ]; then
        for device in $pci; do
                device_id=`echo $device | cut -d: -f2`
                if [ $device_id = 4315 ]; then
                        supported=1
                        break
                fi
        done
fi

if [ "$supported" = 0 ]; then
        echo "No supported card found."
        echo "Use proper b43 or b43legacy firmware."
        echo "Aborting."
        exit 0
fi

tmp=`mktemp -q -d`

#DEBHELPER#



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (700, 'testing'), (600, 'stable')
Architecture: amd64 (x86_64)

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

Versions of packages firmware-b43-lpphy-installer depends on:
ii  b43-fwcutter  1:015-2
ii  bzip2         1.0.5-7
ii  wget          1.13-1 

Versions of packages firmware-b43-lpphy-installer recommends:
ii  linux-image-2.6.32-5-amd64 [linux-image]  2.6.32-38
ii  linux-image-3.0.0-1-amd64 [linux-image]   3.0.0-4  
ii  linux-image-3.0.0-2-amd64 [linux-image]   3.0.0-5  

firmware-b43-lpphy-installer suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to