bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu5: bcmwl kernel module failed to build

Bug #1907445 reported by Corrado
62
This bug affects 11 people
Affects Status Importance Assigned to Milestone
bcmwl (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Wifi disappear on Macbook Pro 15"

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu5
ProcVersionSignature: Ubuntu 5.8.0-32.34~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-32-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.14
Architecture: amd64
CasperMD5CheckResult: skip
DKMSKernelVersion: 5.8.0-32-generic
Date: Tue Dec 8 18:14:41 2020
DuplicateSignature: dkms:bcmwl-kernel-source:6.30.223.271+bdcom-0ubuntu5:/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_linux.c:593:20: error: implicit declaration of function ‘ioremap_nocache’; did you mean ‘ioremap_cache’? [-Werror=implicit-function-declaration]
InstallationDate: Installed on 2020-05-07 (215 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageVersion: 6.30.223.271+bdcom-0ubuntu5
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.3
SourcePackage: bcmwl
Title: bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu5: bcmwl kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Corrado (ccutti) wrote :
tags: removed: need-duplicate-check
Revision history for this message
dkmc (dkmc000) wrote :

O.S. RUNNING SLOW SOMTIMZ ......SENSE SECURITY IS BEING INFILTRATED
I DO KNOW ALL PROGRAMS CAN BE HACKED.....A FEW BUGS ......UBUNTU KNOWS....
OTHER THAN THAT YHEEEE!!! HAAA!!!

Revision history for this message
dkmc (dkmc000) wrote :

CHANGES DONE IN WIFI CHANGE .....ALWAYS HAVE T0 LOOK
NO REASON FOR SETTINGS TO CHANGE..UNLESS????????

Revision history for this message
Corrado (ccutti) wrote :

Still without WiFi, how can I restart wifi service?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bcmwl (Ubuntu):
status: New → Confirmed
Revision history for this message
arm-c (arickmcniel) wrote :

I just ran updates on my laptop... got error message:

Error while applying changes
pk-client-error-quark: Error while installing package: installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 10 (313)

I lost all of my wifi card in my MacBook Air.

RECOVERY: For those like me, recovery can be a challenge. I didn't see how to get back to a older kernel while working through rEFInd boot manager.... but what got me out of this issue was.

- Open Additional drivers (Super Menu, type 'Drivers' and select).
- After scan for "Proprietery Drivers in Use"... switch option to "do not use this device" and apply.
- Reboot and hopefully your Wifi is restored.

I then ran all updates (sudo apt update & sudo apt upgrade). I went back to additional drivers and tried reinstalling... got error... but it appears to have taken... even after reboot.

Revision history for this message
Mike (blackf8x) wrote :

After upgrading the kernel to 5.8.0-34-generic the package bcmwl-kernel-source 6.30.223.271 stopped working. Tried reinstalling without success.
Logs match with the logs reported.

Revision history for this message
Stephen Gornick (sgornick) wrote :

I too lost Wi-Fi after doing apt upgrade, which brought the kernel to 5.8.0.34-generic. Same "ioremap_cache" reported as above.

I found that the package for the broadcom in my Macbook Pro should be using firmware-b43-installer, not the bcmwl-kernel-source package, according to the "BROADCOM WIRELESS TABLE (Updated Oct 29, 2020)" table in this AskUbuntu answer:
https://askubuntu.com/a/60395/157287

$ lspci -nn -d 14e4: |grep Network
03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4331 802.11a/b/g/n [14e4:4331] (rev 02)

When I look up 14e4:4331 under the Ubuntu 20.04+ column, it says, for package name: firmware-b43-installer / linux-firmware

So then I removed bcmwl-kernel-source:

$ sudo apt-get purge bcmwl-kernel-source

And then plugged in a USB Wi-Fi adapter and installed firmware-b43-installer (linux-firmware was already installed):

$ sudo apt install firmware-b43-installer

Rebooted, and was back in business! (albeit for 2.4 GHz only, not 5 GHz)

Unfortunately, I wasn't so lucky with an old Lenovo E431 that had the same issue ("ioremap_cache").

$ lspci -nn -d 14e4:

04:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n [14e4:4365] (rev 01)

Which, in that table shows also to use firmware-b43-installer. But that's unrelated to this bcmwl bug, so I'll not pursue that here.

Revision history for this message
Stephen Gornick (sgornick) wrote :

Ugh .. correction on that, sorry. When I look up [14e4:4365] (rev 01) in that table, it does show bcmwl-kernel-source as the package. So I'm also unable use Wi-Fi, where the "ioremap_cache" error when it tries to build bcmwl.

Revision history for this message
Stephen Gornick (sgornick) wrote :

Looks like, from bug #1872908, that there was a patch added in 6.30.223.271+bdcom-0ubuntu6.

But when I install bcmwl-kernel-source, it pulls 6.30.223.271+bdcom-0ubuntu5.

$ sudo apt list|grep bcmwl-kernel-source
bcmwl-kernel-source/focal,now 6.30.223.271+bdcom-0ubuntu5 amd64 [installed]

So is this bug a duplicate of bug #1872908?

Revision history for this message
Mike (blackf8x) wrote :

So I managed to find some time and decided to try out the following patch 6.30.223.271+bdcom-0ubuntu7 and that worked for me.
I'm writing this comment with my WiFi connection :woohoo:.

Revision history for this message
GIovanni de Oliveira (giovannide0000) wrote :

I fixed mineee

Use the following (one at a time)

sudo -i

apt install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

modprobe -r b44 b43 b43legacy ssb brcmsmac bcma

modprobe wl

systemctl restart network-manager

Just like that, it works.

Needs to be one of those, tough (lspci | grep Network to check) :

Broadcom BCM4311 (PCI IDs 14e4:4311, 14e4:4312)

Broadcom BCM4312 (PCI ID 14e4:4315)

Broadcom BCM4313 (PCI ID 14e4:4727)

Broadcom BCM4321 (PCI IDs 14e4:4328, 14e4:4329, 14e4:432a)

Broadcom BCM4322 (PCI IDs 14e4:432b, 14e4:432c, 14e4:432d)

Broadcom BCM43224 (PCI IDs 14e4:0576, 14e4:4353)

Broadcom BCM43225 (PCI ID 14e4:4357)

Broadcom BCM43227 (PCI ID 14e4:4358)

Broadcom BCM43228 (PCI ID 14e4:4359)

Broadcom BCM43142 (PCI ID 14e4:4365)

Broadcom BCM4331 (PCI ID 14e4:4331)

Broadcom BCM4352 (PCI ID 14e4:43b1)

Broadcom BCM4360 (PCI IDs 14e4:43a0, 14e4:4360)

Revision history for this message
arm-c (arickmcniel) wrote :

Ok. The best solution for this is posted here on ask ubuntu. The issue is with the LTS update, it did not include the updated bcmwl file when it switches the Kernel to the HWE version. This is the link to where I found the solution I used and it solves my problem.

I chose option one.
https://askubuntu.com/a/1305819/42310

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.