Debian系统安装BCM43142系列的老无线网卡驱动

原文地址:https://wiki.debian.org/wl#issues

  1. Add a “non-free” component to /etc/apt/sources.list for your Debian version, for example:

# Debian 9 “Stretch”
deb Index of /debian stretch-backports main contrib non-free

# Debian 10 “Buster”
deb Index of /debian buster-backports main contrib non-free

# Debian 11 “Bullseye”
deb Index of /debian bullseye main contrib non-free

# Debian 12 “Bookworm”
deb Index of /debian bookworm main contrib non-free-firmware non-free

  1. Update the list of available packages. Install the relevant/latest linux-image, linux-headers and broadcom-sta-dkms packages:

# apt-get update
# apt-get install linux-image-$(uname -r|sed ‘s,[^-]-[^-]-,’) linux-headers-$(uname -r|sed ‘s,[^-]-[^-]-,’) broadcom-sta-dkms

This will also install the recommended wireless-tools package. DKMS will build the wl module for your system.

  1. (Optional) Rescue if install/build fails in previous step

# apt-get install -f
# dpkg-reconfigure broadcom-sta-dkms

  1. (Optional) Check all the built DKMS kernel modules. There should be “wl.ko” in the list.

# find /lib/modules/$(uname -r)/updates

  1. Unload conflicting modules:

# modprobe -r b44 b43 b43legacy ssb brcmsmac bcma

  1. Load the wl module:

# modprobe wl

  1. Configure your wireless interface as appropriate.