UPDATE: I turned it into blog post, you can read it here: https://suraj.dev/blog/configuring-wireless-usb-adapter-archer-t2u-nano-on-linux
My T2U has ID 2357:011e
and solution metioned in this SO Thread is for same devide ID
Here is full text of Answer: https://askubuntu.com/a/1149288
# For the T2U with ID 2357:011e do
sudo apt install git dkms
git clone https://github.com/jeremyb31/rtl8812au-1.git
cd rtl8812au-1
sudo ./dkms-install.sh
# Secure Boot will need to be disabled. The github repo name is a little misleading as the source code supports rtl8812au, rtl8814au, and rtl8821au
After this I just unplugged and plugged the device again, and it started blinking and adaptor showed up in wifi tab
- See: https://askubuntu.com/questions/1149117/tp-link-ac600-archer-t2u-nano-driver-for-ubuntu-18-04
- Drivers: https://github.com/jeremyb31/rtl8812au-1
here is before and after speed test, before is on 2.4Ghz SSID, and after is on 5Ghz SSID link
➜ Wi-Fi sudo pacman -S dkms
[sudo] пароль для kirill:
предупреждение: dkms-2.8.4-1 не устарел -- переустанавливается
разрешение зависимостей...
проверка конфликтов...
Пакеты (1) dkms-2.8.4-1
Будет загружено: 0,05 MiB
Будет установлено: 0,17 MiB
Изменение размера: 0,00 MiB
:: Приступить к установке? [Y/n] y
:: Получение пакетов...
dkms-2.8.4-1-any 54,5 KiB 47,2 KiB/s 00:01 [######################] 100%
(1/1) проверка ключей [######################] 100%
(1/1) проверка целостности пакета [######################] 100%
(1/1) загрузка файлов пакетов [######################] 100%
(1/1) проверка конфликтов файлов [######################] 100%
(1/1) проверка доступного места [######################] 100%
:: Обработка изменений пакета...
(1/1) переустановка dkms [######################] 100%
:: Запуск post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
➜ Wi-Fi git clone https://github.com/jeremyb31/rtl8812au-1.git
Клонирование в «rtl8812au-1»…
remote: Enumerating objects: 7008, done.
remote: Total 7008 (delta 0), reused 0 (delta 0), pack-reused 7008
Получение объектов: 100% (7008/7008), 32.31 МиБ | 101.00 КиБ/с, готово.
Определение изменений: 100% (4784/4784), готово.
➜ Wi-Fi cd rtl8812au-1
➜ rtl8812au-1 git:(v5.3.4) sudo ./dkms-install.sh
[sudo] пароль для kirill:
About to run dkms install steps...
Creating symlink /var/lib/dkms/rtl8812au/5.3.4/source ->
/usr/src/rtl8812au-5.3.4
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' -j4 KVER=5.12.9-zen1-1-zen KSRC=/lib/modules/5.12.9-zen1-1-zen/build...........(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.12.9-zen1-1-zen (x86_64)
Consult /var/lib/dkms/rtl8812au/5.3.4/build/make.log for more information.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' -j4 KVER=5.12.9-zen1-1-zen KSRC=/lib/modules/5.12.9-zen1-1-zen/build...........(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.12.9-zen1-1-zen (x86_64)
Consult /var/lib/dkms/rtl8812au/5.3.4/build/make.log for more information.
Finished running dkms install steps.
➜ rtl8812au-1 git:(v5.3.4) micro /var/lib/dkms/rtl8812au/5.3.4/build/make.log
➜ rtl8812au-1 git:(v5.3.4) export USER_EXTRA_CFLAGS=-Wno-error=incompatible-pointer-types
➜ rtl8812au-1 git:(v5.3.4) sudo ./dkms-install.sh
About to run dkms install steps...
Error! DKMS tree already contains: rtl8812au-5.3.4
You cannot add the same module/version combo more than once.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' -j4 KVER=5.12.9-zen1-1-zen KSRC=/lib/modules/5.12.9-zen1-1-zen/build..........(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.12.9-zen1-1-zen (x86_64)
Consult /var/lib/dkms/rtl8812au/5.3.4/build/make.log for more information.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' -j4 KVER=5.12.9-zen1-1-zen KSRC=/lib/modules/5.12.9-zen1-1-zen/build...........(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.12.9-zen1-1-zen (x86_64)
Consult /var/lib/dkms/rtl8812au/5.3.4/build/make.log for more information.
Finished running dkms install steps.
➜ rtl8812au-1 git:(v5.3.4) sudo make dkms_install
/bin/sh: строка 1: bc: команда не найдена
make: *** Нет правила для сборки цели «dkms_install». Останов.
➜ rtl8812au-1 git:(v5.3.4) cat /var/lib/dkms/rtl8812au/5.3.4/build/make.log
DKMS make.log for rtl8812au-5.3.4 for kernel 5.12.9-zen1-1-zen (x86_64)
Вс 06 июн 2021 16:38:36 +06
/bin/sh: строка 1: bc: команда не найдена
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.12.9-zen1-1-zen/build M=/var/lib/dkms/rtl8812au/5.3.4/build O="" modules
make[1]: вход в каталог «/usr/lib/modules/5.12.9-zen1-1-zen/build»
/bin/sh: строка 1: bc: команда не найдена
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_debug.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_ieee80211.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_mlme.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_mlme_ext.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_mi.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_wlan_util.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_vht.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_pwrctrl.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_rf.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_recv.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_sta_mgt.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_ap.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/mesh/rtw_mesh.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/mesh/rtw_mesh_pathtbl.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/mesh/rtw_mesh_hwmp.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_xmit.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_p2p.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_rson.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_tdls.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_br_ext.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_iol.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_sreset.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_btcoex_wifionly.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_btcoex.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_beamforming.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_odm.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_rm.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/rtw_rm_fsm.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/core/efuse/rtw_efuse.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/osdep_service.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.o
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/usb_intf.o
/var/lib/dkms/rtl8812au/5.3.4/build/core/efuse/rtw_efuse.c: В функции «rtw_efuse_analyze»:
/var/lib/dkms/rtl8812au/5.3.4/build/core/efuse/rtw_efuse.c:714:17: предупреждение: эта «if» клаузула не защищает... [-Wmisleading-indentation]
714 | if (i % 16 == 0)
| ^~
In file included from /var/lib/dkms/rtl8812au/5.3.4/build/include/drv_types.h:60,
from /var/lib/dkms/rtl8812au/5.3.4/build/core/efuse/rtw_efuse.c:17:
/var/lib/dkms/rtl8812au/5.3.4/build/include/rtw_debug.h:231:9: замечание: ...этот оператор, но последний ошибочно полагается на защиту «if»
231 | do {
| ^~
/var/lib/dkms/rtl8812au/5.3.4/build/core/efuse/rtw_efuse.c:716:25: замечание: в расширении макроса «_RTW_PRINT_SEL»
716 | _RTW_PRINT_SEL(RTW_DBGDUMP, "%02X%s"
| ^~~~~~~~~~~~~~
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.c:1415:35: ошибка: initialization of «u16 (*)(struct net_device *, struct sk_buff *, struct net_device )» {aka «short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device )»} from incompatible pointer type «u16 ()(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))» {aka «short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))»} [-Werror=incompatible-pointer-types]
1415 | .ndo_select_queue = rtw_select_queue,
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.c:1415:35: замечание: (где-то рядом с инициализацией для «rtw_netdev_ops.ndo_select_queue»)
CC [M] /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/usb_ops_linux.o
cc1: некоторые предупреждения считаются ошибками
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.o] Ошибка 1
make[2]: *** Ожидание завершения заданий…
make[1]: *** [Makefile:1853: /var/lib/dkms/rtl8812au/5.3.4/build] Ошибка 2
make[1]: выход из каталога «/usr/lib/modules/5.12.9-zen1-1-zen/build»
make: *** [Makefile:1711: modules] Ошибка 2
➜ rtl8812au-1 git:(v5.3.4)