Page 1 of 1

Need help with wifi after installing new kernel [SOLVED]

Posted: Sat Mar 03, 2018 8:30 pm
by jimallyn
A few months ago my sister (who lives in another town) bought a TP-LINK Archer TU9H USB WiFi adapter, which I managed to get going on her computer. It's been a while, but I'm pretty sure I had to compile the driver for it. At any rate, I got it working. Now she is back in town, and I decided to install a newer 4.4 kernel that I knew had the fixes for the Intel CPU fiasco. After doing so, of course the wifi no longer worked. I remember when I first installed the driver for the wifi, I tried to get the DKMS going, but couldn't, so just figured that was something I would deal with later. Later has just arrived. Here's the inxi -Fxz from her computer:

Code: Select all

 ~ $ inxi -Fxz
System:    Host: patti-linux Kernel: 4.4.0-116-generic x86_64 (64 bit gcc: 4.8.4)
           Desktop: Cinnamon 2.8.8 (Gtk 3.10.8~8+qiana) Distro: Linux Mint 17.3 Rosa
Machine:   System: HP-Pavilion product: GC674AAR-ABA m8120n
           Mobo: ASUSTek model: Basswood3G v: 1.05 Bios: Phoenix v: 5.09 date: 06/08/2007
CPU:       Quad core Intel Core2 Quad (-MCP-) cache: 4096 KB flags: (lm nx sse sse2 sse3 ssse3 vmx) bmips: 19202 
           clock speeds: max: 2400 MHz 1: 1600 MHz 2: 1600 MHz 3: 1600 MHz 4: 1600 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] bus-ID: 01:00.0
           Display Server: X.Org 1.17.1 drivers: ati,radeon (unloaded: fbdev,vesa) Resolution: 1680x1050@60.0hz
           GLX Renderer: Gallium 0.4 on AMD CAICOS GLX Version: 3.0 Mesa 10.5.9 Direct Rendering: Yes
Audio:     Card-1 Intel 82801H (ICH8 Family) HD Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Advanced Micro Devices [AMD/ATI] Caicos HDMI Audio [Radeon HD 6400 Series]
           driver: snd_hda_intel bus-ID: 01:00.1
           Sound: Advanced Linux Sound Architecture v: k4.4.0-116-generic
Network:   Card-1: Intel 82566DC Gigabit Network Connection driver: e1000e v: 3.2.6-k port: ff00 bus-ID: 00:19.0
           IF: eth0 state: down mac: <filter>
           Card-2: Gemtek WUBR-177G [Ralink RT2571W] driver: rt73usb v: 2.3.0 usb-ID: 002-004
           IF: wlan0 state: N/A speed: N/A duplex: N/A mac: N/A
Drives:    HDD Total Size: 704.2GB (4.7% used) ID-1: /dev/sda model: Hitachi_HDT72503 size: 320.1GB
           ID-2: USB /dev/sdb model: USB_Flash_Drive size: 64.0GB
           ID-3: /dev/sdc model: Hitachi_HDT72503 size: 320.1GB
Partition: ID-1: / size: 188G used: 16G (9%) fs: ext4 dev: /dev/sdc2
           ID-2: swap-1 size: 4.72GB used: 0.00GB (0%) fs: swap dev: /dev/sdc3
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 38.0C mobo: N/A gpu: 67.5
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 197 Uptime: 1 min Memory: 359.6/3006.9MB Init: Upstart runlevel: 2 Gcc sys: 4.8.4
           Client: Shell (bash 4.3.111) inxi: 2.2.28 
Anyway, I got the driver from here:

https://github.com/tpircher/rtl8814AU

I don't recall how I installed it a few months ago. After installing the new kernel, I decided I'd try to get the DKMS going with these instructions that came with the driver:
# DKMS support

From your src dir

````
sudo cp -R . /usr/src/rtl8814au-4.3.21
sudo dkms build -m rtl8814au -v 4.3.21
sudo dkms install -m rtl8814au -v 4.3.21
````
Having never seen ```` before, I assumed that they were not part of the instructions and just ran the instructions one at a time. At first I tried this from the folder I had downloaded and extracted the driver to. (Well, there was source code in there.) Didn't work, so I decided the /usr/src folder was meant, and retried from there:
patti@patti-linux ~/Downloads/T9UH_Driver/rtl8814AU-master $ cd /usr/src
patti@patti-linux /usr/src $ sudo cp -R . /usr/src/rtl8814au-4.3.21
cp: cannot copy a directory, , into itself,
patti@patti-linux /usr/src $


patti@patti-linux ~/Downloads/T9UH_Driver/rtl8814AU-master $ cd /usr/src
patti@patti-linux /usr/src $ sudo cp -R . /usr/src/rtl8814au-4.3.21
cp: cannot copy a directory, , into itself,
patti@patti-linux /usr/src $ sudo dkms build -m rtl8814au -v 4.3.21

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....(bad exit status: 2)
'make'....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.4.0-116-generic (x86_64)
Consult /var/lib/dkms/rtl8814au/4.3.21/build/make.log for more information.
patti@patti-linux /usr/src $
Here is the make.log:
DKMS make.log for rtl8814au-4.3.21 for kernel 4.4.0-116-generic (x86_64)
Sat Mar 3 13:49:52 PST 2018
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.
So, what do I do now? Give up on DKMS and just reinstall the driver for the 4.4 kernel I just installed? Do I need to remove the previously installed driver, and the results of my attempts to install DKMS? If so, how do I do that? I think my sister is leaving town tomorrow, so I'd at least like to get her wifi going again, even if I can't get the DKMS going. Don't think I ever had this much trouble installing a driver from source before. Help, please.

Re: Need help with wifi after installing new kernel

Posted: Sat Mar 03, 2018 9:28 pm
by catweazel
jimallyn wrote:
Sat Mar 03, 2018 8:30 pm

Code: Select all

           Card-2: Gemtek WUBR-177G [Ralink RT2571W] driver: rt73usb v: 2.3.0 usb-ID: 002-004
Anyway, I got the driver from here:

https://github.com/tpircher/rtl8814AU
According to the above, the correct driver has already been selected. rt73usb is the correct driver for a Ralink RT2571W.

Re: Need help with wifi after installing new kernel

Posted: Sat Mar 03, 2018 9:42 pm
by hrmcrm
I have a wifi USB adapter that needs a compiled driver. Mine happens to be from https://github.com/lwfinger/rtl8192du.git. Like you, I made an unsuccessful attempt at using dkms. For now, I manually install the driver for each new kernel. I start with the downloaded zip file, delete the extracted sub-folder for the previous kernel, and extract the zip file again. I go into the new, extracted sub-folder, open a terminal there, and do

Code: Select all

make
sudo make install
sudo modprobe 8192du
and the adapter fires up.

I'll try DKMS more, but for now this manual procedure works for me.

Howard

Re: Need help with wifi after installing new kernel

Posted: Sat Mar 03, 2018 10:36 pm
by jimallyn
catweazel wrote:
Sat Mar 03, 2018 9:28 pm
According to the above, the correct driver has already been selected. rt73usb is the correct driver for a Ralink RT2571W.
I have no idea where this RT2571 might be. The wifi interface connected to this computer is a TPLINK T9UH, which, in theory at least, uses a RTL8814AU chip in it.

Re: Need help with wifi after installing new kernel

Posted: Sat Mar 03, 2018 10:48 pm
by catweazel
jimallyn wrote:
Sat Mar 03, 2018 10:36 pm
catweazel wrote:
Sat Mar 03, 2018 9:28 pm
According to the above, the correct driver has already been selected. rt73usb is the correct driver for a Ralink RT2571W.
I have no idea where this RT2571 might be. The wifi interface connected to this computer is a TPLINK T9UH, which, in theory at least, uses a RTL8814AU chip in it.
It's listed in your inxi output, but the TP-LINK Archer TU9H USB WiFi adapter isn't.

Try this: https://askubuntu.com/questions/902643/ ... -16-04-lts or this https://ubuntuforums.org/showthread.php?t=2340769

Re: Need help with wifi after installing new kernel

Posted: Sat Mar 03, 2018 11:29 pm
by jimallyn
I opened a terminal and pushed up arrow to scroll back and see what I did last time. And then I did the same again.

Code: Select all

make clean all KSRC=<path-to-your-kernel-source> KVER=<kernel-version>
sudo make install
Yay, it works! Sure would be nice if I could remember things for more than a few minutes. I don't compile drivers often enough to remember how to do it the next time I need to.

Re: Need help with wifi after installing new kernel

Posted: Sat Mar 03, 2018 11:39 pm
by catweazel
jimallyn wrote:
Sat Mar 03, 2018 11:29 pm
Yay, it works! Sure would be nice if I could remember things for more than a few minutes. I don't compile drivers often enough to remember how to do it the next time I need to.
I keep extensive notes in a text file. At my age, memory is a luxury :mrgreen:

Re: Need help with wifi after installing new kernel

Posted: Sat Mar 03, 2018 11:45 pm
by jimallyn
catweazel wrote:
Sat Mar 03, 2018 11:39 pm
I keep extensive notes in a text file. At my age, memory is a luxury
I keep notes sometimes. I need to start making notes on EVERYTHING.