Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Wifi driver BCM4352

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Quency
Posts: 3
Joined: 2017-07-01 11:30

Wifi driver BCM4352

#1 Post by Quency »

Hi,

I'm struggling with the configuration of my wifi driver. As i'm new on linux and debian, i just tried to follow tutorial but none worked.

Here is my wifi card:

Code: Select all

# lspci -k | grep -i network -A 2
Network controller: Broadcom Limited BCM4352 802.11ac Wireless Network Adapter (rev 03)
	Subsystem: Dell BCM4352 802.11ac Wireless Network Adapter
	Kernel modules: bcma
As i'm currently with a wired connection, I don't know how to enable eth0 (am I right?):

Code: Select all

/sbin/ifconfig
enx1491823c1d1a: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.56  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 2a02:a03f:1cb4:bd00:920:facf:b8f5:d462  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::1691:82ff:fe3c:1d1a  prefixlen 64  scopeid 0x20<link>
        inet6 2a02:a03f:1cb4:bd00:1691:82ff:fe3c:1d1a  prefixlen 64  scopeid 0x0<global>
        ether 14:91:82:3c:1d:1a  txqueuelen 1000  (Ethernet)
        RX packets 26955  bytes 21437224 (20.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17589  bytes 2117254 (2.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 168  bytes 13356 (13.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 168  bytes 13356 (13.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
So I tried to install: "sudo apt-get install bcmwl-kernel-source" but keep failing.

Code: Select all

E: Unable to locate package bcmwl-kernel-source
Here's an other tutorial tried.
https://wiki.debian.org/wl

Step that fail and result:

Code: Select all

apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(unamesed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-amd64 is already the newest version (4.9+80).
linux-image-amd64 is already the newest version (4.9+80).
The following NEW packages will be installed:
  broadcom-sta-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2,170 kB of archives.
After this operation, 14.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package broadcom-sta-dkms.
(Reading database ... 132379 files and directories currently installed.)
Preparing to unpack .../broadcom-sta-dkms_6.30.223.248-3_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.248-3) ...
Setting up broadcom-sta-dkms (6.30.223.248-3) ...
Loading new broadcom-sta-6.30.223.248 DKMS files...
Building for 4.9.0-3-amd64
Building initial module for 4.9.0-3-amd64
Error! Bad return status for module build on kernel: 4.9.0-3-amd64 (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.248/build/make.log for more information.
And the make.log:
In file included from /var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:33:0:
/usr/src/linux-headers-4.9.0-3-common/include/net/cfg80211.h:4304:6: note: expected ‘struct cfg80211_scan_info *’ but argument is of type ‘int’
void cfg80211_scan_done(struct cfg80211_scan_request *request,
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-3-common/scripts/Makefile.build:298: recipe for target '/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.o' failed
make[4]: *** [/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.o] Error 1
/usr/src/linux-headers-4.9.0-3-common/Makefile:1507: recipe for target '_module_/var/lib/dkms/broadcom-sta/6.30.223.248/build' failed
make[3]: *** [_module_/var/lib/dkms/broadcom-sta/6.30.223.248/build] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-3-amd64'
Makefile:158: recipe for target 'all' failed
make: *** [all] Error 2

What do I need to do ? I'm lost.

Thanks a lot.

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Wifi driver BCM4352

#2 Post by orythem27 »

Quency wrote:Setting up broadcom-sta-dkms (6.30.223.248-3) ...
Building for 4.9.0-3-amd64
Are you on Jessie? Version 6.30.223.248 might have issues with 4.9 kernel. Try broadcom-sta-dkms (6.30.223.271-5~bpo8+1) from jessie-backports. Purge broadcom-sta-dkms (6.30.223.248-3) first.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Wifi driver BCM4352

#3 Post by stevepusser »

It appears that the thing possibly is recognized by the kernel and uses a built-in "bcma" driver, so it might just be a matter of installing the right Broadcom firmware package for the 4.9 kernel. However, the wiki says to use the broadcom-sta driver, so I am a bit confused. Also, installing inxi and giving us the output of

Code: Select all

inxi -r
Would show if the OP's repositories are sane.
MX Linux packager and developer

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Wifi driver BCM4352

#4 Post by orythem27 »

It seems that this model is supported neither by b43 nor brcm80211, leaving us with the only option 'wl'.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Wifi driver BCM4352

#5 Post by stevepusser »

OK, but I'd still like to see the repository list.
MX Linux packager and developer

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Wifi driver BCM4352

#6 Post by stevepusser »

OK, but I'd still like to see the repository list, since that looks like a Stretch kernel with a Jessie broadcom-sta-dkms.
MX Linux packager and developer

Quency
Posts: 3
Joined: 2017-07-01 11:30

Re: Wifi driver BCM4352

#7 Post by Quency »

Hi,

Finally, did it thanks to orythem27. I installed broadcom-sta-dkms (6.30.223.271-5~bpo8+1) and everything run perfectly. Thank you very much. But I'm not on jessie, this is why it was strange for me.

Code: Select all

# lsb_release -da
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 9.0 (stretch)
Release:	9.0
Codename:	stretch

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Wifi driver BCM4352

#8 Post by orythem27 »

Quency wrote: But I'm not on jessie, this is why it was strange for me.
Description: Debian GNU/Linux 9.0 (stretch)
OK, maybe I shouldn't tell you to use jessie-backports staightaway when it's not clear which distribution you are using. It do seems that your system might be in some kind of "mixed" state, if this setup is not on purpose, then you should follow @stevepusser 's advice and examine the repos.

Although in this case a broadcom-sta-dkms from jessie-bpo won't cause further chaos, the mixed setup could cause the whole system to implode at any time.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Wifi driver BCM4352

#9 Post by stevepusser »

At first he was just getting the Jessie package on Stretch, so the sources have to be insane in the membrane.
MX Linux packager and developer

Quency
Posts: 3
Joined: 2017-07-01 11:30

Re: Wifi driver BCM4352

#10 Post by Quency »

Hi,

Well, I'm really sorry, this is my bad. I did add this

Code: Select all

deb http://httpredir.debian.org/debian/ jessie main contrib non-free
Without replacing "jessie" by "stretch", which caused the error. I removed it and successfully reinstalled the stretch packages.

I'm stupid.... Well nevermind, Thank you for all.

Post Reply