Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?

The current kernel/drivers of Fedora 24 do not support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.

Verify that your card is a Broadcom using: lspci -vnn -d 14e4:

Sample output:

02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)

Install

Install the rpmfusion repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/

su -c 'dnf install -y http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'

Then install the akmods and kernel-devel packages (special thanks to @celsom3 for providing this):

sudo dnf install -y akmods "kernel-devel-uname-r == $(uname -r)"

Finally install broadcom-wl package from the rpmfusion repo, which will install kmod-wl, akmod-wl, and other dependencies.

sudo dnf install -y broadcom-wl

Next run akmods to rebuild the kernel extension in the broadcom-wl package:

sudo akmods

Finally, reboot Fedora.

Troubleshooting

  • lsmod to list all kernel modules
  • sudo modprobe wl will force the wireless kernel extension to load.
  • sudo systemctl restart NetworkManager
@celsom3

This comment has been minimized.

Show comment
Hide comment
@celsom3

celsom3 Jul 3, 2016

Thanks for sharing this. As you indicated, it does not work on a clean install of Fedora 24 on a 2011 Macbook Pro. I ran sudo akmods and this is the result I got:

Checking kmods exist for 4.6.3-300.fc24.x86_64             [  OK  ]
Files needed for building modules against kernel
4.6.3-300.fc24.x86_64 could not be found as the following
directories are missing:
/usr/src/kernels/4.6.3-300.fc24.x86_64/
/usr/lib/modules/4.6.3-300.fc24.x86_64/build/Is the correct[FAILED]devel package installed?

Any tips on what I need to do to make it work? Thanks!

celsom3 commented Jul 3, 2016

Thanks for sharing this. As you indicated, it does not work on a clean install of Fedora 24 on a 2011 Macbook Pro. I ran sudo akmods and this is the result I got:

Checking kmods exist for 4.6.3-300.fc24.x86_64             [  OK  ]
Files needed for building modules against kernel
4.6.3-300.fc24.x86_64 could not be found as the following
directories are missing:
/usr/src/kernels/4.6.3-300.fc24.x86_64/
/usr/lib/modules/4.6.3-300.fc24.x86_64/build/Is the correct[FAILED]devel package installed?

Any tips on what I need to do to make it work? Thanks!

@celsom3

This comment has been minimized.

Show comment
Hide comment
@celsom3

celsom3 Jul 5, 2016

Update, I was able to figure it out and wanted to share the solution that worked for me. I basically had to install the correct kernen-devel packages. I was able to do it with this command:

sudo dnf install akmods "kernel-devel-uname-r == $(uname -r)"

Then I ran

sudo dnf install broadcom-wl

for good measure, it didn't do anything though. Then:

sudo akmods

Then it was just a matter of restarting the MacBook and the wireless card was working.

I hope this is useful for folks!

celsom3 commented Jul 5, 2016

Update, I was able to figure it out and wanted to share the solution that worked for me. I basically had to install the correct kernen-devel packages. I was able to do it with this command:

sudo dnf install akmods "kernel-devel-uname-r == $(uname -r)"

Then I ran

sudo dnf install broadcom-wl

for good measure, it didn't do anything though. Then:

sudo akmods

Then it was just a matter of restarting the MacBook and the wireless card was working.

I hope this is useful for folks!

@wwweeds

This comment has been minimized.

Show comment
Hide comment
@wwweeds

wwweeds Jul 25, 2016

Celsom3, that worked perfectly for me on my new fedora24 build on my MacBook! Thanks!

wwweeds commented Jul 25, 2016

Celsom3, that worked perfectly for me on my new fedora24 build on my MacBook! Thanks!

@g13n

This comment has been minimized.

Show comment
Hide comment
@g13n

g13n Aug 10, 2016

Celsom3, I can also confirm your instructions worked perfectly on Fedora 24 on my MacBook Pro.
Thanks!

g13n commented Aug 10, 2016

Celsom3, I can also confirm your instructions worked perfectly on Fedora 24 on my MacBook Pro.
Thanks!

@shi27feng

This comment has been minimized.

Show comment
Hide comment
@shi27feng

shi27feng Aug 14, 2016

What about the Macbook pro made in late 2014 or earlier 2015? How to solve it since there's no wire connection available, dnf won't work. Thanks a lot!

What about the Macbook pro made in late 2014 or earlier 2015? How to solve it since there's no wire connection available, dnf won't work. Thanks a lot!

@alansoaresbr

This comment has been minimized.

Show comment
Hide comment
@alansoaresbr

alansoaresbr Aug 27, 2016

Celsom3, Worked for me too! MacBook Pro late 2011.

Celsom3, Worked for me too! MacBook Pro late 2011.

@jamespamplin

This comment has been minimized.

Show comment
Hide comment
@jamespamplin

jamespamplin Sep 22, 2016

@celsom3 thanks so much for providing your fix! Confirmed on a clean install of mine too. I've updated the instructions to reflect.

Owner

jamespamplin commented Sep 22, 2016

@celsom3 thanks so much for providing your fix! Confirmed on a clean install of mine too. I've updated the instructions to reflect.

@jamespamplin

This comment has been minimized.

Show comment
Hide comment
@jamespamplin

jamespamplin Sep 22, 2016

@shi27feng sorry I missed your question, theres no notifications on gist 😦

The easiest way is to use a lightning to ethernet adapter. Otherwise you might be able to download the packages individually from another computer, but that will be difficult with their dependencies. Not sure of a simple way to do this, sorry.

Owner

jamespamplin commented Sep 22, 2016

@shi27feng sorry I missed your question, theres no notifications on gist 😦

The easiest way is to use a lightning to ethernet adapter. Otherwise you might be able to download the packages individually from another computer, but that will be difficult with their dependencies. Not sure of a simple way to do this, sorry.

@caa

This comment has been minimized.

Show comment
Hide comment
@caa

caa Oct 17, 2016

I had issues getting RPM Fusion working. They seem to have changed to HTTPS-only?

http://rpmfusion.org/Configuration

su -c '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'

I got WiFi working on Fedora 25 Beta. Thanks for the gist!

caa commented Oct 17, 2016

I had issues getting RPM Fusion working. They seem to have changed to HTTPS-only?

http://rpmfusion.org/Configuration

su -c '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'

I got WiFi working on Fedora 25 Beta. Thanks for the gist!

@hngouveia01

This comment has been minimized.

Show comment
Hide comment
@hngouveia01

hngouveia01 Oct 20, 2016

Do you want to share your ethernet connection through your WiFi?

If so, you can take full advantage of your driver by downloading the broadcom driver, compiling and installing it:

(AND for those using Fedora 24 kernel 4.7.x and having trouble with this solution):

You can clone this repository that I've made and run install.sh
https://github.com/hngouveia01/hybrid-v35_64-nodebug-pcoem-6_30_223_271

Or you can also download the driver at http://www.broadcom.com/support/802.11
(64 bits) http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz

apply the patch found at
https://github.com/USA-RedDragon/broadcom-wl-dkms/commit/52ef285fd9c688bb8b161b64d5dd1c4a8f2a1c4f

compile it and install it.

Do you want to share your ethernet connection through your WiFi?

If so, you can take full advantage of your driver by downloading the broadcom driver, compiling and installing it:

(AND for those using Fedora 24 kernel 4.7.x and having trouble with this solution):

You can clone this repository that I've made and run install.sh
https://github.com/hngouveia01/hybrid-v35_64-nodebug-pcoem-6_30_223_271

Or you can also download the driver at http://www.broadcom.com/support/802.11
(64 bits) http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz

apply the patch found at
https://github.com/USA-RedDragon/broadcom-wl-dkms/commit/52ef285fd9c688bb8b161b64d5dd1c4a8f2a1c4f

compile it and install it.

@danilogcarolino

This comment has been minimized.

Show comment
Hide comment

Thank you!

@rtjfarrimond

This comment has been minimized.

Show comment
Hide comment
@rtjfarrimond

rtjfarrimond Jan 7, 2017

Total Linux noob here, trying to do this on macbook pro early 2008 model with Fedora 25. When running sudo dnf install -y akmods "kernel-devel-uname-r == $(uname -r)" I get the following output:

Last metadata expiration check: 0:26:40 ago on Sat Jan 7 14:51:05 2017. No package akmods available. Error: Unable to find a match.

Any clues as to why this might not work?

Total Linux noob here, trying to do this on macbook pro early 2008 model with Fedora 25. When running sudo dnf install -y akmods "kernel-devel-uname-r == $(uname -r)" I get the following output:

Last metadata expiration check: 0:26:40 ago on Sat Jan 7 14:51:05 2017. No package akmods available. Error: Unable to find a match.

Any clues as to why this might not work?

@hack2root

This comment has been minimized.

Show comment
Hide comment

hack2root commented Jan 22, 2017

@rtjfarrimond:

Use https versions

su -c 'dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
su -c 'dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm'

@poltys

This comment has been minimized.

Show comment
Hide comment
@poltys

poltys Feb 27, 2017

Since the last update, I have lost my Wifi and I am totally clueless here:

akmods
Checking kmods exist for 4.8.6-300.fc25.x86_64 [ OK ]

sudo modprobe wl
modprobe: ERROR: could not insert 'wl': Permission denied

NB: I removed and reinstalled everything.

If someone has any tips to share, it would be fantastic!

poltys commented Feb 27, 2017

Since the last update, I have lost my Wifi and I am totally clueless here:

akmods
Checking kmods exist for 4.8.6-300.fc25.x86_64 [ OK ]

sudo modprobe wl
modprobe: ERROR: could not insert 'wl': Permission denied

NB: I removed and reinstalled everything.

If someone has any tips to share, it would be fantastic!

@poltys

This comment has been minimized.

Show comment
Hide comment
@poltys

poltys Feb 27, 2017

Okay SELinux was to blame:
https://bugzilla.redhat.com/show_bug.cgi?id=1426741

sudo setenforce 0
sudo modprobe wl
sudo setenforce 1

poltys commented Feb 27, 2017

Okay SELinux was to blame:
https://bugzilla.redhat.com/show_bug.cgi?id=1426741

sudo setenforce 0
sudo modprobe wl
sudo setenforce 1

@glptrst

This comment has been minimized.

Show comment
Hide comment
@glptrst

glptrst Apr 19, 2017

Thank you! It worked perfectly. MacBook Pro late 2011 Fedora 25

glptrst commented Apr 19, 2017

Thank you! It worked perfectly. MacBook Pro late 2011 Fedora 25

@samiraguiar

This comment has been minimized.

Show comment
Hide comment
@samiraguiar

samiraguiar May 13, 2017

Thank you @jamespamplin and @celsom3, it worked perfectly on Fedora 25 running on Macbook Pro Early 2011!

Thank you @jamespamplin and @celsom3, it worked perfectly on Fedora 25 running on Macbook Pro Early 2011!

@davidaparicio

This comment has been minimized.

Show comment
Hide comment
@davidaparicio

davidaparicio Jul 17, 2017

Thanks you! It worked perfectly. MacBook Air late 2014 Fedora 26 :)

Thanks you! It worked perfectly. MacBook Air late 2014 Fedora 26 :)

@cullaloe

This comment has been minimized.

Show comment
Hide comment
@cullaloe

cullaloe Jan 27, 2018

Thank you so much for this. It worked perfectly on a mid 2009 Macbook Pro with Fedora 27.

Thank you so much for this. It worked perfectly on a mid 2009 Macbook Pro with Fedora 27.

@Xiol

This comment has been minimized.

Show comment
Hide comment
@Xiol

Xiol Feb 14, 2018

All good on a MacBook 11,x (late-2013) with Fedora 27. Thanks.

Xiol commented Feb 14, 2018

All good on a MacBook 11,x (late-2013) with Fedora 27. Thanks.

@carlosdajackal

This comment has been minimized.

Show comment
Hide comment
@carlosdajackal

carlosdajackal Feb 18, 2018

Thank you works like a charm!

Thank you works like a charm!

@alexismansilla

This comment has been minimized.

Show comment
Hide comment
@alexismansilla

alexismansilla Jun 28, 2018

Thank you 👍

Thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment