rebuild of rtl8821ce-dkms fails with linux-5.10 kernel version and new kernel module rtw88_8821ce fails to function

Bug #1911605 reported by Derk Willem te Bokkel
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
rtl8821ce (Ubuntu)
Fix Released
Undecided
You-Sheng Yang
Focal
Fix Released
Undecided
You-Sheng Yang
Groovy
Won't Fix
Undecided
Unassigned
Hirsute
Fix Released
Undecided
You-Sheng Yang

Bug Description

[SRU Justification]

[Impact]

rtl8821ce-dkms fails to build against v5.10 kernels. While oem-5.10 kernel is being backported to Focal, some models of rtl8821ce would fail with built-in rtw88 driver and yet this rtl8821ce-dkms fails to build from source.

[Test Case]

Install linux-headers-oem-20.04b from focal-updates, and rtl8821ce-dkms from focal-proposed or my PPA in https://launchpad.net/~vicamo/+archive/ubuntu/ppa-1911605. The installation process would trigger dkms build automatically with success.

[Where problems could occur]

While this is still not the in-tree official kernel driver, the fix is not verified by the kernel community and may cause unknown behavior and/or security weakness with new kernel versions. Always use with cautions.

========== original bug report ==========

upgrade to 5.10 kernel headers causes rebuild of rtl8821ce-dkms to fail due to missing symbols as per make.log

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: rtl8821ce-dkms 5.5.2.1-0ubuntu4
ProcVersionSignature: Ubuntu 5.8.0-36.40+21.04.1-generic 5.8.18
Uname: Linux 5.8.0-36-generic x86_64
ApportVersion: 2.20.11-0ubuntu55
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Wed Jan 13 21:23:05 2021
InstallationDate: Installed on 2020-10-21 (84 days ago)
InstallationMedia: Xubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201021)
PackageArchitecture: all
RebootRequiredPkgs:
 linux-image-5.10.0-12-generic
 linux-base
SourcePackage: rtl8821ce
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :
Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

seems there is a kernel module now for rtl8821ce ..rtw88_8821ce .. but it does not function .. (dkms removed from system)

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

modules are loaded but are not functioning .. dkms registration was required with previous modules is some kind of registration required for the newer modules?

(an alternate usb wireless nic does work so everything else is ok)

summary: - rebuild of rtl8821ce-dkms fails with linux-5.10 kernel version
+ rebuild of rtl8821ce-dkms fails with linux-5.10 kernel version and new
+ kernel module rtw88_8821ce fails to function
Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

problem appears to be firmware name miss-match .. according to other reports the firmware is not up to date or older/newer chip sets are not supported this effects wifi and bluetooth (dual function chip)

did a
modprobe -r rtw88_8821ce
modprobe rtw88_8821ce

dmesg .. tail ..

[ 208.374092] rtw_8821ce 0000:02:00.0: Firmware version 24.5.0, H2C version 12
[ 208.399386] rtw_8821ce 0000:02:00.0: rfe 2 isn't supported
[ 208.399491] rtw_8821ce 0000:02:00.0: failed to setup chip efuse info
[ 208.399493] rtw_8821ce 0000:02:00.0: failed to setup chip information

note the different module name for the firmware ..

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

note: same firmware appears to work for kernel 5.8 versions using rtl8821ce-dkms .. no errors appear in dmesg ..

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

It appears that firmware for rfc2 type antenna is not yet available as per comment #2 at following link:

https://forum.siduction.org/index.php?topic=8134.0

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

other newer antenna styles also unsupported by rtw88_8821ce firmware..

it appears that rtl8821ce-dkms is antenna and firmware agnostic and work for kernels 5.8 and lower .. at least one site has a module that fixes the symbol issue and allows compilation of an rtl8821ce module .. https://github.com/tomaspinho/rtl8821ce

also some other linux OS versions provide both rtw88_8821ce and other external rtl8821ce modules .. the user can then blacklist the non-working versions For kernel versions 5.9+ ..

should ubuntu consider this for hirsute?

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

this did not get uploaded automatically: rtl8821ce-dkms.0.crash

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Hi, there is no 5.10 kernel in Groovy by default, so we're not going to back port it. You may install rtl8821ce-dkms from Hirsute, which fixed this already, as you install 5.10 generic kernel from hirsute, too.

Changed in rtl8821ce (Ubuntu Groovy):
status: New → Won't Fix
Changed in rtl8821ce (Ubuntu Hirsute):
status: New → Invalid
Revision history for this message
You-Sheng Yang (vicamo) wrote :

While we do have linux-oem-5.10 in Focal, this should be back ported to focal instead.

Changed in rtl8821ce (Ubuntu Focal):
status: New → In Progress
assignee: nobody → You-Sheng Yang (vicamo)
Revision history for this message
You-Sheng Yang (vicamo) wrote :

Turns out 5.5.2.1-0ubuntu5 never made into Hirsute ....

Changed in rtl8821ce (Ubuntu Hirsute):
status: Invalid → In Progress
assignee: nobody → You-Sheng Yang (vicamo)
Revision history for this message
You-Sheng Yang (vicamo) wrote :

@Derk, do you have some time to try my PPA in https://launchpad.net/~vicamo/+archive/ubuntu/ppa-1911605 ? Both Focal and Hirsute are available. Module blacklist installed, too.

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

yes that works I now have use of the rtl8821ce wireless connection again..

thank you!

How soon will this be merged with hirsute?

Revision history for this message
You-Sheng Yang (vicamo) wrote :

PPA and merge proposals ready for review. Need help from release team.

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

This bug was fixed in the package rtl8821ce - 5.5.2.1-0ubuntu6

---------------
rtl8821ce (5.5.2.1-0ubuntu6) hirsute; urgency=medium

  * Blacklist built-in rtw88_8821ce (LP: #1911605)

  * Update CI release series

 -- You-Sheng Yang <email address hidden> Fri, 22 Jan 2021 18:00:33 +0800

Changed in rtl8821ce (Ubuntu Hirsute):
status: In Progress → Fix Released
Revision history for this message
Robie Basak (racb) wrote :

For the Focal upload, please provide SRU information as documented at https://wiki.ubuntu.com/StableReleaseUpdates#Procedure

Changed in rtl8821ce (Ubuntu Focal):
status: In Progress → Incomplete
You-Sheng Yang (vicamo)
description: updated
Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello Derk, or anyone else affected,

Accepted rtl8821ce into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/rtl8821ce/5.5.2.1-0ubuntu4~20.04.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in rtl8821ce (Ubuntu Focal):
status: Incomplete → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

okay .. I installed focal 20.4.2.0 (xubuntu) along side hirsute on a separate partition ..

used a edimax usb wireless dongle to do the install and updates of focal ..

added proposed to apt sources .. then installed rtl8821ce-dkms as well as other updates

rebooted (without usb wi/fi) and rtl8821ce worked with std 5.8.0.44 kernel

then installed linux-{image,headers}-5.10.0-1014-oem .. dkms did auto module build as expected no issues.

rebooted and rtl8821ce functions under 5.10.0-1014-oem kernel..

so all looks good .

Revision history for this message
Derk Willem te Bokkel (dtebokkel) wrote :

rtl8821ce package was as rtl8821ce-dkms-5.5.2.1-0ubuntu4~20.04.3

Revision history for this message
You-Sheng Yang (vicamo) wrote :

Thank you, Derk.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rtl8821ce - 5.5.2.1-0ubuntu4~20.04.3

---------------
rtl8821ce (5.5.2.1-0ubuntu4~20.04.3) focal; urgency=medium

  * FTBFS with Linux 5.10 (LP: #1911605)
    - Blacklist built-in rtw88_8821ce
    - Convert readFile()/writeFile() to use kernel_read()/write_file() and fix
      FTBFS with Linux 5.10

 -- You-Sheng Yang <email address hidden> Fri, 22 Jan 2021 18:00:33 +0800

Changed in rtl8821ce (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for rtl8821ce has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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