lwfinger / rtw89

Driver for Realtek 8852AE, an 802.11ax device
GNU General Public License v2.0
1.25k stars 157 forks source link

RTL8852AE on Ubuntu 20.04 (kernel 5.8.0) #2

Closed Matth37 closed 3 years ago

Matth37 commented 3 years ago

Hello and thank you for your work, I have an issue when I want to use your drivers. I have a Lenovo Legion 5 Pro with a dual boot (Windows 10 / Ubuntu 20.04 for EFIs partitions), secure boot and fast boot (for Windows) disabled .

When I do steps with make / sudo make install, I have no problem (with VERBOSE=1). But when I try to enable the module with this command : sudo modprobe rtw89pci, nothing happens for the wifi except that :

sudo dmesg | grep rtw
[ 1357.728431] rtw89_pci 0000:04:00.0: Direct firmware load for rtw89/rtw8852a_fw.bin failed with error -2
[ 1357.728434] rtw89_pci 0000:04:00.0: failed to request firmware
[ 1357.730082] rtw89_pci 0000:04:00.0: MAC has already powered on
[ 1357.731612] rtw89_pci 0000:04:00.0: failed to wait firmware completion
[ 1357.731615] rtw89_pci 0000:04:00.0: failed to setup chip information
[ 1357.732117] rtw89_pci: probe of 0000:04:00.0 failed with error -22

And if I try to copy the unique rtw8852a_fw.bin in /lib/firmware/rtw89, it doesn't like this :

sudo modprobe rtw89pci 
Erreur de segmentation (core dumped) # segmentation fault
sudo modprobe -r rtw89pci 
modprobe: FATAL: Module rtw89pci is in use.

sudo dmesg | grep rtw
[    7.872266] rtw89core: loading out-of-tree module taints kernel.
[    7.872448] rtw89core: module verification failed: signature and/or required key missing - tainting kernel
[    7.873775] rtw89_pci 0000:04:00.0: enabling device (0000 -> 0003)
[    7.873934] rtw89_pci 0000:04:00.0: Direct firmware load for rtw89/rtw8852a_fw.bin failed with error -2
[    7.873936] rtw89_pci 0000:04:00.0: failed to request firmware
[    7.894681] rtw89_pci 0000:04:00.0: failed to wait firmware completion
[    7.894750] rtw89_pci 0000:04:00.0: failed to setup chip information
[    7.895129] rtw89_pci: probe of 0000:04:00.0 failed with error -22
[...]
[  155.313699] rtw89_pci 0000:04:00.0: loading /lib/firmware/rtw89/rtw8852a_fw.bin failed with error -20
[  155.313702] rtw89_pci 0000:04:00.0: Direct firmware load for rtw89/rtw8852a_fw.bin failed with error -20
[  155.313704] rtw89_pci 0000:04:00.0: failed to request firmware
[  155.315633] rtw89_pci 0000:04:00.0: MAC has already powered on
[  155.318235] rtw89_pci 0000:04:00.0: failed to wait firmware completion
[  155.318238] rtw89_pci 0000:04:00.0: failed to setup chip information
[  155.318552] rtw89_pci: probe of 0000:04:00.0 failed with error -22
[  517.524409] rtw89_pci 0000:04:00.0: MAC has already powered on
[  517.526061] RIP: 0010:rtw89_fw_download+0x8f/0xd0 [rtw89core]
[  517.526098]  ? rtw89_pci_probe+0x811/0xb40 [rtw89pci]

Have you an idea about the problem ? I did a topic on ubuntu forum : https://askubuntu.com/questions/1344184/realtek-rtl8852ae-issue-on-lenovo-legion-5-pro-16ach6-ubuntu-20-04

I tried this on multiple kernels. Here I stay on the kernel 5.8.0.

nicolasss1993 commented 2 years ago

Hi @BenBE!,

linux-headers-5.10.0-1049-oem is now in its latest version (5.10.0-1049.51). (I did apt... install, update, upgrade)

And I keep getting the same error,

sudo modprobe rtw89pci 
modprobe: ERROR: could not insert 'rtw89pci': Exec format error

dmesg.txt

BenBE commented 2 years ago

Please try to build from a clean source directory. When using git you may use git clean -fdx which should get rid of most unnecessary files. Also you may try to build the module via dpk-buildpackage and dkms like explained here. That's the way I build v5 back then™. Note that you may need to manually uninstall any previously compiled versions of your rtl89 driver from your kernel's module tree. Also in case you registered your build with dkms please check again that dkms uses the correct kernel headers too. This can be seen in its build log (please include to cross-check the headers match) by examining the compiler command line.

lwfinger commented 2 years ago

You can also use 'make clean' to clean out the object files; however, I am not sure that this is your problem. The utility 'make' is very good at detecting changes in header versions and regenerating the object files.

Poloin34 commented 2 years ago

Hi.

I recently got my new Lenovo Yoga 7 slim pro and I'm trying to install linux in dualboot with windows. Windows (11) works fine however, linux (ubuntu 20) don't show my wifi adapter (Realtek RTL8852A)

and since I'm a Linux newbie, I don't understand most of what was said here, I however tried to do what you said there

Download the Realtek official v4 patch through the series link on this page, patch the kernel source with -p1 (man patch for details), and add the "rtw8852a_table.c" and ""rtw8852a_table.h" files from this repo to the official source collection, then enable the driver with "make menuconfig" or "make config" or by directly editing the kernel .config file, then "make" and "make modules_install" ...

I download the file "rtw89-add-Realtek-802.11ax-driver.patch", I ran patch -p1 < rtw89-add-Realtek-802.11ax-driver.patch output

and then.. I'm blocked. I don't know what you meant by

add the "rtw8852a_table.c" and ""rtw8852a_table.h" files from this repo to the official source collection

What should I've done or should I do? Help me please..

Thanks

lwfinger commented 2 years ago

Your instructions are old and very out of date. To get the kernel version of driver rtw89,

git clone github.com/github.com/lwfinger/rtw89.git -b v7 cd rtw89 make sudo make sign_install

If the make step fails with an error about missing "build", you need to install the kernel modules. For Ubuntu, I have no idea what packages are needed.

Poloin34 commented 2 years ago

The sign_install step failed, and even after a reboot, still no wifi :/ Here's results

poloin@laptop-poloin:\~$ git clone http://github.com/lwfinger/rtw89.git -b v7 Cloning into 'rtw89'... warning: redirecting to https://github.com/lwfinger/rtw89.git/ remote: Enumerating objects: 593, done. remote: Counting objects: 100% (593/593), done. remote: Compressing objects: 100% (376/376), done. remote: Total 593 (delta 429), reused 366 (delta 212), pack-reused 0 Receiving objects: 100% (593/593), 1.61 MiB | 1.73 MiB/s, done. Resolving deltas: 100% (429/429), done.

poloin@laptop-poloin cd rtw89/

poloin@laptop-poloin:\~/rtw89$ make make -C /lib/modules/5.11.0-27-generic/build M=/home/poloin/rtw89 modules make[1]: Entering directory '/usr/src/linux-headers-5.11.0-27-generic' CC [M] /home/poloin/rtw89/core.o CC [M] /home/poloin/rtw89/debug.o CC [M] /home/poloin/rtw89/mac80211.o CC [M] /home/poloin/rtw89/mac.o CC [M] /home/poloin/rtw89/phy.o CC [M] /home/poloin/rtw89/fw.o CC [M] /home/poloin/rtw89/rtw8852a.o CC [M] /home/poloin/rtw89/rtw8852a_table.o CC [M] /home/poloin/rtw89/rtw8852a_rfk.o CC [M] /home/poloin/rtw89/rtw8852a_rfk_table.o CC [M] /home/poloin/rtw89/cam.o CC [M] /home/poloin/rtw89/efuse.o CC [M] /home/poloin/rtw89/regd.o CC [M] /home/poloin/rtw89/coex.o CC [M] /home/poloin/rtw89/ps.o CC [M] /home/poloin/rtw89/sar.o CC [M] /home/poloin/rtw89/ser.o LD [M] /home/poloin/rtw89/rtw89core.o CC [M] /home/poloin/rtw89/pci.o LD [M] /home/poloin/rtw89/rtw89pci.o MODPOST /home/poloin/rtw89/Module.symvers CC [M] /home/poloin/rtw89/rtw89core.mod.o LD [M] /home/poloin/rtw89/rtw89core.ko CC [M] /home/poloin/rtw89/rtw89pci.mod.o LD [M] /home/poloin/rtw89/rtw89pci.ko make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-27-generic'

poloin@laptop-poloin:\~/rtw89$ sudo make sign_install [sudo] password for poloin: make: *** No rule to make target 'sign_install'. Stop.

poloin@laptop-poloin:\~/rtw89$

dausruddin commented 2 years ago

@Poloin34 try sudo make install. That is what I used a while ago on my laptop.

Poloin34 commented 2 years ago

@Poloin34 try sudo make install. That is what I used a while ago on my laptop.

Thanks, but unfortunately, even if it saying Install SUCCESS, wifi still not there after reboot

poloin@laptop-poloin:~/rtw89$ sudo make install [sudo] password for poloin: make -C /lib/modules/5.11.0-27-generic/build M=/home/poloin/rtw89 modules make[1]: Entering directory '/usr/src/linux-headers-5.11.0-27-generic' make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-27-generic' cp *.bin /lib/firmware/rtw89/. Install rtw89 SUCCESS

lwfinger commented 2 years ago

If you are running Windows 11, then you have to be using secure boot. Look in the output of dmesg to see why the modules are not loading. Note: the modules MUST be signed.

Did you ignore the "[sudo] password for poloin:"? If so, that would explain the failure without any error messages.

Poloin34 commented 2 years ago

I was able to disable it, should I enable it again? Gonna update about dmesg, thanks

And nop, I did input my password

Poloin34 commented 2 years ago

Here is the whole dmesg output

The lines (and around) displaying in red:

[ 5.045292] amdgpu 0000:03:00.0: amdgpu: Unsupported power profile mode 0 on RENOIR

[ 2.799908] r8152 2-1:1.0 enxd0c0bf278cfc: renamed from eth0 [ 2.825445] ACPI Error: No handler for Region [ECSI] (0000000004dbcfd7) [EmbeddedControl] (20201113/evregion-130) [ 2.825458] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20201113/exfldio-261)

[ 2.825470] No Local Variables are initialized for Method [ECRD]

[ 2.825471] No Arguments are initialized for method [ECRD]

[ 2.825473] ACPI Error: Aborting method _SB.UBTC.ECRD due to previous error (AE_NOT_EXIST) (20201113/psparse-529) [ 2.825481] ACPI Error: Aborting method _SB.UBTC._DSM due to previous error (AE_NOTEXIST) (20201113/psparse-529) [ 2.825493] ACPI: _SB.UBTC: failed to evaluate _DSM (0x6) [ 2.825498] ucsi_acpi USBC000:00: ucsi_acpi_dsm: failed to evaluate _DSM 2

[ 0.425812] integrity: Loading X.509 certificate: UEFI:db [ 0.425815] integrity: Problem loading X.509 certificate -65 [ 0.425817] integrity: Error adding keys to platform keyring UEFI:db

Poloin34 commented 2 years ago

Enabled secure boot, still unable to sudo make sign_install

make: *** No rule to make target 'sign_install'. Stop.

dmesg seems equal (no others red message) but here is the output

capfredf commented 2 years ago

I think the target is sign-install not sign_install. see here

Poloin34 commented 2 years ago

I think the target is sign-install not sign_install. see here

Ah yep!

poloin@laptop-poloin:~/rtw89$ sudo make sign-install [sudo] password for poloin: make -C /lib/modules/5.11.0-27-generic/build M=/home/poloin/rtw89 modules make[1]: Entering directory '/usr/src/linux-headers-5.11.0-27-generic' make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-27-generic' kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der rtw89core.ko kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der rtw89pci.ko cp *.bin /lib/firmware/rtw89/. Install rtw89 SUCCESS

Poloin34 commented 2 years ago

But still no wifi, even after reboot... raaaah

capfredf commented 2 years ago

Did you do a "modprobe rtw89pci" after that?

Poloin34 commented 2 years ago

I didn't. I just did it now but even with sudo, I get

"modprobe: ERROR: could not insert 'rtw89pci': Operation not permitted"

edit: bruh no mk via mail

lwfinger commented 2 years ago

You mean 'sudo modprobe rtw89pci' got an operation not permitted error? I do not know how that can happen.

In any case, when you did a reboot after the install was a success, the module should have been loaded. NOW is the time for you to post your complete dmesg output.

Poloin34 commented 2 years ago

poloin@laptop-poloin:\~/rtw89$ sudo make sign-install make -C /lib/modules/5.11.0-27-generic/build M=/home/poloin/rtw89 modules make[1]: Entering directory '/usr/src/linux-headers-5.11.0-27-generic' make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-27-generic' kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der rtw89core.ko kmodsign sha512 /var/lib/shim-signed/mok/MOK.priv /var/lib/shim-signed/mok/MOK.der rtw89pci.ko cp *.bin /lib/firmware/rtw89/. Install rtw89 SUCCESS poloin@laptop-poloin:\~/rtw89$ modprobe rtw89pci modprobe: ERROR: could not insert 'rtw89pci': Operation not permitted poloin@laptop-poloin:\~/rtw89$ sudo modprobe rtw89pci modprobe: ERROR: could not insert 'rtw89pci': Operation not permitted poloin@laptop-poloin:\~/rtw89$

then, here is dmesg after previous operation and before reboot

and here is after reboot

lwfinger commented 2 years ago

No mention of the 8852ae in either dmesg output. Please post the output of 'lspci -nn'. Let us see exactly what wireless device you have.

Poloin34 commented 2 years ago

poloin@laptop-poloin:\~$ lspci -nn 00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex [1022:1630] 00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU [1022:1631] 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632] 00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632] 00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge [1022:1634] 00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge [1022:1634] 00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632] 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635] 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51) 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51) 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166a] 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166b] 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166c] 00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166d] 00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166e] 00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:166f] 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1670] 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1671] 01:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:7961] 02:00.0 Non-Volatile memory controller [0108]: SK hynix Device [1c5c:174a] 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1638] (rev c4) 03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1637] 03:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df] 03:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1 [1022:1639] 03:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1 [1022:1639] 03:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor [1022:15e2] (rev 01) 03:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller [1022:15e3] poloin@laptop-poloin:\~$

Here it is

lwfinger commented 2 years ago

You do NOT have a Realtek wireless device! The line 01:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:7961] says that you have a Mediatek MT7961, which uses driver mt7921e. I found no Linux drivers for kernels as old as 5.8 - the driver has been in the kernel since 5.13.

You need to install a newer kernel. If you wish to stay with Ubuntu, it appears that 21.04 has a 5.14 kernel, but that is not confirmed. Unfortunately, I cannot help you beyond these suggestions.

Poloin34 commented 2 years ago

Wait what, raaaaah Thanks for the informations, I'm gonna find a cool distro with 5.13>= kernel.

Many thanks, I was able to get it working with Fedora & kernel 5.14. Thanks

frankly-de commented 2 years ago

I'm afraid I am also not able to get this to work. I get the following outputs:

prediger@prediger-ThinkBook-15-G3-ACL:$ cd rtw89 && make && sudo make install make -C /lib/modules/5.11.0-41-generic/build M=/home/prediger/rtw89 modules make[1]: Verzeichnis „/usr/src/linux-headers-5.11.0-41-generic“ wird betreten CC [M] /home/prediger/rtw89/core.o CC [M] /home/prediger/rtw89/debug.o CC [M] /home/prediger/rtw89/mac80211.o CC [M] /home/prediger/rtw89/mac.o CC [M] /home/prediger/rtw89/phy.o CC [M] /home/prediger/rtw89/fw.o CC [M] /home/prediger/rtw89/rtw8852a.o CC [M] /home/prediger/rtw89/rtw8852a_table.o CC [M] /home/prediger/rtw89/rtw8852a_rfk.o CC [M] /home/prediger/rtw89/rtw8852a_rfk_table.o CC [M] /home/prediger/rtw89/cam.o CC [M] /home/prediger/rtw89/efuse.o CC [M] /home/prediger/rtw89/regd.o CC [M] /home/prediger/rtw89/coex.o CC [M] /home/prediger/rtw89/ps.o CC [M] /home/prediger/rtw89/sar.o CC [M] /home/prediger/rtw89/ser.o CC [M] /home/prediger/rtw89/util.o LD [M] /home/prediger/rtw89/rtw89core.o CC [M] /home/prediger/rtw89/pci.o LD [M] /home/prediger/rtw89/rtw89pci.o MODPOST /home/prediger/rtw89/Module.symvers CC [M] /home/prediger/rtw89/rtw89core.mod.o LD [M] /home/prediger/rtw89/rtw89core.ko BTF [M] /home/prediger/rtw89/rtw89core.ko Skipping BTF generation for /home/prediger/rtw89/rtw89core.ko due to unavailability of vmlinux CC [M] /home/prediger/rtw89/rtw89pci.mod.o LD [M] /home/prediger/rtw89/rtw89pci.ko BTF [M] /home/prediger/rtw89/rtw89pci.ko Skipping BTF generation for /home/prediger/rtw89/rtw89pci.ko due to unavailability of vmlinux make[1]: Verzeichnis „/usr/src/linux-headers-5.11.0-41-generic“ wird verlassen make -C /lib/modules/5.11.0-41-generic/build M=/home/prediger/rtw89 modules make[1]: Verzeichnis „/usr/src/linux-headers-5.11.0-41-generic“ wird betreten make[1]: Verzeichnis „/usr/src/linux-headers-5.11.0-41-generic“ wird verlassen cp: Aufruf von stat für 'rtl8852au*.bin' nicht möglich: Datei oder Verzeichnis nicht gefunden make: *** [Makefile:61: install] Fehler 1 prediger@prediger-ThinkBook-15-G3-ACL:~/rtw89$ sudo modprobe rtw89pci modprobe: ERROR: could not insert 'rtw89pci': Operation not permitted

lshw gives me this

prediger@prediger-ThinkBook-15-G3-ACL:~$ sudo lshw -C network [sudo] Passwort für prediger: /proc/cpuinfo -network
Beschreibung: Ethernet interface Produkt: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller Hersteller: Realtek Semiconductor Co., Ltd. Physische ID: 0 Bus-Informationen: pci@0000:04:00.0 Logischer Name: enp4s0 Version: 15 Seriennummer: 7c:8a:e1:88:cc:35 Größe: 100Mbit/s Kapazität: 1Gbit/s Breite: 64 bits Takt: 33MHz Fähigkeiten: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation Konfiguration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.11.0-41-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.178.31 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s Ressourcen: irq:52 ioport:3000(Größe=256) memory:d0604000-d0604fff memory:d0600000-d0603fff
-network UNGEFORDERT Beschreibung: Network controller Produkt: Realtek Semiconductor Co., Ltd. Hersteller: Realtek Semiconductor Co., Ltd. Physische ID: 0 Bus-Informationen: pci@0000:05:00.0 Version: 00 Breite: 64 bits Takt: 33MHz Fähigkeiten: pm msi pciexpress cap_list Konfiguration: latency=0 Ressourcen: ioport:2000(Größe=256) memory:d0500000-d05fffff

lspci delivers this:

prediger@prediger-ThinkBook-15-G3-ACL:~$ lspci 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex 00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU 00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge 00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge 00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge 00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge 00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge 00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge 00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge 00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge 00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus 00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51) 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4 00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5 00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6 00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7 01:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01) 02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a809 03:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a809 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) 05:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device 8852 06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Lucienne (rev c1) 06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637 06:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor 06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1 06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1 06:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01) 06:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller 07:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81) 07:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)

Help would be greatly appreciated. I am used to working with Linux (using Ubuntu for 14 years now), but usually simply use it. So I may need quite detailed instructions.

lwfinger commented 2 years ago

First of all, never report an error without checking what the dmesg log has to say about that error. I suspect that you are using secure boot, and that the error was because your modules are not signed. Read https://github.com/lwfinger/rtw89/issues/74 very carefully!

frankly-de commented 2 years ago

Edit: Don't worry anymore. I just did

sudo modprobe -r rtw89pci sudo modprobe rtw89pci

nevertheless, and: it worked!

original Post: Sorry to not being up to it. Quite frankly, this is the first time I've come accros dmesg. I'll attach the read-out here: 2021-12-10 - dmesg.txt I tried to follow your advice, but got stuck with this:

prediger@prediger-ThinkBook-15-G3-ACL:~/rtw89$ sudo make sign-install make -C /lib/modules/5.11.0-41-generic/build M=/home/prediger/rtw89 modules make[1]: Verzeichnis „/usr/src/linux-headers-5.11.0-41-generic“ wird betreten make[1]: Verzeichnis „/usr/src/linux-headers-5.11.0-41-generic“ wird verlassen mkdir -p ~/mok pushd ~/mok ~/mok /home/prediger/rtw89 openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Custom MOK/" Generating a RSA private key ..........................+++++ .........................+++++ writing new private key to 'MOK.priv' [-----] mokutil --import MOK.der input password: input password again: popd /bin/bash: Zeile 1: popd: Der Verzeichnisstapel ist leer. make: *** [Makefile:99: sign] Fehler 1