Originally Posted by
mike_l
After searching for ways to get wireless working on my HP dv9000, I came across
this thread. Apparently, Broadcom offers linux drivers for it's 802.11a/b/g/n cards (chipsets BCM4311, BCM4312, BCM4321, and BCM4322, in both 32 and 64 bit).
Figuring that there are other people out there with the same problem: here's the steps I took to install the native drivers:
- Download the appropriate driver
I downloaded the 64 bit version of the driver from http://www.broadcom.com/support/802.11/linux_sta.php
It's important that you get the correct version, as the 32 and 64 bit versions are not compatible. - Make the .ko file
First, make a temporary directory
... and place the downloaded package into it (hybrid-portsrc-_64_5_10_27_6.tar.gz, or hybrid-portsrc-x86_32_5_10_27_6.tar.gz for the 32 bit version)
Then 'cd' into the temporary directory and un-tar the file.
Code:
cd wdriver
tar -xzf hybrid-portsrc-x86_64_5_10_27_6.tar.gz
Now, we want to make the wl.ko file, so we enter:
(<2.6.xx.xx> is your kernel version: mine was "2.6.24-19-generic". Use tab-completion to find yours.)
Code:
make -C /lib/modules/<2.6.xx.xx>/build M=`pwd` clean
make -C /lib/modules/<2.6.xx.xx>/build M=`pwd`
You should now have a file "wl.ko" located in the temporary directory you created (wdriver). - Make sure that no other wireless drivers are installed
Enter: (Don't worry if there are any errors returned)
Code:
sudo rmmod bcm43xx
sudo rmmod b43
sudo rmmod b43legacy
I also uninstalled ndiswrapper, just to be sure:
Code:
sudo rmmod ndiswrapper
sudo apt-get remove ndiswrapper-common
- Test the new wireless driver
Now, lets test out our new wireless driver. Enter:
Code:
sudo modprobe ieee80211_crypt_tkip
sudo insmod wl.ko
If it worked, and you can see/connect to wireless networks, you'll want to: - Make your changes permanent.
First, you may want to blacklist the old b43/b43legacy/bcm43xx drivers. Enter:
Code:
sudo gedit /etc/modprobe.d/blacklist
and add the following to the end of the file:
Code:
blacklist b43
blacklist b43legacy
blacklist bcm43xx
Now, let's move the wireless driver somewhere more permenant:
Code:
sudo mkdir /lib/modules/<2.6.xx.xx>/wlan
sudo mv wl.ko /lib/modules/<2.6.xx.xx>/wlan
Now, lets make it so that the driver and wireless encryption module are loaded on startup. Enter:
Code:
sudo gedit /etc/modules
and add
Code:
ieee80211_crypt_tkip
to the bottom.
Now run:
Code:
sudo gedit /etc/rc.local
and add
Code:
sudo insmod /lib/modules/<2.6.xx.xx>/wlan/wl.ko
at the end of the file, but before the line "exit 0"
That's it. If I've made any errors, please let me know. Thanks.
I've been following this thread with interest, since I have a wireless problem with the same card.
when I run make, I get:
Code:
make -C /lib/modules/`uname -r`/build M=`pwd`
make: Entering directory `/usr/src/linux-headers-2.6.28-15-generic'
LD /home/alee/download/hybrid_wl/built-in.o
CC [M] /home/alee/download/hybrid_wl/src/wl/sys/wl_linux.o
CC [M] /home/alee/download/hybrid_wl/src/wl/sys/wl_iw.o
CC [M] /home/alee/download/hybrid_wl/src/shared/linux_osl.o
LD [M] /home/alee/download/hybrid_wl/wl.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /home/alee/download/hybrid_wl/wl.o
see include/linux/module.h for more information
CC /home/alee/download/hybrid_wl/wl.mod.o
LD [M] /home/alee/download/hybrid_wl/wl.ko
make: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic'
Well, it's a warning ... I ignore it and move on ...
Code:
cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
lp
wl
Ok, then, looking at my history I see
Code:
481 sudo rmmod bcm43xx
482 sudo rmmod b43
483 sudo rmmod b43legacy
484 rmmod ndiswrapper
485 sudo apt-get remove ndiswrapper-common
486 sudo modprobe ieee80211_crypt_tkip
487 sudo insmod wl.ko
488 sudo depmod -a
489 echo wl | sudo tee -a /etc/modules
490 sudo modprobe wl
491 sudo insmod /lib/modules/`uname -r`/wlan/wl.ko
492 sudo mkdir /lib/modules/`uname -r`/wlan/
493 sudo mv wl.ko /lib/modules/`uname -r`/wlan/
494 sudo insmod /lib/modules/`uname -r`/wlan/wl.ko
495 iwlist channel
496 iwlist
497 iwlist scan
and iwlist scan reveals :
Code:
iwlist scan
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
eth1 Interface doesn't support scanning.
pan0 Interface doesn't support scanning.
?????!!!!
So I try:
Code:
alee@dell-desktop:~/download/hybrid_wl$ sudo ifconfig eth1 down
alee@dell-desktop:~/download/hybrid_wl$ sudo dhclient -r eth1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth1/00:22:5f:f9:80:9c
Sending on LPF/eth1/00:22:5f:f9:80:9c
Sending on Socket/fallback
alee@dell-desktop:~/download/hybrid_wl$ sudo ifconfig eth1 up
alee@dell-desktop:~/download/hybrid_wl$ sudo iwconfig eth1 essid "gone_viral"
alee@dell-desktop:~/download/hybrid_wl$ sudo iwconfig eth1 mode Managed
alee@dell-desktop:~/download/hybrid_wl$ sudo dhclient eth1
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth1/00:22:5f:f9:80:9c
Sending on LPF/eth1/00:22:5f:f9:80:9c
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 16
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
resolvconf: Error: /etc/resolv.conf must be a symlink
* Reloading /etc/samba/smb.conf smbd only
...done.
And ... nothing
Code:
$ sudo iwlist scan
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
eth1 Failed to read scan data : Invalid argument
pan0 Interface doesn't support scanning.
alee@dell-desktop:~/download/hybrid_wl$
The Network Manager still says "Wireless Networks -> device not managed" and if I edit connections and create a wireless account for eth1, the Network Manager doesn't store it. That is, I open Network Manager again and the eth1 interface entry is gone!!!
I'm out in the weeds here.
Any help is greatly appreciated!
-- AF
Bookmarks