Skip to content

Instantly share code, notes, and snippets.

@electron0zero
Last active June 22, 2024 16:30
Show Gist options
  • Save electron0zero/de0eaa13336042bad347f4dbd8749609 to your computer and use it in GitHub Desktop.
Save electron0zero/de0eaa13336042bad347f4dbd8749609 to your computer and use it in GitHub Desktop.
TP-Link AC600 Archer T2U Nano - Ubuntu 18.04 - Info and drivers

TP-Link AC600 Archer T2U Nano - Ubuntu 18.04 - Info and drivers

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

Image

more info

here is before and after speed test, before is on 2.4Ghz SSID, and after is on 5Ghz SSID link

Before (2.4 Ghz)

Before (2.4 Ghz)


After (5 Ghz)

After (5 Ghz)

# try to see if we can detect device
# steps:
# 1. tail syslog
# 2. plugin device
# if something is showing up it means we can detect the device
~/wd/adwyze[master*] $ sudo tail -n 0 -f /var/log/syslog
[sudo] password for electron:
Oct 30 14:09:19 Inspiron-3542 kernel: [53927.531034] usb 1-1.3: new high-speed USB device number 19 using ehci-pci
Oct 30 14:09:19 Inspiron-3542 kernel: [53927.640119] usb 1-1.3: New USB device found, idVendor=2357, idProduct=011e
Oct 30 14:09:19 Inspiron-3542 kernel: [53927.640124] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 30 14:09:19 Inspiron-3542 kernel: [53927.640127] usb 1-1.3: Product: 802.11ac WLAN Adapter
Oct 30 14:09:19 Inspiron-3542 kernel: [53927.640130] usb 1-1.3: Manufacturer: Realtek
Oct 30 14:09:19 Inspiron-3542 kernel: [53927.640132] usb 1-1.3: SerialNumber: 00e04c000001
Oct 30 14:09:19 Inspiron-3542 mtp-probe: checking bus 1, device 19: "/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3"
Oct 30 14:09:19 Inspiron-3542 mtp-probe: bus: 1, device: 19 was not an MTP device
Oct 30 14:09:19 Inspiron-3542 upowerd[1348]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1.3
^C
~/wd/adwyze[master*] $
# Now try to ID the USB device with lsusb, here it's `2357:011e` on `Bus 001 Device 003`
~/wd/adwyze[pod_refactor] $ lsusb
Bus 001 Device 006: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 011: ID 0cf3:0036 Atheros Communications, Inc.
Bus 001 Device 004: ID 1bcf:2b8b Sunplus Innovation Technology Inc.
Bus 001 Device 003: ID 2357:011e
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
~/wd/adwyze[master*] $
@tushargoyal22
Copy link

It was working fine from 3-4 months, today it stopped working , can someone explain and suggest the changes

@tushargoyal22
Copy link

Can you post the commands to uninstall the package , I need to install again , its not working recently

@tushargoyal22
Copy link

➜ rtl8812au-1 git:(v5.3.4) sudo ./dkms-install.sh

[sudo] password for tushar:
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' -j8 KVER=5.8.0-53-generic KSRC=/lib/modules/5.8.0-53-generic/build....(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8812au: 5.3.4 not found
Error! Bad return status for module build on kernel: 5.8.0-53-generic (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' -j8 KVER=5.8.0-53-generic KSRC=/lib/modules/5.8.0-53-generic/build...(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8812au: 5.3.4 not found
Error! Bad return status for module build on kernel: 5.8.0-53-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/5.3.4/build/make.log for more information.
Finished running dkms install steps.

@pathToAC
Copy link

pathToAC commented Jun 2, 2021

Someone please write the kernel version on which its succesfully running?

@KirMozor
Copy link

KirMozor commented Jun 6, 2021

➜ 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)

@jatinhemnani01
Copy link

image
it shows Wifi unavailable after installing the drivers.. I have two wifi adapters the tp link one is not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment