Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless Broadcom Driver not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nullstone
n00b
n00b


Joined: 28 Nov 2013
Posts: 12

PostPosted: Thu Nov 28, 2013 6:05 pm    Post subject: Wireless Broadcom Driver not working Reply with quote

Hello Gentoo community! First of all I want to tell you that you have all my respects for this free amazing community!
I'm new in Gentoo world, but I want to learn a lot on this part.

Ok, now my problem, which just damned my brain.
I install Calculate Linux on my laptop, but wireless doesn't work.
I tried everything from this; http://wiki.gentoo.org/wiki/Wifi
http://wireless.kernel.org/en/users/Drivers/b43#Gentoo
I've searched for help on Calculate Linux forums, but no success.

A result after lscpi | grep -i network:
Quote:
stone@calculate ~/files $ sudo lspci | grep -i network
03:00.0 Network controller: Broadcom Corporation BCM43227 802.11b/g/n


After lspci -nn | grep -i network:
Quote:
03:00.0 Network controller [0280]: Broadcom Corporation BCM43227 802.11b/g/n [14e4:4358]


The result when I try to emerge net-wireless/broadcom-sta with argument -av:
Quote:

Local copy of remote index is up-to-date and will be used.

* IMPORTANT: config file '/etc/portage/package.keywords/custom' needs updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary R ] net-wireless/broadcom-sta-6.30.223.30-r2 0 kB

Total: 1 package (1 reinstall, 1 binary), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes

>>> Emerging binary (1 of 1) net-wireless/broadcom-sta-6.30.223.30-r2
* broadcom-sta-6.30.223.30-r2.tbz2 MD5 SHA1 size ;-) ... [ ok ]
>>> Extracting info
* Checking for suitable kernel configuration options...
* B43: If you insist on building this, you must blacklist it!
* SSB: If you insist on building this, you must blacklist it!
* MAC80211: If you insist on building this, you must blacklist it!
* PREEMPT_RCU: Please do not set the Preemption Model to "Preemptible Kernel"; choose something else.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
>>> Extracting net-wireless/broadcom-sta-6.30.223.30-r2

>>> Installing (1 of 1) net-wireless/broadcom-sta-6.30.223.30-r2
* checking 2 files for package collisions
>>> Merging net-wireless/broadcom-sta-6.30.223.30-r2 to /
--- /etc/
--- /etc/modprobe.d/
>>> /etc/modprobe.d/wl.conf
--- /lib/
--- /lib/modules/
--- /lib/modules/3.10.19-calculate/
--- /lib/modules/3.10.19-calculate/net/
--- /lib/modules/3.10.19-calculate/net/wireless/
>>> /lib/modules/3.10.19-calculate/net/wireless/wl.ko
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- cfgpro obj /lib/modules/3.10.19-calculate/net/wireless/wl.ko
--- cfgpro dir /lib/modules/3.10.19-calculate/net/wireless
--- cfgpro dir /lib/modules/3.10.19-calculate/net
--- cfgpro dir /lib/modules/3.10.19-calculate
--- replaced dir /lib/modules
--- cfgpro dir /lib
--- replaced obj /etc/modprobe.d/wl.conf
--- replaced dir /etc/modprobe.d
--- replaced dir /etc
* Removing net-wireless/broadcom-sta-6.30.223.30-r2 from moduledb.
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
* Calculate Utilities have changed files:
* /home/stone/.calculate/ini.env
* Updating module dependencies for 3.10.19-calculate ...
*
* /lib/modules/3.10.19-calculate/build/System.map not found.
* You must manually update the kernel module dependencies using depmod. [ !! ]
*
* Adding module to moduledb.
>>> net-wireless/broadcom-sta-6.30.223.30-r2 merged.

* Messages for package net-wireless/broadcom-sta-6.30.223.30-r2:

* B43: If you insist on building this, you must blacklist it!
* SSB: If you insist on building this, you must blacklist it!
* MAC80211: If you insist on building this, you must blacklist it!
* PREEMPT_RCU: Please do not set the Preemption Model to "Preemptible Kernel"; choose something else.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
*
* /lib/modules/3.10.19-calculate/build/System.map not found.
* You must manually update the kernel module dependencies using depmod.
*
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* GNU info directory index is up-to-date.

* IMPORTANT: 3 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.




Please help me, because I need the wireless these days.
Thanks a lot, and again, all my regards!


~ nullstone
_________________
Data eater!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Thu Nov 28, 2013 9:42 pm    Post subject: Reply with quote

Hi,
you are on the good way I think. No in Linux kernel tree Broadcom drivers support your BCM43227 802.11b/g/n [14e4:4358] card. According to http://wireless.kernel.org/, b43, b43legacy, brcmsmac and brcmfmac does not support it.

So, you compile the net-wireless/broadcom-sta package who add the wl module to your running kernel modules. wl should be available now to use. But emerge show that broadcom-sta complain about some options who are activated in the Linux kernel that can cause problems to the wl module.

You have to disable the b43 (B43), ssb (SSB), mac80211 (MAC80211) support and set the PREEMPT_RCU option to something else than "Preemptible Kernel" in the kernel configuration. Than recompile the kernel and reboot. Reinstall the broadcom-sta package after that to see if there's no complain.

You can try to use the wl module without reconfigure and recompile the kernel, but I would do it anyway. Be sure only one Broadcom kernel module driver is load at a time between wl, b43, b43legacy and brcmsmac.

Execute the
Code:
dispatch-conf

command to update your configuration files. After that, you should be ready to load the wl module
Code:
modprobe wl

You should have a new wireless network interface that you can use when you do
Code:
ifconfig -a

_________________
Paul
Back to top
View user's profile Send private message
nullstone
n00b
n00b


Joined: 28 Nov 2013
Posts: 12

PostPosted: Fri Nov 29, 2013 9:48 pm    Post subject: Reply with quote

Thanks for the answer.
I disabled I think the MAC80211 from Kernel Configuration, from Devices Driver -> Wireless (something like that), but I don't find the others.

here is the lsmod result, I wish it could be useful:

Quote:
stone@calculate ~ $ lsmod
Module Size Used by
ecryptfs 72814 0
ipv6 291040 50
8021q 16739 0
speedstep_lib 2959 0
cpufreq_userspace 1984 0
cpufreq_powersave 862 0
cpufreq_conservative 6273 0
uvcvideo 69588 0
videobuf2_vmalloc 2728 1 uvcvideo
videobuf2_memops 1727 1 videobuf2_vmalloc
videobuf2_core 27140 1 uvcvideo
videodev 99441 2 uvcvideo,videobuf2_core
snd_hda_codec_hdmi 28849 1
snd_hda_codec_realtek 34520 1
snd_hda_intel 31958 11
snd_hda_codec 133037 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
broadcom 7206 0
tg3 149402 0
ptp 7756 1 tg3
pps_core 6521 1 ptp
snd_hwdep 5884 1 snd_hda_codec
snd_pcm 73591 6 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 6946 2 snd_pcm,snd_hda_intel
snd_timer 17975 4 snd_pcm
snd 56583 23 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
iTCO_wdt 5159 0
i2c_i801 9350 0
libphy 18822 2 tg3,broadcom
iTCO_vendor_support 1737 1 iTCO_wdt
ext4 324738 1
crc16 1231 1 ext4
jbd2 58301 1 ext4
mbcache 5642 1 ext4
coretemp 5782 0
hwmon 1241 2 tg3,coretemp
acpi_cpufreq 7014 1
mperf 1107 1 acpi_cpufreq
intel_powerclamp 7422 0
kvm_intel 124112 0
kvm 253585 1 kvm_intel
joydev 9375 0
acer_wmi 23240 0
sparse_keymap 2832 1 acer_wmi
rfkill 14941 1 acer_wmi
mxm_wmi 1307 0
microcode 11169 0
intel_ips 9233 0
lpc_ich 12689 0
mfd_core 2833 1 lpc_ich
bcma 29305 0
mei_me 7480 0
mei 39802 1 mei_me
battery 11203 0
ac 4095 0
wmi 7739 2 acer_wmi,mxm_wmi
processor 26347 5 acpi_cpufreq
i915 490805 8
video 11200 2 i915,acer_wmi
button 4445 1 i915
intel_agp 10424 1 i915
intel_gtt 11974 3 i915,intel_agp
i2c_algo_bit 5135 1 i915
drm_kms_helper 27833 1 i915
drm 217250 4 i915,drm_kms_helper
i2c_core 18868 6 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,videodev

_________________
Data eater!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sat Nov 30, 2013 2:50 am    Post subject: Reply with quote

The Broadcom wireless kernel support is at Devices drivers/Network devices support/Wireless LAN/. There you can disable everything. The proprietary Broadcom kernel module wl dont need that.

You can make a search in the kernel tree if you type the / character. Than you can use a keyword and press Enter. Everything who match will be displayed with a path to the option.

I do not see any Broadcom module with lsmod. They can be compiled in the kernel, or in modules and not loaded, or not compiled at all. Normally the kernel load the appropriate module who should be wl for your card.
_________________
Paul
Back to top
View user's profile Send private message
nullstone
n00b
n00b


Joined: 28 Nov 2013
Posts: 12

PostPosted: Sat Nov 30, 2013 9:35 am    Post subject: Reply with quote

I disabled MAC80211 from kernel configuration, but after a boot up if the ethernet cable is plugged in, the screen is stucked... then, I must to re-enable it.
I didn't understand very well what you said in ^ post. With which command can I search for a module in the kernel?
_________________
Data eater!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sat Nov 30, 2013 6:03 pm    Post subject: Reply with quote

When you are in the Linux kernel menu configuration, if you press the slash (/) character, than a search dialog box will appear. You can enter a keyword to find kernel options in the menu related to that keyword. Than the result in displayed in a window who list all kernel options related with the keyword. You have the path to the options in the Linux kernel menu configuration and other informations.
_________________
Paul
Back to top
View user's profile Send private message
nullstone
n00b
n00b


Joined: 28 Nov 2013
Posts: 12

PostPosted: Sat Nov 30, 2013 8:41 pm    Post subject: Reply with quote

So, I have to disable each one? Because the MAC*, if is disabled, when I plug the Ethernet Cable, the screen got stucked.
_________________
Data eater!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sat Nov 30, 2013 8:54 pm    Post subject: Reply with quote

It's look like you have an other problem to resolv than the wireless support. Did you install the linux-firmware package? Some nic's need the firmwares of this package to work properly.
_________________
Paul
Back to top
View user's profile Send private message
nullstone
n00b
n00b


Joined: 28 Nov 2013
Posts: 12

PostPosted: Sun Dec 01, 2013 7:31 pm    Post subject: Reply with quote

Quote:
calculate stone # emerge --ask linux-firmware

Local copy of remote index is up-to-date and will be used.

* IMPORTANT: config file '/etc/portage/package.keywords/custom' needs updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary R ] sys-kernel/linux-firmware-20130728

Would you like to merge these packages? [Yes/No] yes

>>> Emerging binary (1 of 1) sys-kernel/linux-firmware-20130728
* linux-firmware-20130728.tbz2 MD5 SHA1 size ;-) ... [ ok ]
>>> Extracting info
>>> Extracting sys-kernel/linux-firmware-20130728

>>> Installing (1 of 1) sys-kernel/linux-firmware-20130728
* Calculate Utilities have changed files:
* /home/stone/.calculate/ini.env
* If you are only interested in particular firmware files, edit the saved
* configfile and remove those that you do not want.

* Messages for package sys-kernel/linux-firmware-20130728:

* If you are only interested in particular firmware files, edit the saved
* configfile and remove those that you do not want.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

* GNU info directory index is up-to-date.

* IMPORTANT: config file '/etc/portage/package.keywords/custom' needs updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.


It seems that is installed correctly.

ps. An wireless adapter may solve this problem?
_________________
Data eater!
Back to top
View user's profile Send private message
nullstone
n00b
n00b


Joined: 28 Nov 2013
Posts: 12

PostPosted: Mon Dec 09, 2013 7:45 pm    Post subject: Reply with quote

Any another suggestions? :(
_________________
Data eater!
Back to top
View user's profile Send private message
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Tue Dec 10, 2013 12:29 pm    Post subject: Reply with quote

Hi! I also have a BROADCOM wireless hardware. In this thread the community has helped me. After that, I intalled WICD and all things works fine; see the part of kernel config, it may help you.
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
nullstone
n00b
n00b


Joined: 28 Nov 2013
Posts: 12

PostPosted: Tue Dec 10, 2013 7:48 pm    Post subject: Reply with quote

^ thanks for the answer.
I've read the topic.. but I didn't understand too good how you solve it... after you modified the kernel configuration?
Thanks again. :)
_________________
Data eater!
Back to top
View user's profile Send private message
HerrSchafer
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2011
Posts: 139

PostPosted: Tue Dec 10, 2013 8:05 pm    Post subject: Reply with quote

nullstone wrote:
^ thanks for the answer.
I've read the topic.. but I didn't understand too good how you solve it... after you modified the kernel configuration?
Thanks again. :)


It's quite simple (after a huge headache :P):
I have emerged wicd and my wireless start working.
_________________
“Long is the way, and hard, that out of hell leads up to light.”
― John Milton
Back to top
View user's profile Send private message
nullstone
n00b
n00b


Joined: 28 Nov 2013
Posts: 12

PostPosted: Wed Dec 11, 2013 7:20 pm    Post subject: Reply with quote

Ahrm.. I emerged wcid, then I /etc/init.d/wcid start-it, it's ok... but the wireless networks still don't appear.
_________________
Data eater!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Wed Dec 11, 2013 8:43 pm    Post subject: Reply with quote

Wicd, NetworkManager and other network tools like them manage the Internet connectivity and TCP/IP protocols configuration. They do not manage the hardware detection and support. They are userspace tools. The hardware detection and support is done by the Linux kernel.

nullstone, I told you in my first post, unless something I miss, your Broadcom wireless card [14e4:4358] is not supported by any native Linux kernel driver. I haven't found any reference to [14e4:4358] at http://linuxwireless.org/ . You have to use the broadcom-sta package from Portage that provide the wl module.
_________________
Paul
Back to top
View user's profile Send private message
nullstone
n00b
n00b


Joined: 28 Nov 2013
Posts: 12

PostPosted: Thu Dec 12, 2013 9:39 pm    Post subject: Reply with quote

I've tried again to emerge the broadcom-sta, but the same errors, such as:
Quote:
* B43: If you insist on building this, you must blacklist it!
* SSB: If you insist on building this, you must blacklist it!
* MAC80211: If you insist on building this, you must blacklist it!


And yes, I tried to blacklist them, to remove them from kernel configuration, and same thing...
_________________
Data eater!
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1555
Location: Montréal

PostPosted: Sat Dec 14, 2013 8:04 pm    Post subject: Reply with quote

It may be just a warning with consequences only if one or more of the b43, ssb and mac80211 modules are loaded during the wl module try to load. The same problem can arrive if their support are in the kernel image itself.

Obviously, if you disable completely B43, SSB and MAC80211 in the kernel they will not be in the kernel image and in modules. So, that way, no problem can arrive. For sure they must not be in the kernel image, but, you can keep them as modules if you blacklist them to prevent their load.

Blacklist modules do not prevent them for being loaded all the time. I would prefer in the presence of the b43, ssb and mac80211 modules to create or edit the file /etc/modprobe.d/modprobe.conf with the lines
Code:
Install b43 /bin/true
Install ssb /bin/true
Install mac80211 /bin/true

This prevent those modules form being loaded all the time unless you use the -i or --ignore-install option of modprobe. After check with lsmod and unload the b43, ssb and mac80211 modules if needed, you should be ready for
Code:
modprobe wl

and add wl to /etc/conf.d/modules.
_________________
Paul
Back to top
View user's profile Send private message
raddaqii
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2005
Posts: 110
Location: Berlin, Old Europe

PostPosted: Tue Jun 24, 2014 1:40 pm    Post subject: Reply with quote

This thread is old, but I had solved this ages ago, and work happily with an Acer Travelmate 8573T and the BCM43227. I see the confusion around
CONFIG_MAC80211 which is rarely needed for consumer grade devices once in a while, so thought I'd share.

You have this:

Code:

#  lspci -nn | grep -i network
02:00.0 Network controller [0280]: Broadcom Corporation BCM43227 802.11b/g/n [14e4:4358]


and you want wireless to work. No need to emerge net-wireless/broadcom-sta! Disable B43, SSB; I pasted the .config file for sys-kernel/gentoo-sources-3.14.8 here: http://dpaste.com/2WW3TYH.

Instead I use:

Code:
linux # modinfo wl
filename:       /lib/modules/3.14.8-gentoo/net/wireless/wl.ko
license:        Mixed/Proprietary
alias:          pci:v*d*sv*sd*bc02sc80i*
depends:       
vermagic:       3.14.8-gentoo SMP mod_unload modversions
parm:           wl_txq_thresh:int
parm:           oneonly:int
parm:           piomode:int
parm:           instance_base:int
parm:           nompc:int
parm:           intf_name:string



I have no blacklist entries for modules whatsoever.

Hope this helps.

Edit: typofix and purged all references to a 3.15.0-r1 kernel, where compiling would fail every time. Fix up wrong MAC80211 hints.


Last edited by raddaqii on Wed Jun 25, 2014 6:27 am; edited 2 times in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Jun 24, 2014 1:55 pm    Post subject: Reply with quote

raddaqii wrote:
I see the confusion around CONFIG_MAC80211 which is rarely needed for consumer grade devices [...]

raddaqii ... that is incorrect, CONFIG_MAC80211 is the "hardware independent IEEE 802.11 networking stack", its needed for all in kernel wireless drivers using NL80211 (whatever the "grade"). The broadcom-sta driver is out of tree and so doesn't use the kernels wireless infrastructure.

best ... khay
Back to top
View user's profile Send private message
raddaqii
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2005
Posts: 110
Location: Berlin, Old Europe

PostPosted: Tue Jun 24, 2014 3:00 pm    Post subject: Reply with quote

khayyam, thanks for clarifying. Indeed I had that mixed up.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum