LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-22-2019, 07:55 PM   #1
Faultygaia
LQ Newbie
 
Registered: Sep 2019
Posts: 9

Rep: Reputation: Disabled
Post How to compile device drivers for usb wireless internet adaptor TP-LINK ARCHER T9UH


Hello, sorry if this is a very easily answerable question, but I cant seem to find a solid definitive answer on this subject.

I got the TP-LINK ARCHER T9UH for my dell laptop so I could connect to wireless, however, I need to compile the drivers manually. How would I do that exactly? I downloaded the drivers from their website (Here: (https://www.tp-link.com/us/support/d...d/archer-t9uh/)) and unzipped it in a directory I made to isolate it. This is where I get conflicting answers, some say I have to compile a new kernel, some say I need to just type the make command (I tried that but I got an error stating that the file or directory doesn't exist).

Again, sorry if this is a really stupid question, but I've never really done manual compilation for device drivers before and I would like to get a concrete answer before I try something. Thanks for any answers!

SOLVED:
Follow the steps in post number #16 word for word and dont install any other driver. Worked perfectly fine after I did that. Also make sure to install the kernel provided in post #7.

Last edited by Faultygaia; 09-24-2019 at 10:34 AM. Reason: Question has been solved.
 
Old 09-22-2019, 08:12 PM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
the install instructions seem straight forward
https://static.tp-link.com/2018/2018...or%20Linux.pdf

which bit are you having problems with?
 
Old 09-22-2019, 08:27 PM   #3
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
the tp-link driver support only as the big kernel 4.4.x

you can try and test this other

RTL8812AU/21AU and RTL8814AU drivers

https://github.com/aircrack-ng/rtl8812au/tree/v5.6.4.1

Last edited by USUARIONUEVO; 09-22-2019 at 08:29 PM.
 
Old 09-22-2019, 08:48 PM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
ahh, ok

they are for 4.4.x kernel
I didn't even look at the src

yeah, make fails quickly
I could try to make them compile but I have no way to test


longshot

try
Code:
modprobe rtl8xxxu

Last edited by Firerat; 09-22-2019 at 08:56 PM.
 
Old 09-22-2019, 08:53 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I don't use that fork, but can confirm the T9UH works fine with latest kernels. Presumes you have all the appropriate build tools and the current source .
Those instructions might be deemed less than clear for some-one not used to compiling drivers.
 
Old 09-22-2019, 09:35 PM   #6
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Quote:
Originally Posted by syg00 View Post
I don't use that fork, but can confirm the T9UH works fine with latest kernels. Presumes you have all the appropriate build tools and the current source .
Those instructions might be deemed less than clear for some-one not used to compiling drivers.
And ... you know that model have v1 / v2 ... with different chipsets ?
Ha ?

v1 can works but v2 not ..cause chipset changed by manufacturer.

v2 use a RTL8814AU chip , not supported for now natively from some kernel .. then need build extra driver for this v2.
 
Old 09-22-2019, 10:41 PM   #7
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
that aircrack-ng one compiles fine with kernel-source-4.19.75-noarch-1

assumes you have sudo setup for your user, if not just get root and drop the sudo from the command


looking back at your OP I noticed error about missing file/dir
you might not have kernel sources installed

check your blacklist and comment out kernel-source
then
Code:
sudo slackpkg install kernel-source
make a sources dir somewhere ( I usually go with ~/Src )
in that dir ( make subdirectories if you want thing organised )


Code:
git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
make clean && make
sudo make install
sudo modprobe 88XXau

alternative
https://aur.archlinux.org/packages/rtl8814au-dkms-git/
https://github.com/zebulon2/rtl8814au

compiles fine with kernel-source-4.19.75-noarch-1
Code:
git clone https://github.com/zebulon2/rtl8814au.git
cd rtl8814au
make clean && make
sudo make install
modprobe 8814au
not as "new" but compiles fine with 4.19.75
doesn't support as many chipsets as the aircrack-ng does
 
1 members found this post helpful.
Old 09-22-2019, 10:48 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
V2 - been working for months here. Of course drivers have to be appropriate for the chipset used.
 
Old 09-23-2019, 02:08 AM   #9
Terry Coats
Member
 
Registered: Mar 2017
Posts: 122

Rep: Reputation: 54
I did this just today for my new Linux Mint install.
Same adapter. I had to try several drivers before I
found one that works. Sorta. No led. 450 Mb/s only.
But seems to work ok so far. Driver rtl8812au-5.2.20.
Not sure where I found it or if it works on your system.
Google it.
Compiling is simple from its unzipped folder.
Code:
make
sudo make install
If it doesn't work
Code:
sudo make uninstall
I'm using kernel 4.15.0-54.

Last edited by Terry Coats; 09-23-2019 at 02:19 AM.
 
Old 09-23-2019, 02:24 AM   #10
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
@Terry
The aircrack-ng one linked by @USUARIONUEVO may sort out the issues with led

it has more chipsets that the one you have
( top link from a startpage.com search gets the github I used in the second one )

you may need to install git on your Linux Mint.

Last edited by Firerat; 09-23-2019 at 02:26 AM.
 
Old 09-23-2019, 03:11 AM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
the TP-Link Archer T9UH v2 version sold here seems to have another chipset, rtl8188eus: for this one there's a driver on github (with build instructions in the README.md)

https://github.com/quickreflex/rtl8188eus

Last edited by ponce; 09-23-2019 at 03:13 AM.
 
Old 09-23-2019, 09:25 AM   #12
Faultygaia
LQ Newbie
 
Registered: Sep 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thank you for all the answers!!!

I first tried ponce's driver, when I make'd it I got no errors but nothing changed on the machine so I went with Firerat's first answer with aircrack. Midway through make'ing it I got and error and it stopped, so I went with the second answer and it make'ed and install'ed perfectly.

Im current not at my house so im unable to test connecting to any wireless networks but when I do iwconfig now I get wlan0 (which I didn't get before). When I do lsusb though it still doesn't recognize the actual usb device, it just has a blank spot. Should I be worried about this? Thanks!!
 
Old 09-23-2019, 09:41 AM   #13
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
errors are good

well, ok errors are not good.. but knowing what there are/were is better than not.

I wouldn't worry too much about the "blank" entry , I'm not too sure were it gets that data from, but I imagine it gets it from some db lookup.

if you can get the aircrack-ng that @USUARIONUEVO linked for us, it will likely be better.
I had already found that second one and just threw it in as an option


let us know you kernel version as the aircrack-ng did compile without error here, on a vanilla slackware
 
Old 09-23-2019, 12:20 PM   #14
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@Faultygaia

It's been a while since I played with aircrack-ng and reading your latest post I tend to believe that you got a virtual wlan0.
lsusb should list your USB WiFi dongle and indeed you should be worried if it's not there.

To pinpoint the exact chipset that is used in your TP-LINK ARCHER T9UH adapter you'll need to inspect the kernel messages from dmesg and get the exact VendorID&ProductID, look after an entry like:
Code:
New USB device found, idVendor=XXXX, idProduct=XXXX
The easiest way to obtain these details is to start your system without the WiFi adapter and once everything is loaded, plug in the USB Adapter and issue:
Code:
dmesg
The last lines from your dmesg output should describe the adapter.
Wikidevi only details the v1:
https://wikidevi.com/wiki/TP-LINK_Archer_T9UH


@ponce
I own a TP-LINK-TL-WN723 and I remember I couldn't use the driver you linked, instead the only one working on both 4.4.x & 4.14.x kernels was:
https://github.com/lwfinger/rtl8188e...4.1.8_9499.zip
I also had to blacklist the default r8188eu kernel driver.

Some details:
Code:
#dmesg:
[    3.393183] usb 1-1.5: New USB device found, idVendor=0bda, idProduct=8179
#lsusb:
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
#snippet from lsmod
8188eu                659456  0
cfg80211              569344  1 8188eu
rfkill                 28672  2 cfg80211
# had to add in /lib/modprobe.d/8188eu.conf
blacklist r8188eu
 
Old 09-23-2019, 01:54 PM   #15
Faultygaia
LQ Newbie
 
Registered: Sep 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
@firerat
@USUARIONUEVO

When im make'ing the RTL8812AU/21AU and RTL8814AU drivers im getting errors that say "/bin/sh bc: command not found" However, it chugs through it until it occurs a fatal error that states "error: implicit declaration of function 'cfg80211_sinfo_alloc_tid_stats' [-Werror=implicit-function-declaration]" Then it goes through some other warnings that it treats as errors until it eventually gives that "Recipe for target '/root/Src/rtl8812au/os_dep/linux/ioctl_cfg80211.o' failed" and then it fails some other recipes also. I can type out the whole error message in a couple hours if you need the whole thing.

I installed the kernel here: ( https://packages.slackware.com/?r=sl...p-noarch-1.txz) but I am currently on Slackware 14.2 and that was with kernel 4.4.14

@abga

I run dmesg and I get that the idVender=2357, idProduct=0106 and that it recognizes it was made by Realtek and it starts the module rtl8814au but when I do lsusb it gives the id's but there is no description.


Thanks everyone for the help you've given so far.
ALSO!! I forgot to tell you guys that I am in fact on the V2, sorry.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing drivers for TP_LINK Archer T9UH ob Ubuntu 18.04.2 LTS Irbis Linux - Hardware 1 06-13-2019 05:16 PM
Connecting external storage through TP-Link Archer C8 router USB KYJazzyJeff Linux - Hardware 2 07-09-2018 12:58 PM
TP-LINK Archer T4U on USB 2.0 c7aig2123 Linux - Hardware 2 02-24-2017 06:12 AM
Install wireless adapter (TP-Link Archer T4U) on Kali virtual machine WZalm Linux - Newbie 1 04-30-2015 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration