Archer T4U v1 Linux Driver install failure

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Archer T4U v1 Linux Driver install failure

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Archer T4U v1 Linux Driver install failure
Archer T4U v1 Linux Driver install failure
2015-09-13 22:55:42
Model :

Hardware Version : Not Clear

Firmware Version :

ISP :

I am trying to setup an Archer T4U in Ubuntu 14.04 kernel 3.19.0-28-generic with the driver on the downloads site:

Archer_T4U_V1_150821.zip

After unzipping the folder was renamed from "Archer T4U_V1_150821" to "T4U_V1_150821" to remove spaces. Then the following commands were run:

user@vb:~/Downloads/T4U_V1_150821$ sudo make clean
[sudo] password for user:
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
user@vb:~/Downloads/T4U_V1_150821$ sudo make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
----- extra_cflags=-DCONFIG_IOCTL_CFG80211=1 -DRTW_USE_CFG80211_STA_EVENT=1 -O1 -Wno-unused-variable -Wno-unused-value -Wno-unused-label -Wno-unused-parameter -Wno-unused-function -Wno-unused -I/include -I/platform -DCONFIG_RTL8812A -DCONFIG_MP_INCLUDED -DCONFIG_POWER_SAVING -DCONFIG_TRAFFIC_PROTECT -DCONFIG_LOAD_PHY_PARA_FROM_FILE -DREALTEK_CONFIG_PATH="" -DCONFIG_RTW_ADAPTIVITY_EN=0 -DCONFIG_RTW_ADAPTIVITY_MODE=0 -DCONFIG_BR_EXT '-DCONFIG_BR_EXT_BRNAME=br0' -DCONFIG_LITTLE_ENDIAN
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.19.0-28-generic/build M=/home/user/Downloads/T4U_V1_150821 modules
make[1]: Entering directory '/usr/src/linux-headers-3.19.0-28-generic'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
CC [M] /home/user/Downloads/T4U_V1_150821/core/rtw_cmd.o
CC [M] /home/user/Downloads/T4U_V1_150821/core/rtw_security.o
CC [M] /home/user/Downloads/T4U_V1_150821/core/rtw_debug.o
/home/user/Downloads/T4U_V1_150821/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/user/Downloads/T4U_V1_150821/core/rtw_debug.c:70:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
^
/home/user/Downloads/T4U_V1_150821/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__);
^
/home/user/Downloads/T4U_V1_150821/core/rtw_debug.c:70:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/home/user/Downloads/T4U_V1_150821/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/home/user/Downloads/T4U_V1_150821/core/rtw_debug.c:70:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/home/user/Downloads/T4U_V1_150821/core/rtw_debug.c:70:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/home/user/Downloads/T4U_V1_150821/core/rtw_debug.o' failed
make[2]: *** [/home/user/Downloads/T4U_V1_150821/core/rtw_debug.o] Error 1
Makefile:1395: recipe for target '_module_/home/user/Downloads/T4U_V1_150821' failed
make[1]: *** [_module_/home/user/Downloads/T4U_V1_150821] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.19.0-28-generic'
Makefile:1635: recipe for target 'modules' failed
make: *** [modules] Error 2

The device is recognised by the system as follows:

user@vb:~$ lsusb -v

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 3
bMaxPacketSize0 9
idVendor 0x1d6b Linux Foundation
idProduct 0x0003 3.0 root hub
bcdDevice 3.19
iManufacturer 3
iProduct 2
iSerial 1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 31
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
bMaxBurst 0


Can anyone identify why /home/user/Downloads/T4U_V1_150821/core/rtw_cmd.o cannot be created?
  0      
  0      
#1
Options
4 Reply
Re:Archer T4U v1 Linux Driver install failure
2015-09-14 16:20:06
Your model is Archer T4U?
Out of curiosity, where did you get the driver for linux? As I know, T4U is not compatible with Linux.
  0  
  0  
#2
Options
Re:Archer T4U v1 Linux Driver install failure
2015-09-14 21:15:09
Hi M,

There is a new driver on the downloads page:

http://www.tp-link.com/en/download/Archer-T4U_V1.html#Driver

It unzips to a folder with spaces in the name, which is not a good start. I found a blog post suggesting a fix:

http://sempike.blogspot.co.uk/2015/09/linux-mint-ubuntu-compiling-ac1200.html


I am on a new install so may not have all the dependencies to build the makefile, but I have no idea what may be missing :(
  0  
  0  
#3
Options
Re:Archer T4U v1 Linux Driver install failure
2015-10-28 17:53:47
Hi,
I am trying to make this card working on Ubuntu 12.04. When compiling, I have the following:

git@ubuntuVMWare:~/Archer$ make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
----- extra_cflags=-DCONFIG_IOCTL_CFG80211=1 -DRTW_USE_CFG80211_STA_EVENT=1 -O1 -Wno-unused-variable -Wno-unused-value -Wno-unused-label -Wno-unused-parameter -Wno-unused-function -Wno-unused -I/include -I/platform -DCONFIG_RTL8812A -DCONFIG_MP_INCLUDED -DCONFIG_POWER_SAVING -DCONFIG_TRAFFIC_PROTECT -DCONFIG_LOAD_PHY_PARA_FROM_FILE -DREALTEK_CONFIG_PATH="" -DCONFIG_RTW_ADAPTIVITY_EN=0 -DCONFIG_RTW_ADAPTIVITY_MODE=0 -DCONFIG_BR_EXT '-DCONFIG_BR_EXT_BRNAME=br0' -DCONFIG_LITTLE_ENDIAN
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/3.2.0-23-generic-pae/build M=/home/moncho/Archer modules
make[1]: se ingresa al directorio «/usr/src/linux-headers-3.2.0-23-generic-pae»
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
CC [M] /home/moncho/Archer/core/rtw_cmd.o
CC [M] /home/moncho/Archer/core/rtw_security.o
CC [M] /home/moncho/Archer/core/rtw_debug.o
CC [M] /home/moncho/Archer/core/rtw_io.o
CC [M] /home/moncho/Archer/core/rtw_ioctl_query.o
CC [M] /home/moncho/Archer/core/rtw_ioctl_set.o
CC [M] /home/moncho/Archer/core/rtw_ieee80211.o
CC [M] /home/moncho/Archer/core/rtw_mlme.o
CC [M] /home/moncho/Archer/core/rtw_mlme_ext.o
CC [M] /home/moncho/Archer/core/rtw_wlan_util.o
CC [M] /home/moncho/Archer/core/rtw_vht.o
CC [M] /home/moncho/Archer/core/rtw_pwrctrl.o
CC [M] /home/moncho/Archer/core/rtw_rf.o
CC [M] /home/moncho/Archer/core/rtw_recv.o
CC [M] /home/moncho/Archer/core/rtw_sta_mgt.o
CC [M] /home/moncho/Archer/core/rtw_ap.o
CC [M] /home/moncho/Archer/core/rtw_xmit.o
CC [M] /home/moncho/Archer/core/rtw_p2p.o
CC [M] /home/moncho/Archer/core/rtw_tdls.o
CC [M] /home/moncho/Archer/core/rtw_br_ext.o
CC [M] /home/moncho/Archer/core/rtw_iol.o
CC [M] /home/moncho/Archer/core/rtw_sreset.o
CC [M] /home/moncho/Archer/core/rtw_btcoex.o
CC [M] /home/moncho/Archer/core/rtw_beamforming.o
CC [M] /home/moncho/Archer/core/rtw_odm.o
CC [M] /home/moncho/Archer/core/efuse/rtw_efuse.o
CC [M] /home/moncho/Archer/os_dep/osdep_service.o
CC [M] /home/moncho/Archer/os_dep/linux/os_intfs.o
CC [M] /home/moncho/Archer/os_dep/linux/usb_intf.o
CC [M] /home/moncho/Archer/os_dep/linux/usb_ops_linux.o
CC [M] /home/moncho/Archer/os_dep/linux/ioctl_linux.o
CC [M] /home/moncho/Archer/os_dep/linux/xmit_linux.o
CC [M] /home/moncho/Archer/os_dep/linux/mlme_linux.o
CC [M] /home/moncho/Archer/os_dep/linux/recv_linux.o
CC [M] /home/moncho/Archer/os_dep/linux/ioctl_cfg80211.o
/home/moncho/Archer/os_dep/linux/ioctl_cfg80211.c: En la función ‘rtw_cfg80211_preinit_wiphy’:
/home/moncho/Archer/os_dep/linux/ioctl_cfg80211.c:6226:16: error: tipos incompatible en la asignación al tipo ‘struct wiphy_wowlan_support’ del tipo ‘const struct wiphy_wowlan_support *’
make[2]: *** [/home/moncho/Archer/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [_module_/home/moncho/Archer] Error 2
make[1]: se sale del directorio «/usr/src/linux-headers-3.2.0-23-generic-pae»
make: *** [modules] Error 2


Any help?

Thanks in advance.
  0  
  0  
#4
Options
Re:Archer T4U v1 Linux Driver install failure
2015-10-29 17:28:41
Hey git,

Use this repo:

https://github.com/abperiasamy/rtl8812AU_8821AU_linux

and follow the instructions to compile with dkms. You will need to recompile each time you upgrade the linux kernel.

:)
  0  
  0  
#5
Options