Wednesday, August 22, 2018

networking - How to properly update the kernel

According to this page, the BCM43340 Broadcom chipset is supported in kernel 4.0+. After booting this kernel on a machine, the network card was still not detected.




On the other hand, it seems that the firmware for the network card is provided by 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


How should I properly update the kernel, so that I get the support for the network card? Is there a version of linux-firmware which matches the 4.1.2 kernel



EDIT: I have a newer 4.1.2 kernel, built against Trusty (it's older, so it should be no problem)
I modprobe'd brcmfmac and these are the mentions of 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


The brcmfmac43340-sdio.bin firmware piece is missing:




$ 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 seems to be in linux-firmware 1.146 (from Wily) but I'm not sure if I can so simply install a random package on Wily, being on Vivid.




As asked,



$ lspci -knn | grep Net -A2; uname -r
4.1.2-040102-generic

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...