[SOLVED] How to compile device drivers for usb wireless internet adaptor TP-LINK ARCHER T9UH
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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)
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!!
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
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:
@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
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 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.