Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #68506

Bug#973733: RTW88_8821ce module fails to find firmware during install and must be reloaded

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#973733: RTW88_8821ce module fails to find firmware during install and must be reloaded
Date 2020-11-04 17:20 +0100
Message-ID <B7tFU-180-9@gated-at.bofh.it> (permalink)
References (1 earlier) <B7kjf-3iZ-1@gated-at.bofh.it> <B7i7L-1Aa-1@gated-at.bofh.it> <B7rXt-8qK-5@gated-at.bofh.it> <B7i7L-1Aa-1@gated-at.bofh.it> <B7rXt-8qK-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: reassign -1 hw-detect 1.141

On Wed, 2020-11-04 at 09:19 -0500, Brandon Werner wrote:
> 
> On Wed, Nov 4, 2020, at 1:13 AM, Brandon Werner wrote:
> > 
> > On Tue, Nov 3, 2020, at 10:52 PM, Brandon Werner wrote:
> > > package: src:linux
> > > 
> > > Hi,
> > > I downloaded one of the firmware netinstall builds of Debian from today 
> > > (11/03/2020) to try installing on my netbook with the 8821ce wifi card 
> > > since Debian now has the 5.9 kernel. During the text install with 
> > > speech, I received an error that the network card could not be found. I 
> > > opened a console and looking at dmesg showed the driver not finding the 
> > > firmware with a -2 error, however, I noticed that the requested files 
> > > had been unpacked to /lib/firmware. I unloaded rtw88_8821ce and 
> > > reloaded it using modprobe and the firmware was found, after which the 
> > > network interface was successfully brought up.
> > I took a look at the installer logs and found something that looks like 
> > it could be the likely problem.
> > 
> > Nov  3 22:09:17 check-missing-firmware: removing and loading kernel 
> > module rtw_8821ce
> > 
> > I think some substitution is going wrong in the installer because it 
> > seems like the module should be called rtw88_8821ce.
> It looks like what is happening is that the driver prints its
> messages to dmesg with a different name than what the module is
> actually called.

There is no rule in Linux that a driver has to have the same name as
the module that contains it.  (In fact, a single module can contain
multiple drivers, in which cae they cannot all use the same name as the
module.)

>  When it prints its messages about missing firmware, it uses
> rtl_8821ce. The installer matches on that when unloading and loading
> modules to get the missing firmware, which results in an incorrect
> module name being used. Is there a list of cases in the installer for
> this? It needs to use rtw88_8821ce when it unloads and reloads the
> module.

I don't know this part of the installer.  But I think it would be a
mistake to use a mapping table; instead the installer should look at
metadata provided by the kernel.  All drivers in a loaded module should
be listed under /sys/module/<module-name>/drivers, and the installer
could use that to map a driver name to its module name.

Ben.

> > > I was able to continue through the rest of the install without issue. I am not sure what logs 
> > > would help but would be happy to provide anything requested to diagnose 
> > > this issue.
-- 
Ben Hutchings
If the facts do not conform to your theory, they must be disposed of.


Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#973733: RTW88_8821ce module fails to find firmware during install and must be reloaded "Brandon Werner" <brandon_code@fastmail.fm> - 2020-11-04 05:00 +0100
  Bug#973733: RTW88_8821ce module fails to find firmware during install and must be reloaded "Brandon Werner" <brandon_code@fastmail.fm> - 2020-11-04 07:20 +0100
    Bug#973733: RTW88_8821ce module fails to find firmware during install and must be reloaded "Brandon Werner" <brandon_code@fastmail.fm> - 2020-11-04 15:30 +0100
      Bug#973733: RTW88_8821ce module fails to find firmware during install and must be reloaded Ben Hutchings <ben@decadent.org.uk> - 2020-11-04 17:20 +0100
  Processed: Re: Bug#973733: RTW88_8821ce module fails to find  firmware during install and must be reloaded "Debian Bug Tracking System" <owner@bugs.debian.org> - 2020-11-04 17:20 +0100

csiph-web