Compiling rt prempt kernel breaks kernel module rtl8192eu SOLVED!

More
6 years 7 months ago #159926 by bevins
Hi, I just got finished installing prempt kernel and the USB wifi module is now broke. It was working before. Does this have to do with not having the proper files when compiling?

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
6 years 7 months ago #159928 by BeagleBrainz
What distro are you using ?
What kernel did you install, did you install the headers, did you compile the kernel yourself ?
Do you have dmks installed, if you are using a debian/ubuntu distro ?
Did you recompile the module after booting into the new kernel ?
What version of gcc do you have ?
When you try to load the module are there any messages in dmesg ?

Please Log in to join the conversation.

More
6 years 7 months ago #159950 by bevins

BeagleBrainz wrote: What distro are you using ?

Linux Mint 18.3 Mate

BeagleBrainz wrote: What kernel did you install, did you install the headers, did you compile the kernel yourself ?

I compiled it from this. mirrors.edge.kernel.org/pub/linux/kernel.../linux-4.19.1.tar.xz and patched it with
this: mirrors.edge.kernel.org/pub/linux/kernel...-4.19.1-rt3.patch.gz
I assume the headers got installed from these files.

BeagleBrainz wrote: Do you have dmks installed, if you are using a debian/ubuntu distro ?

No

BeagleBrainz wrote: Did you recompile the module after booting into the new kernel ?

I did recompile the module after booting into the new kernel. I did not however unload the old module, I assume it would write over it. Not sure if this is true or not.

BeagleBrainz wrote: What version of gcc do you have ?

gcc version 5.4.0

BeagleBrainz wrote: When you try to load the module are there any messages in dmesg ?


I am getting this over and over.
Code:
[ 7310.838297] IPv6: ADDRCONF(NETDEV_UP): wlx503eaa005cdd: link is not ready [ 7312.007452] wlx503eaa005cdd: authenticate with 74:da:88:7d:5d:b7 [ 7312.030864] wlx503eaa005cdd: send auth to 74:da:88:7d:5d:b7 (try 1/3) [ 7312.234680] wlx503eaa005cdd: send auth to 74:da:88:7d:5d:b7 (try 2/3) [ 7312.438700] wlx503eaa005cdd: send auth to 74:da:88:7d:5d:b7 (try 3/3) [ 7312.642681] wlx503eaa005cdd: authentication with 74:da:88:7d:5d:b7 timed out [ 7323.835252] wlx503eaa005cdd: authenticate with 74:da:88:7d:5d:b7 [ 7323.857616] wlx503eaa005cdd: send auth to 74:da:88:7d:5d:b7 (try 1/3) [ 7324.058453] wlx503eaa005cdd: send auth to 74:da:88:7d:5d:b7 (try 2/3) [ 7324.262449] wlx503eaa005cdd: send auth to 74:da:88:7d:5d:b7 (try 3/3) [ 7324.466435] wlx503eaa005cdd: authentication with 74:da:88:7d:5d:b7 timed out

I forgot to add that it worked before compiling preempt kernel.

Output of ip a:
Code:
3: wlx503eaa005cdd: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 50:3e:aa:00:5c:dd brd ff:ff:ff:ff:ff:ff

Please Log in to join the conversation.

  • BeagleBrainz
  • New Member
  • New Member
More
6 years 7 months ago #159955 by BeagleBrainz
Ok no probs.

Go to this link
github.com/clnhub/rtl8192eu-linux

Clone the repo as you would for linuxcnc eg
Code:
git clone https://github.com/clnhub/rtl8192eu-linux.git

And follow the instructions, except for the bit about installing the headers.

Hopefully this should get you sorted.

***************************************************************************
One tip when recompiling a kernel, for furture reference, if you run
Code:
make deb-pkg
instead of anything else,
it will build deb packages that you can install using your preferred method: eg dpkg or gdebi
The ones you will want with this method are linux-image-xxxx.deb & linux-headers-xxxx.deb
You can also keep them for the future.

Please Log in to join the conversation.

More
6 years 7 months ago #159956 by andypugh
At the command line, try the following
Code:
sudo systemctl enable wpa_supplicant.service sudo wpa_supplicant -c /etc/wpa_supplicant.conf -i wlx503eaa005cdd & sudo dhclient wlx503eaa005cdd

That is what I need to use to get my Wifi dongle to connect. (I have tried to make it automatic a couple if times). It is probable that the problem isn't the same, but the terminal output might contain clues.

Please Log in to join the conversation.

More
6 years 7 months ago #159957 by bevins
I do not have linux-headers for 4.19.1-rt3, nor can I find them on the net.

Please Log in to join the conversation.

More
6 years 7 months ago #159959 by phillc54
I had a similar issue recently that was resolved like this:
forums.linuxmint.com/viewtopic.php?p=1703637#p1703637

Please Log in to join the conversation.

More
6 years 7 months ago #159961 by andypugh

bevins wrote: I do not have linux-headers for 4.19.1-rt3, nor can I find them on the net.


If you compiled the kernel yourself, then "sudo make headers_install" in the kernel source directory might work.

Please Log in to join the conversation.

More
6 years 7 months ago #159970 by bevins

phillc54 wrote: I had a similar issue recently that was resolved like this:
forums.linuxmint.com/viewtopic.php?p=1703637#p1703637


Yeah, that just fixed the name for me to wlan

Please Log in to join the conversation.

More
6 years 7 months ago #159973 by bevins

andypugh wrote:

bevins wrote: I do not have linux-headers for 4.19.1-rt3, nor can I find them on the net.


If you compiled the kernel yourself, then "sudo make headers_install" in the kernel source directory might work.


Yeah, just did that and it installed the headers. I am recompiling the driver and see what it does. It seems to be taking longer.

Please Log in to join the conversation.

Time to create page: 0.393 seconds
Powered by Kunena Forum