Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1010128: linux-image-5.17.0-1-amd64: DKMS Module Rebuild for Broadcom Wireless Chip BCM4352 Fails to Build

231 views
Skip to first unread message

Kurt Meyer

unread,
Apr 24, 2022, 7:10:03 PM4/24/22
to
Package: src:linux
Version: 5.17.3-1
Severity: important

Dear Maintainer,

I received the following errors when linux-image-5.17.0-1-amd64 was installed. Error also occurred with the linux-headers-5.17.0-1-amd64 package. Result is I have no wireless connectivity when booting with kernel version 5.17.0-1. I have to boot with the kernel version 5.16.0-6 to have wireless connectivity.

---ERROR START---

Setting up linux-image-5.17.0-1-amd64 (5.17.3-1) ...
I: /vmlinuz is now a symlink to boot/vmlinuz-5.17.0-1-amd64
I: /initrd.img is now a symlink to boot/initrd.img-5.17.0-1-amd64
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.17.0-1-amd64:Deprecated feature
: REMAKE_INITRD
Deprecated feature: Deprecated feature: REMAKE_INITRD
REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.17.0-1-amd64 KVER=5.17.0-1-amd64...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.17.0-1-amd64 (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.

---ERROR END---

Contents of make.log:



** Model information
sys_vendor: ASUSTeK Computer INC.
product_name: ET2321I
product_version: 0801
chassis_vendor: To Be Filled By O.E.M.
chassis_version: To Be Filled By O.E.M.
bios_vendor: American Megatrends Inc.
bios_version: 0801
board_vendor: ASUSTeK COMPUTER INC.
board_name: ET2321I
board_version: Rev 1.xx

** PCI devices:

03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4352 802.11ac Wireless Network Adapter [14e4:43b1] (rev 03)
Subsystem: AzureWave BCM4352 802.11ac Wireless Network Adapter [1a3b:2123]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 19
Region 0: Memory at f7a00000 (64-bit, non-prefetchable) [size=32K]
Region 2: Memory at f7800000 (64-bit, non-prefetchable) [size=2M]
Capabilities: <access denied>
Kernel driver in use: wl
Kernel modules: bcma, wl

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.16.0-6-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages linux-image-5.17.0-1-amd64 depends on:
ii  initramfs-tools [linux-initramfs-tool]  0.141
ii  kmod                                    29-1
ii  linux-base                              4.8

Versions of packages linux-image-5.17.0-1-amd64 recommends:
ii  apparmor             3.0.4-2
ii  firmware-linux-free  20200122-1

Versions of packages linux-image-5.17.0-1-amd64 suggests:
pn  debian-kernel-handbook  <none>
ii  grub-pc                 2.06-2
pn  linux-doc-5.17          <none>

Versions of packages linux-image-5.17.0-1-amd64 is related to:
ii  firmware-amd-graphics     20210818-1
pn  firmware-atheros          <none>
pn  firmware-bnx2             <none>
pn  firmware-bnx2x            <none>
pn  firmware-brcm80211        <none>
pn  firmware-cavium           <none>
pn  firmware-intel-sound      <none>
pn  firmware-intelwimax       <none>
pn  firmware-ipw2x00          <none>
pn  firmware-ivtv             <none>
pn  firmware-iwlwifi          <none>
pn  firmware-libertas         <none>
ii  firmware-linux-nonfree    20210818-1
ii  firmware-misc-nonfree     20210818-1
pn  firmware-myricom          <none>
pn  firmware-netxen           <none>
pn  firmware-qlogic           <none>
pn  firmware-realtek          <none>
pn  firmware-samsung          <none>
pn  firmware-siano            <none>
pn  firmware-ti-connectivity  <none>
pn  xen-hypervisor            <none>

-- no debconf information

Stephan Verbücheln

unread,
Apr 26, 2022, 7:50:03 AM4/26/22
to
I can confirm this on my machine (2014 Macbook Pro).

Note that DKMS for NVIDIA appears to work. I guess the problem is on
Broadcom side using deprecated APIs.

Regards

Lev Lamberov

unread,
Apr 28, 2022, 5:30:03 AM4/28/22
to
I can confirm the problem. Please, find the build log attached.

Cheers!
Lev Lamberov

===File /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log===
DKMS make.log for broadcom-sta-6.30.223.271 for kernel 5.17.0-1-amd64 (x86_64)
Чт 28 апр 2022 14:11:12 +05
CFG80211 API is prefered for this kernel version
Makefile:89: Neither CFG80211 nor Wireless Extension is enabled in kernel
KBUILD_NOPEDANTIC=1 make -C /lib/modules/5.17.0-1-amd64/build M=`pwd`
make[1]: предупреждение: сервер заданий недоступен: используется -j1. Добавьте «+» к правилу в родительском make.
make[1]: вход в каталог «/usr/src/linux-headers-5.17.0-1-amd64»
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc-11 (Debian 11.2.0-20) 11.2.0
You are using: gcc-11 (Debian 11.3.0-1) 11.3.0
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
CC [M] /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o
In file included from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:81:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_iw.h:73: warning: "isprint" redefined
73 | #define isprint(c) bcm_isprint(c)
|
In file included from /usr/src/linux-headers-5.17.0-1-common/include/linux/string_helpers.h:6,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/seq_file.h:7,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/seq_file_net.h:5,
from /usr/src/linux-headers-5.17.0-1-common/include/net/net_namespace.h:183,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/netdevice.h:37,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:69,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:27:
/usr/src/linux-headers-5.17.0-1-common/include/linux/ctype.h:30: note: this is the location of the previous definition
30 | #define isprint(c) ((__ismask(c)&(_P|_U|_L|_D|_SP)) != 0)
|
In file included from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/osl.h:79,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:28:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_attach’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:650:43: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
650 | bcopy(&wl->pub->cur_etheraddr, dev->dev_addr, ETHER_ADDR_LEN);
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linux_osl.h:156:49: note: in definition of macro ‘bcopy’
156 | #define bcopy(src, dst, len) memcpy((dst), (src), (len))
| ^~~
In file included from /usr/src/linux-headers-5.17.0-1-common/include/linux/string.h:253,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/bitmap.h:11,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/cpumask.h:12,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/cpumask.h:5,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/msr.h:11,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/processor.h:22,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/timex.h:5,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/timex.h:65,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/time32.h:13,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/time.h:60,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/stat.h:19,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/module.h:13,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:40,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:27:
/usr/src/linux-headers-5.17.0-1-common/include/linux/fortify-string.h:212:37: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size)
| ~~~~~~^
In file included from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/osl.h:79,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:28:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_set_mac_address’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:1861:39: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1861 | bcopy(sa->sa_data, dev->dev_addr, ETHER_ADDR_LEN);
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linux_osl.h:156:49: note: in definition of macro ‘bcopy’
156 | #define bcopy(src, dst, len) memcpy((dst), (src), (len))
| ^~~
In file included from /usr/src/linux-headers-5.17.0-1-common/include/linux/string.h:253,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/bitmap.h:11,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/cpumask.h:12,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/cpumask.h:5,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/msr.h:11,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/processor.h:22,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/timex.h:5,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/timex.h:65,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/time32.h:13,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/time.h:60,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/stat.h:19,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/module.h:13,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:40,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:27:
/usr/src/linux-headers-5.17.0-1-common/include/linux/fortify-string.h:212:37: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size)
| ~~~~~~^
In file included from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/osl.h:79,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:28:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘_wl_add_monitor_if’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:3033:37: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
3033 | bcopy(wl->dev->dev_addr, dev->dev_addr, ETHER_ADDR_LEN);
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linux_osl.h:156:49: note: in definition of macro ‘bcopy’
156 | #define bcopy(src, dst, len) memcpy((dst), (src), (len))
| ^~~
In file included from /usr/src/linux-headers-5.17.0-1-common/include/linux/string.h:253,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/bitmap.h:11,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/cpumask.h:12,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/cpumask.h:5,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/msr.h:11,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/processor.h:22,
from /usr/src/linux-headers-5.17.0-1-common/arch/x86/include/asm/timex.h:5,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/timex.h:65,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/time32.h:13,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/time.h:60,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/stat.h:19,
from /usr/src/linux-headers-5.17.0-1-common/include/linux/module.h:13,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:40,
from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:27:
/usr/src/linux-headers-5.17.0-1-common/include/linux/fortify-string.h:212:37: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size)
| ~~~~~~^
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_proc_read’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:3314:26: error: implicit declaration of function ‘PDE_DATA’; did you mean ‘NODE_DATA’? [-Werror=implicit-function-declaration]
3314 | wl_info_t * wl = PDE_DATA(file_inode(filp));
| ^~~~~~~~
| NODE_DATA
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:3314:26: warning: initialization of ‘wl_info_t *’ {aka ‘struct wl_info *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_proc_write’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:3371:26: warning: initialization of ‘wl_info_t *’ {aka ‘struct wl_info *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
3371 | wl_info_t * wl = PDE_DATA(file_inode(filp));
| ^~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-headers-5.17.0-1-common/scripts/Makefile.build:293: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o] Ошибка 1
make[1]: *** [/usr/src/linux-headers-5.17.0-1-common/Makefile:1855: /var/lib/dkms/broadcom-sta/6.30.223.271/build] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-5.17.0-1-amd64»
make: *** [Makefile:181: all] Ошибка 2
============================================================

Stephan Verbücheln

unread,
Apr 29, 2022, 4:00:07 PM4/29/22
to

Stephan Verbücheln

unread,
May 2, 2022, 3:30:03 AM5/2/22
to

Stephan Verbücheln

unread,
May 2, 2022, 8:40:04 AM5/2/22
to

Stephan Verbücheln

unread,
May 3, 2022, 5:20:03 AM5/3/22
to
Quick and dirty workaround for broadcom-sta-dkms on kernel 5.17:

1. Download patch.
$ wget
https://raw.githubusercontent.com/archlinux/svntogit-community/master/broadcom-wl-dkms/trunk/012-linux517.patch

WARNING: Make sure not to download any untrused/malicious code. The
changes in the linked patch appear small and safe.

2. With root shell, go to source.
# cd /usr/src/broadcom-sta-6.30.223.271/src/wl/sys/

3. Patch the code.
# patch wl_linux.c < /home/stephan/Downloads/012-linux517.patch

4. Reconfigure broadcom-sta-dkms to trigger DKMS
# dpkg-reconfigure broadcom-sta-dkms

WARNING: Re-installing the package will reverse your changes.


Regards

Benjamin Bänziger

unread,
May 4, 2022, 10:40:04 AM5/4/22
to
On Tue, 03 May 2022 09:06:50 +0000 Stephan =?ISO-8859-1?Q?Verb=FCcheln?=
<verbu...@posteo.de> wrote:
> Quick and dirty workaround for broadcom-sta-dkms on kernel 5.17:

I can confirm that the broadcom-sta-dkms is compiling again after
applying the patch.

Kurt Meyer

unread,
May 12, 2022, 5:00:04 AM5/12/22
to
Consider closing this bug report. The broadcom-sta-dkms 6.30.223.271-19 upgrade resolved the issue.

On Sun, Apr 24, 2022, at 19:03, Debian Bug Tracking System wrote:
> Thank you for filing a new Bug report with Debian.
>
> You can follow progress on this Bug here: 1010128:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010128.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
> Debian Kernel Team <debian...@lists.debian.org>
>
> If you wish to submit further information on this problem, please
> send it to 101...@bugs.debian.org.
>
> Please do not send mail to ow...@bugs.debian.org unless you wish
> to report a problem with the Bug-tracking system.
>
> --
> 1010128: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010128
> Debian Bug Tracking System
> Contact ow...@bugs.debian.org with problems
0 new messages