Difference between revisions of "Alternatif Instalasi Driver Wireless Broadcom"

From OnnoWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 96: Line 96:
 
==Cara Lain==
 
==Cara Lain==
  
31 down vote
+
uninstall the bcmwl-kernel-source package
 
  
I fixed my problem with the Broadcom bcm4311 drivers on 11.04 (Natty Narwhal)
+
apt-get remove --purge bcmwl-kernel-source
 
 
Steps I took for fixing this problem (I stole this method from nm_geo on ubuntu forums): ( You may need to install synaptic or your favorite package manager)
 
 
 
open your package manager and search for 'bcm'
 
 
 
uninstall the bcmwl-kernel-source package
 
  
 
make sure that the firmware-b43-installer and the b43-fwcutter packages are installed
 
make sure that the firmware-b43-installer and the b43-fwcutter packages are installed
  
type into terminal:
+
  apt-get install firmware-b43-installer b43-fwcutter
 
 
  cat /etc/modprobe.d/* | egrep 'bcm'
 
  
(you may want to copy this) and see if the term 'blacklist bcm43xx' is there
+
edit
  
if it is, type cd /etc/modprobe.d/ and then sudo gedit blacklist.conf
+
vi /etc/modprobe.d/blacklist.conf
  
put a # in front of the line: blacklist bcm43xx
+
# blacklist bcm43xx
  
 
then save the file (I was getting error messages in the terminal about not being able to save, but it actually did save properly).
 
then save the file (I was getting error messages in the terminal about not being able to save, but it actually did save properly).
Line 126: Line 117:
  
 
After I did the above the wireless had to be unblocked by rfkill
 
After I did the above the wireless had to be unblocked by rfkill
 
 
 
 
  
 
==Referensi==
 
==Referensi==

Latest revision as of 08:39, 10 February 2013

My wireless got messed up for some reason over the weekend. I’d left my laptop over at a friend’s for a couple of days while I hung out with my brother, and when I got back and powered it up, wireless was mysteriously not working (maybe NOT mysteriously since I vaguely remember doing a dist-upgrade before shutting down the last time, but anyway). I’d been using ndiswrapper with WinXP drivers I downloaded from the Compaq driver site (my laptop is a Compaq Presario V3000 – Broadcom 4312 Wireless).

Here’s what it says from lspci:

01:00.0 Network controller: Broadcom Corporation BCM4312 802.11a/b/g (rev 01)

If you’ve got the same controller or laptop, then this might be useful.

So anyway, I tried uninstalling ndiswrapper, reinstalling it, no go. Tried purging all my old ndiswrapper configs and such, grabbed new drivers from Compaq, reinstalled ndiswrapper, and for a while it worked. Then after a few more power cycles, it went missing again. Tried b43-fwcutter, which detected my controllers nicely, but wouldn’t let me connect to any wireless networks.

That’s when I tried looking for other drivers, other than from the Compaq site (I heard Dell drivers would work as well), in the hopes of using those with my ndiswrapper, when lo and behold! I stumbled upon this bit of news! Oh joy! Excited, I hurried over to their download page here and downloaded the 32-bit version and read the readme while waiting.

Here’s the gist of what the instructions were:

Untar the file hybrid-portsrc-x86_32_5_10_27_6.tar.gz (hybrid-portsrc-x86_64_5_10_27_6.tar.gz if you’re running on a 64-bit kernel) in its own folder:

tar -xvzf hybrid-portsrc-x86_32_5_10_27_6.tar.gz

You should now see this in your directory listing:

hybrid-portsrc-x86_32_5_10_27_6.tar.gz
lib
Makefile
src

Now build the Loadable Kernel Module (LKM) like so:

make -C /lib/modules/`uname -r`/build M=`pwd`

Of course, you need to make sure you have all the required kernel headers before building it. Once that’s done, your directory listing should look like this:

built-in.o
hybrid-portsrc-x86_32_5_10_27_6.tar.gz
lib
Makefile
modules.order
Module.symvers
src
wl.ko
wl.mod.c
wl.mod.o
wl.o

The magic file we need is wl.ko. Make sure you don’t have b43, b43legacy or b43xx loaded by running this:

rmmod bcm43xx; rmmod b43; rmmod b43legacy

And for good measure remove ndiswrapper modules:

rmmod ndiswrapper

Now load the module ieee80211_crypt_tkip:

modprobe ieee80211_crypt_tkip

And finally load the wl.ko module:

insmod wl.ko

Now if you do an ifconfig, you should see wlan0 right after your eth0 and lo devices. Yippee-kay-yay! Test it out by scanning and connecting to a network. If it works, then you might want your module to load upon boot, which is something the Broadcom readme doesn’t touch on. Let me school you how.

Copy the wl.ko file to /lib/modules/2.6.26-1-686/kernel/net/wireless/

cp wl.ko /lib/modules/2.6.26-1-686/kernel/net/wireless/

Create the module dependencies:

depmod -a

Try loading your new module!:

modprobe wl

If you get no error on modprobe, then it worked perfectly! Next you have to tell your system to load the module at startup. On my debian system, I do this by editing the file /etc/modules to include the following:

ieee80211_crypt_tkip
wl

Now, reboot and you’ve got official Broadcom wifi goodness! Hooray! Ubuntu 8.10 (due out the end of this month) will have this driver bundled with it, here’s hoping that Debian will have it in its repositories soon! Of course, all the above was done on my GNU/Debian Lenny/Sid system, so let me know if you tried it out on yours and tell me how it worked for you. Cheers!


# mkdir hybrid_wl
# tar xzf /hybrid-portsrc.tar.gz
# make clean
# make
# rmmod b43
# rmmod ssb
# rmmod wl
# echo “blacklist ssb” >> /etc/modprobe.d/blacklist.conf
# echo “blacklist b43″ >> /etc/modprobe.d/blacklist.conf
# modprobe lib80211
# insmod wl.ko


Cara Lain

uninstall the bcmwl-kernel-source package

apt-get remove --purge bcmwl-kernel-source

make sure that the firmware-b43-installer and the b43-fwcutter packages are installed

apt-get install firmware-b43-installer b43-fwcutter

edit

vi /etc/modprobe.d/blacklist.conf
# blacklist bcm43xx

then save the file (I was getting error messages in the terminal about not being able to save, but it actually did save properly).

   reboot

hopefully this works for you all!

After I did the above the wireless had to be unblocked by rfkill

Referensi


Pranala Menarik=