Kernel 4.13.0-45 broke WiFi [Solved]

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
AZgl1800
Level 20
Level 20
Posts: 11146
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Kernel 4.13.0-45 broke WiFi [Solved]

Post by AZgl1800 »

I previously had installed the WiFi "permanently" per JeremyB's instructions following the instructions below:

Code: Select all

by JeremyB » Sat May 12, 2018 4:58 pm This is the new way..never build again for a 4.13 kernel

Sat May 12 17:03:51 CDT 2018   this is for the ASUS laptop

sudo apt-get install git dkms
git clone https://github.com/neurobin/MT7630E.git
sudo dkms add ./MT7630E
sudo dkms install mt7630e/2.1.0
alas, when I installed Kernel: 4.13.0-45-generic x86_64 (64 bit) WiFi is broke again.

This is what transpired in Terminal:

Code: Select all

 
#
john@john-TP500LA ~/Documents/WiFi/MT7630E-release $ sudo apt-get install git dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dkms is already the newest version (2.2.0.3-2ubuntu11.5).
git is already the newest version (1:2.7.4-0ubuntu1.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
john@john-TP500LA ~/Documents/WiFi/MT7630E-release $ git clone https://github.com/neurobin/MT7630E.git
Cloning into 'MT7630E'...
remote: Counting objects: 523, done.
remote: Total 523 (delta 0), reused 0 (delta 0), pack-reused 523
Receiving objects: 100% (523/523), 885.19 KiB | 1.23 MiB/s, done.
Resolving deltas: 100% (285/285), done.
Checking connectivity... done.
#
#so far, so good
#
#
john@john-TP500LA ~/Documents/WiFi/MT7630E-release $ sudo dkms add ./MT7630E
Error! DKMS tree already contains: mt7630e-2.1.0
You cannot add the same module/version combo more than once.
john@john-TP500LA ~/Documents/WiFi/MT7630E-release $ 
#
#
john@john-TP500LA ~/Documents/WiFi/MT7630E-release $ sudo dkms install mt7630e/2.1.0
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.13.0-45-generic KDIR=/lib/modules/4.13.0-45-generic/build.........
cleaning build area....

DKMS: build completed.

mt7630e.ko:
Running module version sanity check.

Good news! Module version 2.3.8 for mt7630e.ko
exactly matches what is already found in kernel 4.13.0-45-generic.
DKMS will not replace this module.
You may override by specifying --force.

mt76xx.ko:
Running module version sanity check.

Good news! Module version 2.0.4 for mt76xx.ko
exactly matches what is already found in kernel 4.13.0-45-generic.
DKMS will not replace this module.
You may override by specifying --force.

depmod....

Backing up initrd.img-4.13.0-45-generic to /boot/initrd.img-4.13.0-45-generic.old-dkms
Making new initrd.img-4.13.0-45-generic
(If next boot fails, revert to initrd.img-4.13.0-45-generic.old-dkms image)
update-initramfs...........

DKMS: install completed.
john@john-TP500LA ~/Documents/WiFi/MT7630E-release $  
____________________________________________________________________

the MT7630E adapter is not working, I am using my Panda PA06 USB WiFi adapter which the new kernel recognizes and is using.


This is the current ASUS TP500L stats:

Code: Select all

john@john-TP500LA ~ $ inxi -Fd
System:    Host: john-TP500LA Kernel: 4.13.0-45-generic x86_64 (64 bit)
           Desktop: Cinnamon 3.6.7  Distro: Linux Mint 18.3 Sylvia
Machine:   System: ASUSTeK (portable) product: TP500LA v: 1.0
           Mobo: ASUSTeK model: TP500LA v: 1.0
           Bios: American Megatrends v: TP500LA.203 date: 06/11/2014
CPU:       Dual core Intel Core i3-4030U (-HT-MCP-) cache: 3072 KB 
           clock speeds: max: 1800 MHz 1: 1147 MHz 2: 920 MHz 3: 1063 MHz
           4: 1023 MHz
Graphics:  Card: Intel Haswell-ULT Integrated Graphics Controller
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.01hz
           GLX Renderer: Mesa DRI Intel Haswell Mobile
           GLX Version: 3.0 Mesa 17.2.8
Audio:     Card-1 Intel 8 Series HD Audio Controller driver: snd_hda_intel
           Card-2 Intel Haswell-ULT HD Audio Controller driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.13.0-45-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169
           IF: enp2s0f1 state: down mac: ac:9e:17:97:7b:df
           Card-2: MEDIATEK MT7630e 802.11bgn Wireless Network Adapter
           IF: N/A state: N/A mac: N/A
           Card-3: Ralink RT5372 Wireless Adapter driver: rt2800usb
           IF: wlx9cefd5fd2968 state: N/A mac: N/A
Drives:    HDD Total Size: 500.1GB (19.8% used)
           ID-1: /dev/sda model: Samsung_SSD_860 size: 500.1GB
           Optical: No optical drives detected.
Partition: ID-1: / size: 28G used: 7.0G (27%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 184G used: 86G (50%) fs: ext4 dev: /dev/sda5
           ID-3: swap-1 size: 0.01GB used: 0.00GB (0%) fs: swap dev: /dev/sda3
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 37.0C mobo: N/A
           Fan Speeds (in rpm): cpu: 2600
Info:      Processes: 193 Uptime: 14 min Memory: 1035.5/11893.2MB
           Client: Shell (bash) inxi: 2.2.35 
john@john-TP500LA ~ $ 

I have rebooted the laptop as per the suggestion.... MT7630E is not working.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
Pjotr
Level 23
Level 23
Posts: 19887
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Kernel 4.13.0-45 broke WiFi

Post by Pjotr »

Does it work when you boot from the previous kernel?
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
kc1di
Level 18
Level 18
Posts: 8146
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Kernel 4.13.0-45 broke WiFi

Post by kc1di »

It think the problem may be that when dkms ran with the new kernel it did not build the module because it believed the one already built on the old kernel would work. but it did not. so you will need to issue the commands that JeremyB told you before and append the --force option. to force it to add module to new kernel
so the command would look like this:

Code: Select all

 sudo dkms add --force ./MT7630E
sudo dkms install --force mt7630e/2.1.0
good luck.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
User avatar
AZgl1800
Level 20
Level 20
Posts: 11146
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Kernel 4.13.0-45 broke WiFi

Post by AZgl1800 »

--force didn't work


john@john-TP500LA ~ $ sudo dkms add --force ./MT7630E

Forcing install of mt7630e-2.1.0
Error! DKMS tree already contains: mt7630e-2.1.0
You cannot add the same module/version combo more than once.
john@john-TP500LA ~ $



so, it seems I need to remove the previous install?
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Kernel 4.13.0-45 broke WiFi

Post by JeremyB »

See the wireless script link in my signature and post results
User avatar
AZgl1800
Level 20
Level 20
Posts: 11146
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Kernel 4.13.0-45 broke WiFi

Post by AZgl1800 »

Rebooted into the previous kernel and the internal WiFi adapter works.


Jeremy, here are the results of your scripts:

Code: Select all

john@john-TP500LA ~ $ wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info && chmod +x wireless-info && ./wireless-info
--2018-06-25 06:46:38--  https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/UbuntuForums/wireless-info/master/wireless-info [following]
--2018-06-25 06:46:38--  https://raw.githubusercontent.com/UbuntuForums/wireless-info/master/wireless-info
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.48.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.48.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17021 (17K) [text/plain]
Saving to: ‘wireless-info’

wireless-info       100%[===================>]  16.62K  --.-KB/s    in 0.03s   

Last-modified header missing -- time-stamps turned off.
2018-06-25 06:46:38 (664 KB/s) - ‘wireless-info’ saved [17021/17021]

[sudo] password for john: 

Results saved in "/home/john/wireless-info.txt".

Results also archived in "/home/john/wireless-info.tar.gz", as they exceed the 19.5 kB size limit for ".txt" attachments on the Ubuntu Forums.

john@john-TP500LA ~ $ 



Code: Select all

john@john-TP500LA ~ $ cat wireless-info.txt | nc termbin.com 9999
http://termbin.com/5oo9
john@john-TP500LA ~ $ 

LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Kernel 4.13.0-45 broke WiFi

Post by JeremyB »

What happens when

Code: Select all

sudo modprobe -v mt7630e
User avatar
AZgl1800
Level 20
Level 20
Posts: 11146
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Kernel 4.13.0-45 broke WiFi

Post by AZgl1800 »

JeremyB wrote: Mon Jun 25, 2018 10:04 am What happens when

Code: Select all

sudo modprobe -v mt7630e
that was interesting:


john@john-TP500LA ~ $ sudo modprobe -v mt7630e
[sudo] password for john:
insmod /lib/modules/4.13.0-45-generic/kernel/drivers/net/wireless/mt7630e.ko
modprobe: ERROR: could not insert 'mt7630e': Exec format error
john@john-TP500LA ~ $
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Kernel 4.13.0-45 broke WiFi

Post by JeremyB »

Code: Select all

modinfo mt7630e | egrep 'file|ver'
User avatar
AZgl1800
Level 20
Level 20
Posts: 11146
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Kernel 4.13.0-45 broke WiFi

Post by AZgl1800 »

JeremyB wrote: Mon Jun 25, 2018 1:03 pm

Code: Select all

modinfo mt7630e | egrep 'file|ver'

Code: Select all

john@john-TP500LA ~ $ modinfo mt7630e | egrep 'file|ver'
filename:       /lib/modules/4.13.0-45-generic/kernel/drivers/net/wireless/mt7630e.ko
version:        2.3.8
version:        2.3.8
version:        2.3.8
description:    Mediatek MT7630 PCI Wireless LAN driver.
version:        2.3.8
version:        2.3.8
version:        2.3.8
srcversion:     F8B691AE2F721FE1A2079D3
vermagic:       4.13.0-43-generic SMP mod_unload 
john@john-TP500LA ~ $ 

LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Kernel 4.13.0-45 broke WiFi

Post by JeremyB »

For a quick and dirty fix

Code: Select all

sudo sed -i 's/4.13.0-43-generic/4.13.0-45-generic/' /lib/modules/4.13.0-45-generic/kernel/drivers/net/wireless/mt7630e.ko
sudo modprobe mt7630e
Can you do a

Code: Select all

cd ~/MT7630E
make
Post the results
User avatar
AZgl1800
Level 20
Level 20
Posts: 11146
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Kernel 4.13.0-45 broke WiFi

Post by AZgl1800 »

Code: Select all

john@john-TP500LA ~ $ sudo sed -i 's/4.13.0-43-generic/4.13.0-45-generic/' /lib/modules/4.13.0-45-generic/kernel/drivers/net/wireless/mt7630e.ko
[sudo] password for john: 
john@john-TP500LA ~ $ cd ~/MT7630E
john@john-TP500LA ~/MT7630E $ make
make -C /lib/modules/`uname -r`/build M=/home/john/MT7630E/rt2x00 modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-45-generic'
  CC [M]  /home/john/MT7630E/rt2x00/rt2x00dev.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2x00mac.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2x00config.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2x00queue.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2x00link.o
  CC [M]  /home/john/MT7630E/rt2x00/mt_linux.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2x00crypto.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2x00firmware.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2x00leds.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2x00mmio.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2800pci.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2800lib.o
  CC [M]  /home/john/MT7630E/rt2x00/rt2x00pci.o
  LD [M]  /home/john/MT7630E/rt2x00/mt7630e.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/john/MT7630E/rt2x00/mt7630e.mod.o
  LD [M]  /home/john/MT7630E/rt2x00/mt7630e.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-45-generic'
make -C /lib/modules/`uname -r`/build M=/home/john/MT7630E/btloader modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-45-generic'
  CC [M]  /home/john/MT7630E/btloader/mt76xx.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/john/MT7630E/btloader/mt76xx.mod.o
  LD [M]  /home/john/MT7630E/btloader/mt76xx.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-45-generic'
john@john-TP500LA ~/MT7630E $ 
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Kernel 4.13.0-45 broke WiFi

Post by JeremyB »

You forgot about sudo modprobe mt7630e as that should allow the wifi to work for this kernel
User avatar
AZgl1800
Level 20
Level 20
Posts: 11146
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Kernel 4.13.0-45 broke WiFi

Post by AZgl1800 »

JeremyB wrote: Mon Jun 25, 2018 5:22 pm You forgot about sudo modprobe mt7630e as that should allow the wifi to work for this kernel
funny how little things like that put a whoa on making things work.

all fixed now, I turned off the Panda PAU06 USB WiFi adapter and the MediaTek just locked right in and picked up the load.

Thanks again Jeremy.

[Solved]


Image
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
s6m

Re: Kernel 4.13.0-45 broke WiFi [Solved]

Post by s6m »

Hi All,

Thank you all so much for this fix, I've been struggling with this issue myself but with an Asus AC68 USB wifi card. I've been a Windows user for 23 years and converted to Linux Mint recently (and loving it), so I have been using this driver https://github.com/zebulon2/rtl8814au for my card which claimed to work post kernel updates when following the instructions. It worked perfectly on 18.3 but when I updated to the most recent kernel (4.13.0-43 to 4.13.0-45) it broke and I ran into these exact issues after trying every solution I could find - I even tried this solution https://askubuntu.com/questions/53364/c ... ed-kernels to rebuild the DKMS modules with no success. I decided to wait for the stable 19.0 release which I'm using currently and it worked fine until a kernel update about 30 minutes ago. Defeated, I decided to sign up to this forum and browse to find a solution otherwise I was going to post a thread.

After trying this I'm very happy it's working again, I did however need to change some of JeremyB's code as the drivers I'm using seemed to of installed in a different location (or in a different way?). I thought I would add the solution that I used here for other's future reference as I couldn't find any working solution to my problem on the internet... As I am very new to this, if I am wrong in anyway please let me know and I will update this post accordingly and do note this is on Mint 19.0 with latest updates as of July 2nd 2018. Hopefully this isn't useless information as I have personally struggled for a while trying to get this working again - I hope someone finds it useful.

I used this to find the location of my module:

Code: Select all

modinfo 8814au | egrep 'file|ver'
I used my module location and changed the kernel versions accordingly and ran JeremyB's code:

Code: Select all

sudo sed -i 's/4.15.0-23-generic/4.15.0-24-generic/' /lib/modules/4.15.0-24-generic/updates/dkms/8814au.ko
sudo modprobe 8814au.ko
Forgive me as this is where my technical knowledge is lacking, however when running modprobe it returned an error saying the module 8814.ko is not found. I decided to continue with the instructions and run make from my source directory of the driver which returned no errors. Running modprobe again returned the same error, I decide to restart and voila, the little blue light is flashing again.

Again thanks all for the information, it's been a hair pulling journey trying to get this going again.. Thank you!!
Locked

Return to “Networking”