Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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*] $
@surajsahani

This comment has been minimized.

Copy link

@surajsahani surajsahani commented Jun 9, 2020

can you post it for Ubuntu 20.04 LTS

@electron0zero

This comment has been minimized.

Copy link
Owner Author

@electron0zero electron0zero commented Jun 9, 2020

@surajsahani this should work for 20.04, I wrote 18.04 because that's the version I had and tested it on

@Rafeeshaik

This comment has been minimized.

Copy link

@Rafeeshaik Rafeeshaik commented Jun 18, 2020

@electron0zero
I got this error on 20.04, can you please help?

Building module:
cleaning build area...
'make' -j16 KVER=5.4.0-37-generic KSRC=/lib/modules/5.4.0-37-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.4.0-37-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' -j16 KVER=5.4.0-37-generic KSRC=/lib/modules/5.4.0-37-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.4.0-37-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/5.3.4/build/make.log for more information.
Finished running dkms install steps.

@devcircus

This comment has been minimized.

Copy link

@devcircus devcircus commented Jun 24, 2020

@Rafeeshaik did you find a solution for 5.4 kernel?

@sunindersingh

This comment has been minimized.

Copy link

@sunindersingh sunindersingh commented Jun 29, 2020

@Rafeeshaik
@devcircus

This driver is working with Ubuntu 20.04 https://github.com/aircrack-ng/rtl8812au

@surajsahani

This comment has been minimized.

Copy link

@surajsahani surajsahani commented Jun 30, 2020

@surajsahani this should work for 20.04, I wrote 18.04 because that's the version I had and tested it on

Cool, thanks it's working fine.

@chilabot

This comment has been minimized.

Copy link

@chilabot chilabot commented Aug 7, 2020

@electron0zero
I got this error on 20.04, can you please help?

Building module:
cleaning build area...
'make' -j16 KVER=5.4.0-37-generic KSRC=/lib/modules/5.4.0-37-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.4.0-37-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' -j16 KVER=5.4.0-37-generic KSRC=/lib/modules/5.4.0-37-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.4.0-37-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/5.3.4/build/make.log for more information.
Finished running dkms install steps.

The compilation process might be failing. Post the error logged in '/var/lib/dkms/rtl8812au/5.3.4/build/make.log'.

@btcross26

This comment has been minimized.

Copy link

@btcross26 btcross26 commented Aug 31, 2020

Here is the error I get for kernel 5.4.0-26, with same bad return statuses as above:

DKMS make.log for rtl8812au-5.3.4 for kernel 5.4.0-26-generic (x86_64)
Mon 31 Aug 2020 10:50:43 AM EDT
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.0-26-generic/build M=/var/lib/dkms/rtl8812au/5.3.4/build O="" modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-26-generic'
  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
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/usb_ops_linux.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/xmit_linux.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/mlme_linux.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/recv_linux.o
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.c:1415:22: error: 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:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_cfg80211.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_cfg80211.c:9512:25: warning: initialized field overwritten [-Woverride-init]
 9512 |  .set_monitor_channel = cfg80211_rtw_set_monitor_channel,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_cfg80211.c:9512:25: note: (near initialization for ‘rtw_cfg80211_ops.set_monitor_channel’)
make[1]: *** [Makefile:1719: /var/lib/dkms/rtl8812au/5.3.4/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-26-generic'
make: *** [Makefile:1711: modules] Error 2
@chilabot

This comment has been minimized.

Copy link

@chilabot chilabot commented Aug 31, 2020

Here is the error I get for kernel 5.4.0-26, with same bad return statuses as above:

DKMS make.log for rtl8812au-5.3.4 for kernel 5.4.0-26-generic (x86_64)
Mon 31 Aug 2020 10:50:43 AM EDT
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.0-26-generic/build M=/var/lib/dkms/rtl8812au/5.3.4/build O="" modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-26-generic'
  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
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/usb_ops_linux.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/xmit_linux.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/mlme_linux.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/recv_linux.o
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.c:1415:22: error: 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:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_cfg80211.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_cfg80211.c:9512:25: warning: initialized field overwritten [-Woverride-init]
 9512 |  .set_monitor_channel = cfg80211_rtw_set_monitor_channel,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_cfg80211.c:9512:25: note: (near initialization for ‘rtw_cfg80211_ops.set_monitor_channel’)
make[1]: *** [Makefile:1719: /var/lib/dkms/rtl8812au/5.3.4/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-26-generic'
make: *** [Makefile:1711: modules] Error 2

Try:

export USER_EXTRA_CFLAGS=-Wno-error=incompatible-pointer-types
sudo ./dkms-install.sh

and post the results.

@btcross26

This comment has been minimized.

Copy link

@btcross26 btcross26 commented Aug 31, 2020

Here is with the above extra USER_EXTRA_CFLAGS added - same but with the incompatible types added (only bottom portion posted). About to just roll back to a previous LTS addition with 4.15 kernel if I can't get this rocking. Thanks for the help though!

Update: It actually is identical I believe. I see the incompatible pointer types if you scroll way right though.

/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.c:1415:22: error: 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:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/wifi_regd.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/os_intfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_cfg80211.c:9512:25: warning: initialized field overwritten [-Woverride-init]
 9512 |  .set_monitor_channel = cfg80211_rtw_set_monitor_channel,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8812au/5.3.4/build/os_dep/linux/ioctl_cfg80211.c:9512:25: note: (near initialization for ‘rtw_cfg80211_ops.set_monitor_channel’)
make[1]: *** [Makefile:1719: /var/lib/dkms/rtl8812au/5.3.4/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-26-generic'
make: *** [Makefile:1711: modules] Error 2
@dashrk

This comment has been minimized.

Copy link

@dashrk dashrk commented Oct 18, 2020

i am trying to install driver for t2u v3 ac600 tp-link wifi adapter in my desktop with pop- os 20.04.steps run smoothly,but last step
"sudo ./dkms-install.sh" gives error "sudo: ./dkms-install.sh command not found."

Friends can anyone help me please.thanks.

@wiztensai

This comment has been minimized.

Copy link

@wiztensai wiztensai commented Oct 26, 2020

@Rafeeshaik
@devcircus

This driver is working with Ubuntu 20.04 https://github.com/aircrack-ng/rtl8812au

this is work too in ubuntu 20.10

@abefroman77

This comment has been minimized.

Copy link

@abefroman77 abefroman77 commented Dec 26, 2020

i am trying to install driver for t2u v3 ac600 tp-link wifi adapter in my desktop with pop- os 20.04.steps run smoothly,but last step
"sudo ./dkms-install.sh" gives error "sudo: ./dkms-install.sh command not found."

Friends can anyone help me please.thanks.

@dashrk I had the same problem. Got it working with the solution here.

"sudo ./dkms-install.sh"

should be

"sudo make dkms_install"

Reboot after install is complete. Mine connected to my home router automatically on boot.

@luan-nvg

This comment has been minimized.

Copy link

@luan-nvg luan-nvg commented Apr 19, 2021

i am trying to install driver for t2u v3 ac600 tp-link wifi adapter in my desktop with pop- os 20.04.steps run smoothly,but last step
"sudo ./dkms-install.sh" gives error "sudo: ./dkms-install.sh command not found."
Friends can anyone help me please.thanks.

@dashrk I had the same problem. Got it working with the solution here.

"sudo ./dkms-install.sh"

should be

"sudo make dkms_install"

Reboot after install is complete. Mine connected to my home router automatically on boot.

no mine didn't work

@luan-nvg

This comment has been minimized.

Copy link

@luan-nvg luan-nvg commented Apr 19, 2021

mine is not working on linux. only without windows .-. Ubuntu 20.04

@ndaneshraj

This comment has been minimized.

Copy link

@ndaneshraj ndaneshraj commented May 6, 2021

Thanks for the guidance. It worked like a charm for mine. I'm running a Ubuntu 16.04 LTS.

@tushargoyal22

This comment has been minimized.

Copy link

@tushargoyal22 tushargoyal22 commented May 26, 2021

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

@tushargoyal22

This comment has been minimized.

Copy link

@tushargoyal22 tushargoyal22 commented May 30, 2021

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

@tushargoyal22

This comment has been minimized.

Copy link

@tushargoyal22 tushargoyal22 commented May 30, 2021

➜ 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

This comment has been minimized.

Copy link

@pathToAC pathToAC commented Jun 2, 2021

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

@KirMozor

This comment has been minimized.

Copy link

@KirMozor 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)

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