You are not logged in.
Hello everybody
I have Dell inspiron 3521 and it has a broadcom wifi , when I installed broadcom-sta-dkms package in the old kernel 3.16.0-4-amd64 it built wl.ko dkms module normally and WIFI worked fine but after update and re-install the same package it can't build the module in new kernel 4.6.0-0.bpo.1-amd64 and this is what I get:
Building initial module for 4.6.0-0.bpo.1-amd64
Error! Bad return status for module build on kernel: 4.6.0-0.bpo.1-amd64 (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.248/build/make.log for more information.
Processing triggers for initramfs-tools (0.120+deb8u2) ...
and this is log file:
DKMS make.log for broadcom-sta-6.30.223.248 for kernel 4.6.0-0.bpo.1-amd64 (x86_64)
ج أغس 19 03:12:39 CET 2016
/bin/sh: 1: [: Illegal number:
/bin/sh: 1: [: Illegal number:
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
KBUILD_NOPEDANTIC=1 make -C /lib/modules/4.6.0-0.bpo.1-amd64/build M=`pwd`
make[1]: Entering directory '/usr/src/linux-headers-4.6.0-0.bpo.1-amd64'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
LD /var/lib/dkms/broadcom-sta/6.30.223.248/build/built-in.o
CC [M] /var/lib/dkms/broadcom-sta/6.30.223.248/build/src/shared/linux_osl.o
CC [M] /var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_linux.o
CC [M] /var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_iw.o
CC [M] /var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.o
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_cfg80211_get_key’:
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:1390:9: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type
memcpy(params.key, key.data, params.key_len);
^
In file included from /usr/src/linux-headers-4.6.0-0.bpo.1-common/arch/x86/include/asm/string.h:4:0,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/string.h:18,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/bitmap.h:8,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/cpumask.h:11,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/arch/x86/include/asm/cpumask.h:4,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/arch/x86/include/asm/cpufeature.h:4,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/arch/x86/include/asm/thread_info.h:52,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/thread_info.h:54,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/preempt.h:59,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/spinlock.h:50,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/seqlock.h:35,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/time.h:5,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/stat.h:18,
from /usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/module.h:10,
from /var/lib/dkms/broadcom-sta/6.30.223.248/build/src/include/linuxver.h:40,
from /var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:26:
/usr/src/linux-headers-4.6.0-0.bpo.1-common/arch/x86/include/asm/string_64.h:30:14: note: expected ‘void *’ but argument is of type ‘const u8 *’
extern void *memcpy(void *to, const void *from, size_t len);
^
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_cfg80211_get_station’:
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:1444:20: error: ‘STATION_INFO_TX_BITRATE’ undeclared (first use in this function)
sinfo->filled |= STATION_INFO_TX_BITRATE;
^
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:1444:20: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:1457:20: error: ‘STATION_INFO_SIGNAL’ undeclared (first use in this function)
sinfo->filled |= STATION_INFO_SIGNAL;
^
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c: At top level:
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:1778:2: warning: initialization from incompatible pointer type
.get_station = wl_cfg80211_get_station,
^
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:1778:2: warning: (near initialization for ‘wl_cfg80211_ops.get_station’)
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_inform_single_bss’:
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:2013:9: error: incompatible type for argument 3 of ‘cfg80211_inform_bss’
cbss = cfg80211_inform_bss(wiphy, channel, (const u8 *)(bi->BSSID.octet),
^
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.6.0-0.bpo.1-common/include/net/cfg80211.h:4135:1: note: expected ‘enum cfg80211_bss_frame_type’ but argument is of type ‘const u8 *’
cfg80211_inform_bss(struct wiphy *wiphy,
^
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:2015:3: warning: passing argument 7 of ‘cfg80211_inform_bss’ makes integer from pointer without a cast
(const u8 *)notify_ie, notify_ielen, signal, GFP_KERNEL);
^
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.6.0-0.bpo.1-common/include/net/cfg80211.h:4135:1: note: expected ‘u16’ but argument is of type ‘const u8 *’
cfg80211_inform_bss(struct wiphy *wiphy,
^
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:2015:26: warning: passing argument 8 of ‘cfg80211_inform_bss’ makes pointer from integer without a cast
(const u8 *)notify_ie, notify_ielen, signal, GFP_KERNEL);
^
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.6.0-0.bpo.1-common/include/net/cfg80211.h:4135:1: note: expected ‘const u8 *’ but argument is of type ‘size_t’
cfg80211_inform_bss(struct wiphy *wiphy,
^
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:2013:9: error: too few arguments to function ‘cfg80211_inform_bss’
cbss = cfg80211_inform_bss(wiphy, channel, (const u8 *)(bi->BSSID.octet),
^
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.6.0-0.bpo.1-common/include/net/cfg80211.h:4135:1: note: declared here
cfg80211_inform_bss(struct wiphy *wiphy,
^
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_notify_connect_status’:
/var/lib/dkms/broadcom-sta/6.30.223.248/build/src/wl/sys/wl_cfg80211_hybrid.c:2050:4: error: too few arguments to function ‘cfg80211_disconnected’
cfg80211_disconnected(ndev, 0, NULL, 0, GFP_KERNEL);
^
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.6.0-0.bpo.1-common/include/net/cfg80211.h:4694:6: note: declared here
void cfg80211_disconnected(struct net_device *dev, u16 reason,
^
/usr/src/linux-headers-4.6.0-0.bpo.1-common/scripts/Makefile.build:296: 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.6.0-0.bpo.1-common/Makefile:1446: 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:146: 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.6.0-0.bpo.1-amd64'
Makefile:158: recipe for target 'all' failed
make: *** [all] Error 2
Thanks
Offline
On my dell laptop I just installed the firmware-b43-installer using apt-get (or synaptic) and it works. I have used it with both kernels before and it worked.
HTH
Dai
Online
Hi Dai
Thank you for reply
my WIFI is Broadcom BCM43142 and I don't think it is like yours because I installed the package firmware-b43-installer and it is not working in both kernels but when I install this broadcom-sta-dkms it works in old kernel only.
Offline
Yes you are right, I have a different chipset, I think (from memory) mine is 4312. You could check your device id on THIS PAGE, it might have some information / links that could be useful to you. Other than that I would ask if it is really necessary to have the newer kernel, I usually just stick with the stable one unless I'm doing testing.
EDIT: Also did you install all the headers for the new kernel before compiling
Last edited by Dai_trying (2016-08-19 14:47)
Online
Thank you my friend I appreciate your help.
Yes it is necessary using the newer kernel because it updated automatically.
In other distributions my WIFI is working in new kernels but in Q4OS is strange , and yes all headers updated too.
Offline
I'm not sure if this would work, but if you have the firmware from the stable kernel available would it be possible to simply copy the firmware to /usr/lib/firmware/b43 and see if it just picks it up? like I say I am not sure it would work but I have used this method when doing offline (debian) installs and to get the wireless working I just keep this directory (that I backed up) and copy it across to the firmware directory and reboot. It could be worth a try.
Online