Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rtl8812au Wifi Adapter not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 77

PostPosted: Sat Nov 09, 2019 5:16 am    Post subject: rtl8812au Wifi Adapter not working Reply with quote

Hi All,

I have a TP Link Archer Ac600 wifi USB dongle. It uses the module RTL8812au.

I used the Debian live CD for installation of Gentoo. In the Live CD I was able to install the drivers using the source code online and DKMS command and it functions post which Gentoo was installed. The Live CD had kernel version 5.0+

After installing gentoo and configuring the kernel (using the same source code) compiled the wifi driver for Gentoo-Sources kernel ver 5.3.9 and 4.19.72 (Stable). In both the module loads perfectly in the kernel.

The lsusb shows the adapter.

ifconfig does not show the device, it just shows lo.

The /dev/ does not show any device named eth0 or enp*

wpa_supplicant shows no adapter

Question) How do I get the device in /dev/ I have tried rebooting the PC many times, plugging / unplugging the adapter etc... Also followed the guide on https://wiki.gentoo.org/wiki/AC1200_Wireless_Adapters

Regards,
Rohit
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Nov 09, 2019 6:16 am    Post subject: Reply with quote

Quote:
In both the module loads perfectly in the kernel.

Did you look at the dmesg? How do you know the module loads perfectly?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 77

PostPosted: Sat Nov 09, 2019 6:49 am    Post subject: Reply with quote

by Using lsmod I could see the modules uploaded to the kernel.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Nov 09, 2019 2:13 pm    Post subject: Reply with quote

I see. You decided not to examine your dmesg. No problem, I have plenty of time. What's your address?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 09, 2019 2:28 pm    Post subject: Reply with quote

rsnfunky,

Loading the kernel module is required but not sufficient.

dmesg will be interesting
_________________
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
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 77

PostPosted: Sat Nov 09, 2019 2:30 pm    Post subject: Reply with quote

The dmesg shows module has loaded and device has been named as wlp0s19f2u1u1. Image attached for dmesg

[img=http://img18125.imagevenue.com/loc1022/th_10598_IMG_20191109_194906377_HDR_122_1022lo.jpg]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 09, 2019 2:53 pm    Post subject: Reply with quote

rsnfunky,

That image isn't very useful. It only shows
Code:
dmesg | grep 88

That Error Driver 'rtl8812au ... is a worry.
Put the entire dmesg onto a pastebin site. If you don't have any networking, save dmesg to a file.
Code:
dmesg > /dmesg.txt


Reboot with something where networking works. Mount your Gentoo root filesystem an /mnt/gentoo then pastebin the file /mnt/gentoo/dmesg.txt
Its too big for a post.
_________________
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
rsnfunky
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2007
Posts: 77

PostPosted: Sat Nov 09, 2019 3:08 pm    Post subject: Reply with quote

The complete Dmesg is given below:

https://pastebin.com/4KfCiVFz
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 09, 2019 4:25 pm    Post subject: Reply with quote

rsnfunky,

Two or three things.

Code:
[    1.757075] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.757191] cfg80211: failed to load regulatory.db
That may or may not be a bad thing.
If the regulatory.db file does not load, the wifi channels you can use will be seriously limited.

As you have cfg80211 built into the kernel, you should build regulatory.db into the kernel too.

Your WiFi is on the USB bus. Its detected here
Code:
[    2.010959] usb 2-1.1: New USB device found, idVendor=2357, idProduct=011e, bcdDevice= 2.00
[    2.010961] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.010963] usb 2-1.1: Product: 802.11ac WLAN Adapter

That's a rtl8812au.

The internet says that it requires firmware. dmesg normally says if its not loaded but your dmesg is silent on the topic.
Do you have the firmware?

You appear to have two drivers for your wifi.
Code:
[   10.369574] 8812au: loading out-of-tree module taints kernel.
[   10.370209] 8812au: module verification failed: signature and/or required key missing - tainting kernel
[   10.374036] usbcore: registered new interface driver rtl8812au
and
Code:
[   11.988443] RTL871X: module init start
[   11.988445] RTL871X: rtl8812au v4.3.14_13455.20150212_BTCOEX20150128-51
[   11.988446] RTL871X: rtl8812au BT-Coex version = BTCOEX20150128-51
[   11.988456] Error: Driver 'rtl8812au' is already registered, aborting...
[   11.988458] RTL871X: module init ret=-16

They will fight over the hardware and neither will work.

There appears to be no attempt to start the wifi. dmesg should contain associating and authenticating messages, or at least, the attempts.
There is nothing.
_________________
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
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 486
Location: Oleiros

PostPosted: Mon Oct 26, 2020 8:01 pm    Post subject: Reply with quote

Did you get it to work? If so, could you please provide a mini HOWTO?
Back to top
View user's profile Send private message
AlexJGreen
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2018
Posts: 149

PostPosted: Tue Oct 27, 2020 1:49 pm    Post subject: Reply with quote

_

Last edited by AlexJGreen on Mon Dec 28, 2020 3:02 am; edited 1 time in total
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 486
Location: Oleiros

PostPosted: Tue Oct 27, 2020 2:14 pm    Post subject: Reply with quote

good point :oops: The corresponding line from lsusb is
Code:
Bus 001 Device 007: ID 2357:0120 TP-Link 802.11ac WLAN Adapter

I'm using current stable gentoo-sources, i.e., 5.4.72-gentoo
Back to top
View user's profile Send private message
AlexJGreen
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2018
Posts: 149

PostPosted: Wed Oct 28, 2020 10:46 am    Post subject: Reply with quote

_

Last edited by AlexJGreen on Mon Dec 28, 2020 3:02 am; edited 1 time in total
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 486
Location: Oleiros

PostPosted: Wed Oct 28, 2020 8:04 pm    Post subject: Reply with quote

Thanks for the tips.

I tried this driver

https://github.com/aircrack-ng/rtl8812au

which looks pretty well maintained, and even has an available ebuild

http://gpo.zugaina.org/net-wireless/rtl8812au_aircrack-ng

and set up the kernel following

https://wiki.gentoo.org/wiki/AC1200_Wireless_Adapters#Working_devices

although that's for a different adapter (something is better than nothing).

When I plug in my adapter I see a lot of errors in dmesg, such as

Code:
WARNING: CPU: 1 PID: 1210 at net/wireless/core.c:414 wiphy_new_nm+0x630/0x6c0
[   38.249046] Modules linked in: 88XXau(O+) joydev nvidia_drm(PO) nvidia_modeset(PO) mxm_wmi nvidia(PO) x86_pkg_temp_thermal coretemp wmi efivarfs
[   38.249051] CPU: 1 PID: 1210 Comm: systemd-udevd Tainted: P           O      5.4.72-gentoo #3
[   38.249052] Hardware name: MSI MS-7978/Z170A GAMING M3 (MS-7978), BIOS A.C0 01/25/2018
[   38.249053] RIP: 0010:wiphy_new_nm+0x630/0x6c0
[   38.249054] Code: 0f 0b e9 6f fb ff ff 0f 0b e9 50 fb ff ff 0f 0b e9 31 fb ff ff 0f 0b e9 12 fb ff ff 0f 0b e9 fa fa ff ff 0f 0b e9 db fa ff ff <0f> 0b e9 c2 fa ff ff 0f 0b e9 a3 fa ff ff 0f 0b e9 84 fa ff ff 0f
[   38.249055] RSP: 0018:ffff88883966fa38 EFLAGS: 00010246
[   38.249056] RAX: ffff88882c0cb000 RBX: ffffffffa1b969c0 RCX: 0000000000000000
[   38.249057] RDX: 0000000000000000 RSI: 0000000000000010 RDI: ffffffffa1b969c0
[   38.249057] RBP: ffff88882c0c8000 R08: ffff88884eaaae80 R09: ffff888839cab000
[   38.249058] R10: ffff888839cab000 R11: ffff88884b488000 R12: ffff88882a836c00
[   38.249059] R13: 0000000000000000 R14: ffff88882a836c30 R15: 0000000000000000
[   38.249060] FS:  00007fcfca358800(0000) GS:ffff88884ea80000(0000) knlGS:0000000000000000
[   38.249060] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   38.249061] CR2: 00007fcfcaabf442 CR3: 000000083966a001 CR4: 00000000003606e0
[   38.249062] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   38.249062] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   38.249063] Call Trace:
[   38.249102]  rtw_cfg80211_ndev_res_alloc+0x3d/0x690 [88XXau]
[   38.249125]  rtw_os_ndev_alloc+0x131/0x160 [88XXau]
[   38.249145]  rtw_os_ndevs_alloc+0x69/0xf0 [88XXau]


(the error relating the nvidia module and 88XXau is very strange 8O )

It might be some module missing from the kernel or something entirely different, no idea. Also, I'm getting this ugly errors after enabling some cfg80211-related stuff in the kernel. Before, errors were more along the lines of "symbol some_function_name missing from XXX".
Back to top
View user's profile Send private message
mani001
Guru
Guru


Joined: 04 Dec 2004
Posts: 486
Location: Oleiros

PostPosted: Sat Oct 31, 2020 8:30 am    Post subject: Reply with quote

Just in case someone else stumbles upon this...I got it working: I just had to follow the instructions in the wiki I mentioned above, restart, and, afterwards, emerge rtl8812au_aircrack-ng from the overlay. I'm pretty sure that I tried that before :roll: , but probably missed something important (maybe included in the kernel something instead of compiling as a module...whatever).

About the wiki, my precise adapter is never mentioned there, but the important bit is the driver being rtl8812au. Also, there are a couple of kernel settings that don't seem to exist anymore (I think they were those related to RTL8723AU), but that's fine.
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1289

PostPosted: Sun Nov 01, 2020 7:34 pm    Post subject: Reply with quote

I am not 100% sure, if this will help, or still is the correct way to do, but here is what I have, and how I got it running:

Bus 001 Device 002: ID 0b05:1853 ASUSTek Computer, Inc. 802.11ac NIC

Needed kernel module: 88XXau

Got from rtl8812au_aircrack-ng from pentoo overlay.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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