Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
LeTuXOffline
Post subject: WLAN Module BCM4313 does not work any more  PostPosted: 04.12.2011, 22:25



Joined: 2011-05-15
Posts: 13
Location: Germany
Status: Offline
Since the latest d-u, I cannot get my WLAN device to show up in ifconfig.

After a new kernel is installed, I always rebuild the kernel wlan module downloaded from the broadcom website and until recently, this worked fine. I even wrote a script that used to do the trick.

driver package: hybrid-portsrc_x86_64-v5_100_82_112.tar.gz
from: http://www.broadcom.com/support/802.11/linux_sta.php

After today's upgrade, however, ifconfig does not show a wireless device after installing the driver.

Well, there is a build message that could mean that the linux kernel version number is too high, but last time, it worked with kernel 3.06. Besides, the last message implies that the module is installed, and wl.ko exists in /lib/modules/3.1-4.slh.3-aptosid-amd64/kernel/net/wireless.


Installing the "broadcom-sta-source" deb package never worked, btw, and still doesn't.

Alexander


----
build commands:

cd <src>
make clean
make
cp wl.ko /lib/modules/$(uname -r)/kernel/net/wireless/
rmmod wl
depmod
modprobe lib80211
insmod wl.ko

----

build messages:

make[1]: Entering directory `/usr/src/linux-headers-3.1-4.slh.3-aptosid-amd64'
/bin/sh: 1: [: Illegal number:
/bin/sh: 1: [: Illegal number:
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
CLEAN /home/pc2/linux/wlan/.tmp_versions
CLEAN /home/pc2/linux/wlan/Module.symvers
make[1]: Leaving directory `/usr/src/linux-headers-3.1-4.slh.3-aptosid-amd64'
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-headers-3.1-4.slh.3-aptosid-amd64'
/bin/sh: 1: [: Illegal number:
/bin/sh: 1: [: Illegal number:
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
LD /home/pc2/linux/wlan/built-in.o
CC [M] /home/pc2/linux/wlan/src/shared/linux_osl.o
CC [M] /home/pc2/linux/wlan/src/wl/sys/wl_linux.o
CC [M] /home/pc2/linux/wlan/src/wl/sys/wl_iw.o
CC [M] /home/pc2/linux/wlan/src/wl/sys/wl_cfg80211.o
LD [M] /home/pc2/linux/wlan/wl.o
Building modules, stage 2.
/bin/sh: 1: [: Illegal number:
/bin/sh: 1: [: Illegal number:
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /home/pc2/linux/wlan/wl.o
see include/linux/module.h for more information
CC /home/pc2/linux/wlan/wl.mod.o
LD [M] /home/pc2/linux/wlan/wl.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.1-4.slh.3-aptosid-amd64'
ERROR: Module wl does not exist in /proc/modules
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.


----

output of lspci:

12:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
 
 View user's profile Send private message  
Reply with quote Back to top
slamOffline
Post subject: RE: WLAN Module BCM4313 does not work any more  PostPosted: 05.12.2011, 09:38
Team Member


Joined: 1970-01-01
Posts: 607
Location: w3
Status: Offline
Instead of using the driver from the manufacturer, did you try to just install the firmware and use the driver included in latest kernels?
Greetings,
Chris

_________________
an operating system must operate
development is life
my Debian repo
 
 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 
Reply with quote Back to top
LeTuXOffline
Post subject: RE: WLAN Module BCM4313 does not work any more  PostPosted: 05.12.2011, 14:56



Joined: 2011-05-15
Posts: 13
Location: Germany
Status: Offline
Thanks for the reply. But how do I do it?

I removed everything I installed and tried
"apt-get --reinstall install firmware-brcm80211 wireless-tools"
which finished without errors, but inserting the modules did not work:


"modprobe -r brcm80211 ; modprobe brcm80211"
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module brcm80211 not found.
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
FATAL: Module brcm80211 not found.

brcm80211 is not blacklistet in /etc/modprobe.d/* (any more...)


So I tried "apt-get install broadcom-sta-common broadcom-sta-source"
and "update-initramfs -u -k $(uname -r)" and "modprobe wl"
which all gave no error, but still there is no wireless device.

edit:
I removed firmware-brcm80211, did "modprobe -r brcm80211" and blacklistet it and did update-initramfs again, but still no wlan0 or eth1 device.

edit2:
I did m-a a-r, built and inserted broadcom-sta - still no effect.
 
 View user's profile Send private message  
Reply with quote Back to top
dpdt1Offline
Post subject: RE: WLAN Module BCM4313 does not work any more  PostPosted: 05.12.2011, 18:49



Joined: 2010-09-27
Posts: 48

Status: Offline
did you try the instuctions here :
http://linuxwireless.org/en/users/Drivers/brcm80211 ?

_________________
# apt-get remove frontiers
 
 View user's profile Send private message  
Reply with quote Back to top
LeTuXOffline
Post subject: RE: WLAN Module BCM4313 does not work any more  PostPosted: 05.12.2011, 20:04



Joined: 2011-05-15
Posts: 13
Location: Germany
Status: Offline
I hope I did now. I understood I have to copy the files bcm43xx-0.fw and bcm43xx_hdr-0.fw to /lib/firmware/brcm and then do "modprobe brcmfmac". That gave no error but still no wlan device.

According to the page, the driver is already in the kernel and accessable via make menuconfig under

Location: -> Device Drivers
-> Staging drivers
-> Exclude Staging drivers from being built
-> Broadcom IEEE802.11n WLAN drivers
-> Broadcom IEEE802.11n driver style

But in my menuconfig, there is no entry "exclude Staging driver from being built" under "Staging Drivers"
 
 View user's profile Send private message  
Reply with quote Back to top
slamOffline
Post subject: RE: WLAN Module BCM4313 does not work any more  PostPosted: 06.12.2011, 09:03
Team Member


Joined: 1970-01-01
Posts: 607
Location: w3
Status: Offline
The driver is included in Aptosid kernels since long time, see e.g. /lib/modules/3.1-4.slh.3-aptosid-amd64/kernel/drivers/staging/brcm80211. Do not build any modules. Instead, make sure you not just uninstall, but also unload and completely remove the manufacturer driver from your system, before you install the firmware and load the free in-kernel driver. And by the way, in Debian "installing" the firmware does not mean download from somwhere and copy it manually somewhere, but simply apt-get install firmware-brcm80211, see also this page in our manuals.
Greetings,
Chris

_________________
an operating system must operate
development is life
my Debian repo
 
 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio