Bug 6122 - Entry for 14e4:4727 conflicts with 'bcma'
Summary: Entry for 14e4:4727 conflicts with 'bcma'
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 2266
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-28 00:52 CEST by Stephan Jänecke
Modified: 2013-05-23 19:21 CEST (History)
5 users (show)

See Also:
Source RPM: ldetect-lst-0.1.303-1.mga2
CVE:
Status comment:


Attachments
Output of 'lspci -vnn' (8.89 KB, text/plain)
2012-05-28 00:52 CEST, Stephan Jänecke
Details
/etc/modprobe.conf (366 bytes, text/plain)
2012-05-28 00:53 CEST, Stephan Jänecke
Details
Output of 'lspci -vnn' (9.13 KB, text/plain)
2013-04-27 15:57 CEST, Stephan Jänecke
Details
/etc/modprobe.conf (277 bytes, text/plain)
2013-04-27 15:58 CEST, Stephan Jänecke
Details

Description Stephan Jänecke 2012-05-28 00:52:52 CEST
Created attachment 2385 [details]
Output of 'lspci -vnn'

The current entry causes following issues:

1. lscpidrake incorrectly states 'wl' as being used, although 'brcmsmac' was sucessfully loaded, assuming you've 'kernel-firmware-nonfree' installed.
2. drak-tools like drakroam and draknetcenter create an entry titled 'Broadcom Corporation|BCM4313 802.11b/g/n Wireless LAN Controller', which will pull in 'wl' whenever you click on it, although wlan0 is up and running with 'brcmsmac'.

Therefore I would like to propose that the pcitable entry for 14e4:4727 is changed from 'wl' to 'bcma' to match the mappings that were automaically added to /etc/modprobe.conf.
The kernel driver is working flawlessly so I do not see any reason to pull in a nonfree proprietary driver.
See lspci.sb and modprobe.sb.conf for details.
Comment 1 Stephan Jänecke 2012-05-28 00:53:46 CEST
Created attachment 2386 [details]
/etc/modprobe.conf
Stephan Jänecke 2012-05-28 00:54:26 CEST

CC: (none) => thinksteve

Stephan Jänecke 2012-05-28 00:54:57 CEST

CC: thinksteve => (none)

Manuel Hiebel 2012-05-28 11:18:08 CEST

CC: (none) => mageia, thierry.vignaud

Comment 2 Thierry Vignaud 2012-09-06 12:21:33 CEST
What happens if we just remove that line instead?
Thierry Vignaud 2012-09-06 15:15:02 CEST

CC: (none) => tmb
Depends on: (none) => 2266

Comment 3 Thierry Vignaud 2012-09-06 15:24:10 CEST
Blino, Thomas, what should we do?
Rely on in kernel bcma for these devices or on external wl?

Stefan, please answer above question?
Also do you know what driver other distros use on your machine?
(You can try a livecd)

Keywords: (none) => NEEDINFO

Comment 4 Stephan Jänecke 2012-09-07 15:19:21 CEST
> What happens if we just remove that line instead?
When removing the line bcma stack is being used. The duplicated entry is
not showing up in draknetcenter, and installation of 'wl' will not be 
suggested.
In case this is reproducible on other machines, this is definitely a
possible solution.

> Also do you know what driver other distros use on your machine?
Current releases of Debian, Fedora and openSUSE are using the bcma
stack. As far as I know, they don't rely on ldetect-lst when choosing an
appropriate driver.
Comment 5 Thierry Vignaud 2012-09-07 16:17:30 CEST
Fixed in git though I would like an answer from Thomas about other wl entries...

Status: NEW => ASSIGNED

Thierry Vignaud 2013-03-22 19:46:47 CET

Assignee: bugsquad => tmb

Comment 6 Stephan Jänecke 2013-04-27 15:57:57 CEST
Created attachment 3830 [details]
Output of 'lspci -vnn'

Attachment 2385 is obsolete: 0 => 1

Comment 7 Stephan Jänecke 2013-04-27 15:58:55 CEST
Created attachment 3831 [details]
/etc/modprobe.conf

Attachment 2386 is obsolete: 0 => 1

Sander Lepik 2013-04-27 16:01:38 CEST

Attachment 3831 mime type: application/octet-stream => text/plain

Sander Lepik 2013-04-27 16:02:19 CEST

Attachment 3830 mime type: application/octet-stream => text/plain

Comment 8 Stephan Jänecke 2013-04-27 16:22:07 CEST
brcmsmac is now being used in Mageia 3 RC 1. wlan0 is showing up and is
operational.
Unfortunally drak-tools still create an entry titled 'Broadcom
Corporation|BCM4313 802.11b/g/n Wireless LAN Controller' which mutters
'Unable to find network interface for selected device (using brcmsmac
driver)' on selection. It disappears when removing the corresponding
line from pcitable and 90default.lst.  
Making an educated guess I would say that there is an issue with mapping
devices from modprobe.conf and ldetect-lst. No guarantee here, as I
didn't skim through the code.
Comment 9 Sander Lepik 2013-04-27 17:17:55 CEST
Seems to be similar issue that I had with another Broadcom device (https://bugs.mageia.org/show_bug.cgi?id=7828#c45).

Keywords: NEEDINFO => (none)
CC: (none) => sander.lepik

Comment 10 Thomas Backlund 2013-05-04 18:16:45 CEST
There is now new sets of isos to test broadcom wireless configuration

And to make it more fun...
there is now 4 isos so you can test on both i586 & x86_64 and with
both Gnome and KDE4.

NOTE! the isos have "CD" in their name, but most of them are bigger
than 700M so you need a DVD media if you want to burn them,
otherwise I suggest to use a usb stick to boot from, using:

dd if=name_of_iso of=/path/to/usb/stick bs=1M

And to find the isos:

http://mirrors.kernel.org/mageia/people/tmb/mga3-wl-test/
http://ftp.acc.umu.se/mirror/mageia/people/tmb/mga3-wl-test/
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/people/tmb/mga3-wl-test/

(and soon on any mirror carrying mageia people/tmb/mga3-wl-test/ tree)
Comment 11 Frank Griffin 2013-05-21 15:23:27 CEST
I've just built a fresh install for a laptop with a BCM4313 14e4:4727 device, and when I boot the new system, the wireless device cannot be seen.  I checked lsmod and none of wl, b43, b43legacy, bcma, brcm* are loaded.

If I manually modprobe wl, NetworkManager sees the device and initializaes it with no problem.

I see an entry in broadcom-wl-alias for this device, but for whatever reason neither NM nor drakconnect loads wl automatically (or anything else).

Upon testing a bit, I find that /etc/modprobe.d/broadcom-bcma-blacklist.conf has a "blacklist wl" entry, and broadcom-wl-blacklist.conf blacklists everything else, so I guess that's the cause of this.  If I comment out the "blacklist wl", the wireless comes up just fine.

lspcidrake -v shows that wl is the driver for this chip, which is confusing because the previous comments here (including the request of the OP) seem to suggest that things were changed not to use wl.

Like the OP, my chip works with both brcmsmac and wl.  In any case, loading nothing doesn't seem to be a promising approach.

CC: (none) => ftg

Comment 12 Thomas Backlund 2013-05-21 17:39:12 CEST
Something went wrong on your system install then...

broadcom-bcma-config (that has broadcom-bcma-blacklist.conf) conflicts with broadcom-wl-common (wich has broadcom-wl-blacklist.conf) so they should not be on the system at the same time.

It's done that way in order to blacklist conflicting drivers so the one you want can load.
Comment 13 Frank Griffin 2013-05-21 17:50:57 CEST
I think I see what happened.  Part of my post-install is to take an rpm -qa list of the packages installed on the prior system and feed it to urpmi with xargs to bring the system up to the same level as before.  That list contains the wl packages, and for historical reasons the urpmi is done with --force.

So the install must have installed the bcma stuff, and then I jammed the wl stuff in on top of it.  I'll have to get rid of the --force and see if it's still needed.  Sorry for the noise.
Comment 14 Stephan Jänecke 2013-05-23 19:21:14 CEST
Thomas Backlund wrote:
> There is now new sets of isos to test broadcom wireless
> configuration[...]

Issue from comment #8 has been resolved in latest test live media and
should be included in current release. Thank you for your efforts.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.