Debian ABC --- 1st time ---5

linkage

Installation

 

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

# Debian 9 "Stretch"
deb http://deb.debian.org/debian stretch-backports main contrib non-free

2.  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.

3.  Unload conflicting modules:

# sudo modprobe -r b44 b43 b43legacy ssb brcmsmac bcma

4.  Load the wl module:

#sudo  modprobe wl

5. Configure your wireless interface as appropriate. See also known issues.  (actually after this step, I can see the wireless icon)

I don't what below steps for

=================================================================================

Switch between wl/OSS drivers

shell script:

 #!/bin/sh

ip link set wlp2s0 down >/dev/null 2>&1
ip link set wlp2s0b1 down >/dev/null 2>&1
modprobe -r wl brcmsmac
modprobe -r cfg80211 brcmsmac cordic brcmutil bcma 

if [ "$1" = "wl" ]; then
        modprobe wl
else
        modprobe brcmsmac
fi

 


原文地址:https://www.cnblogs.com/winditsway/p/12495834.html