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

 

 

 

broadcom-sta-dkms builds failing with kernel version 4.17

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
vinkna
Posts: 3
Joined: 2018-08-31 19:18

broadcom-sta-dkms builds failing with kernel version 4.17

#1 Post by vinkna »

Hello,

I installed my new wireless adapter, using lspci I determined it uses the Broadcom 4360 chipset. https://wiki.debian.org/wl shows that this chipset is compatible with the broadcom-sta-dkms firmware. I followed the steps on that page, however when I attempt to install the firmware using

Code: Select all

sudo apt install broadcom-sta-dkms
I get the following output:

Code: Select all

Unpacking broadcom-sta-dkms (6.30.223.271-5) ...
Setting up broadcom-sta-dkms (6.30.223.271-5) ...
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 4.17.0-0.bpo.1-amd64 4.17.0-0.bpo.3-amd64
Building initial module for 4.17.0-0.bpo.1-amd64
Error! Bad return status for module build on kernel: 4.17.0-0.bpo.1-amd64 (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
Doing as it says, the make log contains the following:

Code: Select all

DKMS make.log for broadcom-sta-6.30.223.271 for kernel 4.17.0-0.bpo.1-amd64 (x86_64)
Fri Aug 31 14:53:13 CDT 2018
/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.17.0-0.bpo.1-amd64/build M=`pwd`
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[1]: Entering directory '/usr/src/linux-headers-4.17.0-0.bpo.1-amd64'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.o
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c: In function ‘osl_os_get_image_block’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/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.17.0-0.bpo.1-common/include/linux/huge_mm.h:7:0,
                 from /usr/src/linux-headers-4.17.0-0.bpo.1-common/include/linux/mm.h:477,
                 from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:65,
                 from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:25:
/usr/src/linux-headers-4.17.0-0.bpo.1-common/include/linux/fs.h:2855: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 *);
                ^~~~~~~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/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.17.0-0.bpo.1-common/include/linux/huge_mm.h:7:0,
                 from /usr/src/linux-headers-4.17.0-0.bpo.1-common/include/linux/mm.h:477,
                 from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:65,
                 from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:25:
/usr/src/linux-headers-4.17.0-0.bpo.1-common/include/linux/fs.h:2855: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 *);
                ^~~~~~~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/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.17.0-0.bpo.1-common/include/linux/huge_mm.h:7:0,
                 from /usr/src/linux-headers-4.17.0-0.bpo.1-common/include/linux/mm.h:477,
                 from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:65,
                 from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:25:
/usr/src/linux-headers-4.17.0-0.bpo.1-common/include/linux/fs.h:2855: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]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_pci_probe’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:774:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  if ((val & 0x0000ff00) != 0)
  ^~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:776:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
   bar1_size = pci_resource_len(pdev, 2);
   ^~~~~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_init_timer’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:2352:2: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
  init_timer(&t->timer);
  ^~~~~~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:2353:10: error: ‘struct timer_list’ has no member named ‘data’
  t->timer.data = (ulong) t;
          ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:2354:20: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  t->timer.function = wl_timer;
                    ^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_monitor’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:2915:10: error: ‘struct net_device’ has no member named ‘last_rx’
  skb->dev->last_rx = jiffies;
          ^~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.17.0-0.bpo.1-common/scripts/Makefile.build:317: recipe for target '/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o' failed
make[4]: *** [/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o] Error 1
/usr/src/linux-headers-4.17.0-0.bpo.1-common/Makefile:1585: recipe for target '_module_/var/lib/dkms/broadcom-sta/6.30.223.271/build' failed
make[3]: *** [_module_/var/lib/dkms/broadcom-sta/6.30.223.271/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.17.0-0.bpo.1-amd64'
Makefile:177: recipe for target 'all' failed
make: *** [all] Error 2
I have attempted this first using linux image 4.16.0-0.bpo.1, but I received a different error saying that the header files were not installed. Those header files were not present in the stretch-backports repository, so I installed linux image 4.17.0-0.bpo.1 and bpo.3 with the corresponding headers, but both versions give the above error. Additionally, I have version 4.9.0-8 installed, however when I boot into that kernel version from grub I'm left with a black screen, which I believe is due to my amdgpu firmware, since the computer seems otherwise to be working.

Any help would be greatly appreciated. I would be willing to downgrade my kernel version if I could make my graphics card work with it. But as of now I have an ethernet connection, and having a working gpu is more important than the wlan card. Still, I would like to have the wireless firmware set up so that in the near future when I may not have ethernet available, I will have Wi-Fi capabilities.

Thanks, and let me know if any more information is needed. I'm relatively new to Debian (and Linux) and am trying to avoid doing anything too stupid

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: broadcom-sta-dkms builds failing with kernel version 4.1

#2 Post by Wheelerof4te »

You need broadcom-sta-dkms package from Stretch backports for the kernel from backports. Make sure you install correct linux headers, too.

vinkna
Posts: 3
Joined: 2018-08-31 19:18

Re: broadcom-sta-dkms builds failing with kernel version 4.1

#3 Post by vinkna »

Wheelerof4te wrote:You need broadcom-sta-dkms package from Stretch backports for the kernel from backports. Make sure you install correct linux headers, too.
Thanks for your reply. I have been attempting to install the backports version using -t stretch-backports with apt, but just now I noticed that the version seems to be the same as the main stretch version. I went into my apt sources.list and realized that I had not enabled non-free for backports. I tried reinstalling and got no errors. I'm about to reboot and see if everything is fixed.

vinkna
Posts: 3
Joined: 2018-08-31 19:18

Re: broadcom-sta-dkms builds failing with kernel version 4.1

#4 Post by vinkna »

Image

This seems to have worked. glad this is resolved

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: broadcom-sta-dkms builds failing with kernel version 4.1

#5 Post by Wheelerof4te »

Great, glad you solved it :)

Post Reply