Bug 4503

Summary: Cannot enable BCM4331 wifi on 2011 Macbook Pro
Product: Fedora Reporter: mobile.harvey
Component: broadcom-wlAssignee: NVieville <nicolas.vieville>
Status: RESOLVED EXPIRED    
Severity: normal    
Priority: P1    
Version: 26   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: 6.30.223.271-9-for-4.11.0-0.rc4.git0.1.fc26.x86_64.failed.log

Description mobile.harvey 2017-04-06 12:06:25 CEST
Created attachment 1766 [details]
6.30.223.271-9-for-4.11.0-0.rc4.git0.1.fc26.x86_64.failed.log

I raised this earlier today on Fedora bugzilla (bug 1439568) but they closed this referring me to the RPMFUSION group.

https://bugzilla.redhat.com/show_bug.cgi?id=1439568

-->

Description of problem:
Installing F26 alpha on my 2011 Macbook Pro with Broadcom BCM4331 wifi. I am following the procedure to install the package from RPMFUSION which I have proven to work on F25. However the procedure does not complete correctly on F26.

Version-Release number of selected component (if applicable):
N/A

How reproducible:
Every time.

Steps to Reproduce:
1. Clean install F26 64 Bit on 2011 Macbook Pro with wired Ethernet connected.

2. Boot to desktop and update with:
sudo dnf update

3. Add RPMFUSION repo with:
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

4. Install Broadcom driver with:
sudo dnf install akmod-wl kernel-devel-$(uname -r)

5. Build the module with:
sudo akmods --force
Checking kmods exist for 4.11.0-0.rc4.git0.1.fc26.x86_64   [  OK  ]
Building and installing wl-kmod                            [FAILED]
Building rpms failed; see /var/cache/akmods/wl/6.30.223.271-9-for-4.11.0-0.rc4.git0.1.fc26.x86_64.failed.log for details

Hint: Some kmods were ignored or failed to build or install.
You can try to rebuild and install them by by calling
'/usr/sbin/akmods --force' as root.

6. Rebooting does not help.

Actual results:
Unable to enable on-board Broadcom BCM4331 wifi adapter.

Expected results:
successfully enable on-board Broadcom BCM4331 wifi adapter.

Additional info:
Please see attached logs from /var/cache/akmods/wl/6.30.223.271-9-for-4.11.0-0.rc4.git0.1.fc26.x86_64.failed.log

There are a lot of the following errors in this file:
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root


Hardware details:
lspci -nn -d 14e4:
02:00.0 Ethernet controller [0200]: Broadcom Limited NetXtreme BCM57765 Gigabit Ethernet PCIe [14e4:16b4] (rev 10)
02:00.1 SD Host controller [0805]: Broadcom Limited BCM57765/57785 SDXC/MMC Card Reader [14e4:16bc] (rev 10)
03:00.0 Network controller [0280]: Broadcom Limited BCM4331 802.11a/b/g/n [14e4:4331] (rev 02)
Comment 1 NVieville 2017-04-10 19:49:53 CEST
Hello, 

Thanks for reporting this issue.

As a new package have been build in koji including a patch for kernel 4.11, maybe you should give it a try - RPMS available here:

https://koji.rpmfusion.org/koji/buildinfo?buildID=3699

or you could wait for these new akmod-wl packages been pushed in F26 repositories.

Feel free to make any comment about this issue.

Cordially,


-- 
NVieville
Comment 2 mobile.harvey 2017-04-12 10:34:25 CEST
Hi.

Thanks for making the change. I manually installed the new akmods package using 'rpm -U' but initially I could not get 'akmods --force' to build the module again. Looking at the logs it was failing with a missing dependency of 'elfutils-libelf-devel'. I then installed this using 'dnf install elfutils-libelf-devel' and re-ran 'akmods --force', and I now have working wifi!

I'd assume if I was installing directly from the rpmfusion repo then this dependency would be automatically taken care of. If this therefore is the expected behaviour then I would say this bug could be closed.

Thanks again
Nick
Comment 3 NVieville 2017-04-12 12:47:37 CEST
Hello,

(In reply to mobile.harvey from comment #2)
> Thanks for making the change. I manually installed the new akmods package
> using 'rpm -U' but initially I could not get 'akmods --force' to build the
> module again. Looking at the logs it was failing with a missing dependency
> of 'elfutils-libelf-devel'. I then installed this using 'dnf install
> elfutils-libelf-devel' and re-ran 'akmods --force', and I now have working
> wifi!

Thanks for pointing this dependency issue. You should normally install the akmod-wl package without the need to manually and previously install the required dependencies.

> I'd assume if I was installing directly from the rpmfusion repo then this
> dependency would be automatically taken care of. If this therefore is the
> expected behaviour then I would say this bug could be closed.

You are right when you say that this dependency should be automatically taken care of, but it was not the case.

As I updated the last akmod-wl package for rawhide and F-26 to take care of this dependency issue, I wonder if you don't mind testing this new package? In case you accept it, please could you remove the elfutils-libelf-devel package before proceeding?

Here is the commands you should type in a root console in order to accomplish the test (be careful some lines are wrapped):

dnf remove elfutils-libelf-devel
dnf install http://koji.rpmfusion.org/kojifiles/packages/wl-kmod/6.30.223.271/11.fc26/x86_64/akmod-wl-6.30.223.271-11.fc26.x86_64.rpm

The last command should install the new akmod-wl package and its dependencies including elfutils-libelf-devel package. Please, could you post the result if this is not the case in order to correct the package?
The URL of the akmod-wl package for F-26 was taken from this link:
http://koji.rpmfusion.org/koji/buildinfo?buildID=3705

Thanks again for your comments, and feel free to make any ones you think useful.

Cordially,


-- 
NVieville
Comment 4 mobile.harvey 2017-04-12 14:30:25 CEST
Hi - I've just tried this following your instructions and the new package installed no problem pulling-in the dependencies automatically.

So looks good to me!

Thanks again
Nick
Comment 5 NVieville 2017-04-12 14:44:44 CEST
Hello Nick,

Thank you for your feedback.

I'll let this bug report opened for a while, hoping it would be useful for people hitting the same issue.

Cordially,


-- 
NVieville
Comment 6 Emmanuel Seyman 2018-05-29 00:29:44 CEST
Fedora 26 will be EOL this coming Friday. Once that happens, RPMFusion will stop releasing updates for this version of Fedora. This bug will be set to RESOLVED:EXPIRED next week to reflect this.

If the problem persists after upgrading to the latest version of Fedora, please
update the version field of this bug (and re-open it if it has been closed).
Comment 7 Emmanuel Seyman 2018-07-30 22:41:32 CEST
Closing this bug with the EXPIRED resolution since Fedora no longer ships updates for this version of Fedora.

Please set the Version field to a supported version of Fedora if you re-open this bug.