Skip to contentSkip to conversation

How to get BRCM to work?

DISCUSSION Dan Carpenter 3 participants 9 messages Nov 4, 2013 – Nov 6, 2013

lore
Share & tools
lore
#0 lore raw

I've been trying to remember the trick to get BRCM to work and I can't remember at all. I'm using BCM4313. I've enabled everything with BCMA or BRCM in the config name.

The module loads and the device shows up if I type "ifconfig wlan0" but network manager doesn't see it and wicd doesn't see it. (These are old versions of nm and wicd).

This used to work under 3.8 but I didn't save my .config... :(

I've done a google search and it seems like the broadcom driver is still a complete mess and you need to black list modules and hack everything yourself on a per system basis? Is that right? Why can't we fix this so it works?

regards,
dan carpenter

#1 lore raw
Quoted 3 lines · Dan Carpenter

I've been trying to remember the trick to get BRCM to work and I can't remember at all. I'm using BCM4313. I've enabled everything with BCMA or BRCM in the config name.

Can we make BRCM select BCMA instead of depending on it? No one wants BCMA, they just want their wifi to work. There is no reason that users should have to grovel through Kconfig files to figure out how to compile the broadcom driver instead of just using menuconfig like everyone else does.

regards,
dan carpenter

#2 lore raw
In reply to Dan Carpenter
Quoted 9 lines · Dan Carpenter

I've been trying to remember the trick to get BRCM to work and I can't remember at all. I'm using BCM4313. I've enabled everything with BCMA or BRCM in the config name.

The module loads and the device shows up if I type "ifconfig wlan0" but network manager doesn't see it and wicd doesn't see it. (These are old versions of nm and wicd).

This used to work under 3.8 but I didn't save my .config... :(

Are these old versions of nm and wicd only supporting the deprecated WEXT interface? If this is the case you have to set CONFIG_CFG80211_WEXT=y in your config.

You also need a firmware for this device /lib/firmware/brcm/bcm43xx-0.fw and /lib/firmware/brcm/bcm43xx_hdr-0.fw are needed.

When the device gets detected by brcmsmac, it is probably not a problem in the Broadcom driver.

Quoted 4 lines

I've done a google search and it seems like the broadcom driver is still a complete mess and you need to black list modules and hack everything yourself on a per system basis? Is that right? Why can't we fix this so it works?

When you want to use the property closed source Broadcom driver then you have to blacklist the in kernel drivers. When you want to use the in kernel drivers, BCM4313 should get detected and the modules should get loaded like it is done for every other PCIe device.

Hauke

#3 lore raw
Quoted 9 lines · Hauke Mehrtens
Quoted 8 lines · Dan Carpenter

I've been trying to remember the trick to get BRCM to work and I can't remember at all. I'm using BCM4313. I've enabled everything with BCMA or BRCM in the config name.

The module loads and the device shows up if I type "ifconfig wlan0" but network manager doesn't see it and wicd doesn't see it. (These are old versions of nm and wicd).

Quoted 6 lines
Quoted 1 line

This used to work under 3.8 but I didn't save my .config... :(

Are these old versions of nm and wicd only supporting the deprecated WEXT interface? If this is the case you have to set CONFIG_CFG80211_WEXT=y in your config.

I have that enabled.

Quoted 2 lines

You also need a firmware for this device /lib/firmware/brcm/bcm43xx-0.fw and /lib/firmware/brcm/bcm43xx_hdr-0.fw are needed.

I have the firmware.

Quoted 9 lines

When the device gets detected by brcmsmac, it is probably not a problem in the Broadcom driver.

Quoted 4 lines

I've done a google search and it seems like the broadcom driver is still a complete mess and you need to black list modules and hack everything yourself on a per system basis? Is that right? Why can't we fix this so it works?

Quoted 4 lines

When you want to use the property closed source Broadcom driver then you have to blacklist the in kernel drivers. When you want to use the in kernel drivers, BCM4313 should get detected and the modules should get loaded like it is done for every other PCIe device.

I don't have the closed source driver.

I'll do some more testing and get back on this.

regards,
dan carpenter

#4 lore raw
Quoted 17 lines · Dan Carpenter
Quoted 9 lines · Hauke Mehrtens
Quoted 8 lines · Dan Carpenter

I've been trying to remember the trick to get BRCM to work and I can't remember at all. I'm using BCM4313. I've enabled everything with BCMA or BRCM in the config name.

The module loads and the device shows up if I type "ifconfig wlan0" but network manager doesn't see it and wicd doesn't see it. (These are old versions of nm and wicd).

Quoted 6 lines
Quoted 1 line

This used to work under 3.8 but I didn't save my .config... :(

Are these old versions of nm and wicd only supporting the deprecated WEXT interface? If this is the case you have to set CONFIG_CFG80211_WEXT=y in your config.

Quoted 15 lines

I have that enabled.

Quoted 2 lines

You also need a firmware for this device /lib/firmware/brcm/bcm43xx-0.fw and /lib/firmware/brcm/bcm43xx_hdr-0.fw are needed.

I have the firmware.

Quoted 8 lines

When the device gets detected by brcmsmac, it is probably not a problem in the Broadcom driver.

Quoted 4 lines

I've done a google search and it seems like the broadcom driver is still a complete mess and you need to black list modules and hack everything yourself on a per system basis? Is that right? Why can't we fix this so it works?

There used to be a Kconfig item which would b43 claim the same device as brcmsmac. That was changed to a b43 module parameter. So the only issue could be if you previously had the proprietary broadcom-wl driver in use, because that adds blacklist entries for both b43 and brcmsmac and it does not get cleaned up when uninstalling.

If you never used the proprietary driver, there should be no issue with it and I would not recommend going there (I am biased). As you obviously do have a problem at hand, lets dive in. Can you send me a system and/or kernel log.

Gr. AvS

#5 lore raw

It's working. I think it was just a problem with the random old linux-next kernel I was testing. Sorry for the noise.

I do think it should be "select BCMA" instead of "depends on BCMA". Is there something I have missed?

regards,
dan carpenter

#6 lore raw
Quoted 5 lines · Dan Carpenter

It's working. I think it was just a problem with the random old linux-next kernel I was testing. Sorry for the noise.

I do think it should be "select BCMA" instead of "depends on BCMA". Is there something I have missed?

I agree that most users would be unaware that they need BCMA. However, the usual problem with 'select' is that the dependencies of the selected item are not selected. I believe Kconfig will fire off a warning for it, but the aforementioned users may only raise an eyebrow and continue.

If there are Kconfig wizards out there, please feel free to make any suggestions.

Regards,
Arend

#7 lore raw
Quoted 7 lines · Arend van Spriel
Quoted 5 lines · Dan Carpenter

It's working. I think it was just a problem with the random old linux-next kernel I was testing. Sorry for the noise.

I do think it should be "select BCMA" instead of "depends on BCMA". Is there something I have missed?

Quoted 7 lines

I agree that most users would be unaware that they need BCMA. However, the usual problem with 'select' is that the dependencies of the selected item are not selected. I believe Kconfig will fire off a warning for it, but the aforementioned users may only raise an eyebrow and continue.

If there are Kconfig wizards out there, please feel free to make any suggestions.

Currently CONFIG_BCMA does not select anything else, it just depends on CONFIG_BCMA_POSSIBLE, when CONFIG_BCMA is selected CONFIG_BCMA_HOST_PCI will be activated automatically, so for the case of a PCIe card it should work with "select BCMA" in brcmsmac, CONFIG_BCMA_POSSIBLE is set for all normal PCs.

In b43 we do the same with CONFIG_SSB and I do not know of any problems.

Hauke

#8 lore raw
Quoted 13 lines · Hauke Mehrtens
Quoted 12 lines · Arend van Spriel
Quoted 5 lines · Dan Carpenter

It's working. I think it was just a problem with the random old linux-next kernel I was testing. Sorry for the noise.

I do think it should be "select BCMA" instead of "depends on BCMA". Is there something I have missed?

I agree that most users would be unaware that they need BCMA. However, the usual problem with 'select' is that the dependencies of the selected item are not selected. I believe Kconfig will fire off a warning for it, but the aforementioned users may only raise an eyebrow and continue.

Quoted 8 lines
Quoted 2 lines

If there are Kconfig wizards out there, please feel free to make any suggestions.

Currently CONFIG_BCMA does not select anything else, it just depends on CONFIG_BCMA_POSSIBLE, when CONFIG_BCMA is selected CONFIG_BCMA_HOST_PCI will be activated automatically, so for the case of a PCIe card it should work with "select BCMA" in brcmsmac, CONFIG_BCMA_POSSIBLE is set for all normal PCs.

I remember vaguely some issues with selecting GPIOLIB. Anyway, I guess I should go for:

depends BCMA_POSSIBLE
select BCMA if BCMA_POSSIBLE

The first makes sure brcmsmac can only be selected on platforms where BCMA is possible and the second for the BCMA selection. Does that make sense?

Regards,
Arend

Quoted 4 lines

In b43 we do the same with CONFIG_SSB and I do not know of any problems.

Hauke