我正在开发 Linux 发行版的自定义版本(更具体地说,LFS 项目),这意味着我没有包管理器,需要手动安装包。
我尝试设置 BCM43142 pci 卡(Broadcom 的 wifi 卡)。我设法找到正确的驱动程序并安装它(驱动程序是https://www.broadcom.com/support/download-search/?pf=无线+LAN+基础设施我按照那里写的说明进行操作)
尽管如此,“iwconfig”的输出是:
wlp2s0 no wireless extensions.
sit0 no wireless extensions.
lo no wireless extensions.
谁能指出我还应该做什么才能让我的发行版识别该卡的无线功能?
我正在运行 4.9.9 内核
insmod wl.ko
[ 35.865452] wl: loading out-of-tree module taints kernel.
[ 35.865485] wl: module license 'MIXED/Proprietary' taints kernel.
[ 35.865509] Disabling lock debugging due to kernel taint
[ 35.907750] wl 0000:02:00.0 wlp2s0: renamed from eth0
[ 36.000340] wlp2s0: Broadcom BCM4365 802.11 Hybrid Wireless Controller 6.30.223.271 (r587334)
[ 36.000507] insmod (254) used greatest stack depth: 11560 bytes left
lspci-n
02:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)
Subsystem: Lenovo Device [17aa:0611]
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at b0500000 (64-bit, non-prefetchable) [size=32K]
Capabilities: [40] Power Management version 3
Capabilities: [58] Vendor Specific Information: Len=78 <?>
Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [d0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Virtual Channel
Capabilities: [160] Device Serial Number 00-00-f2-ff-ff-d8-80-56
Capabilities: [16c] Power Budgeting <?>
Kernel driver in use: wl
lshw -c 网络
-b0403fff
*-network
description: Ethernet interface
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 01
serial: 80:56:f2:d8:62:93
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical
configuration: broadcast=yes driver=wl0 driverversion=6.30.223.271 (r587334) latency=0 multicast=yes
resources: irq:16 memory:b0500000-b0507fff
我知道它在“insmod”之后写了“BCM4365”。在我的 Ubuntu 上,它写的是相同的并且 WIFI 工作正常
答案1
禁用安全启动。
您可以手动编译驱动程序或通过自动编译dkms
(参见github 上的 Broadcom-wl)
为 ssb 、 bcma 、 b43 和 brcmsmac 模块创建黑名单文件,然后运行:
git clone https://github.com/antoineco/broadcom-wl.git
make
make install
depmod -A
modprobe wl
答案2
这家伙让他的 BCM43142 正常工作,正如 BCM4320 解决方案的评论中所述。