Broadcom WIFI install on CentOS7

Issues related to hardware problems
seangazm
Posts: 3
Joined: 2017/04/19 11:51:35

Broadcom WIFI install on CentOS7

Postby seangazm » 2017/04/19 12:39:18

Hello All,

Linux semi-newb. Trying to learn and installed CentOS7 on my HP Pavilion 500 Desktop.

Trying to complete my wireless card driver install https://wiki.centos.org/HowTos/Laptops/ ... s/Broadcom
Basically stuck at step 3a in above link.

[root@localhost 3.10.0-514.10.2.el7.x86_64]# lspci -nn | grep Broadcom
03:00.0 Network controller [0280]: Broadcom Limited BCM43228 802.11a/b/g/n [14e4:4359]

Downloaded and unzipped appropriate driver.

[sean@localhost hybrid-v35_64-nodebug-pcoem-6_30_223_271]$ pwd

/usr/local/src/hybrid-wl/hybrid-v35_64-nodebug-pcoem-6_30_223_271

[sean@localhost hybrid-v35_64-nodebug-pcoem-6_30_223_271]$ ls

built-in.o lib Makefile src

[root@localhost modules]# pwd
/lib/modules

[root@localhost modules]# ls (NOT SURE BELOW WHICH ONE TO USE , TRYING THE FIRST)

3.10.0-514.10.2.el7.x86_64 3.10.0-514.el7.x86_64

*** I am not really sure how to run step 3a. I have run it from both directories and get the below:

[root@localhost 3.10.0-514.10.2.el7.x86_64]# pwd
/lib/modules/3.10.0-514.10.2.el7.x86_64
[root@localhost 3.10.0-514.10.2.el7.x86_64]# make -C /lib/modules/3.10.0-514.10.2.el7.x86_64/build/ M= /usr/local/src/hybrid-wl/hybrid-v35_64-nodebug-pcoem-6_30_223_271/
make: Entering directory `/usr/src/kernels/3.10.0-514.10.2.el7.x86_64'
make[1]: *** No rule to make target `arch/x86/syscalls/syscall_32.tbl', needed by `arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h'. Stop.
make: *** [archheaders] Error 2
make: Leaving directory `/usr/src/kernels/3.10.0-514.10.2.el7.x86_64'


OR

[sean@localhost hybrid-v35_64-nodebug-pcoem-6_30_223_271]$ pwd
/usr/local/src/hybrid-wl/hybrid-v35_64-nodebug-pcoem-6_30_223_271
[sean@localhost hybrid-v35_64-nodebug-pcoem-6_30_223_271]$ make -C /lib/modules/3.10.0-514.10.2.el7.x86_64/build/ M= /usr/local/src/hybrid-wl/hybrid-v35_64-nodebug-pcoem-6_30_223_271/clear
make: Entering directory `/usr/src/kernels/3.10.0-514.10.2.el7.x86_64'
Makefile:641: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make: *** No rule to make target `/usr/local/src/hybrid-wl/hybrid-v35_64-nodebug-pcoem-6_30_223_271/clear'. Stop.
make: Leaving directory `/usr/src/kernels/3.10.0-514.10.2.el7.x86_64'



Hoping someone might be able to advise where I am going wrong. Have been working on this for a few weeks and checked everywhere I could find. I am sure I am not "making" the file properly but do not really know enough ...

bonedome
Posts: 18
Joined: 2017/04/22 08:11:04

Re: Broadcom WIFI install on CentOS7

Postby bonedome » 2017/04/22 08:44:53

Hello
I feel your pain of broadcom wireless.
I have BCM4313 wireless card on my dell latitude 6430, the brcmsmac driver does work for me, it's just very slow
download speed
brcmsmac=2 Mbs
hybrid-wl=35 Mbs
I used this guide https://elrepo.org/tiki/wl-kmod to make an rpm and installed with yum.
It works with older and newer kernels (3.10 versions anyway) with no need to remake every time
Only thing missing from the guide is I think you need to install kernel-headers
If you have any problems let us know.
Anyone got it working on 4.10 kernel, I got it to build but it locks up the system.

seangazm
Posts: 3
Joined: 2017/04/19 11:51:35

Re: Broadcom WIFI install on CentOS7

Postby seangazm » 2017/04/22 14:55:05

Hey! Thanks for posting!

I followed all of the steps in your link. It was helpful, but when I get to step 8 I get:

[root@localhost sean]# modprobe wl
modprobe: FATAL: Module wl not found.


In the previous step, when loading the module, it seemed to run fine:


[root@localhost sean]# rpm -Uvh /home/sean/rpmbuild/SOURCES/wl-kmod-6_30_223_271-3.el7.elrepo.nosrc.rpm

warning: /home/sean/rpmbuild/SOURCES/wl-kmod-6_30_223_271-3.el7.elrepo.nosrc.rpm: Header V4 DSA/SHA1 Signature, key ID baadae52: NOKEY
Updating / installing...
1:wl-kmod-6_30_223_271-3.el7.elrepo################################# [100%]
warning: user tindall does not exist - using root
warning: group tindall does not exist - using root
warning: user tindall does not exist - using root
warning: group tindall does not exist - using root
warning: user tindall does not exist - using root
warning: group tindall does not exist - using root
warning: user tindall does not exist - using root
warning: group tindall does not exist - using root
warning: user tindall does not exist - using root
warning: group tindall does not exist - using root




... thanks very much for your help so far. I am stumped at this point. Am I just runnign the wrong modprobe commands? None of the other ones worked either (like # modprobe -r b43 , etc)

... pretty much all of the steps seemed to work fine, but then nothing recognized. Apart from Network Manager / nmtui tool, not sure how else I can check

bonedome
Posts: 18
Joined: 2017/04/22 08:11:04

Re: Broadcom WIFI install on CentOS7

Postby bonedome » 2017/04/23 11:42:13

Hello
If rpm installed, the wl.ko should be in /lib/modules/3.10.0-514.16.1.el7.x86_64/extra/wl
if it has installed ok you might need to do

Code: Select all

insmod wl.ko
then

Code: Select all

depmod
then

Code: Select all

modprobe wl

I'm pretty sure a reboot does all the above anyway.
I can't seem to add an rpm as an attachment
If all else fails PM me and I'll email you my rpm

User avatar
TrevorH
Forum Moderator
Posts: 21158
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Broadcom WIFI install on CentOS7

Postby TrevorH » 2017/04/23 11:47:53

But the last command you listed there was the rpm --install for the nosrc rpm. That does nothing except install it ready to be built and if you stopped there then you have about another 10 steps to go.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

seangazm
Posts: 3
Joined: 2017/04/19 11:51:35

Re: Broadcom WIFI install on CentOS7

Postby seangazm » 2017/04/24 12:42:31

Thanks for above help guys. Here's what I've tried so far:

[root@localhost sean]# insmod wl.ko
insmod: ERROR: could not load module wl.ko: No such file or directory

"If rpm installed, the wl.ko should be in /lib/modules/3.10.0-514.16.1.el7.x86_64/extra/wl ... "

I browsed to /lib/modules/ but had folders with different version naming, both of them had empty /extra folders

[root@localhost modules]# ls
3.10.0-514.10.2.el7.x86_64 kabi-current kabi-rhel71 kabi-rhel73
3.10.0-514.el7.x86_64 kabi-rhel70 kabi-rhel72

[root@localhost 3.10.0-514.el7.x86_64]# ls
build modules.dep modules.symbols
extra modules.dep.bin modules.symbols.bin
kernel modules.devname source
modules.alias modules.drm updates
modules.alias.bin modules.modesetting vdso
modules.block modules.networking weak-updates
modules.builtin modules.order
modules.builtin.bin modules.softdep
[root@localhost 3.10.0-514.el7.x86_64]# cd extra/
[root@localhost extra]# ls
>

Tried a reboot a few times.
"But the last command you listed there was the rpm --install for the nosrc rpm. That does nothing except install it ready to be built and if you stopped there then you have about another 10 steps to go."

Any idea where I can look for the steps? Thanks very much for responses so far.

User avatar
TrevorH
Forum Moderator
Posts: 21158
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Broadcom WIFI install on CentOS7

Postby TrevorH » 2017/04/24 16:31:32

The ELRepo how to that you linked to - https://elrepo.org/tiki/wl-kmod - has multiple steps to be performed and if you stopped just after the rpm --install for the nosrc rpm then you need to go back and read the rest of it. The only place I see running rpm -Uvh on that page is for installing the package you just built using `rpmbuild --rebuild --define 'packager <your-name>' /<path-to-nosrc.rpm>/wl-kmod*nosrc.rpm` but your command just installed the package you just rebuilt. Go back and read the page again and run from scratch making sure you run all steps from 1 - 7 and that each step works and does not end with an error. If it completes correctly then at the end of step 6 you should have

Code: Select all

   Wrote: /home/<user>/rpmbuild/RPMS/x86_64/kmod-wl-<version>.x86_64.rpm


and it is the file that that wrote that you need to rpm -Uvh install not the nosrc SRPM that you used to build it.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

boutland
Posts: 1
Joined: 2017/08/20 08:54:58

Re: Broadcom WIFI install on CentOS7

Postby boutland » 2017/08/20 09:01:59

I have Centos 7 installed on a Macbook Pro with wireless hardware BCM4322. Tried many ideas to get it working and finally succeeded by following this:

https://wiki.centos.org/HowTos/Laptops/ ... 7701e1291f

It's quite a complex procedure and you have to follow it very carefully, but it works.