Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33

Thread: BCM43224, BCM43225 and BCM4313 installation guide

  1. #11

    Default Re: BCM43224, BCM43225 and BCM4313 installation guide

    BTW:

    The driver "brcm80211" is now part of latest "bleeding edge" snapshots of compat-wireless, perhaps worth a try.

    Maybe you might even find packages in OBS in some home project, you don't even have to try compat-wireless from "driver:wireless" repository, as they are based on compat-wireless "stable" (from 2.6.35 atm) which I don't intend to change (at least not the "stable" part, maybe I will update the packages to use the code from 2.6.36 once it has been released as the next stable kernel).

  2. #12

    Default Re: BCM43224, BCM43225 and BCM4313 installation guide

    If I'm not mistaken, brcm is open source, and an implementation for the BCM43* cards. Should I wait for b43 or will brcm become available next to b43?

    @akoellh:

    The driver available in compat-wireless, does it support decent uplinks? Not the 1MB/s, but more (preferably at least 54?) Or is it basically the same as the git version?

  3. #13
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,235

    Default Re: BCM43224, BCM43225 and BCM4313 installation guide

    On 10/17/2010 09:06 AM, mteugels wrote:
    >
    > If I'm not mistaken, brcm is open source, and an implementation for the
    > BCM43* cards. Should I wait for b43 or will brcm become available next
    > to b43?


    The drivers b43, b43legacy and brcm80211 all handle cards that have the name
    BCM43xx. The value for xx is arbitrary. The key to which one applies for a given
    card depends on the PCI IDs that are uncovered with the lspci command. They are
    of the form 14e4:YYYY - the YYYY is critical.

    At the moment, brcm80211 is available in the bleading-edge compat-wireless (as
    Akolellh said). It is also in the linux-next tree, and will be in kernel 2.6.37,
    which may be in openSUSE 11.4.

    All 3 drivers stated above will be present in future kernels as there is no
    overlap. Every Broadcom card is handled by only one of them.

  4. #14

    Default Re: BCM43224, BCM43225 and BCM4313 installation guide

    Quote Originally Posted by lwfinger View Post
    At the moment, brcm80211 is available in the bleading-edge compat-wireless (as
    Akolellh said). It is also in the linux-next tree, and will be in kernel 2.6.37,
    which may be in openSUSE 11.4.
    Actually, I am working on adding this part of bleeding-edge snapshots as an extra driver to the next planned compat-wireless stable packages in driver:wireless (2.6.36).

    First build tests looked promising, I think it will be possible as a reasonable compromise, as I am not keen on releasing bleeding-edge snapshots in driver:wireless but still want to provide this driver within that repo.

  5. #15
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,235

    Default Re: BCM43224, BCM43225 and BCM4313 installation guide

    On 10/21/2010 12:06 PM, Akoellh wrote:

    > Actually, I am working on adding this part of bleeding-edge snapshots
    > as an extra driver to the next planned compat-wireless stable packages
    > in driver:wireless (2.6.36).
    >
    > First build tests looked promising, I think it will be possible as a
    > reasonable compromise, as I am not keen on releasing bleeding-edge
    > snapshots in driver:wireless but still want to provide this driver
    > within that repo.


    As brcm80211 is a rapidly changing driver (1-2 patches per day), I would think
    that the bleeding-edge snapshot for it is a fair option.

  6. #16

    Default Re: BCM43224, BCM43225 and BCM4313 installation guide

    Quote Originally Posted by lwfinger View Post
    As brcm80211 is a rapidly changing driver (1-2 patches per day), I would think
    that the bleeding-edge snapshot for it is a fair option.
    Well, the basic idea is to keep all "other" drivers from compat-wireless stable (2.6.36 when available), add brcm80211 from a recent snapshot of bleeding edge compat wireless and update that part whenever I get around, maybe every 2 weeks or so.

    It's not that hard (at least yet), as there are no patches needed to build brcm80211 inside compat-wireless stable 2.6.36 (rc5), a few modifications in config.mk and the main Makefile and you're done.

    At least this will be a rather simple "hack" until brcm80211 will be included in compat-wireless stable (with 2.6.37).

    We'll see how long it will take until there is a compat-wireless stable for 2.6.36 which is not based on an rc, 2.6.36 was released today so it will most likely only be a matter of days.

  7. #17

    Default Re: BCM43224, BCM43225 and BCM4313 installation guide

    OK, the driver brcm80211 has been included into compat-wireless packages from driver:wireless now.

    Index of /repositories/driver:/wireless

    There are packages for openSUSE 11.2 and 11.3, openSUSE 11.1 will be discontinued soon, so no packages with brcm80211 for that version.

    Basically, you will need

    compat-wireless-kmp-<Your_Kernel_Flavour> matching your running kernel

    compat-wireless-scripts (will be pulled in automatically as a dependency)

    and

    brcm80211-firmware

    to get drivers and firmware.

    The firmware package was _not_ set as an automatic dependency for compat-wireless (hint: there are 97 other modules in compat-wireless-kmp-*whatever*, so it wouldn't make sense that everbody gets that firmware) but the package contains

    Code:
    Supplements:	modalias(pci:v000014E4d0000435[37]sv*sd*bc*sc*i*)
    Supplements:	modalias(pci:v000014E4d00004727sv*sd*bc*sc*i*)
    which _should_ pull in the firmware automatically via YaST/zypper if a respective wireless card is found on the system.

    There are repos for openSUSE_11.2/11.3 built against the kernel shipped on release and 11.2-updates/11.3-updates built against the recent kernel version for the respective release.

    Here's how I would do it:

    I would _not_ add the repos for shipped kernel versions if you didn't upgrade your system yet, get the respective packages as RPMs and install them, add the respective 11.X-update repo and run an online update after that.

    Example:

    I have openSUSE 11.3 i586 with kernel-desktop-2.6.34-12 freshly installed, so I go to

    Index of /repositories/driver:/wireless/openSUSE_11.3/i586

    and get

    compat-wireless-kmp-desktop-<some numbers>.i586.rpm

    Then go to

    Index of /repositories/driver:/wireless/openSUSE_11.3/noarch

    and get


    compat-wireless-scripts-<some numbers>.noarch.rpm

    and

    brcm80211-firmware-<some numbers>.noarch.rpm

    Versions (="some numbers") will change over time, but normally there will always be only one package of that respective name.

    Download all of those packages into one directory (let's say /home/your_username/Downloads) and install them with

    Code:
    su 
    
    <Enter password>
    
    cd /home/your_username/Downloads
    
    rpm -Uvh compat-wireless* brcm80211-firmware*
    
    modprobe -rv brcm80211
    
    modprobe -v brcm80211
    Your card should be ready for use now.

    Now connect to the internet, add the 11.3-update repo to your list of repositories i.e. with

    Code:
     zypper ar -r -f http://download.opensuse.org/repositories/driver:/wireless/11.3-update/driver:wireless.repo
    and run a complete online update to get the recent kernel (atm 2.6.34.7) and the matching compat-wireless drivers for that kernel version.

    From now on, you will get updated driver- and firmware-packages automatically via package management.

  8. #18

    Default Re: BCM43224, BCM43225 and BCM4313 installation guide

    Hello,

    I'm having trouble following the tutorial, everything was okay up until I reached "insmod".

    "make" works, but it gives a warning about "Kernel configuration is invalid". I didn't notice it at first, all I cared about was that brcm80211.ko was actually there, I assumed everything is alright.

    I tried restarting like the person that on first page, but that didn't work. I'll be trying the suggestion of the poster above me, I'll get back to you with the results. But if someone knows what I did wrong here, please point it out.

    Code:
    [root@Fedora brcm80211]# uname -r
    2.6.34.7-61.fc13.x86_64
    Code:
    [root@Fedora brcm80211]# make
    echo /home/Fedora/stupidbrcm/drivers/staging/brcm80211
    /home/Fedora/stupidbrcm/drivers/staging/brcm80211
    make -C /lib/modules/2.6.34.7-61.fc13.x86_64/build SUBDIRS=/home/Fedora/stupidbrcm/drivers/staging/brcm80211 CONFIG_BRCM80211_PCI=y V=1 modules
    make[1]: Entering directory `/usr/src/kernels/2.6.34.7-61.fc13.x86_64'
    test -e include/generated/autoconf.h -a -e include/config/auto.conf || (    \
        echo;                                \
        echo "  ERROR: Kernel configuration is invalid.";        \
        echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";    \
        echo;                                \
        /bin/false)
    mkdir -p /home/Fedora/stupidbrcm/drivers/staging/brcm80211/.tmp_versions ; rm -f /home/Fedora/stupidbrcm/drivers/staging/brcm80211/.tmp_versions/*
    make -f scripts/Makefile.build obj=/home/Fedora/stupidbrcm/drivers/staging/brcm80211
    (cat /dev/null;   echo kernel//home/Fedora/stupidbrcm/drivers/staging/brcm80211/brcm80211.ko;) > /home/Fedora/stupidbrcm/drivers/staging/brcm80211/modules.order
    make -f /usr/src/kernels/2.6.34.7-61.fc13.x86_64/scripts/Makefile.modpost
      scripts/mod/modpost  -a -i /usr/src/kernels/2.6.34.7-61.fc13.x86_64/Module.symvers -I /home/Fedora/stupidbrcm/drivers/staging/brcm80211/Module.symvers  -o /home/Fedora/stupidbrcm/drivers/staging/brcm80211/Module.symvers -S -w  -s
    make[1]: Leaving directory `/usr/src/kernels/2.6.34.7-61.fc13.x86_64'
    Code:
    [root@Fedora brcm80211]# insmod /lib/modules/`uname -r`/brcm80211.ko
    insmod: error inserting '/lib/modules/2.6.34.7-61.fc13.x86_64/brcm80211.ko': -1 Unknown symbol in module
    I've been trying to get my wireless to work without kmod-wl for days now with no success. I'd REALLY appreciate it if someone helped me out.

    Edit: Forgot to mention a big thing. I'm using Fedora. But it's pretty obvious I bet. If you can't help me, or won't, I understand.

    Best Regards.

  9. #19

    Default Re: BCM43224, BCM43225 and BCM4313 installation guide

    Well,

    Code:
    [root@Fedora brcm80211]# insmod /lib/modules/`uname -r`/brcm80211.ko
    insmod: error inserting '/lib/modules/2.6.34.7-61.fc13.x86_64/brcm80211.ko': -1 Unknown symbol in module
    Code:
    modinfo brcm80211 | grep depends
    
    depends:        mac80211,compat_firmware_class,cfg80211
    And now, guess what:

    Code:
    insmod /lib/modules/2.6.31.14-0.1-desktop/updates/drivers/staging/brcm80211/brcm80211.ko 
    insmod: error inserting '/lib/modules/2.6.31.14-0.1-desktop/updates/drivers/staging/brcm80211/brcm80211.ko': -1 Unknown symbol in module
    IF there are dependent modules and they were NOT already loaded, insmod will always fail even if everything is OK, simply because "insmod" is a little "stupid" and does not resolve dependencies.

    But

    Code:
    modprobe -v brcm80211
    insmod /lib/modules/2.6.31.14-0.1-desktop/updates/compat/compat_firmware_class.ko 
    insmod /lib/modules/2.6.31.14-0.1-desktop/kernel/net/rfkill/rfkill.ko 
    insmod /lib/modules/2.6.31.14-0.1-desktop/updates/net/wireless/cfg80211.ko ieee80211_regdom=DE
    insmod /lib/modules/2.6.31.14-0.1-desktop/kernel/drivers/pcmcia/pcmcia_core.ko 
    insmod /lib/modules/2.6.31.14-0.1-desktop/updates/compat/compat.ko 
    insmod /lib/modules/2.6.31.14-0.1-desktop/updates/net/mac80211/mac80211.ko 
    insmod /lib/modules/2.6.31.14-0.1-desktop/updates/drivers/staging/brcm80211/brcm80211.ko
    See the difference?

  10. #20

    Default Re: BCM43224, BCM43225 and BCM4313 installation guide

    @Up: Thanks very much for your reply. In an attempt to follow your suggestion, I had trouble compiling compat_firmware_class, cfg80211, compat and pcmcia. So I used compat-wireless' normal:

    "./scripts/driver-select brcm80211" <-- I think this is new.
    "make"
    "make build"

    and used the firmware referenced on first post, and copied brcm80211(from compat-wireless, not 2.6.37, but I assume they're similar anyway).

    "cp brcm80211.ko /lib/modules/`uname -r`/"
    "mkdir /lib/firmware/brcm"
    "cp bcm43xx* /lib/firmware/brcm"
    "cd /lib/firmware/brcm"
    "ln -s bcm43xx-0-610-809-0.fw bcm43xx-0.fw"
    "ln -s bcm43xx_hdr-0-610-809-0.fw bcm43xx_hdr-0.fw"

    And since I had doubts compat-wireless looks in folder brcm(this part might not have been necessary, but I did it anyway):

    "cp bcm43xx* /lib/firmware"
    "cd /lib/firmware"
    "ln -s bcm43xx-0-610-809-0.fw bcm43xx-0.fw"
    "ln -s bcm43xx_hdr-0-610-809-0.fw bcm43xx_hdr-0.fw"

    "insmod /lib/modules/`uname -r`/brcm80211.ko" <-- the one from compat-wireless bleeding edge build
    "reboot" <-- modprobe brcm80211 didn't work(it didn't give errors, but wireless wasn't detected). I had to reboot.

    Thanks to both of you very much, I've been at this for days and wouldn't have gotten anywhere if it wasn't for this thread.

    Edit: The driver is still obviously under development, iwconfig sometimes shows that I have 15~ wireless devices using brcm80211. But that's only if I'm trying aircrack-ng, and successfuly I might add. It worked in monitor mode just fine, injecting didn't work yet(the card gets stuck in channel -1) but I haven't really had time to really try yet. Anywho, thanks again. I really appreciate your help.

    Best Regards,
    Free Dora.

Page 2 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Posting Permissions

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