Compiling rt prempt kernel breaks kernel module rtl8192eu SOLVED!

More
12 Mar 2020 20:37 - 13 Mar 2020 01:26 #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?
Last edit: 13 Mar 2020 01:26 by bevins.

Please Log in or Create an account to join the conversation.

More
12 Mar 2020 20:48 #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 ?
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
12 Mar 2020 22:47 - 12 Mar 2020 22:51 #159950 by bevins

What distro are you using ?

Linux Mint 18.3 Mate

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.

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

No

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.

What version of gcc do you have ?

gcc version 5.4.0

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


I am getting this over and over.
[ 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:
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
Last edit: 12 Mar 2020 22:51 by bevins.

Please Log in or Create an account to join the conversation.

More
12 Mar 2020 23:22 #159955 by BeagleBrainz
Ok no probs.

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

Clone the repo as you would for linuxcnc eg
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
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.
The following user(s) said Thank You: bevins

Please Log in or Create an account to join the conversation.

More
12 Mar 2020 23:22 #159956 by andypugh
At the command line, try the following
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.
The following user(s) said Thank You: bevins

Please Log in or Create an account to join the conversation.

More
12 Mar 2020 23:23 #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 or Create an account to join the conversation.

More
12 Mar 2020 23:27 #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 or Create an account to join the conversation.

More
12 Mar 2020 23:32 #159961 by andypugh

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.
The following user(s) said Thank You: bevins

Please Log in or Create an account to join the conversation.

More
13 Mar 2020 00:52 #159970 by bevins

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 or Create an account to join the conversation.

More
13 Mar 2020 01:00 #159973 by bevins

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 or Create an account to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum