plowna
Posts: 8
Joined: Sat Oct 11, 2014 2:44 pm

TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Sat Oct 11, 2014 3:24 pm

Have managed to get this working and connected to my home AP using a couple of instructions on the board here.

It appears to be based on the Realtek 8812au chipset.

First up: MrEngman's instructions on setting up a compile environment for compiling custom drivers. It's in a post further down the list, but I can't see an easy way to link to a post. I'll recap it here:

Code: Select all

# create directory for source files in my home directory (/home/pi)
mkdir src
cd src

# download linux source - --depth will restict the amount downloaded
# as you don't need the whole repository

git clone --depth 500 https://github.com/raspberrypi/linux.git
git clone --depth 15 https://github.com/raspberrypi/firmware.git

# set up some symbolic links needed by compile
sudo ln -s /home/pi/src/linux /lib/modules/$(uname -r)/build
sudo ln -s /home/pi/src/linux/arch/arm /home/pi/src/linux/arch/armv6l

# enter linux directory
cd linux

# set up linux source to 3.12.22+ #690 (git checkout commit-id)
# for a different version change the commit-id
# for 3.12.22+ #691 use commit-id 1981ddebd4
# (note this didn't seem to make much difference for me)

git checkout 99df631ec3

# enter firmware directory and set for 3.12.22+ #690 (git checkout commit-id)
# for 3.12.22+ #691 use commit-id 462f3e3f47

cd ../firmware
git checkout 5bb0317210

# go back to linux source directory

cd ../linux

# set up linux to compile your module - note fullstop after Module.symvers
make mrproper && make bcmrpi_defconfig && make modules_prepare && cp ../firmware/extra/Module.symvers .
There is more to this, I'll get to it in a second.

MrEngman once again came to the rescue here, compiling the driver from this source: https://github.com/gnab/rtl8812au but for kernel 3.12.22+ (I only installed Raspbian recently, it is running 3.12.28+).

After a lot of stuffing around with this driver (even after a successful compile it didn't work) I have found that the line in the driver file os_dep\linux\usb_intf.c was incorrect. At line 288 it reads:

Code: Select all

{USB_DEVICE(0x2357, 0x0101),.driver_info = RTL8821}, /* TP-Link - Archer T4U */
I deleted this line and instead added the line after line 277:

Code: Select all

{USB_DEVICE(0x2357, 0x0101),.driver_info = RTL8812}, /* TP-Link - Archer T4U */
Note the change from RTL8821 to RTL8812. (Someone who knows how to use git can merge in the fix for me) NOTE: This has now been merged into the source, this change should not be necessary to get it to work

So, to continue with compiling this driver:

Code: Select all

# clone the git source for this driver
cd ~/src
git clone https://github.com/gnab/rtl8812au.git

# if you have completed all the steps in the previous code block, this should work
make clean && make
sudo make install

# test it out by running
sudo insmod 8812au.ko
iwconfig
I also set up the network interface & wpa_supplicant file as below:

Code: Select all

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
# allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet dhcp

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="your_ssid"
psk="your_wifi_password"
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
auth_alg=OPEN
}
YMMV, but its all up and running for me. I haven't tested any file transfers yet but just happy atm to have it working.
Last edited by plowna on Wed Nov 19, 2014 10:01 pm, edited 1 time in total.

plowna
Posts: 8
Joined: Sat Oct 11, 2014 2:44 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Sun Oct 12, 2014 10:11 am

On dropbox:
8812au.ko compiled for 3.12.28+: here.

8812au.ko compiled for 3.12.29+: here.

8812au.ko compiled for 3.12.32+: here.

Use wget to pull the files down, then rename to 8812au.ko.
Then:

Code: Select all

sudo install -p -m 644 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
sudo depmod -a
sudo insmod 8812au.ko
Make sure your /etc/network/interfaces and your /etc/wpa_supplicant/wpa_supplicant.conf are correctly setup.

nikoder
Posts: 2
Joined: Sun Nov 23, 2014 6:24 am

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Sun Nov 23, 2014 2:11 pm

Hi Plowna

It's great to find that someone has had success with this device on the Pi! And thank you for providing us with a working binary for the common kernel versions - I'm sure they will be helpful to more people besides myself.

Unfortunately I have still not had any success compiling the driver myself: The module loads, but I get a kernel Oops several seconds after inserting the USB stick. The bizarre thing is that I can build the whole kernel and it works just fine, but even when I compile the driver against my own kernel in the same environment, I still have the same problem.

Your compiled driver works just fine for me (in terms of not crashing), and, as far as I can tell, I am doing everything the same way you are (and I have tried several other weird and wonderful approaches too).

Unfortunately, for me, your binary driver does tend to have an unstable connection when there is substantial load (e.g. iperf or copying a large file) and my suspicion is that this is related to the power saving option, so I am trying to compile a version with that option disabled.

I assume you didn't encounter any issues with "Oopses" (at least after you fixed the 8821->8812 error in usb_intf.c)?

If it's convenient, I would be grateful if you could tell me the exact kernel commit id you used for the 3.12.28+ version (or any working version). Alternatively, it would be super helpful you could compile a version with

Code: Select all

CONFIG_POWER_SAVING = n
with your setup, although I would much rather find the solution to my frustrating Oops issue :lol: .

plowna
Posts: 8
Joined: Sat Oct 11, 2014 2:44 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Sun Nov 23, 2014 10:24 pm

No problems, I'll give it a go. Current kernel commit # is 3.12.32+ #721.

I don't quite know how to roll back kernel versions to compile for older kernels (like .28, .29) as I have been using Hexxeh's script to keep the firmware/kernel up to date (and referencing my own post above to recompile the module for the wifi adapter.

I suppose I could just refresh the Raspbian install I have on here, I think it starts on .28.

I haven't done any proper tests on transferring large files, I can do that tonight when I'm at home. (I have an 802.11ac AP at home) I'll recompile the module for the current version I have here, with the CONFIG_POWER_SAVING option set to n.

Err, any idea where I set that option? Also what is the best way to test throughput/speed on it?

Edit: Found it in the Makefile & found iperf
Edit: Compiled module, available here: 3.12.32+ w/no power save
I've also run iperf here at work between my laptop (gigabit ethernet, probably 802.11n) and the RPi, here are the results from just a -d -r. Laptop is .86, RPi is .89:

Code: Select all

pi@rpi-remote ~ $ iperf -c 192.168.103.86 -d -r
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to 192.168.103.86, TCP port 5001
TCP window size: 46.1 KByte (default)
------------------------------------------------------------
[  3] local 192.168.103.89 port 56791 connected with 192.168.103.86 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  68.6 MBytes  57.5 Mbits/sec
[  5] local 192.168.103.89 port 5001 connected with 192.168.103.86 port 60329
[  5]  0.0-10.0 sec  64.1 MBytes  53.6 Mbits/sec
pi@rpi-remote ~ $ iperf -c 192.168.103.86 -d -r
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to 192.168.103.86, TCP port 5001
TCP window size: 46.1 KByte (default)
------------------------------------------------------------
[  5] local 192.168.103.89 port 56792 connected with 192.168.103.86 port 5001
[ ID] Interval       Transfer     Bandwidth
[  5]  0.0-10.0 sec  70.9 MBytes  59.2 Mbits/sec
[  4] local 192.168.103.89 port 5001 connected with 192.168.103.86 port 60331
[  4]  0.0-10.0 sec  55.0 MBytes  46.0 Mbits/sec
pi@rpi-remote ~ $ iperf -c 192.168.103.86 -d -r
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to 192.168.103.86, TCP port 5001
TCP window size: 46.1 KByte (default)
------------------------------------------------------------
[  3] local 192.168.103.89 port 56793 connected with 192.168.103.86 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  71.1 MBytes  59.5 Mbits/sec
[  5] local 192.168.103.89 port 5001 connected with 192.168.103.86 port 60333
[  5]  0.0-10.0 sec  60.1 MBytes  50.3 Mbits/sec
I'll give it another test when I'm at home with the 802.11ac router in between.

Also regarding the 'Oops' - check install hasn't copied across a zero-length file to /lib/modules/..., also make sure you copy over the Modules.symvers from the firmware/ source folder to the linux/ folder - when compiling the module it uses this file (have already done this to myself).
[/b]

nikoder
Posts: 2
Joined: Sun Nov 23, 2014 6:24 am

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Mon Nov 24, 2014 9:04 am

Cool, thanks Plowna, you're awesome!

Yeah, iperf is the best tool I know of for doing throughput/load testing. Also, sorry for not mentioning where to set the power saving config option!

Yeah, I don't know of a convenient way to install a specific kernel/firmware version either - I'm sure it exists, but I can just use rpi-update for now.

Scratch that: looks like 3.12.33+ is out, so I will have to find a way to install 3.12.32+.

OK, found it. On the github project page of rpi-update, the readme.md states:
To upgrade/downgrade to a specific firmware revision, specify its Git hash (from the https://github.com/Hexxeh/rpi-firmware repository) as follows:

Code: Select all

sudo rpi-update fab7796df0cf29f9563b507a59ce5b17d93e0390
This git id works for 3.12.32+:

Code: Select all

537ce36354588a7a4a3d58323e85ca8e35ec5f1f
Cool, your binary with power saving disabled works rock solid for me so far! iperf gives 58.9Mbit/s on an 802.11ac access point, which seems to be about as much as you can expect from TCP on the Pi (the CPU is at max load, as is the case when using a wired connection).

So that's a big relief for me, knowing that I can get a stable connection now!

Could you tell me what you used as the git commit id for the "git checkout" on the linux kernel source folder, when you compiled that binary? I assume you don't use:

Code: Select all

git checkout 99df631ec3
for every kernel version you compile against? You would be using something other than "99df631ec3", right?

Thanks for your tips on potential causes of the Oops issues.

Yeah, I was using my own Modules.symvers (from compiling the kernel). I did a diff to the one from the firmware repo and it seems to be identical (aside from line ordering, which I would hope doesn't matter).

Yeah, I was manually installing my binaries in /lib/modules and insmodding/depmod+modprobing them, but nothing seemed to make a difference. Since they did usually load fine (producing appropriate log messages), I'm fairly confident that they weren't complete garbage (the crash only happens when I attach the stick and it tries to initialise).

Maybe I should just try setting up another build environment from scratch. I may have to put this on ice for a the time being, though, as I need to see to some other stuff fairly urgently. Thanks to you, though, I can use the stick with your binaries for now, so yeah, thanks again :D .

If I do get a working environment set up, I will see if I can get version 4.3.0 of the driver working (despite the fact that the current one works so far, there was a huge amount of log file error spam with the present driver, so I'm hoping the new version might run a little smoother over all; gnab's version, for reference, is based on 4.2.2 of the Realtek driver). I have a branch with that code in my fork of gnab's repo. (Let me know if you are curious about that code and want any instructions to get it from git; be warned though, that it may not work at all).

plowna
Posts: 8
Joined: Sat Oct 11, 2014 2:44 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Mon Nov 24, 2014 9:18 am

So would that be the max speed I am likely to get from the adapter? That's interesting (that it is held back by the design of the RPi). As it is currently it won't connect at all to my 5ghz network, there's nothing specific in dmesg/syslog/messages.

I'll have a look at the D-Link driver tonight, see what I can rustle up. I'll compile for .33+ as well.

Also,
Could you tell me what you used as the git commit id for the "git checkout" on the linux kernel source folder, when you compiled that binary?
Umm, I haven't been using any checkout ID's ... I kinda just skip that completely. I think above I noted it didn't make much difference to me. Maybe it does??

plowna
Posts: 8
Joined: Sat Oct 11, 2014 2:44 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Mon Nov 24, 2014 2:06 pm

First up, here's the updated driver for 3.12.33+: No power saving, v4.2.2.

This is still working fine, though for the life of me I can't get it to connect to my 5ghz wifi. It just times out trying to connect, I haven't looked through the log files.

I also compiled the driver with the newer sources (4.3.0) linked to above. Had to change the Makefile a bit (added in some extras from the Makefile in 4.2.2) and shuffle around the usb_intf.c source as per previous entries. It actually compiled with fewer errors, but threw up some bizarre kernel errors when I tried to load it, and also locked up the entire RPi.

So, uh, it may need a bit more finesse.

chrysaoff
Posts: 12
Joined: Sun Nov 16, 2014 9:54 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Sat Dec 13, 2014 5:19 pm

hey,

do you have the updated driver for 3.12.34+?
or 33+ is working??

thanks

plowna
Posts: 8
Joined: Sat Oct 11, 2014 2:44 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Sat Dec 13, 2014 7:08 pm

chrysaoff wrote:hey,

do you have the updated driver for 3.12.34+?
or 33+ is working??

thanks
I'll get it later today and update this post.

EDIT: Compiled for .34+, no power saving. Download here.
Last edited by plowna on Sun Dec 14, 2014 8:35 am, edited 2 times in total.

chrysaoff
Posts: 12
Joined: Sun Nov 16, 2014 9:54 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Sat Dec 13, 2014 7:11 pm

plowna wrote:
chrysaoff wrote:hey,

do you have the updated driver for 3.12.34+?
or 33+ is working??

thanks
I'll get it later today and update this post.

Oh really good, i am excited to get this one. I need for my dongle in AC

plowna
Posts: 8
Joined: Sat Oct 11, 2014 2:44 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Sun Dec 14, 2014 8:38 am

For future reference, here is the script I use to compile this driver:

Change BUILD to whatever base directory you will use to compile it.

I usually need to reboot to kick the wifi into gear. If you can't get the script to work ... I can't really help you.

Code: Select all

#!/bin/sh

GIT=/usr/bin/git
BUILD=/home/pi/build
UVER=`uname -r`

echo Building for firmware version $UVER, CTRL-C now if this is not correct ...
echo

cd $BUILD

# Obtain relevant kernel & driver source files
$GIT clone --depth 500 https://github.com/raspberrypi/linux.git
$GIT clone --depth 15 https://github.com/raspberrypi/firmware.git
$GIT clone https://github.com/gnab/rtl8812au.git

# create necessary symlinks to facilitate compiling
sudo ln -s $BUILD/linux /lib/modules/$UVER/build
sudo ln -s $BUILD/linux/arch/arm $BUILD/linux/arch/armv6l

# prep kernel for module compile
cd $BUILD/linux
make mrproper
make bcmrpi_defconfig
make modules_prepare
cp $BUILD/firmware/extra/Module.symvers $BUILD/linux

# compile module and install
cd $BUILD/rtl8812au
make clean
sed -i 's/CONFIG_POWER_SAVING = y/CONFIG_POWER_SAVING = n/' $BUILD/rtl8812au/Makefile
make
sudo install -p -m 644 8812au.ko /lib/modules/$UVER/kernel/drivers/net/wireless
sudo depmod -a
sudo insmod /lib/modules/$UVER/kernel/drivers/net/wireless/8812au.ko


flipkipse
Posts: 8
Joined: Tue Feb 17, 2015 8:17 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Tue Feb 17, 2015 9:07 pm

plowna wrote:For future reference, here is the script I use to compile this driver:

Change BUILD to whatever base directory you will use to compile it.

I usually need to reboot to kick the wifi into gear. If you can't get the script to work ... I can't really help you.

Is there an option to make this script work for the V2 raspberry pi with the new processor?

plowna
Posts: 8
Joined: Sat Oct 11, 2014 2:44 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Tue Feb 17, 2015 9:42 pm

Wouldn't you compile it for armv7 instead of armv6l ? I don't have one (yet) but I assume that's how it would work. Have a look around the forum here, there might be others compiling things for the new rpi.

plowna
flipkipse wrote:
plowna wrote:For future reference, here is the script I use to compile this driver:

Change BUILD to whatever base directory you will use to compile it.

I usually need to reboot to kick the wifi into gear. If you can't get the script to work ... I can't really help you.

Is there an option to make this script work for the V2 raspberry pi with the new processor?

flipkipse
Posts: 8
Joined: Tue Feb 17, 2015 8:17 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Wed Feb 18, 2015 8:15 am

The problem is that these instructions are to compile on the Raspberry Pi. All the other people are cross compiling...

Its feels logical to replace this line

Code: Select all

sudo ln -s $BUILD/linux/arch/arm $BUILD/linux/arch/armv6l
into

Code: Select all

sudo ln -s $BUILD/linux/arch/arm $BUILD/linux/arch/armv7
But this is also not working. i still got the error: Invalid format.

In the makefile i changed the: "CONFIG_PLATFORM_ARM_RPI" to yes. So that's also not the problem, i guess?
plowna wrote:Wouldn't you compile it for armv7 instead of armv6l ? I don't have one (yet) but I assume that's how it would work. Have a look around the forum here, there might be others compiling things for the new rpi.

plowna
flipkipse wrote:
Is there an option to make this script work for the V2 raspberry pi with the new processor?

flipkipse
Posts: 8
Joined: Tue Feb 17, 2015 8:17 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Thu Feb 19, 2015 12:22 pm

I have tried the following on a ubuntu machine:

Code: Select all

REPO_ROOT="/kernel_repos/"
MOD_DIR=`mktemp -d`
PKG_TMP=`mktemp -d`
TOOLS_DIR="/opt/rpi_tools"
FIRMWARE_DIR="/opt/rpi_firmware"
DEBIAN_DIR="/opt/rpi_debian"
NUM_CPUS=`nproc`
GIT_REPO="raspberrypi/linux"
V1_DIR="${REPO_ROOT}${GIT_REPO}/v1"
V2_DIR="${REPO_ROOT}${GIT_REPO}/v2"
GIT_BRANCH=""

V1_DEFAULT_CONFIG="arch/arm/configs/bcmrpi_defconfig"
V2_DEFAULT_CONFIG="arch/arm/configs/bcm2709_defconfig"
V1_CONFIG=""
v2_CONFIG=""

sudo git clone --depth 1 --recursive https://github.com/${GIT_REPO} $V1_DIR
sudo cp -r $V1_DIR $V2_DIR

sudo git clone --depth 1 https://github.com/raspberrypi/tools $TOOLS_DIR
sudo git clone --depth 1 https://github.com/raspberrypi/firmware $FIRMWARE_DIR
sudo git clone --depth 1 https://github.com/asb/firmware $DEBIAN_DIR

cd $V2_DIR
git clone https://github.com/gnab/rtl8812au.git
cd rtl8812au
sudo nano Makefile
and changed it in the following:

Code: Select all

CONFIG_POWER_SAVING = n

CONFIG_PLATFORM_ARM_RPI = y

ifeq ($(CONFIG_PLATFORM_ARM_RPI), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := arm-linux-gnueabihf-
KVER := 3.18.7-v7+
KSRC ?= /kernel_repos/raspberrypi/linux/v2
MODDESTDIR := /opt/rpi_firmware/modules/$(KVER)/kernel/drivers/net/wireless/
endif
it compiles, but when i insert the module on my raspberry pi 2 i got the kernel error: PREEMPT SMP ARM

Anybody knows how to compile this module?

mcnoche
Posts: 5
Joined: Thu Feb 19, 2015 3:40 am

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Thu Feb 19, 2015 3:28 pm

I am also having issues compiling and implementing this module for my Pi2. My most recent attempt, which was a big improvement, successfully installed the module but when it is referenced by inserting the wifi adapter it crashes.

dmesg reports:

[ 113.769700] usb 1-1.2: new high-speed USB device number 9 using dwc_otg
[ 113.871073] usb 1-1.2: New USB device found, idVendor=7392, idProduct=a812
[ 113.871096] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 113.871114] usb 1-1.2: Product: Edimax AC600 USB
[ 113.871130] usb 1-1.2: Manufacturer: Realtek
[ 113.871146] usb 1-1.2: SerialNumber: 00e04c000001
[ 113.975104] Unable to handle kernel paging request at virtual address fe4ce1d8
[ 113.986728] pgd = bb254000
[ 113.993732] [fe4ce1d8] *pgd=00000000
[ 114.001635] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
...

root@raspberrypi:~# lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 413c:2006 Dell Computer Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 009: ID 7392:a812 Edimax Technology Co., Ltd
Bus 001 Device 004: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 001 Device 005: ID 413c:1004 Dell Computer Corp.
Bus 001 Device 006: ID 0d8c:0139 C-Media Electronics, Inc.

I followed pretty much the same directions as you using an existing /proc/config.gz from the Pi2 where I was running the compile. I did have issues about invalid version but I got that squared away and have now run into this issue above.

LeidenKranZ
Posts: 1
Joined: Thu Feb 19, 2015 11:05 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Thu Feb 19, 2015 11:08 pm

Try compiling with gcc 4.8

flipkipse
Posts: 8
Joined: Tue Feb 17, 2015 8:17 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Fri Feb 20, 2015 6:50 am

mcnoche wrote:I am also having issues compiling and implementing this module for my Pi2. My most recent attempt, which was a big improvement, successfully installed the module but when it is referenced by inserting the wifi adapter it crashes.

I followed pretty much the same directions as you using an existing /proc/config.gz from the Pi2 where I was running the compile. I did have issues about invalid version but I got that squared away and have now run into this issue above.
You already got the USB inserted., Are you compiling it on the PI2 or Cross compiling?

mcnoche
Posts: 5
Joined: Thu Feb 19, 2015 3:40 am

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Fri Feb 20, 2015 2:16 pm

I am compiling on the Pi2 using gcc 4.9. I will try using 4.8 and see if that makes a difference.

flipkipse
Posts: 8
Joined: Tue Feb 17, 2015 8:17 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Fri Feb 20, 2015 2:22 pm

mcnoche wrote:I am compiling on the Pi2 using gcc 4.9. I will try using 4.8 and see if that makes a difference.
If you succesfull complied it, will you provide the .ko then please?

mcnoche
Posts: 5
Joined: Thu Feb 19, 2015 3:40 am

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Fri Feb 20, 2015 8:13 pm

Sure...hope it works for you! Here is the important module information:

# modinfo 8812au
filename: /lib/modules/3.18.7-v7+/kernel/drivers/net/wireless/8812au.ko
version: v4.2.2_7502.20130517
vermagic: 3.18.7-v7+ SMP preempt mod_unload modversions ARMv7

https://dl.dropboxusercontent.com/u/25966586/8812au.ko

flipkipse
Posts: 8
Joined: Tue Feb 17, 2015 8:17 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Fri Feb 20, 2015 8:26 pm

mcnoche wrote:Sure...hope it works for you! Here is the important module information:

# modinfo 8812au
filename: /lib/modules/3.18.7-v7+/kernel/drivers/net/wireless/8812au.ko
version: v4.2.2_7502.20130517
vermagic: 3.18.7-v7+ SMP preempt mod_unload modversions ARMv7

https://dl.dropboxusercontent.com/u/25966586/8812au.ko

Is this working for you? I am getting:

Code: Select all

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  102.870449] Internal error: Oops: 5 [#1] PREEMPT SMP ARM

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  102.967188] Process insmod (pid: 2216, stack limit = 0xb8456238)

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  102.974356] Stack: (0xb8457e88 to 0xb8458000)

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  102.979841] 7e80:                   7f137d74 00007fff 80091e00 b8456000 b8457f34 bce3a000

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  102.990276] 7ea0: 00000000 b8457f7c b8457f50 00000eae bcf08d08 7f137d74 b8456008 7f137db0
pi@raspberrypi ~ $
Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.000863] 7ec0: 7f137ed8 00000000 b8456000 808af7fc 76db0000 ba7b4efc 000007d6 00000000

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.011498] 7ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.022166] 7f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000080 001327d6

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.032909] 7f20: 76c8a000 76f27948 00000080 8000ee44 b8456000 00000000 b8457fa4 b8457f48

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.043824] 7f40: 80095618 80093534 bce3a000 001327d6 bcf08740 bcf085bd bcf5e7e0 000cf8c8

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.054846] 7f60: 000d80e8 00000000 00000000 00000000 00000025 00000026 0000001a 0000001e

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.065987] 7f80: 0000000e 00000000 00000000 7ea6a71c 00000000 78055020 00000000 b8457fa8

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.077189] 7fa0: 8000ebc0 80095538 7ea6a71c 00000000 76c8a000 001327d6 76f27948 76c8a000

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.088471] 7fc0: 7ea6a71c 00000000 78055020 00000080 78054f80 001327d6 76f27948 00000000

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.099807] 7fe0: 00000000 7ea6a6c4 76f1efb4 76e89ab4 60000010 76c8a000 00000000 00000000

Message from syslogd@raspberrypi at Feb 20 21:25:14 ...
 kernel:[  103.133440] Code: e51bc084 e15c0005 e2455008 0a000009 (e5953014)



rpiforfun
Posts: 28
Joined: Wed Jan 15, 2014 11:25 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Sun Feb 22, 2015 7:10 pm

Has anyone here tried loading the Netis WF2190 driver found here? Or working from it? It looks like it is version 4.3.8 (RTL8812AU_linux_v4.3.8_12175.20140902), which I'd hope is a good thing.

Has the note "Support Ubuntu 14.04" which is a newer kernel. I've retained a copy of the download JIC.

http://www.netis-systems.com/en/Downloa ... ls/?id=904

And this also seems interesting:
https://bitbucket.org/SaltwaterC/rtl8812au/src

EvanL
Posts: 2
Joined: Thu Oct 16, 2014 12:49 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Tue Mar 10, 2015 4:21 am

For what it's worth, I was able to compile a working module in 3.18.8 using gnab's source on a RPi 1 B. However, the module I compiled on an RPi 2 B crashed the Pi 2 or wouldn't load. Both were using compiled 3.18.8 rpi kernels. Sounds like a RPi 2 issue to me...

Cephlin
Posts: 4
Joined: Tue Mar 17, 2015 2:20 pm

Re: TP-LINK Archer T4U USB Wireless 802.11ac Adapter

Wed Mar 18, 2015 10:25 am

Any further luck or information on getting it working on the Pi2?

Return to “Troubleshooting”

Who is online

Users browsing this forum: Google [Bot], klricks and 21 guests