[Kernel-packages] [Bug 1910875] [NEW] Broadcom wireless driver failed to install with code 10 on focal 20.04

2021-01-09 Thread Jeremy David Sarka
Public bug reported:

First, I suspect this may be the same bug as Bug #1905211 "package
bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu5 failed focal fossa in
kernel v5.9" because I got the same error "installed bcmwl-kernel-source
package post-installation script subprocess returned error exit status
10".  However, I wanted to make a separate report because I am still on
kernel v5.8.  Please merge these threads if it seems like they're the
same bug.

Anyway, my problem is this:

The last time I installed a tranche of system updates, I got a "System
software problem detected" dialog and submitted the crash report.  The
next time I booted up my computer, the Broadcom wifi device was not
recognized.  The wifi had worked fine up until that point.

I tried to manually uninstall and reinstall the driver using dpkg with
the bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) package downloaded
from packages.ubuntu.com (the machine in question does not have a wired
ethernet connection).  dpkg produced the following output:

Preparing to unpack bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu5_amd64.deb 
...
Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) over 
(6.30.223.271+bdcom-0ubuntu5) ...
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) ...
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building for 5.8.0-36-generic
Building for architecture x86_64
Building initial module for 5.8.0-36-generic
ERROR: Cannot create report: [Errno 17] File exists: 
'/var/crash/bcmwl-kernel-source.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-36-generic (x86_64)
Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more 
information.
dpkg: error processing package bcmwl-kernel-source (--install):
 installed bcmwl-kernel-source package post-installation script subprocess 
returned error exit status 10
Errors were encountered while processing:
 bcmwl-kernel-source

The make log from my manually installation attempt read:
DKMS make.log for bcmwl-6.30.223.271+bdcom for kernel 5.8.0-36-generic (x86_64)
Sat 09 Jan 2021 01:14:26 PM PST
make: Entering directory '/usr/src/linux-headers-5.8.0-36-generic'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  AR  /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/built-in.a
  CC [M]  /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/shared/linux_osl.o
  CC [M]  /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_linux.o
  CC [M]  /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_iw.o
  CC [M]  
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.o
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/shared/linux_osl.c: In 
function ‘osl_reg_map’:
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/shared/linux_osl.c:949:10: 
error: implicit declaration of function ‘ioremap_nocache’; did you mean 
‘ioremap_cache’? [-Werror=implicit-function-declaration]
  949 |  return (ioremap_nocache((unsigned long)pa, (unsigned long)size));
  |  ^~~
  |  ioremap_cache
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/shared/linux_osl.c:949:10: 
warning: returning ‘int’ from a function with return type ‘void *’ makes 
pointer from integer without a cast [-Wint-conversion]
  949 |  return (ioremap_nocache((unsigned long)pa, (unsigned long)size));
  | ~^~~~
In file included from 
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.c:40:
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.c: 
In function ‘wl_set_auth_type’:
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.h:52:5:
 warning: this statement may fall through [-Wimplicit-fallthrough=]
   52 |  if (wl_dbg_level & WL_DBG_DBG) {   \
  | ^
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.c:816:3:
 note: in expansion of macro ‘WL_DBG’
  816 |   WL_DBG(("network eap\n"));
  |   ^~
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.c:817:2:
 note: here
  817 |  default:
  |  ^~~
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_linux.c: In function 
‘wl_attach’:
/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]
  593 |  if ((wl->regsva = ioremap_nocache(dev->base_addr, PCI_BAR0_WINSZ)) == 
NULL) {
  |^~~
  |ioremap_cache
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_linux.c:593:18: 
warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a 
cast [-Wint-conversion]
  593 |  if ((wl->regsva = ioremap_nocache(dev->base_addr, PCI_BAR0_WINSZ)) == 
NULL) {
  |  ^
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_linux.c: In function 
‘

[Kernel-packages] [Bug 1905211] Re: package bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu5 failed focal fossa in kernel v5.9

2021-01-09 Thread Jeremy David Sarka
I have a very similar problem ("package bcmwl-kernel-source 6.30.223.271
+bdcom-0ubuntu5 failed to install/upgrade: installed bcmwl-kernel-source
package post-installation script subprocess returned error exit status
10"), and I suspect it may be the same bug.  However, I submitted a
separate bug report (Bug #1910875 "Broadcom wireless driver failed to
install with code 10 on focal 20.04") because I am still on kernel v5.8.
If anyone thinks these are be the same bug, please merge my report with
this one.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to bcmwl in Ubuntu.
https://bugs.launchpad.net/bugs/1905211

Title:
  package bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu5 failed focal
  fossa in kernel v5.9

Status in bcmwl package in Ubuntu:
  New

Bug description:
  Impact 
  The DKMS package won't work with new kernel v5.9 on focal fossa.

  ProblemType: Package
  DistroRelease: Ubuntu 20.04
  Package: bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu5
  Uname: Linux 5.9.0-050900-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.20.11-0ubuntu27.12
  AptOrdering:
   bcmwl-kernel-source:amd64: Install
   NULL: ConfigurePending
  Architecture: amd64
  CasperMD5CheckResult: skip
  Date: Sun Nov 22 17:23:01 2020
  ErrorMessage: installed bcmwl-kernel-source package post-installation script 
subprocess returned error exit status 10
  InstallationDate: Installed on 2020-11-16 (6 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  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.2ubuntu0.1
  SourcePackage: bcmwl
  Title: package bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu5 failed to 
install/upgrade: installed bcmwl-kernel-source package post-installation script 
subprocess returned error exit status 10
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1905211/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1910875] Re: Broadcom wireless driver failed to install with code 10 on focal 20.04

2021-01-10 Thread Jeremy David Sarka
Yes, I agree this does look like a duplicate of Bug #1910555.  I'm not
sure why I didn't see that one when I was looking for bugs that
corresponded to my problem.

Anyway, this solution worked for me:

1. Manually download the bcmwl-kernel-source package from this page: 
https://packages.ubuntu.com/groovy/bcmwl-kernel-source
Make sure that you get the "6.30.223.271+bdcom-0ubuntu7" version from the 
"groovy" repository, not the older version from the "focal" repository.

(You might also need to install or reinstall the "dkms" package, which
you will see a link to under "related packages".)

(I needed to download the package on a different computer and transfer
on a flash drive it to the laptop where the wifi wasn't working because
that laptop doesn't have an ethernet port.)

2. Open a terminal, go to the directory where the package file is
located and run dpkg with this command: sudo dpkg -i bcmwl-kernel-
source_6.30.223.271+bdcom-0ubuntu7_amd64.deb

3. Enter your administrator password.  The broadcom driver kernel module
should install automatically.  If you get an error saying that package
you are trying to install depends upon some other package that isn't
available, download that package from packages.ubuntu.com and install it
using the command: sudo dpkg -i [package file name], then try step 2
again.

For me the installation worked fine, and the wifi came back on instantly
and even automatically reconnected to my home network.  I didn't even
need to reboot!

So this is definitely an effective workaround, but this bug won't really
be solved until Canonical gets this patch into the focal repositories.
(And even then, people will still have to manually reinstall their wifi
driver if they don't have wired internet access.)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to bcmwl in Ubuntu.
https://bugs.launchpad.net/bugs/1910875

Title:
  Broadcom wireless driver failed to install  with code 10 on focal
  20.04

Status in bcmwl package in Ubuntu:
  Confirmed

Bug description:
  First, I suspect this may be the same bug as Bug #1905211 "package
  bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu5 failed focal fossa in
  kernel v5.9" because I got the same error "installed bcmwl-kernel-
  source package post-installation script subprocess returned error exit
  status 10".  However, I wanted to make a separate report because I am
  still on kernel v5.8.  Please merge these threads if it seems like
  they're the same bug.

  Anyway, my problem is this:

  The last time I installed a tranche of system updates, I got a "System
  software problem detected" dialog and submitted the crash report.  The
  next time I booted up my computer, the Broadcom wifi device was not
  recognized.  The wifi had worked fine up until that point.

  I tried to manually uninstall and reinstall the driver using dpkg with
  the bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) package
  downloaded from packages.ubuntu.com (the machine in question does not
  have a wired ethernet connection).  dpkg produced the following
  output:

  Preparing to unpack bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu5_amd64.deb 
...
  Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) over 
(6.30.223.271+bdcom-0ubuntu5) ...
  Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu5) ...
  Loading new bcmwl-6.30.223.271+bdcom DKMS files...
  Building for 5.8.0-36-generic
  Building for architecture x86_64
  Building initial module for 5.8.0-36-generic
  ERROR: Cannot create report: [Errno 17] File exists: 
'/var/crash/bcmwl-kernel-source.0.crash'
  Error! Bad return status for module build on kernel: 5.8.0-36-generic (x86_64)
  Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more 
information.
  dpkg: error processing package bcmwl-kernel-source (--install):
   installed bcmwl-kernel-source package post-installation script subprocess 
returned error exit status 10
  Errors were encountered while processing:
   bcmwl-kernel-source

  The make log from my manually installation attempt read:
  DKMS make.log for bcmwl-6.30.223.271+bdcom for kernel 5.8.0-36-generic 
(x86_64)
  Sat 09 Jan 2021 01:14:26 PM PST
  make: Entering directory '/usr/src/linux-headers-5.8.0-36-generic'
  CFG80211 API is prefered for this kernel version
  Using CFG80211 API
AR  /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/built-in.a
CC [M]  /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/shared/linux_osl.o
CC [M]  /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_linux.o
CC [M]  /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_iw.o
CC [M]  
/var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/wl/sys/wl_cfg80211_hybrid.o
  /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/shared/linux_osl.c: In 
function ‘osl_reg_map’:
  /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/src/shared/linux_osl.c:949:10: 
error: implicit declaration of function ‘ioremap_nocache’; did you mean

[Kernel-packages] [Bug 1910555] Re: Driver build error on kernel 5.8, but works on 5.4

2021-01-10 Thread Jeremy David Sarka
I had the same problem and submitted it as Bug #1910875.  I didn't see
this bug at first because I got a slightly different error message
("post-installation script subprocess returned error exit status 10").
But it's definitely the same bug and installing the 6.30.223.271+bdcom-
0ubuntu7 version of bcmwl-kernel-source worked for me.  So in one sense
this bug has already been patched, but I would say that the real bug is
that the patch didn't get included in the focal repository.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to bcmwl in Ubuntu.
https://bugs.launchpad.net/bugs/1910555

Title:
  Driver build error on kernel 5.8, but works on 5.4

Status in bcmwl package in Ubuntu:
  Confirmed

Bug description:
  Recently kernel was updated on Focal from 5.4 to 5.8. From that moment on 
WiFi doesn't work anymore. After a try rebuild (reconfigure) the result is:
  ---
  # dpkg-reconfigure bcmwl-kernel-source
  Removing all DKMS Modules
  Done.
  Loading new bcmwl-6.30.223.271+bdcom DKMS files...
  Building for 5.4.0-59-generic 5.8.0-34-generic
  Building for architecture x86_64
  Building initial module for 5.4.0-59-generic
  Done.

  wl.ko:
  Running module version sanity check.
   - Original module
 - No original module exists within this kernel
   - Installation
 - Installing to /lib/modules/5.4.0-59-generic/updates/dkms/

  depmod

  DKMS: install completed.
  Building initial module for 5.8.0-34-generic
  ERROR: Cannot create report: [Errno 17] File exists: 
'/var/crash/bcmwl-kernel-source.0.crash'
  Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
  Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more 
information.
  ---
  As could be seen, the build for 5.4 completes successfully (and works on same 
kernel), but for 5.8 fails. Seems something is going wrong with missing 
function declaration - function "ioremap_nocache", as could be seen in attached 
make.log.
  I'm guessing, driver code may need be updated according to the new kernel 
headers.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu5
  ProcVersionSignature: Ubuntu 5.4.0-59.65-generic 5.4.78
  Uname: Linux 5.4.0-59-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.20.11-0ubuntu27.14
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: KDE
  Date: Thu Jan  7 17:13:05 2021
  InstallationDate: Installed on 2020-06-22 (198 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  SourcePackage: bcmwl
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1910555/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp