MacBook Pro 2014 wireless on Pop!_OS 22.04

I own a 2014 Apple MacBook Pro, which I bought second-hand a few years ago.
It has run OSX all these years, but the latest versions are no longer supported on this machine. Since it is still a very capable machine, I decided it was time to install Linux, which is in fact the operating system I prefer to use, even though I knew I would no longer be able to use its webcam.
There is some information and there are drivers that can be compiled, but from past experience, namely with a 2015 MacBook I owned before, it was not very stable at the time. Given what I want to use this machine for, it is not something I will miss.
As I currently use the Pop!_OS distribution on other machines, I decided to try installing it on this laptop.
The installation is fairly simple, especially if the goal is to have only Linux installed, as in my case.
The problems came when the wireless drivers had to be set up. To solve this, it will make things easier if you have a USB to Ethernet adapter.
By now you are probably wondering why you need the Ethernet adapter!! Well… the laptop has no Ethernet port and the wireless will not work after installation, so to install the wireless drivers afterwards, in particular to clone the GitHub repository, we will need it to connect the machine to the network and make the job easier.
There are many guides on the internet explaining how to install the wireless drivers on various distributions. However, Pop!_OS version 22.04, at the time I installed it, was already using kernel 6.0.2-76060002-generic, and the driver does not compile for this version.
After some searching, I found this repository, https://github.com/antoineco/broadcom-wl, with the patches needed to make it work with dkms on this kernel version.
dkms will compile the drivers every time the kernel is updated, so we don’t have to do it manually after each update.
So follow these steps.
Open a terminal and let’s start:
sudo su
cd /usr/src
git clone https://github.com/antoineco/broadcom-wl
dkms add broadcom-wl
dkms build -m broadcom-wl -v 6.30.223.271If all goes well, we edit the file /etc/modprobe.d/blacklist.conf to stop the modules (drivers) that conflict with the wl module from being loaded. To do so, open the file with any text editor and add the following lines:
blacklist ssb<br>blacklist bcma<br>blacklist b43<br>blacklist brcmsmacTo check that the module was compiled, run:
dkms statusThe output shows that the module is compiled but not installed, so we have to run:
dkms install -m broadcom-wl -v 6.30.223.271We can load the module manually with:
modprobe wlTo have it loaded every time the computer starts, we add the following line to the /etc/modules file:
wlAt the end of all this, our MacBook Pro is ready to keep working for a few more years, with an up-to-date operating system.
I should mention that this article was written on my MacBook Pro in all its glory with Pop!_OS 22.04.
Photo by Olena Sergienko on Unsplash