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

 

 

 

[SOLVED] Lost wifi after update | Broadcom BCM4360

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
cuducos
Posts: 2
Joined: 2018-01-13 15:12

[SOLVED] Lost wifi after update | Broadcom BCM4360

#1 Post by cuducos »

Hi all,

My MacBook Pro (2014) was working fine with Debian (sid) until I decided to update it. After that I lost my wifi.

I installed it the first time (before the update) following Debian Wiki, mainly bcm43xx and wl pages. I tried to repeat the steps but I got this error when trying to reinstall broadcom-sta-dkms:

Code: Select all

Setting up broadcom-sta-dkms (6.30.223.271-5) ...
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 4.14.0-3-amd64
Building initial module for 4.14.0-3-amd64
Error! Bad return status for module build on kernel: 4.14.0-3-amd64 (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
The adapter is still listed in lspci -k, but without wl:

Code: Select all

03:00.0 Network controller: Broadcom Limited BCM4360 802.11ac Wireless Network Adapter (rev 03)
        Subsystem: Apple Inc. BCM4360 802.11ac Wireless Network Adapter
        Kernel modules: bcma
And modprobe is faling too:

Code: Select all

$ sudo modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/4.14.0-3-amd64
In this forum I've found a similar problem with a HP computer. From there I tried m-a a-i -t broadcom-sta-source but it also fails. It's a long output ending with:

Code: Select all

/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.c: In function ‘wl_monitor’:
/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.c:2915:10: error: ‘struct net_device’ has no member named ‘last_rx’
  skb->dev->last_rx = jiffies;
          ^~
/usr/src/linux-headers-4.14.0-3-common/scripts/Makefile.build:319: recipe for target '/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.o' failed
make[6]: *** [/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.o] Error 1
/usr/src/linux-headers-4.14.0-3-common/Makefile:1525: recipe for target '_module_/usr/src/modules/broadcom-sta' failed
make[5]: *** [_module_/usr/src/modules/broadcom-sta] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[4]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/usr/src/linux-headers-4.14.0-3-amd64'
Makefile:177: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/modules/broadcom-sta'
debian/rules:16: recipe for target 'binary-modules' failed
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory '/usr/src/modules/broadcom-sta'
/usr/share/modass/include/common-rules.make:56: recipe for target 'kdist_build' failed
make: *** [kdist_build] Error 2
BUILD FAILED!
See /var/cache/modass/broadcom-sta-source.buildlog.4.14.0-3-amd64.1515859049 for details.
Build failed. Press Return to continue...
I've also found bug report that might be related but I cannot confirm if is that really my case – if so, is there any fix or just wait for maintainers? (I doubt I can help with my developers skill, but if Python can help just LMK).

Do any of you have an idea about what I might be missing? Or is it just a bug that regular users like me cannot tackle?

Many thanks,
Last edited by cuducos on 2018-01-13 18:40, edited 1 time in total.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 85 times

Re: Lost wifi after update | Broadcom BCM4360 | Kernel 4.14.

#2 Post by 4D696B65 »

What did this say?

Code: Select all

See /var/cache/modass/broadcom-sta-source.buildlog.4.14.0-3-amd64.1515859049 for details
Does wifi work with the older kernel?

cuducos
Posts: 2
Joined: 2018-01-13 15:12

Re: Lost wifi after update | Broadcom BCM4360 | Kernel 4.14.

#3 Post by cuducos »

Thanks for the reply 4D696B65.

The log weren't helpful but I pasted it here just out of curiosity.

Fortunately I've found the solution. There was one line in /etc/apt/sources.list pointing to stretch not sid. I changed it and worked (it was added follwoing the wl Debian wiki page):

Before:

Code: Select all

deb http://httpredir.debian.org/debian/ stretch main contrib non-free
After:

Code: Select all

deb http://httpredir.debian.org/debian/ sid main contrib non-free
---

/var/cache/modass/broadcom-sta-source.buildlog.4.14.0-3-amd64.1515859049

Code: Select all

for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/4.14.0-3-amd64/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/4.14.0-3-amd64/g ;s/#KVERS#/4.14.0-3-amd64/g ; s/_KVERS_/4.14.0-3-amd64/g ; s/##KDREV##/4.14.12-2/g ; s/#KDREV#/4.14.12-2/g ; s/_KDREV_/4.14.12-2/g  ' < $templ > ${templ%.modules.in}; \
  done
dh_clean
/usr/bin/make clean "KBUILD_DIR=/lib/modules/4.14.0-3-amd64/build" "KVER=4.14.0-3-amd64"
make[1]: Entering directory '/usr/src/modules/broadcom-sta'
KBUILD_NOPEDANTIC=1 make -C /lib/modules/4.14.0-3-amd64/build M=`pwd` clean
make[2]: Entering directory '/usr/src/linux-headers-4.14.0-3-amd64'
CFG80211 API is prefered for this kernel version
make[2]: Leaving directory '/usr/src/linux-headers-4.14.0-3-amd64'
make[1]: Leaving directory '/usr/src/modules/broadcom-sta'
/usr/bin/make  -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory '/usr/src/modules/broadcom-sta'
for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/4.14.0-3-amd64/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/4.14.0-3-amd64/g ;s/#KVERS#/4.14.0-3-amd64/g ; s/_KVERS_/4.14.0-3-amd64/g ; s/##KDREV##/4.14.12-2/g ; s/#KDREV#/4.14.12-2/g ; s/_KDREV_/4.14.12-2/g  ' < $templ > ${templ%.modules.in}; \
  done
dh_clean
/usr/bin/make clean "KBUILD_DIR=/lib/modules/4.14.0-3-amd64/build" "KVER=4.14.0-3-amd64"
make[2]: Entering directory '/usr/src/modules/broadcom-sta'
KBUILD_NOPEDANTIC=1 make -C /lib/modules/4.14.0-3-amd64/build M=`pwd` clean
make[3]: Entering directory '/usr/src/linux-headers-4.14.0-3-amd64'
CFG80211 API is prefered for this kernel version
/usr/src/modules/broadcom-sta/Makefile:85: Neither CFG80211 nor Wireless Extension is enabled in kernel
make[3]: Leaving directory '/usr/src/linux-headers-4.14.0-3-amd64'
make[2]: Leaving directory '/usr/src/modules/broadcom-sta'
make[1]: Nothing to be done for 'kdist_config'.
dh_testdir
dh_testroot
dh_prep
# Build and install the module
/usr/bin/make "KBUILD_DIR=/lib/modules/4.14.0-3-amd64/build" "KVER=4.14.0-3-amd64"
make[2]: Entering directory '/usr/src/modules/broadcom-sta'
KBUILD_NOPEDANTIC=1 make -C /lib/modules/4.14.0-3-amd64/build M=`pwd`
make[3]: Entering directory '/usr/src/linux-headers-4.14.0-3-amd64'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
  AR      /usr/src/modules/broadcom-sta/built-in.o
  CC [M]  /usr/src/modules/broadcom-sta/src/shared/linux_osl.o
/usr/src/modules/broadcom-sta/src/shared/linux_osl.c: In function ‘osl_os_get_image_block’:
/usr/src/modules/broadcom-sta/src/shared/linux_osl.c:1083:26: warning: passing argument 2 of ‘kernel_read’ makes pointer from integer without a cast [-Wint-conversion]
  rdlen = kernel_read(fp, fp->f_pos, buf, len);
                          ^~
In file included from /usr/src/linux-headers-4.14.0-3-common/include/linux/huge_mm.h:7:0,
                 from /usr/src/linux-headers-4.14.0-3-common/include/linux/mm.h:454,
                 from /usr/src/modules/broadcom-sta/src/include/linuxver.h:65,
                 from /usr/src/modules/broadcom-sta/src/shared/linux_osl.c:25:
/usr/src/linux-headers-4.14.0-3-common/include/linux/fs.h:2833:16: note: expected ‘void *’ but argument is of type ‘loff_t {aka long long int}’
 extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *);
                ^~~~~~~~~~~
/usr/src/modules/broadcom-sta/src/shared/linux_osl.c:1083:37: warning: passing argument 3 of ‘kernel_read’ makes integer from pointer without a cast [-Wint-conversion]
  rdlen = kernel_read(fp, fp->f_pos, buf, len);
                                     ^~~
In file included from /usr/src/linux-headers-4.14.0-3-common/include/linux/huge_mm.h:7:0,
                 from /usr/src/linux-headers-4.14.0-3-common/include/linux/mm.h:454,
                 from /usr/src/modules/broadcom-sta/src/include/linuxver.h:65,
                 from /usr/src/modules/broadcom-sta/src/shared/linux_osl.c:25:
/usr/src/linux-headers-4.14.0-3-common/include/linux/fs.h:2833:16: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘char *’
 extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *);
                ^~~~~~~~~~~
/usr/src/modules/broadcom-sta/src/shared/linux_osl.c:1083:42: warning: passing argument 4 of ‘kernel_read’ makes pointer from integer without a cast [-Wint-conversion]
  rdlen = kernel_read(fp, fp->f_pos, buf, len);
                                          ^~~
In file included from /usr/src/linux-headers-4.14.0-3-common/include/linux/huge_mm.h:7:0,
                 from /usr/src/linux-headers-4.14.0-3-common/include/linux/mm.h:454,
                 from /usr/src/modules/broadcom-sta/src/include/linuxver.h:65,
                 from /usr/src/modules/broadcom-sta/src/shared/linux_osl.c:25:
/usr/src/linux-headers-4.14.0-3-common/include/linux/fs.h:2833:16: note: expected ‘loff_t * {aka long long int *}’ but argument is of type ‘int’
 extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *);
                ^~~~~~~~~~~
  CC [M]  /usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.o
/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.c: In function ‘wl_pci_probe’:
/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.c:774:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  if ((val & 0x0000ff00) != 0)
  ^~
/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.c:776:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   bar1_size = pci_resource_len(pdev, 2);
   ^~~~~~~~~
/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.c: In function ‘wl_monitor’:
/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.c:2915:10: error: ‘struct net_device’ has no member named ‘last_rx’
  skb->dev->last_rx = jiffies;
          ^~
/usr/src/linux-headers-4.14.0-3-common/scripts/Makefile.build:319: recipe for target '/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.o' failed
make[6]: *** [/usr/src/modules/broadcom-sta/src/wl/sys/wl_linux.o] Error 1
/usr/src/linux-headers-4.14.0-3-common/Makefile:1525: recipe for target '_module_/usr/src/modules/broadcom-sta' failed
make[5]: *** [_module_/usr/src/modules/broadcom-sta] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[4]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/usr/src/linux-headers-4.14.0-3-amd64'
Makefile:177: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/modules/broadcom-sta'
debian/rules:16: recipe for target 'binary-modules' failed
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory '/usr/src/modules/broadcom-sta'
/usr/share/modass/include/common-rules.make:56: recipe for target 'kdist_build' failed
make: *** [kdist_build] Error 2

Post Reply