Page 1 of 23 12311 ... LastLast
Results 1 to 10 of 230

Thread: How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM4322

  1. #1
    Join Date
    Apr 2007
    Beans
    4

    How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM4322

    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:

    1. 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.
    2. Make the .ko file
      First, make a temporary directory
      Code:
      mkdir wdriver
      ... 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).
    3. 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
    4. 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:
    5. 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.

  2. #2
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM432

    Quote Originally Posted by mike_l View Post
    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.
    [/LIST]
    You don't really need to do the stuff I quoted above. What you need to do is the following:
    Code:
    sudo depmod -a
    echo wl |sudo tee -a /etc/modules
    The depmod -a command will update your modules list. After that, you will be able to automatically load the module in /etc/modules or if you want to load it manually:
    Code:
    sudo modprobe wl
    The ieee80211_crypt_tkip will automatically be loaded when the modprobe wl is done.


    EDIT:
    Another tidbit is that instead of using <2.6.xx.xx>, you can just use `uname -r`. This will provide your kernel info. For example:
    Code:
    sudo insmod /lib/modules/`uname -r`/wlan/wl.ko
    One other thing, it does look like this module might be included in the next linux-restricted-modules update. It is currently being tested.
    Last edited by Ayuthia; August 21st, 2008 at 05:41 PM.

  3. #3
    Join Date
    Jul 2006
    Beans
    26
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Angry Re: How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM432

    The driver seems work well under normal condition. However, it already halted when after ssh session authentication complete. In addition, it never using WPA(1/2) to build the wireless connection. But it still works under WEP mode. I am looking for solution for long time and I will switch to using ndiswrapper instead of wl, since most users reported ndiswrapper haven't above mentioned problem. Good luck

  4. #4
    Join Date
    Jul 2006
    Beans
    26
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM432

    The best solution that I find is follow the link to upgrade the kernel http://ubuntuforums.org/showthread.p...ybrid&t=880218. WPA connection no problem. ssh connection no problem. Good luck to every people. Thanks a lot, superm1

  5. #5
    Join Date
    Sep 2008
    Beans
    6

    Re: How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM432

    Quote Originally Posted by Ayuthia View Post
    You don't really need to do the stuff I quoted above. What you need to do is the following:
    Code:
    sudo depmod -a
    echo wl |sudo tee -a /etc/modules
    The depmod -a command will update your modules list. After that, you will be able to automatically load the module in /etc/modules or if you want to load it manually:
    Code:
    sudo modprobe wl
    The ieee80211_crypt_tkip will automatically be loaded when the modprobe wl is done.


    EDIT:
    Another tidbit is that instead of using <2.6.xx.xx>, you can just use `uname -r`. This will provide your kernel info. For example:
    Code:
    sudo insmod /lib/modules/`uname -r`/wlan/wl.ko
    One other thing, it does look like this module might be included in the next linux-restricted-modules update. It is currently being tested.


    "sudo modprobe wl" cant load it up.. i've try many times but still fail.


    but it work while you use " insmod" is fine... very strange actually

  6. #6
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM432

    Quote Originally Posted by rol801 View Post
    "sudo modprobe wl" cant load it up.. i've try many times but still fail.


    but it work while you use " insmod" is fine... very strange actually
    Where did you place the wl.ko file? The file has to be located in /lib/firmware/`uname -r` in order for it to work. Also did you run sudo depmod -a after moving the file there?

  7. #7
    Join Date
    Oct 2005
    Beans
    720

    Re: How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM432

    Quote Originally Posted by Ayuthia View Post
    Where did you place the wl.ko file? The file has to be located in /lib/firmware/`uname -r` in order for it to work. Also did you run sudo depmod -a after moving the file there?
    I have a success story for the Broadcom 4328 rev 05 device in my Apple MacBook Pro. I just moved the wl.ko file to the /lib/modules/2.2..../misc/ directory, then ran "depmod -a" and loaded the module through a script:
    Code:
    #!/bin/sh
    rmmod ssb
    modprobe wl
    modprobe ssb
    which I've called /usr/local/bin/wireless and put in /etc/rc.local. As you can guess, the ssb module on my computer interferes, so wl.ko must be loaded first.

    Broadcom claim that this module is "version-agnostic", so should work for any 2.6 kernel. Throughput is fine, but the reported signal strenght gets funny readings, the network-manager icon is white most of the time, there is the occasional reconnect after some period of inactivity. I'm using it right now with the AP (an Apple Airport Extreme Base Station) in mixed b/g/n mode using the 2.4GHz band, still to try using pure 802.11n and 5GHz.

    Edit: Yes, pure 802.11n (draft) mode in the 5GHz band works, but doesn't show an increase in speed AFAICT. Those disconnects seem to occur after a period of inactivity; reconnecting takes place promptly whenever needed, so probably a feature to preserve battery power.
    Last edited by hajk; September 9th, 2008 at 08:20 AM.

  8. #8

    Re: How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM432

    [QUOTE=mike_l;5636495]

    [*]Test the new wireless driver
    Now, lets test out our new wireless driver. Enter:
    Code:
    sudo modprobe ieee80211_crypt_tkip
    sudo insmod wl.ko
    Hi,
    when I get to thsi step, I get this error :

    insmod: error inserting 'wl.ko': -1 File exists

    Please help me out. I have the temp folder on the desktop. By the error I thought it means that file already exists but wireless doesn't work

  9. #9

    Re: How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM432

    ok.. so an update to my previous post. So I did a rmmod to remove the wl.ko drive and then did insmod again and it didn't give any error this time, but sadly the wireless still doesn't work

  10. #10
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: How to install native broadcom drivers for BCM4311, BCM4312, BCM4321, and BCM432

    [QUOTE=vibhor goyal;6007316]
    Quote Originally Posted by mike_l View Post

    [*]Test the new wireless driver
    Now, lets test out our new wireless driver. Enter:
    Code:
    sudo modprobe ieee80211_crypt_tkip
    sudo insmod wl.ko
    Hi,
    when I get to thsi step, I get this error :

    insmod: error inserting 'wl.ko': -1 File exists

    Please help me out. I have the temp folder on the desktop. By the error I thought it means that file already exists but wireless doesn't work
    Can you post the results of the following:
    Code:
    lsmod |grep -e b43 -e ssb -e ndiswrapper -e bcm43xx -e wl
    uname -r
    lshw -C network
    It might be possible that the wl driver is already there and other modules are causing a conflict.

Page 1 of 23 12311 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •