Is there no way to fix kernel headers for RT kernel 5.18.0-3-rt-amd64?

More
10 Aug 2022 22:00 #249481 by Sray69
I have been trying to get my wifi working on my LinuxCNC computer but I keep getting this message:

Error! Your kernel headers for kernel 5.18.0-3-rt-amd64 cannot be found.
Please install the linux-headers-5.18.0-3-rt-amd64 package or use the --kernelsourcedir option to tell DKMS where it's located.

I had an old USB WIFI dongle that I first tried to install. I was getting the above error message. It took forever but I finally got it installed. It is a
Realtek Semiconductor Corp. RTL8192EU 802.11b/g/n WLAN Adapter.
I don't even know exactly what I did to get it installed but after many tries I ended up having to reinstall the linux-headers-5.18.0-3-rt-amd64 package because I inadvertently uninstalled it. Once I rebooted my WIFI connected. BUT it was barely a connection. The absolute best connection I could achieve was 5 Mbps down and .5 Mbps up. And it was hit an miss. It kept disconnecting and reconnecting randomly from time to time.

With that said I bought a new USB3 dongle with dual antennas hoping it would boost the signal. BUT I cannot get the driver for this one installed at all no matter what I do. I get the same error message above.

I am running this on Linux Mint 21 Xcfe on the following build:
MB: ASUS M5A78L-M/USB3
CPU: AMD FX-6300 Six-core Processor 3.5 GHz
RAM: 8GB DDR3-1600 (800MHz clock) PC3-12800

uname -a:
Linux LinuxCNC 5.18.0-3-rt-amd64 #1 SMP PREEMPT_RT Debian 5.18.14-1 (2022-07-23) x86_64 x86_64 x86_64 GNU/Linux

lsusb:
Realtek Semiconductor Corp. RTL88x2bu [AC1200 Techkey]

I tried the following methods (and a couple similar ones):
git clone https://github.com/jeremyb31/rtl88x2BU.git
sudo dkms add rtl88x2BU
sudo dkms install rtl88x2bu/5.2.4

AND
cd rtl88x2bu
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu

I installed the generic headers (code below) as a test to see if the Realtek USB WIFI Dongle worked and the results were outstanding. I am getting 170 Mbps down and 12 Mbps up.
sudo apt-get install git linux-headers-generic build-essential dkms

Since my CNC is out in my shop and there is no wired ethernet available out there WIFI is my best option.

Obviously the dongle works great in Linux Mint. Why is it not possible to get it to work with the RT kernel? Or does anyone know how to get it working (with decent speeds)? 5 Mbps is not workable. I would be happy with 20+ Mbps.

My question is, what is wrong with the kernel headers? Why are they not found? Seems like the build was not completed correctly or something. I wonder if this would fix the problem with installing the drivers? Obviously the dongle works great in Linux Mint. Does anyone know how to get it working with the RT kernels (with decent speeds)?

Thanks


 
The following user(s) said Thank You: SJDrummond

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

More
10 Aug 2022 22:40 #249482 by JT
Did you install the headers for that kernel?

This is how I installed Debian 9-13 and LinuxCNC and more
gnipsel.com/linuxcnc/index.html

JT
The following user(s) said Thank You: Sray69

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

More
10 Aug 2022 23:06 - 10 Aug 2022 23:06 #249483 by Sray69
I did try to install these headers
linux-headers-5.18.0-3-rt-amd64_5.18.14-1_amd64.deb

BUT I kept getting this error message and it would not let me install:
ERROR: Dependency is not satisfiable: linux-headers-5.18.0-3-common-rt (= 5.18.14-1)

Are these the correct headers?
 
Last edit: 10 Aug 2022 23:06 by Sray69.

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

More
11 Aug 2022 10:21 #249500 by JT
What OS are you using?

Debian 9-13 are pretty straight forward to install the rt kernel if you follow my instructions in the link above.

Often with new state of the art hardware you need the latest OS, for me a video card on this PC required me to install Debian 13 before it would work.

JT

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

More
11 Aug 2022 12:29 #249508 by rodw
Go back to Debian Bookworm nonfree. 
The RTL88x2bu driver is very buggy. If bookworm does not support it, Maybe try this
github.com/RinCat/RTL88x2BU-Linux-Driver
Sometimes I've found the system can get confused about what kernel is running if you've installed preempt_rt as multiple kernels are installed. You can try specific header for your kernel like this.sudo apt install -y linux-headers-$(uname -r)

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

More
11 Aug 2022 15:32 #249530 by Sray69
Once I figured out how to get the WIFI working I was going to do a fresh install since I have been messing with drivers and kernels. I will give Debian a try.

Is Debian 11.4 non-free the latest version?

Thanks guys!

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

More
11 Aug 2022 19:36 #249544 by rodw
Debian 12 non-free includes linuxcnc natively and will have better support for new hardware in the newer Linux kernel
sudo apt install linuxcnc-uspace
But if its all working, stay where you are.

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

More
11 Aug 2022 23:32 #249563 by Sray69
As I mentioned I plan to start fresh anyway. Plus since messing with all the drivers and kernels my latency on that machine went through the roof. Hopefully a fresh Debian build will get it back down and maybe have support for my usb dongle.

Thanks for the assist!

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

More
12 Aug 2022 03:56 #249572 by Sray69
Hey guys,
Sorry for the dumb question but I am new to Debian. Can someone give me a link to download Debian 12 Bookworm non-free (USB Live)? I cannot find it. OR do I need to install 11.4 and upgrade as JT shows in his instructions?

Not a fan of upgrading if I can install the fresh full version.

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

More
12 Aug 2022 04:44 #249573 by Sray69
From what I can tell I have to upgrade. I will work on it tomorrow.

If I understand it correctly I can just install LinuxCNC from the repo if I have the Mesa 7i76E?

Thanks

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

Time to create page: 0.093 seconds
Powered by Kunena Forum