Broadcom Wireless Driver building Problem

Hi all,
After migrate to SLED-11 SP2, the wireless driver is not working, So i was trying to build from source for new kernel.

But I got some error message,

naren_bishayee@linux-nxk1:~/Documents/Software/Broadcom wl driver> rpmbuild --rebuild broadcom-wl-5.60.48.36-19.1.src.rpm
Installing broadcom-wl-5.60.48.36-19.1.src.rpm
warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID d83ee527
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6200

  • umask 022
  • cd /usr/src/packages/BUILD
  • cd /usr/src/packages/BUILD
  • rm -rf broadcom-wl-5.60.48.36
  • /bin/mkdir -p broadcom-wl-5.60.48.36
  • cd broadcom-wl-5.60.48.36
  • /usr/bin/bzip2 -dc /usr/src/packages/SOURCES/hybrid-portsrc-v5.60.48.36.tar.bz2
  • tar -xf -
  • STATUS=0
  • ‘[’ 0 -ne 0 ‘]’
    ++ /usr/bin/id -u
  • ‘[’ 1000 = 0 ‘]’
    ++ /usr/bin/id -u
  • ‘[’ 1000 = 0 ‘]’
  • /bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • mv lib/wlc_hybrid.o_shipped.32 lib/wlc_hybrid.o_shipped
  • set – lib Makefile README.txt src
  • mkdir source
  • mv lib Makefile README.txt src source/
  • mkdir obj
  • exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6200
  • umask 022
  • cd /usr/src/packages/BUILD
  • /bin/rm -rf /var/tmp/broadcom-wl-5.60.48.36-build
    ++ dirname /var/tmp/broadcom-wl-5.60.48.36-build
  • /bin/mkdir -p /var/tmp
  • /bin/mkdir /var/tmp/broadcom-wl-5.60.48.36-build
  • cd broadcom-wl-5.60.48.36
  • export ‘EXTRA_CFLAGS=-DVERSION=“5.60.48.36”’
  • EXTRA_CFLAGS=’-DVERSION=“5.60.48.36”’
  • for flavor in default pae trace xen
  • rm -rf obj/default
  • cp -r source obj/default
  • make -C /usr/src/linux-obj/i586/default modules M=/usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default
    make: Entering directory /usr/src/linux-3.0.13-0.27-obj/i386/default' make -C ../../../linux-3.0.13-0.27 O=/usr/src/linux-3.0.13-0.27-obj/i386/default/. modules CC [M] /usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default/src/shared/linux_osl.o In file included from /usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default/src/shared/linux_osl.c:19: /usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default/src/include/linuxver.h:23:28: error: linux/autoconf.h: No such file or directory make[3]: *** [/usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default/src/shared/linux_osl.o] Error 1 make[2]: *** [_module_/usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default] Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2 make: Leaving directory /usr/src/linux-3.0.13-0.27-obj/i386/default’
    error: Bad exit status from /var/tmp/rpm-tmp.6200 (%build)

RPM build errors:
InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID d83ee527
Bad exit status from /var/tmp/rpm-tmp.6200 (%build)
naren_bishayee@linux-nxk1:~/Documents/Software/Broadcom wl driver>

So, please some one help me, how i build my wireless driver.

Hi
autoconf.h exists down in the generated directory on your kernel source
tree, you need to create a softlink to this file.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.27-default
up 16:41, 2 users, load average: 0.22, 0.10, 0.07
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi Malcolm,
How do i do this. Could you please write the code for build & install driver.

Hi
I use this script I created to generate the softlinks (needs to be run
as root user)

#!/bin/bash
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.

# Simple script to create/remove softlinks to autoconf.h and utsrelease.h
# Only needed for kernel version >= 3.x.x

kernel_version=`uname -r |cut -f1 -d"."`

if [ "$kernel_version" -gt 2 ]; then

if [ `arch` == x86_64 ]; then
TKR=/usr/src/linux-`uname -r |cut -f1-2 -d"-"`-obj/x86_64/`uname -r |cut -f3 -d"-"`
else
TKR=/usr/src/linux-`uname -r |cut -f1-2 -d"-"`-obj/i586/`uname -r |cut -f3 -d"-"`
fi

cd $TKR/include/linux/

case "$1" in

create)
if [ ! -h "autoconf.h" -o ! -h "utsrelease.h" ]; then
echo "Creating autoconf.h and utsrelease.h softlinks";
/bin/ln -sf ../generated/autoconf.h
/bin/ln -sf ../generated/utsrelease.h
fi
;;

remove)
if [ -h "autoconf.h" -a -h "utsrelease.h" ]; then
echo "Deleting autoconf.h and utsrelease.h softlinks";
/bin/rm -f autoconf.h
/bin/rm -f utsrelease.h
fi
;;

status)
if [ -h "autoconf.h" -a -h "utsrelease.h" ]; then
echo "Softlinks autoconf.h and utsrelease.h exist";
else
echo "Softlinks missing! Please use create to add softlinks"
fi
;;

*)
echo $"Usage: $0 {create|remove|status}"
exit 1
;;

esac

else
echo "Not using SUSE Linux Enterprise with a 3.x.x kernel"
fi


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.27-default
up 18:55, 2 users, load average: 0.00, 0.01, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi malcolm,
I just execute the script as root user, & after logout & execute rpm… command as non root user, but errors are still

linux-nxk1:/home/naren_bishayee/Documents/Software/Broadcom wl driver # ./softlinks.sh create
linux-nxk1:/home/naren_bishayee/Documents/Software/Broadcom wl driver # ./softlinks.sh status
Softlinks autoconf.h and utsrelease.h exist
linux-nxk1:/home/naren_bishayee/Documents/Software/Broadcom wl driver # logout
naren_bishayee@linux-nxk1:~/Documents/Software/Broadcom wl driver> rpmbuild --rebuild broadcom-wl-5.60.48.36-19.1.src.rpm
Installing broadcom-wl-5.60.48.36-19.1.src.rpm
warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID d83ee527
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.39857

  • umask 022
  • cd /usr/src/packages/BUILD
  • cd /usr/src/packages/BUILD
  • rm -rf broadcom-wl-5.60.48.36
  • /bin/mkdir -p broadcom-wl-5.60.48.36
  • cd broadcom-wl-5.60.48.36
  • /usr/bin/bzip2 -dc /usr/src/packages/SOURCES/hybrid-portsrc-v5.60.48.36.tar.bz2
  • tar -xf -
  • STATUS=0
  • ‘[’ 0 -ne 0 ‘]’
    ++ /usr/bin/id -u
  • ‘[’ 1000 = 0 ‘]’
    ++ /usr/bin/id -u
  • ‘[’ 1000 = 0 ‘]’
  • /bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • mv lib/wlc_hybrid.o_shipped.32 lib/wlc_hybrid.o_shipped
  • set – lib Makefile README.txt src
  • mkdir source
  • mv lib Makefile README.txt src source/
  • mkdir obj
  • exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.39857
  • umask 022
  • cd /usr/src/packages/BUILD
  • /bin/rm -rf /var/tmp/broadcom-wl-5.60.48.36-build
    ++ dirname /var/tmp/broadcom-wl-5.60.48.36-build
  • /bin/mkdir -p /var/tmp
  • /bin/mkdir /var/tmp/broadcom-wl-5.60.48.36-build
  • cd broadcom-wl-5.60.48.36
  • export ‘EXTRA_CFLAGS=-DVERSION=“5.60.48.36”’
  • EXTRA_CFLAGS=’-DVERSION=“5.60.48.36”’
  • for flavor in default pae trace xen
  • rm -rf obj/default
  • cp -r source obj/default
  • make -C /usr/src/linux-obj/i586/default modules M=/usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default
    make: Entering directory /usr/src/linux-3.0.13-0.27-obj/i386/default' make -C ../../../linux-3.0.13-0.27 O=/usr/src/linux-3.0.13-0.27-obj/i386/default/. modules CC [M] /usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default/src/shared/linux_osl.o In file included from /usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default/src/shared/linux_osl.c:19: /usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default/src/include/linuxver.h:23:28: error: linux/autoconf.h: No such file or directory make[3]: *** [/usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default/src/shared/linux_osl.o] Error 1 make[2]: *** [_module_/usr/src/packages/BUILD/broadcom-wl-5.60.48.36/obj/default] Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2 make: Leaving directory /usr/src/linux-3.0.13-0.27-obj/i386/default’
    error: Bad exit status from /var/tmp/rpm-tmp.39857 (%build)

RPM build errors:
InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID d83ee527
Bad exit status from /var/tmp/rpm-tmp.39857 (%build)
naren_bishayee@linux-nxk1:~/Documents/Software/Broadcom wl driver>

Hi
Try the src rpm from here then (it’s a later version)
http://packman.links2linux.org/package/broadcom-wl/all


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.13-0.27-default
up 1 day 1:46, 2 users, load average: 0.04, 0.04, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi Malcolm,
Now its working. Thanks for your help.

Hi All,

After the Migration from SLED11-SP2 to SP3 32 bit, I’ve tried to install broadcom wl driver from the src.rpm version “broadcom-wl-5.100.82.112-9.9.src.rpm”

During the rebuild phase I got two error, Next I’ve downloaded the “.12.1.src.rpm” from the
http://packman.links2linux.org/package/broadcom-wl/all
and tried to rebuild the rpm, but this time also got same error

naren_bishayee@linux-9dxj:~/Documents/Software/Broadcom wl driver> rpmbuild --rebuild broadcom-wl-5.100.82.112-12.1.src.rpm
Installing broadcom-wl-5.100.82.112-12.1.src.rpm
error: cannot write to %sourcedir /usr/src/packages/SOURCES
error: broadcom-wl-5.100.82.112-12.1.src.rpm cannot be installed

Next I run the softlinks.sh script but no results.

Can any one help me to install broadcom wl driver.

Looks like you need to figure out why you can’t write to /usr/src/packages/SOURCES and fix that, or set up an build area you can write to and use that instead (http://www.rpm.org/max-rpm/s1-rpm-anywhere-different-build-area.html)

Hi mikewillis,

I’ve installed the wl driver using the below command
rpmbuild --rebuild --define ‘_topdir /home/naren_bishayee/mybuild’ broadcom-wl-5.100.82.112-9.9.src.rpm

But, now, I’m facing some horrible problem that I never thought.

On NetworkManager Applet, taskbar-right side, displaying the ‘tick mark’ on the “Enable Wireless”, If I rightclick on the applet, but my card does not recognige any network, in fact, it does not show me any Wifi Network name on the List.

I’ve checked using the “iwconfig wlan0” command, and the output is below

wlan0 IEEE 802.11bg ESSID:“all”
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on

Can you please help me to figure out

before SP3, SLED-11SP2, my card was working well, but dont know whats the problem with SP3 and the card driver. The installed driver was also working with SP2 version.

Please help me some-how.

That command won’t install the driver, it just rebuilds the src rpm. You need to install the rpm which got built.

The forum software converts many sections of that to smiley faces. When ever you post output like this wrap it in CODE tags. This makes it easier to read and prevents the forum software doing things like converting parts of it to smiley faces. You can wrap text in CODE tags by selecting it then clicking the # button in the formatting toolbar.

After the build using the rpmbuild, I’ve installed the rpms using the command

zypper install broadcom-wl-kmp-default-5.100.82.112_3.0.82_0.7-9.9.i586.rpm broadcom-wl-kmp-pae-5.100.82.112_3.0.82_0.7-9.9.i586.rpm

And thats why the wlan0 is displaying/showing on the NetworkManager Applet.

Sorry for the not to use code tag, it’s looking little bit odd.

Now can you tell me the next steps to go further for my particular problem.

wlan0 IEEE 802.11bg ESSID:"all" Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:on

The only thing I can think of is to check in YaST that networking is set to ‘User controlled with Network Manager’ but that’s’ pretty much a guess.

Other than that I’ve no idea, sorry. I very rarely do anything with wireless on Linux and when I have done it’s never required additional drivers.

Hi mikewillis,

Thanks,

yes, Wireless is User controlled with Network Manager.

It’s really strange problem with SP3, because on SP2 the same driver was working well with my Laptop.

Can anyone have any idea about this, or any idea how debug the problem, so that I/someone help me to figure this out ASAP.

Hi all,

Finally I’m able to solve the problem

http://wireless.kernel.org/en/users/Drivers/b43

Now my WLAN is working

Hi all

First off, Im alittle new to Linux. I have just installed the latest version of SuSE 13.1.9(2013-12-09) from http://software.opensuse.org/131/en

installation was fine. However, in KNetworkmanager my wireless tab is ‘grayed out’ and not selectable ?

I have a DELL inspiron 1525. OK, so after a little research…

The BASH console is telling me the network.pcmcia hardware is a ‘WIRELESS 1395 WLAN MINI-CARD’
DEVICE = BCM4312 802.11 b/g
DRIVER = b43-pci-bridge
KERNEL DRIVE = ssb

Further reading tells me that if I have a problem I should try the hybrid_wl module from Broadcom to sort it out? However reading the above threads I don’t know if the hybrid_wl is required?

Sadly I don’t know what ‘SP1 SP2 OR SP3’ is !

Also on the desktop the Kinfocenter is flagged with an exclamation mark (just like windows device manager) within the PCIMODULES, is this further telling me theres a problem within the modules(drivers) PCI BUS.

Any help will be greatly received (except if you tell me to FDISK and go back to pen and paper)

Many thanks

Cheers Kev

Welcome to Linux/SUSE!

Your confusion comes from you being on the wrong forum :wink:

This forum is for SUSE Linux Enterprise Desktop (SLED) but what you have installed is openSUSE. The forums for openSUSE are located at http://forums.opensuse.org/. If you post there you’ll probably find someone who can help. (Incidentally, it’s generally considered better to start your own thread about your issue rather than replying in an existing thread, especially one that’s been dormant a while.)

The SP in SP1, SP2 SP3 stands for Service Pack and they’re versions of SLED 11. The current version is SLED 11 SP3.