Wednesday, November 16, 2011

Fedora 16 : Wireless not working after update to 3.1.1-1.fc16.x86_64 kernel on Acer Aspire 5742 Wireless Broadcom BCM43225 802.11b/g/n

After updating my laptop using yum (as usual) from 3.1.0-7.fc16.x86_64 to 3.1.1-1.fc16.x86_64, I noticed that my wireless network card works fine and is connected, but my wi-fi antenna LED is off. When I pressed Fn+F3, which is a shortcut on my Aspire 5742 to turn the antenna off and on, which normally would turn the LED on and off as well, I lost my wireless connection. First I thought, that maybe wl.ko did not updated properly or failed to load, but I found that the module is loaded and can be found in an expected location: /lib/modules/3.1.1-1.fc16.x86_64/extra/wl/wl.ko.

I checked all the loaded modules and found that now I have loaded "Broadcom Brothers" along with wl ;)

[root@aspire ~]# lsmod | grep brc
brcmsmac              497715  0 
mac80211              251806  1 brcmsmac
brcmutil                4513  1 brcmsmac
cfg80211              151125  2 brcmsmac,mac80211
crc8                    1356  1 brcmsmac
cordic                  1150  1 brcmsmac

[gescape@aspire ~]$ modinfo brcmsmac
filename:       /lib/modules/3.1.1-1.fc16.x86_64/kernel/drivers/net/wireless/brcm80211/brcmsmac/brcmsmac.ko
license:        Dual BSD/GPL
description:    Broadcom 802.11n wireless LAN driver.
author:         Broadcom Corporation

[gescape@aspire ~]$ rpm -qf /lib/modules/3.1.1-1.fc16.x86_64/kernel/drivers/net/wireless/brcm80211/brcmsmac/brcmsmac.ko
kernel-3.1.1-1.fc16.x86_64
[gescape@aspire ~]$ rpm -qf /lib/modules/3.1.1-1.fc16.x86_64/extra/wl/wl.ko
kmod-wl-3.1.1-1.fc16.x86_64-5.100.82.112-1.fc16.1.x86_64
[gescape@aspire ~]$ yum info kmod-wl-3.1.1-1.fc16.x86_64-5.100.82.112-1.fc16.1.x86_64
Installed Packages
Name        : kmod-wl-3.1.1-1.fc16.x86_64
Arch        : x86_64
Version     : 5.100.82.112
Release     : 1.fc16.1
Size        : 3.0 M
Repo        : installed
From repo   : rpmfusion-nonfree-updates
Summary     : wl kernel module(s) for 3.1.1-1.fc16.x86_64
URL         : http://www.broadcom.com/support/802.11/linux_sta.php
License     : Redistributable, no modification permitted
Description : This package provides the wl kernel modules built for the Linux
            : kernel 3.1.1-1.fc16.x86_64 for the x86_64 family of processors.


I removed the Broadcom modules from kernel package and reloaded wl from RPM Fusion...

[root@aspire ~]# rmmod brcmsmac
[root@aspire ~]# rmmod wl
[root@aspire ~]# modprobe wl
[root@aspire ~]# lsmod | grep brc
brcmutil                4513  0 

...and then blacklisted Broadcom module:

[root@aspire modprobe.d]# cat broadcom-wl-blacklist.conf 
# modules blacklisted for broadcom-wl
blacklist ssb
blacklist bcma
blacklist b43
blacklist brcmsmac

Again my wireless is back to normal, working as expected,  Fn+F3 works fine and most importantly that lovely bright amber antenna LED indicator is on ;))) haha...

Dear Fedora Team!
It is historically known that with almost every update/upgrade something must be broken. If not wireless, then LCD brightness, if not brightness.... It is extremely annoying. It is understandable that there are bugs and the system is under constant development, but I believe that basic functions, modules and common hardware should work out of the box regardless of the phase of development and for sure in the final release of the system. These days end users expect working systems with wireless available at a finger tip and not spend evenings fixing the module issues after subsequent update. If you want us to provide you a feedback and log bugs, we need working networking. Unfortunately it looks to me like brcmsmac does not work as expected. However kmod-wl from RPMFusion works fine. Interesting...

Thursday, August 4, 2011

Fedora 15 : How to compile a module wl.ko for Acer Aspire 5742 Wireless Broadcom BCM43225 802.11b/g/n

Today I updated my Fedora 15 to the kernel 2.6.40-4.fc15.x86_64.
The update installed also  kmod-wl-5.60.48.36-2.fc15.5.x86_64, but the /lib/modules/2.6.40-4.fc15.x86_64/extra/wl/wl.ko was missing. Because I could not find a module on available repos (fedora, rpmfusion, livna..) I decided to compile one.

Download source for your architecture, patch and readme file from:

Follow the readme to extract the source files and make sure you have kernel-devel, gcc, make and patch packages installed.

When I tried to compile the module I received an error:

[root@aspire hybrid-portsrc_x86_64-v5_100_82_38]# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/kernels/2.6.40-4.fc15.x86_64'
  CC
[M]  /home/gescape/Downloads/Broadcom/Oryginal/hybrid-portsrc_x86_64-v5_100_82_38/src/wl/sys/wl_linux.o
/home/gescape/Downloads/Broadcom/Oryginal/hybrid-portsrc_x86_64-v5_100_82_38/src/wl/sys/wl_linux.c: In function ‘wl_attach’:
/home/gescape/Downloads/Broadcom/Oryginal/hybrid-portsrc_x86_64-v5_100_82_38/src/wl/sys/wl_linux.c:485:3: error: implicit declaration of function ‘init_MUTEX’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

make[2]: ***
[/home/gescape/Downloads/Broadcom/Oryginal/hybrid-portsrc_x86_64-v5_100_82_38/src/wl/sys/wl_linux.o] Error 1
make[1]: ***
[_module_/home/gescape/Downloads/Broadcom/Oryginal/hybrid-portsrc_x86_64-v5_100_82_38] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.40-4.fc15.x86_64'
make: *** [all] Error 2

I applied the patch to the source:
patch -p1 5_100_82_38.patch
(Add a path to the patch if required and in a different location.)

That let me to compile and install the module.
make
cp wl.ko /lib/modules/2.6.40-4.fc15.x86_64/extra/wl
depmod
insmod wl

No further steps were required. After the reboot the module is loaded and your wireless card should work.


# lsmod | grep wl
wl         2554232  0
lib80211   4999  2 lib80211_crypt_tkip,wl


Note: What I noticed (maybe just an impression), that now when I login the wireless network card is already up and connected to my home network. Before, when using free drivers, I had to wait about 1 minute after login before the card connected with my network. Now it is instantly ready :)

Thursday, July 21, 2011

Fedora 15 x86_64 : Skype sound issue.

After installing Skype on Fedora 15 x86_64 there is no sound.
Install the following packages and restart Skype.

# yum install libv4l.i686
# yum install alsa-plugins-pulseaudio.i686
# yum install pulseaudio-libs.i686