Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Installs the broadcom-wl kernel module with DKMS
# Installs the broadcom-wl kernel module with DKMS
# Tested under Fedora 23, will likely work with other versions/distros
# Author: Steven Mirabito <>
# Create a work directory
mkdir -p /tmp/broadcom
cd /tmp/broadcom
# Download the module from Broadcom (
# Remove '_64' from the URL for a 32-bit system
wget -O broadcom.tar.gz
# Download some support files from the Arch package
# Untar the archives
tar -zxvf broadcom.tar.gz
tar -zxvf broadcom-wl-dkms.tar.gz
# Patch the module
sed -i -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" src/wl/sys/wl_linux.c
patch -p1 < 001-null-pointer-fix.patch
# Add the module version number to the dkms config file
sed -e "s/@PACKAGE_VERSION@/" > dkms.conf
# Create the destination directory
mkdir -p /usr/src/broadcom-wl-
# Move files into place
cp -RL src lib Makefile dkms.conf /usr/src/broadcom-wl-
# Fix permissions and link the license in the appropriate place
chmod a-x "/usr/src/broadcom-wl-"
mkdir -p "/usr/share/licenses/broadcom-wl-dkms"
ln -rs "/usr/src/broadcom-wl-" "/usr/share/licenses/broadcom-wl-dkms/LICENSE"
# Install the modprobe config to blacklist the other Broadcom modules
install -D -m 644 broadcom-wl-dkms.conf "/etc/modprobe.d/broadcom-wl-dkms.conf"
# Install and build the module
dkms install -m broadcom-wl -v
# Activate the module
rmmod b43 b43legacy ssb bcm43xx brcm80211 brcmfmac brcmsmac bcma wl
modprobe wl
# Clean up
cd ~
rm -rf /tmp/broadcom

hey @stevenmirabito , both module download from broadcom and extra support from arch linux don't work/are not where they should be and the patching at line 22 doesn't work too and I'm a all noob to linux snd script editing stuff so I don't know how I work with them.So,could you please help me get drivers for my bcm4360 chip (14e4:43a0)under kali rolling 4.6.0 ?

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