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

2021-01-10 Thread Charles Diza
@jsarka, Thanks for those clear instructions!  As it turns out I already
figured out (I hope) how to revert to kernel 5.4.  That has brought back
my wifi.  If other things go bonkers, I'll get 5.8 back and follow your
steps.

The bump to 5.8 broke several things on my system, which is why I first
tried downgrading kernels.  I deliberately picked an LTS, so I'm very
surprised that I got a kernel bump that skips three point releases
without any warning.

-- 
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 
‘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 |  

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

2021-01-09 Thread Charles Diza
I'm new to Linux, so bear with me, but...Within the last hour or so I
installed a bunch of system updates in KDE Discover, and suddenly wifi
stopped working after the enforced restart.

By "stopped working", I mean I have no internet connection via wifi and
`nmcli dev` no longer lists my wireless device "wlp2so" *at all*.

 I'm on an Apple MacBookPro9,2 running 20.04 with KDE.  "Driver Manger"
tells me I'm using "Broadcom 802.11 Linux STA wireless driver source
from bcmwl-kernel-source (proprietary)", for the BCM4331 device.

I tried clicking "Do not use the device" and then re-enabling it but I
got some cryptic error.  Upon re-opening Driver Manager it again says
I'm using the proprietary driver.

I hope this can be quickly fixed, since this machine is now internet-
free except for the occasional times I can plug into ethernet.

-- 
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 
‘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