Broadcom BCM4311 network configuration

Issues related to configuring your network
Post Reply
VakoNoway
Posts: 1
Joined: 2015/04/13 17:39:00

Broadcom BCM4311 network configuration

Post by VakoNoway » 2015/04/13 18:29:12

I was reading this article: http://wiki.centos.org/HowTos/Laptops/W ... ction=show
But i'm stuck at step 3, by entering the following command for the second time: make -C /lib/modules/`uname -r`/build/ M=`pwd`

Code: Select all

[VakoNoway@localhost hybrid-wl]$ make -C /lib/modules/`uname -r`/build/ M=`pwd`
make: Map '/usr/src/kernels/3.10.0-229.el7.x86_64' wordt binnengegaan
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  CC [M]  /usr/local/src/hybrid-wl/src/wl/sys/wl_linux.o
  CC [M]  /usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.o
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c: In functie ‘wl_cfg80211_get_key’:
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:1390:2: let op: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [enabled by default]
  memcpy(params.key, key.data, params.key_len);
  ^
In file included from /usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/string.h:4:0,
                 from include/linux/string.h:17,
                 from include/linux/bitmap.h:8,
                 from include/linux/cpumask.h:11,
                 from /usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/cpumask.h:4,
                 from /usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/msr.h:10,
                 from /usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/processor.h:20,
                 from /usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/thread_info.h:22,
                 from include/linux/thread_info.h:54,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/linux/stat.h:18,
                 from include/linux/module.h:10,
                 from /usr/local/src/hybrid-wl/src/include/linuxver.h:40,
                 from /usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:26:
/usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/string_64.h:32:14: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern void *memcpy(void *to, const void *from, size_t len);
              ^
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c: Op bovenste niveau:
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:1778:2: let op: initialization from incompatible pointer type [enabled by default]
  .get_station = wl_cfg80211_get_station,
  ^
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:1778:2: let op: (near initialization for ‘wl_cfg80211_ops.get_station’) [enabled by default]
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c: In functie ‘wl_alloc_wdev’:
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:1873:22: fout: incompatible types when assigning to type ‘const struct wiphy_wowlan_support *’ from type ‘struct wiphy_wowlan_support’
  wdev->wiphy->wowlan = wl_wowlan_support;
                      ^
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c: In functie ‘wl_notify_connect_status’:
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:2074:4: let op: passing argument 3 of ‘cfg80211_ibss_joined’ makes pointer from integer without a cast [enabled by default]
    cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, GFP_KERNEL);
    ^
In file included from /usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:33:0:
include/net/cfg80211.h:4002:6: note: expected ‘struct ieee80211_channel *’ but argument is of type ‘unsigned int’
 void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid,
      ^
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:2074:4: fout: te weinig argumenten voor functie ‘cfg80211_ibss_joined’
    cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, GFP_KERNEL);
    ^
In file included from /usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:33:0:
include/net/cfg80211.h:4002:6: note: declared here
 void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid,
      ^
make[1]: *** [/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.o] Fout 1
make: *** [_module_/usr/local/src/hybrid-wl] Fout 2
make: Map '/usr/src/kernels/3.10.0-229.el7.x86_64' wordt verlaten
(CentOS 7, Dutch.)
Drivers: http://www.broadcom.com/support/802.11/linux_sta.php

mesinhosting
Posts: 1
Joined: 2015/04/17 12:18:20

Re: Broadcom BCM4311 network configuration

Post by mesinhosting » 2015/04/17 12:23:45

seem like you might have to down great to latest centos 6

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Broadcom BCM4311 network configuration

Post by toracat » 2015/04/17 15:38:59

VakoNoway wrote:I was reading this article: http://wiki.centos.org/HowTos/Laptops/W ... ction=show
I highly recommend that you try following the procedure referenced at the top of that wiki article:

http://elrepo.org/tiki/wl-kmod
CentOS Forum FAQ

deunix
Posts: 4
Joined: 2015/04/11 13:32:24

Re: Broadcom BCM4311 network configuration

Post by deunix » 2015/04/18 09:02:25

Hi Linux Experts,

VakoNoway is right .. I too get the error while installing BCM43142 Driver...I followed below links..

http://wiki.centos.org/HowTos/Laptops/Wireless/Broadcom

[root@localhost hybrid-wl]# make -C /lib/modules/`uname -r`/build/ M=`pwd`
make: Entering directory `/usr/src/kernels/3.10.0-229.el7.x86_64'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
CC [M] /usr/local/src/hybrid-wl/src/wl/sys/wl_linux.o
CC [M] /usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.o
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_cfg80211_get_key’:
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:1390:2: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [enabled by default]
memcpy(params.key, key.data, params.key_len);
^
In file included from /usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/string.h:4:0,
from include/linux/string.h:17,
from include/linux/bitmap.h:8,
from include/linux/cpumask.h:11,
from /usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/cpumask.h:4,
from /usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/msr.h:10,
from /usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/processor.h:20,
from /usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/thread_info.h:22,
from include/linux/thread_info.h:54,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from /usr/local/src/hybrid-wl/src/include/linuxver.h:40,
from /usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:26:
/usr/src/kernels/3.10.0-229.el7.x86_64/arch/x86/include/asm/string_64.h:32:14: note: expected ‘void *’ but argument is of type ‘const u8 *’
extern void *memcpy(void *to, const void *from, size_t len);
^
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c: At top level:
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:1781:2: warning: initialization from incompatible pointer type [enabled by default]
.get_station = wl_cfg80211_get_station,
^
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:1781:2: warning: (near initialization for ‘wl_cfg80211_ops.get_station’) [enabled by default]
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_alloc_wdev’:
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:1876:22: error: incompatible types when assigning to type ‘const struct wiphy_wowlan_support *’ from type ‘struct wiphy_wowlan_support’
wdev->wiphy->wowlan = wl_wowlan_support;
^
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_notify_connect_status’:
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:2077:4: warning: passing argument 3 of ‘cfg80211_ibss_joined’ makes pointer from integer without a cast [enabled by default]
cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, GFP_KERNEL);
^
In file included from /usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:33:0:
include/net/cfg80211.h:4002:6: note: expected ‘struct ieee80211_channel *’ but argument is of type ‘unsigned int’
void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid,
^
/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:2077:4: error: too few arguments to function ‘cfg80211_ibss_joined’
cfg80211_ibss_joined(ndev, (u8 *)&wl->bssid, GFP_KERNEL);
^
In file included from /usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.c:33:0:
include/net/cfg80211.h:4002:6: note: declared here
void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid,
^
make[1]: *** [/usr/local/src/hybrid-wl/src/wl/sys/wl_cfg80211_hybrid.o] Error 1
make: *** [_module_/usr/local/src/hybrid-wl] Error 2
make: Leaving directory `/usr/src/kernels/3.10.0-229.el7.x86_64'


@toracat - I re-installed Linux and tried with below link also...

http://elrepo.org/tiki/wl-kmod

But , not getting exact which command i need to shoot...As i m new to it..can you please be specific in command / syntax of it..

I got stuck step 5..

I have CentOS 7 with 1503 Release....the latest one..

Thanks,
Devang

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Broadcom BCM4311 network configuration

Post by toracat » 2015/04/18 12:13:14

@deunix

At step 3, you download a nosrc.rpm file. Let's say you copied that file to the /tmp directory. Then the command at step 5 will look like:

rpmbuild --rebuild /tmp/wl-kmod-6_30_223_248-3.el7.elrepo.nosrc.rpm

You can omit other options to the rpmbuild command for now.
CentOS Forum FAQ

deunix
Posts: 4
Joined: 2015/04/11 13:32:24

Re: Broadcom BCM4311 network configuration

Post by deunix » 2015/05/07 17:29:39

@ Tomcat : your solution worked like laser light to my problem... :lol:

mushthaque
Posts: 3
Joined: 2015/05/23 08:42:16

Re: Broadcom BCM4311 network configuration

Post by mushthaque » 2015/05/23 08:50:55

Hi,

Thanks for all.

this works perfectly with BCM 4313 lenovo 580.

:)

mushthaque
Posts: 3
Joined: 2015/05/23 08:42:16

Re: Broadcom BCM4311 network configuration

Post by mushthaque » 2015/05/26 16:16:23

Hi All,

with regard to my successful wifi setup with the guide from http://elrepo.org/tiki/wl-kmod ;

I did a yum update and kernel upgraded to the version 3.10.0-229.1.2.el7.x86_64 ; after update wifi is not detected.

So I try to setup wifi for above mentioned new kernel version followed the same steps http://elrepo.org/tiki/wl-kmod using a different folder (rpmbuild1).

at the final step got an error as below

[root@localhost ~]# rpm -Uvh /home/user/rpmbuild1/RPMS/x86_64/kmod-wl-6_30_223_248-3.el7.local.x86_64.rpm
Preparing... ################################# [100%]
package kmod-wl-6_30_223_248-3.el7.local.x86_64 is already installed

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

I see the new rpmbuild was not updated since its already installed.

Any one fixed the issue with kernel version 3.10.0-229.1.2.el7.x86_64 ; please update.

booting with kernel version 3.10.0-123.el7.x86_64 wifi is working.

Regards,

mushthaque
Posts: 3
Joined: 2015/05/23 08:42:16

Re: Broadcom BCM4311 network configuration

Post by mushthaque » 2015/06/25 07:57:46

hi,

this is just to follow up since a month, i am still searching to find a solution to kernal version 3.10.0-229.1.2.el7.x86_64,

any one found a solution to this? please share.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Broadcom BCM4311 network configuration

Post by aks » 2015/06/25 16:27:45

Don't you just have to recompile for the new kernel?

Post Reply