20220211关于TL-WDN6200(RTL8812AU)在ubuntu20.04.3下安装驱动程序的历险记
2022/2/11 14:42
一个超级巨大的合作伙伴报告,华硕无畏Pro14 锐龙版(华硕M3401)在ubuntu20.04.3下无法链接WIFI。
https://item.jd.com/100021150248.html
他们外部电脑无法连接以太网,当然电脑也没有以太网接口
让他们去找一个USB接口的WIFI,于是我们TL-WDN6200(RTL8812AU)登场了。
https://service.tp-link.com.cn/search_download?level1=0&level2=0&product=0&downloadPageNum=1&ordertype=0&classtip=all&readmore=0&kw=TL-WDN6200
TL-WDN6200 V2.0 Linux驱动程序20220802 5051 2022/1/29
TL-WDN6200 V2.0 Linux驱动程序.zip
你放心,这里下载的驱动程序不能用的,合作伙伴报告编译错误!
不过也是有收获的,压缩包中的:TL-WDN6200 V2.0 Linux驱动程序配置指南.pdf
可以知道TL-WDN6200的主芯片型号:RTL8812AU。
TP-LINK官方只测试过Ubuntu18.04,linux内核版本5.8。
rootroot@rootroot-System-Product1:~$
rootroot@rootroot-System-Product1:~$ uname -r
5.13.0-28-generic
rootroot@rootroot-System-Product1:~$
rootroot@rootroot-System-Product1:~$ cat /etc/issue
Ubuntu 20.04.3 LTS \n \l
rootroot@rootroot-System-Product1:~$
竟然高版本不支持,神奇了。
继续百度:RTL8812AU ubuntu20.04
RTL8812AU ubuntu20.04.3
https://www.cnblogs.com/chencarl/p/12391105.html
RTL8812AU双频无线网卡在ubuntu19和20上的驱动安装
【GITHUB下载速度因人而异,甚至打不开页面都有可能,看人品了!】
驱动也疯狂
收获以后,一看,双天线装起,确实帅了点,光看逼格都高阿。迫不及待的插上,没法识别。这正常,还是要安装驱动的嘛,急匆匆跑到卖家那里一看,原来是kail系统的驱动。我X
,自己动手搜索驱动吧,看到说18.04以上的直接安装
sudo apt-get update
sudo apt-get install rtl8812au-dkms
安装以后,还是无反应,是不是要重启哦,重启过后依旧无反映,在更新设置里看专有驱动也是安装的有的,但是无线网卡就是无法识别。那么就只有怀疑我的系统内核版本较高,已经不匹配了(18.04内核是5.2,现在我已经由19.04升级到20了,内核是5.4),自己下驱动安装巴。搜了一下,这个网址的更新比较新,上面写了支持5.4的内核
https://github.com/gnab/rtl8812au
下载完成后解压进入该驱动目录执行编译
sudo make
sudo make install
sudo modprobe 8812au
ok,无线网卡瞬间识别成功,so easy, too happy。
卖这个型号的淘宝的店主,是不是要给点售后服务费呢。
rootroot@rootroot-System-Product1:~$
rootroot@rootroot-System-Product1:~$ sudo apt-get install rtl8812au-dkms
[sudo] password for rootroot:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dctrl-tools dkms
Suggested packages:
debtags menu
The following NEW packages will be installed:
dctrl-tools dkms rtl8812au-dkms
0 upgraded, 3 newly installed, 0 to remove and 87 not upgraded.
Need to get 1,244 kB of archives.
After this operation, 9,505 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 dctrl-tools amd64 2.24-3 [61.5 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 dkms all 2.8.1-5ubuntu2 [66.8 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu focal-updates/universe amd64 rtl8812au-dkms all 4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3 [1,116 kB]
Fetched 1,244 kB in 2s (499 kB/s)
Selecting previously unselected package dctrl-tools.
(Reading database ... 209450 files and directories currently installed.)
Preparing to unpack .../dctrl-tools_2.24-3_amd64.deb ...
Unpacking dctrl-tools (2.24-3) ...
Selecting previously unselected package dkms.
Preparing to unpack .../dkms_2.8.1-5ubuntu2_all.deb ...
Unpacking dkms (2.8.1-5ubuntu2) ...
Selecting previously unselected package rtl8812au-dkms.
Preparing to unpack .../rtl8812au-dkms_4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3_all.deb ...
Unpacking rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3) ...
Setting up dctrl-tools (2.24-3) ...
Setting up dkms (2.8.1-5ubuntu2) ...
Setting up rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu13~20.04.3) ...
Loading new rtl8812au-4.3.8.12175.20140902+dfsg DKMS files...
Building for 5.13.0-28-generic
Building initial module for 5.13.0-28-generic
Can't load /var/lib/shim-signed/mok/.rnd into RNG
140450719651136:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:98:Filename=/var/lib/shim-signed/mok/.rnd
Generating a RSA private key
.......+++++
.+++++
writing new private key to '/var/lib/shim-signed/mok/MOK.priv'
-----
Secure Boot not enabled on this system.
Done.
8812au.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.13.0-28-generic/updates/dkms/
depmod...
DKMS: install completed.
Processing triggers for man-db (2.9.1-1) ...
rootroot@rootroot-System-Product1:~$
rootroot@rootroot-System-Product1:~$
rootroot@rootroot-System-Product1:~$
rootroot@rootroot-System-Product1:~$
rootroot@rootroot-System-Product1:~$ lsmod
Module Size Used by
xt_conntrack 16384 1
xt_MASQUERADE 20480 1
nf_conntrack_netlink 49152 0
nfnetlink 20480 2 nf_conntrack_netlink
xfrm_user 36864 1
xfrm_algo 16384 1 xfrm_user
xt_addrtype 16384 2
iptable_filter 16384 1
iptable_nat 16384 1
nf_nat 49152 2 iptable_nat,xt_MASQUERADE
nf_conntrack 147456 4 xt_conntrack,nf_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6 24576 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
libcrc32c 16384 2 nf_conntrack,nf_nat
bpfilter 16384 0
br_netfilter 28672 0
bridge 266240 1 br_netfilter
stp 16384 1 bridge
llc 16384 2 bridge,stp
ccm 20480 3
rfcomm 81920 4
aufs 258048 0
cmac 16384 3
algif_hash 16384 1
algif_skcipher 16384 1
overlay 126976 0
af_alg 28672 6 algif_hash,algif_skcipher
bnep 24576 2
nls_iso8859_1 16384 1
intel_rapl_msr 20480 0
intel_rapl_common 24576 1 intel_rapl_msr
edac_mce_amd 32768 0
snd_hda_codec_realtek 143360 1
snd_hda_codec_generic 81920 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
snd_hda_codec_hdmi 61440 1
snd_hda_intel 53248 4
snd_intel_dspcfg 28672 1 snd_hda_intel
snd_intel_sdw_acpi 20480 1 snd_intel_dspcfg
snd_hda_codec 147456 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
iwlmvm 421888 0
snd_hda_core 94208 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep 16384 1 snd_hda_codec
amdgpu 6344704 10
mac80211 1028096 1 iwlmvm
libarc4 16384 1 mac80211
snd_pcm 114688 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
kvm 864256 0
iwlwifi 372736 1 iwlmvm
crct10dif_pclmul 16384 1
iommu_v2 24576 1 amdgpu
ghash_clmulni_intel 16384 0
snd_seq_midi 20480 0
gpu_sched 36864 1 amdgpu
aesni_intel 376832 6
btusb 61440 0
drm_ttm_helper 16384 1 amdgpu
snd_seq_midi_event 16384 1 snd_seq_midi
btrtl 24576 1 btusb
ttm 69632 2 amdgpu,drm_ttm_helper
btbcm 16384 1 btusb
crypto_simd 16384 1 aesni_intel
snd_rawmidi 36864 1 snd_seq_midi
drm_kms_helper 253952 1 amdgpu
btintel 32768 1 btusb
cryptd 24576 3 crypto_simd,ghash_clmulni_intel
snd_seq 73728 2 snd_seq_midi,snd_seq_midi_event
cec 53248 1 drm_kms_helper
rapl 20480 0
bluetooth 651264 31 btrtl,btintel,btbcm,bnep,btusb,rfcomm
cfg80211 888832 3 iwlmvm,iwlwifi,mac80211
joydev 28672 0
input_leds 16384 0
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer 40960 2 snd_seq,snd_pcm
ecdh_generic 16384 2 bluetooth
ecc 36864 1 ecdh_generic
rc_core 61440 1 cec
eeepc_wmi 16384 0
snd 94208 19 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
wmi_bmof 16384 0
efi_pstore 16384 0
i2c_algo_bit 16384 1 amdgpu
soundcore 16384 1 snd
fb_sys_fops 16384 1 drm_kms_helper
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
ccp 98304 0
mac_hid 16384 0
sch_fq_codel 20480 2
msr 16384 0
parport_pc 45056 0
ppdev 24576 0
lp 20480 0
parport 65536 3 parport_pc,lp,ppdev
drm 557056 8 gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
ip_tables 32768 2 iptable_filter,iptable_nat
x_tables 49152 6 xt_conntrack,iptable_filter,xt_addrtype,ip_tables,iptable_nat,xt_MASQUERADE
autofs4 45056 2
hid_generic 16384 0
usbhid 57344 0
hid 139264 2 usbhid,hid_generic
mfd_aaeon 16384 0
asus_wmi 36864 2 eeepc_wmi,mfd_aaeon
sparse_keymap 16384 1 asus_wmi
video 53248 1 asus_wmi
crc32_pclmul 16384 0
r8169 77824 0
nvme 49152 5
ahci 40960 0
xhci_pci 24576 0
gpio_amdpt 20480 0
realtek 32768 1
nvme_core 126976 7 nvme
i2c_piix4 28672 0
libahci 36864 1 ahci
xhci_pci_renesas 20480 1 xhci_pci
wmi 32768 3 asus_wmi,wmi_bmof,mfd_aaeon
gpio_generic 20480 1 gpio_amdpt
rootroot@rootroot-System-Product1:~$
rootroot@rootroot-System-Product1:~$
https://zhuanlan.zhihu.com/p/453292030
Ubuntu20.04安装 Tenda U12无线网卡
肖冬冬
1、在网站下载rtl8812au-master.zip
https://github.com/gnab/rtl8812au
https://blog.csdn.net/drivery/article/details/115479099
GNU / Linux Ubuntu 20.04 Realtek rtl8812au驱动程序安装指南
https://blog.csdn.net/drivery/article/details/115768323
Realtek 8812au on Ubuntu 20.04
https://blog.csdn.net/zzzzllll2006/article/details/82024679
RTL8811AU无线网卡linux驱动安装笔记(Fedora、Ubuntu)