- LinuxCNC
- General LinuxCNC Questions
- Is there no way to fix kernel headers for RT kernel 5.18.0-3-rt-amd64?
Is there no way to fix kernel headers for RT kernel 5.18.0-3-rt-amd64?
- Sray69
- Offline
- Elite Member
- Posts: 255
- Thank you received: 13
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 aError! 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.
Realtek Semiconductor Corp. RTL8192EU 802.11b/g/n WLAN Adapter.
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
Please Log in or Create an account to join the conversation.
- JT
- Away
- Administrator
- Posts: 864
- Thank you received: 452
This is how I installed Debian 9-13 and LinuxCNC and more
gnipsel.com/linuxcnc/index.html
JT
Please Log in or Create an account to join the conversation.
- Sray69
- Offline
- Elite Member
- Posts: 255
- Thank you received: 13
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?
Please Log in or Create an account to join the conversation.
- JT
- Away
- Administrator
- Posts: 864
- Thank you received: 452
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.
- rodw
- Away
- Platinum Member
- Posts: 10789
- Thank you received: 3554
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.
- Sray69
- Offline
- Elite Member
- Posts: 255
- Thank you received: 13
Is Debian 11.4 non-free the latest version?
Thanks guys!
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
- Posts: 10789
- Thank you received: 3554
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.
- Sray69
- Offline
- Elite Member
- Posts: 255
- Thank you received: 13
Thanks for the assist!
Please Log in or Create an account to join the conversation.
- Sray69
- Offline
- Elite Member
- Posts: 255
- Thank you received: 13
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.
- Sray69
- Offline
- Elite Member
- Posts: 255
- Thank you received: 13
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.
- LinuxCNC
- General LinuxCNC Questions
- Is there no way to fix kernel headers for RT kernel 5.18.0-3-rt-amd64?