Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] realtech rt8822ce on asus, isn't loaded on boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
moniaqua
n00b
n00b


Joined: 19 Dec 2021
Posts: 15
Location: Bavaria

PostPosted: Tue Dec 21, 2021 11:19 am    Post subject: [solved] realtech rt8822ce on asus, isn't loaded on boot Reply with quote

Hi, newbie here :)

I am stuck with wifi. Ethernet works fine, but the wifi device doesn't even seem to be loaded. On boot a message appears
"ERROR: interface wlp3s0 does not exist
Ensure that you have loaded the correct kernel modules [color=666666](I think I have but who knows...)[/color]
ERROR: net.wlp3s0 failed to start
ERROR: cannot start netmount as net wlp3s0 would not start"

Here some infos:

Code:
monikatest@mmcgentooasus ~ $ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 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/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne 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 VGA compatible controller: NVIDIA Corporation TU106M [GeForce RTX 2060 Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
01:00.2 USB controller: NVIDIA Corporation TU106 USB 3.1 Host Controller (rev a1)
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU106 USB Type-C UCSI Controller (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
05:00.0 Non-Volatile memory controller: Kingston Technology Company, Inc. Device 500c (rev 01)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c6)
06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
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/Cezanne USB 3.1
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne 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)
monikatest@mmcgentooasus ~ $

Kernel .config:
https://pastebin.com/NqQxxM0K

dmesg:
https://pastebin.com/s29pvjt9

kern.log (cut to today):
https://pastebin.com/xPZiEWQX

ifconfig:
Code:
monikatest@mmcgentooasus ~ $ ifconfig -a
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.41  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::fe0b:c773:35f5:df82  prefixlen 64  scopeid 0x20<link>
        ether a8:5e:45:38:3a:10  txqueuelen 1000  (Ethernet)
        RX packets 38485  bytes 20427112 (19.4 MiB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 30552  bytes 9018737 (8.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sit0: flags=128<NOARP>  mtu 1480
        sit  txqueuelen 1000  (IPv6-in-IPv4)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


Thank you
_________________
cu
Monika


Last edited by moniaqua on Fri Dec 24, 2021 3:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Tue Dec 21, 2021 12:01 pm    Post subject: Reply with quote

moniaqua,

Code:
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter


Code:
CONFIG_RTL_CARDS=y
Good. That's a menu but inside it is
Code:
# CONFIG_RTL8192CE is not set
whicd is the driver for your chipset.

While you are in the kernel fix
Code:
[    0.890490] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
and
Code:
[   61.342965] snd_hda_intel 0000:06:00.6: Cannot probe codecs, giving up

Code:
CONFIG_SND_HDA=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_HWDEP=y
Thats the PCI bus part of sound.

You need the output end for your sound cards too.
Code:
# CONFIG_SND_HDA_CODEC_REALTEK is not set
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set

Turn on # CONFIG_SND_HDA_INTEL_HDMI_SILENT_STREAM is not set too, if you want to use digital sound outputs.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
moniaqua
n00b
n00b


Joined: 19 Dec 2021
Posts: 15
Location: Bavaria

PostPosted: Tue Dec 21, 2021 12:20 pm    Post subject: Reply with quote

Thank you, cool, sound is the next important slice (or the one after) :))

I really start to love Gentoo, it forces me to understand my pc. I am using linux for decades now but the other distros do way much work for me which is not always good for learning.
_________________
cu
Monika
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Tue Dec 21, 2021 12:24 pm    Post subject: Reply with quote

moniaqua,

Its your Gentoo, your way. :)

I thought you might want to fix your kernel in one build is all.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
wless123
n00b
n00b


Joined: 27 Aug 2021
Posts: 35

PostPosted: Tue Dec 21, 2021 12:31 pm    Post subject: Reply with quote

Hi,
for me it seems that you already have the correct driver: rtw8822ce (CONFIG_RTW88_8822CE=y), but are missing specific firmware

From your kernel.log (https://pastebin.com/xPZiEWQX):
Quote:

Dec 21 11:17:15 mmcgentooasus kernel: Loading firmware: rtw88/rtw8822c_fw.bin
Dec 21 11:17:15 mmcgentooasus kernel: rtw_8822ce 0000:03:00.0: Direct firmware load for rtw88/rtw8822c_fw.bin failed with error -2
Dec 21 11:17:15 mmcgentooasus kernel: rtw_8822ce 0000:03:00.0: failed to request firmware
Dec 21 11:17:15 mmcgentooasus kernel: Loading firmware: rtw88/rtw8822c_wow_fw.bin
Dec 21 11:17:15 mmcgentooasus kernel: rtw_8822ce 0000:03:00.0: Direct firmware load for rtw88/rtw8822c_wow_fw.bin failed with error -2


Since other firmware is loaded (p. e. for your rtl8168 nic) you probably just missed them in your savedconfig for linux-firmware?
Code:

 rtw88/rtw8822c_fw.bin
rtw88/rtw8822c_wow_fw.bin


EDIT: you will also need to emerge net-wireless/wireless-regdb

EDIT2: damn it's been a while since i installed wifi, but if the wiki is right on this:

Quote:

Important
In case the wireless configuration API (CONFIG_CFG80211) is built into the kernel (<*>) instead as a module (<M>), the driver won't be able to load regulatory.db from /lib/firmware resulting in broken regulatory domain support. Please set CONFIG_CFG80211=m or add regulatory.db and regulatory.db.p7s to CONFIG_EXTRA_FIRMWARE.

(from: https://wiki.gentoo.org/wiki/Wifi)

you might need to embed the firmware for the device (rtw88/rtw8822c_fw.bin rtw88/rtw8822c_wow_fw.bin) into the kernel too
Back to top
View user's profile Send private message
moniaqua
n00b
n00b


Joined: 19 Dec 2021
Posts: 15
Location: Bavaria

PostPosted: Tue Dec 21, 2021 5:50 pm    Post subject: Reply with quote

NeddySeagoon wrote:

Its your Gentoo, your way. :)

I thought you might want to fix your kernel in one build is all.

Yes, sure, sorry, I was easy to be missunderstood. I tried to fix them both together. I'll have to look into it again though; somehow I am getting the feeling there is also a slight issue with my configuration grub as I am for example missing the nice little line of penguins I already had (was sure I put that option on again with fixing sound and wireless options) and the dates in /boot/efi/EFI were suspicious. Need to get on there with fresh mind though.

wless123 wrote:

for me it seems that you already have the correct driver: rtw8822ce (CONFIG_RTW88_8822CE=y), but are missing specific firmware
...
Since other firmware is loaded (p. e. for your rtl8168 nic) you probably just missed them in your savedconfig for linux-firmware?
Code:

rtw88/rtw8822c_fw.bin
rtw88/rtw8822c_wow_fw.bin


EDIT: you will also need to emerge net-wireless/wireless-regdb

EDIT2: damn it's been a while since i installed wifi, but if the wiki is right on this:
.....

you might need to embed the firmware for the device (rtw88/rtw8822c_fw.bin rtw88/rtw8822c_wow_fw.bin) into the kernel too


I'll have a look at this again as soon as my mind works again. On rtl8168 was nothing I intentionally configured or loaded except setting that hook in menuconfig. Also amdgpu resp. nvidia only required the hook(s) and dispay's working just fine. rtw88/rtw8822c_fw.bin and rtw88/rtw8822c_wow_fw.bin both are in /lib/firmware.

Thank you both so far, I'll keep on trying :)
_________________
cu
Monika
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Tue Dec 21, 2021 6:36 pm    Post subject: Reply with quote

moniaqua,

When you boot into your new kernel, check the build time/date in
Code:
uname -a


Its in the first line of dmesg/kernel log too.
Code:
Dec 21 11:17:15 mmcgentooasus kernel: Linux version 5.10.76-gentoo-r1 (root@mmcgentooasus) (gcc (Gentoo 11.2.0 p1) 11.2.0, GNU ld (Gentoo 2.37_p1 p0) 2.37) #2 SMP Mon Dec 20 20:05:18 CET 2021


Code:
#2 SMP Mon Dec 20 20:05:18 CET 2021
That's build 2 at Mon Dec 20 20:05:18 CET 2021.
Its always good to know that you are running the kernel you think you are.

To get the flock of penguins you need a framebuffer console and the LOGO option on in the kernel.

-- edit --

/lib/firmware can only be read after root is mounted. That's too late for built in drivers. They are all initalised before that happens, so build in drivers that need firmware must have the needed firmware beilt into the kernel too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
moniaqua
n00b
n00b


Joined: 19 Dec 2021
Posts: 15
Location: Bavaria

PostPosted: Wed Dec 22, 2021 9:33 pm    Post subject: Reply with quote

Just a short heads up - yesterday I was sure that I had booted the latest kernel, double checked it twice and there was one line in dmesg that looked promising. Penguins are still not there although logo and framebuffer are both enabled but:
To cross test I installed pre-configured kernel 5.10.85 from sources and this one loads wlp3s0 (there are just somehow two networkmanagers battling who gets the interface, but I'll figure this one out - i am not aware to have installed two :lol: ), so half success. So my idea is to compare the both kernel-configs and find out what's different. That might give me a hint what's going on and finally get my kernel config right for my pc :)
It'll take a while until my pc is flying but falling back on Ubuntu in between is not half as annoying as falling back to windows in the early days ;), so that's ok.
_________________
cu
Monika
Back to top
View user's profile Send private message
moniaqua
n00b
n00b


Joined: 19 Dec 2021
Posts: 15
Location: Bavaria

PostPosted: Thu Dec 23, 2021 10:32 pm    Post subject: Reply with quote

Ok, wlp3s0 is loaded now, my nice little asus insisted on
Code:
CONFIG_RTL8XXXU_UNTESTED=y
.
Now challenge still is to figure out how to get it to fly - it keeps repeating
Code:
Dec 23 23:13:54 mmcgentooasus kernel: rtw_8822ce 0000:03:00.0: sta nn:nn:nn:nn:nn:nn with macid 0 left
Dec 23 23:15:58 mmcgentooasus kernel: wlp3s0: authenticate with nn:nn:nn:nn:nn:nn
Dec 23 23:15:59 mmcgentooasus kernel: wlp3s0: send auth to nn:nn:nn:nn:nn:nn (try 1/3)
Dec 23 23:15:59 mmcgentooasus kernel: wlp3s0: authenticated
Dec 23 23:15:59 mmcgentooasus kernel: wlp3s0: associate with nn:nn:nn:nn:nn:nn (try 1/3)
Dec 23 23:15:59 mmcgentooasus kernel: wlp3s0: RX AssocResp from nn:nn:nn:nn:nn:nn (capab=0x411 status=0 aid=8)
Dec 23 23:15:59 mmcgentooasus kernel: rtw_8822ce 0000:03:00.0: sta nn:nn:nn:nn:nn:nn joined with macid 0
Dec 23 23:15:59 mmcgentooasus kernel: wlp3s0: associated
Dec 23 23:16:09 mmcgentooasus kernel: wlp3s0: deauthenticating from nn:nn:nn:nn:nn:nn by local choice (Reason: 3=DEAUTH_LEAVING)

what, if I understood correctly, tells me that I have two network managers running? Could there be a different reason?
Neither dhcpcd nor network manager are installed, so they shouldn't interfere. I tried to set up netifrc, could this interfere with wpa_supplicant?
_________________
cu
Monika
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Thu Dec 23, 2021 10:38 pm    Post subject: Reply with quote

moniaqua,

Code:
Reason: 3=DEAUTH_LEAVING
usually means that two or more things ace trying to control the interface at the same time.
It can even be multiple instance of the same thing.

How to proceed.
Remove all the things in the default runlevel that could start the wifi interface.
Reboot to test. If WiFi starts you have missed one, or more.
Rinse and repeat until wifi does not start.

Now add exactly one thing to the default runlevel to start wifi.
Reboot to test.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
moniaqua
n00b
n00b


Joined: 19 Dec 2021
Posts: 15
Location: Bavaria

PostPosted: Fri Dec 24, 2021 3:34 pm    Post subject: Reply with quote

Still rinsing here :) I'm curious where it will be hiding. Somehow I am getting the impression that kernel is still involved and I'll have to look deeper there.

But as the module loads wonderfully now, I mark this thread as solved. Thank you and happy holidays :)
_________________
cu
Monika
Back to top
View user's profile Send private message
moniaqua
n00b
n00b


Joined: 19 Dec 2021
Posts: 15
Location: Bavaria

PostPosted: Tue Dec 28, 2021 12:32 pm    Post subject: Reply with quote

Another heads up - wireless works so far, with the help of my son - ("Mom, you have a lowecaser letter here in the passphrase, it's supposed to be uppercase" "I triple-checked that." "It's still lowercase." :roll: :oops:)

Sound works so far, too. Both needs to be completed and optimized, though. Btw, official Alsa-wiki is far from understandable for me. Thanks goddess I have my lovely husband (who had an idea about those curious "!" in config files) and there is also the page of SwifT, the wikified Alsa-Guide.
_________________
cu
Monika
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum