根据这页面,内核 4.0+ 支持 BCM43340 Broadcom 芯片组。在机器上启动此内核后,仍然检测不到网卡。
另一方面,网卡的固件似乎由以下人员提供linux-firmware
:
$ dpkg -S /lib/firmware/brcm/b*
linux-firmware: /lib/firmware/brcm/bcm4329-fullmac-4.bin
linux-firmware: /lib/firmware/brcm/bcm43xx-0.fw
linux-firmware: /lib/firmware/brcm/bcm43xx_hdr-0.fw
linux-firmware: /lib/firmware/brcm/brcmfmac43143.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43143-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43236b.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43241b0-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43241b4-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43242a.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4329-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4330-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4334-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4335-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43362-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4339-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac4354-sdio.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43569.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43570-pcie.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43602-pcie.ap.bin
linux-firmware: /lib/firmware/brcm/brcmfmac43602-pcie.bin
我应该如何正确更新内核,以便获得对网卡的支持?是否有linux-firmware
与 4.1.2 内核匹配的版本
编辑:我有一个较新的 4.1.2 内核,基于 Trusty 构建(它比较旧,所以应该没有问题)我进行了 modprobe brcmfmac
,以下是提及的brcm
$ dmesg | grep brcm
[ 4.263584] brcmf_sdio_drivestrengthinit: No SDIO Drive strength init done for chip 43340 rev 2 pmurev 20
[ 4.267389] usbcore: registered new interface driver brcmfmac
[ 4.278197] brcmfmac_sdio mmc1:0001:1: Direct firmware load for brcm/brcmfmac43340-sdio.bin failed with error -2
[ 7.287580] brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 8.296113] brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
brcmfmac43340-sdio.bin
缺少固件部分:
$ find /lib -name brcmfmac*
/lib/modules/4.1.2-040102-generic/kernel/drivers/net/wireless/brcm80211/brcmfmac
/lib/modules/4.1.2-040102-generic/kernel/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko
/lib/modules/3.19.0-15-generic/kernel/drivers/net/wireless/brcm80211/brcmfmac
/lib/modules/3.19.0-15-generic/kernel/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac.ko
/lib/firmware/brcm/brcmfmac4354-sdio.bin
/lib/firmware/brcm/brcmfmac4335-sdio.bin
/lib/firmware/brcm/brcmfmac43143-sdio.bin
/lib/firmware/brcm/brcmfmac43241b4-sdio.bin
/lib/firmware/brcm/brcmfmac43143.bin
/lib/firmware/brcm/brcmfmac4329-sdio.bin
/lib/firmware/brcm/brcmfmac43241b0-sdio.bin
/lib/firmware/brcm/brcmfmac43236b.bin
/lib/firmware/brcm/brcmfmac4334-sdio.bin
/lib/firmware/brcm/brcmfmac43362-sdio.bin
/lib/firmware/brcm/brcmfmac4330-sdio.bin
brcmfmac43340-sdio.bin
似乎是在linux-firmware
1.146(来自 Wily),但我不确定我是否可以在 Wily 上简单地安装一个随机包,在 Vivid 上。
正如所问,
$ lspci -knn | grep Net -A2; uname -r
4.1.2-040102-generic
答案1
首先,找到您的架构:
arch
您可能会发现 x86_64(即 64 位)或 i386(即 32 位)。如果不是,请回复,我们会提供建议。
点击此处下载内核包:http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.0.9-wily/
如果您的系统是 64 位系统,请将 linux-headers-generic-xx-amd64.deb、linux-headers-xx-all.deb 和 linux-image-xx-amd64.deb 下载到您的桌面。
现在从终端安装它们:
sudo dpkg -i ~/Desktop/linux*.deb
重新启动后,确认您正在运行新的 4.0-xx 内核:
uname -r
它应该返回:4.0.9-040009-generic
。
加载假定的驱动程序:
sudo modprobe brcmfmac
检查日志中的消息:
dmesg | grep brcm