[Solved] BCM4311 driver is not loaded automatically at boot

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
patcan
Level 1
Level 1
Posts: 9
Joined: Tue Apr 18, 2023 6:11 am

[Solved] BCM4311 driver is not loaded automatically at boot

Post by patcan »

Hello everybody, just my first touch with linux , so I hope I don't bore anyone .
I have an old hp530, Intell celeron 32 bit, incremented to 2Gb memory, where i installed LMDE:

Code: Select all

patrizio@patcan:~$ cat /etc/os-release
"PRETTY_NAME="LMDE 5 (elsie)"
NAME="LMDE"
VERSION_ID="5"
VERSION="5 (elsie)"
ID=linuxmint
ID_LIKE=debian
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=elsie
DEBIAN_CODENAME=bullseye
Unfortunately wifi was not recognized at first installation: lshw (just wifi)

Code: Select all

"*-network UNCLAIMED
                description: Network controller
                product: BCM4311 802.11b/g WLAN
                vendor: Broadcom Inc. and subsidiaries
                physical id: 0
                bus info: pci@0000:10:00.0
                version: 01
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master cap_list
                configuration: latency=0
                resources: memory:f0000000-f0003fff"
looking around I found a good tip :

Code: Select all

sudo apt-get remove --purge bcwl-firmware-kernel-souce
sudo apt-get install linux-firmware-nonfree
sudo modprobe b43
it works and now I have blu light on:

Code: Select all

" *-network
                description: Wireless interface
                product: BCM4311 802.11b/g WLAN
                vendor: Broadcom Inc. and subsidiaries
                physical id: 0
                bus info: pci@0000:10:00.0
                logical name: wlan0
                version: 01
                serial: 00:1a:73:62:0a:46
                width: 32 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes [b]driver=b43[/b] driverversion=5.10.0-21-686 firmware=666.2 ip=192.168.1.64 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:17 memory:f0000000-f0003fff"
but at reboot i need to load driver by terminal so I followed an other tip :

Code: Select all

sudo su 
echo b43 >> /etc/modules 
now module is correctly reported :

Code: Select all

patrizio@patcan:~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

b43
b43
wl
but I still need to load the module by terminal if I want wifi activated.

Any suggestion and explanation why the /ect/modules seems not be loaded at reboot ?
Many thanks Patrizio
Last edited by LockBot on Wed Oct 18, 2023 10:00 pm, edited 5 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Paolo_C
Level 5
Level 5
Posts: 854
Joined: Sat Feb 10, 2018 11:20 am
Location: Italy

Re: BCM3411 drver is not loaded automatically at boot

Post by Paolo_C »

Salve Patrizio,
ti comunico cortesemente che questo è il forum per gli utenti di lingua italiana.
Pertanto gli utenti di idioma diverso sono invitati a scrivere in italiano, oppure utilizzare un traduttore automatico, oppure postare sul forum di linguaggio proprio.
Grazie.
Hi Patrick,
I kindly inform you that this is the forum for Italian-speaking users.
Therefore users of different languages are invited to write in Italian, or use an automatic translator, or post on the forum in their own language.
Thank you.
patcan
Level 1
Level 1
Posts: 9
Joined: Tue Apr 18, 2023 6:11 am

Re: BCM4311 driver is not loaded automatically at boot

Post by patcan »

Buona sera , grazie Paolo, quando mi sono inscritto la pagina mi ha riportato nella parte inglese ed ho pensato che in relatà i forum fossero tradotti ,perdonate.
Sono un neofita linux, ho appena iniziato ed ho ancora un po di confusione.
Cortesemente ho un vecchio portatile :hp 530, Intel Celeron , con 2Gb di memoria ram su cui ho installato LMDE:
patrizio@patcan:~$ cat /etc/os-release
"PRETTY_NAME="LMDE 5 (elsie)"
NAME="LMDE"
VERSION_ID="5"
VERSION="5 (elsie)"
ID=linuxmint
ID_LIKE=debian
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide. ... en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=elsie
DEBIAN_CODENAME=bullseye

La scheda di rete non e' stata riconosciuta : comando lshw (riporto solo la wifi) :
*-network UNCLAIMED
description: Network controller
product: BCM4311 802.11b/g WLAN
vendor: Broadcom Inc. and subsidiaries
physical id: 0
bus info: pci@0000:10:00.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: latency=0
resources: memory:f0000000-f0003fff

Ho fatto un po di ricerche ed ho trovato una soluzione :
sudo apt-get remove --purge bcwl-firmware-kernel-souce
sudo apt-get install linux-firmware-nonfree
sudo modprobe b43

La spia di rete si e' accessa ed al comando : lshw
*-network
description: Wireless interface
product: BCM4311 802.11b/g WLAN
vendor: Broadcom Inc. and subsidiaries
physical id: 0
bus info: pci@0000:10:00.0
logical name: wlan0
version: 01
serial: 00:1a:73:62:0a:46
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=b43 driverversion=5.10.0-21-686 firmware=666.2 ip=192.168.1.64 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:17 memory:f0000000-f0003fff

Purtroppo al reboot il modulo non sale, devo inserirlo io a mano, quindi ho fatto altre ricerche ed ho trovato questo suggerimento :
sudo su
echo b43 >> /etc/modules
adesso ho :
patrizio@patcan:~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

b43
b43
wl

Ma al reboot il modulo continua a non installarsi-
Ho cercato di orientarmi nel filesystem ed ho trovato che nel file modprobe.d ho il brodcom-sta-dkms.confic
che riporta :
# wl module from Broadcom conflicts with the following modules:
blacklist b43
blacklist b43legacy
blacklist b44
blacklist bcma
blacklist brcm80211
blacklist brcmsmac
blacklist ssb
mentre il dkms.confi e' vuoto.

potete suggerirmi ed aiutarmi a capire come fissare il problema ?

Grazie Patrizio
jwiz
Level 4
Level 4
Posts: 347
Joined: Tue Dec 20, 2016 6:59 am

Re: BCM4311 driver is not loaded automatically at boot

Post by jwiz »

sudo apt install broadcom-sta-common broadcom-sta-dkms
Upon reboot the required broadcom wireless kernel module for your currently installed kernel will be built and loaded.
patcan
Level 1
Level 1
Posts: 9
Joined: Tue Apr 18, 2023 6:11 am

Re: BCM4311 driver is not loaded automatically at boot

Post by patcan »

Hello JWZ, thanks for your suggestion but it didn't work.
Actually I have already updated the package ;
sudo apt install broadcom-sta-common broadcom-sta-dkms
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto
broadcom-sta-common è già alla versione più recente (6.30.223.271-17).
broadcom-sta-dkms è già alla versione più recente (6.30.223.271-17).
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
Thank you
JeremyB
Level 21
Level 21
Posts: 13881
Joined: Fri Feb 21, 2014 8:17 am

Re: BCM4311 driver is not loaded automatically at boot

Post by JeremyB »

Remove those packages

Code: Select all

sudo apt remove broadcom-sta-common broadcom-sta-dkms
Reboot
Then post result from terminal for

Code: Select all

grep [[:alnum:]] /etc/modprobe.d/* | grep b43
patcan
Level 1
Level 1
Posts: 9
Joined: Tue Apr 18, 2023 6:11 am

Re: BCM4311 driver is not loaded automatically at boot

Post by patcan »

Hello Jeremy , thanks to back to me ,
I removed the brodcome package , maybe could be interesting following string :

-------- Uninstall Beginning --------
Module: broadcom-sta
Version: 6.30.223.271
Kernel: 5.10.0-12-686 (i686)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko:
- Uninstallation
- Deleting from: /lib/modules/5.10.0-12-686/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
I did reboot and in order to have wifi I need to type sudo modprobe b43 on terminal .

Following what required :
grep [[:alnum:]] /etc/modprobe.d/* | grep b43
/etc/modprobe.d/broadcom-sta-common.conf:blacklist b43
/etc/modprobe.d/broadcom-sta-common.conf:blacklist b43legacy
/etc/modprobe.d/broadcom-sta-dkms.conf:blacklist b43
/etc/modprobe.d/broadcom-sta-dkms.conf:blacklist b43legacy

Maybe can be interesting to know we have in folder modprobe.d
two files :

Brodcom-sta-common.config
Brodcom-sta-dkms.conf

On both we have :
# wl module from Broadcom conflicts with ssb
# We must blacklist the following modules:
blacklist b43
blacklist b43legacy
blacklist b44
blacklist bcma
blacklist brcm80211
blacklist brcmsmac
blacklist ssb
install wl /sbin/modprobe --ignore-install wl $CMDLINE_OPTS (this is only in common.conf)

Thanks
JeremyB
Level 21
Level 21
Posts: 13881
Joined: Fri Feb 21, 2014 8:17 am

Re: BCM4311 driver is not loaded automatically at boot

Post by JeremyB »

Code: Select all

sudo rm /etc/modprobe.d/broadcom-sta-common.conf
sudo rm /etc/modprobe.d/broadcom-sta-dkms.conf
sudo rm /etc/modprobe.d/Brodcom-sta-common.config
sudo rm /etc/modprobe.d/Brodcom-sta-dkms.conf
Reboot
patcan
Level 1
Level 1
Posts: 9
Joined: Tue Apr 18, 2023 6:11 am

Re: BCM4311 driver is not loaded automatically at boot

Post by patcan »

Hello Jeremy,
many thanks , now wifi works at boot time.
Pls do you suggest me to remove the linux-firmware-nonfree and try to install again
broadcom-sta-common broadcom-sta-dkms?
Have good time , I am going to active the solved flag.
JeremyB
Level 21
Level 21
Posts: 13881
Joined: Fri Feb 21, 2014 8:17 am

Re: [Solved] BCM4311 driver is not loaded automatically at boot

Post by JeremyB »

Don't do anything since it works now. The broadcom-sta-dkms and others don't work with your wifi and installing them will prevent the b43 driver from loading
Locked

Return to “Networking”