RinCat / RTL88x2BU-Linux-Driver

Realtek RTL88x2BU WiFi USB Driver for Linux
GNU General Public License v2.0
1.23k stars 193 forks source link

unable to build on kernel 5.15 #122

Open truexfan81 opened 2 years ago

truexfan81 commented 2 years ago

/var/lib/dkms/rtl88x2bu/git/build/core/rtw_br_ext.c:20:18: fatal error: net/ipx.h: No such file or directory 20 | #include <net/ipx.h> | ^~~ compilation terminated. make[2]: [scripts/Makefile.build:277: /var/lib/dkms/rtl88x2bu/git/build/core/rtw_br_ext.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [Makefile:1868: /var/lib/dkms/rtl88x2bu/git/build] Error 2 make[1]: Leaving directory '/usr/src/kernels/5.15.11_tkg_pds' make: [Makefile:2378: modules] Error 2

truexfan81 commented 2 years ago

did some more experimenting, it's not in the includes in the code thats cloned from the repository, but when you use the command "dkms autoinstall" and it generates the files in /var/lib/dkms/rtl88x2bu/git/build/core/ the includes for net/ipx.h are there. i tried removing the includes from that file, but after running the command again it puts it back

RinCat commented 2 years ago

remove /usr/src/rtl88x2bu-git and redo it again.

RinCat commented 2 years ago

DKMS do not update the driver, so you have to it every time this repo updated.

truexfan81 commented 2 years ago

still not working and i can't seem to find out why because dkms is not cooperating

dkms remove --all rtl88x2bu -v git

dkms status

rtl88x2bu/git: added

i've even tried with --force it just won't remove it, and this time there is no log to tell me why it failed or isn't loaded, but i don't see it when i lsmod

dkms remove -m rtl88x2bu -v git --force

Module rtl88x2bu git is not installed for kernel 5.15.11_tkg_pds (x86_64). Skipping... Module rtl88x2bu git is not built for kernel 5.15.11_tkg_pds (x86_64). Skipping...

sudo dkms build -m rtl88x2bu -v git

Error! This module/version has already been built on: 5.15.11_tkg_pds Directory /var/lib/dkms/rtl88x2bu/git/5.15.11_tkg_pds/x86_64 already exists. Use the dkms remove function before trying to build again.

i'm doing this on fedora 34 my reason for using the tkg kernel on that machine is because they package maintainer for the fedora kernel/headers doesn't always keep the two packages in sync, so dkms modules are often broken by updating the system when using the stock fedora kernel

truexfan81 commented 2 years ago

i gave up on it and installed windows 10 so i guess we can close this one

RinCat commented 2 years ago

You can try dkms uninstall rtl88x2bu --all, but if kernel and header mismatched I cannot do much.

clook commented 2 years ago

Hello @truexfan81, ipx support has been dropped 2 months ago on master branch (to prevent the error you see since kernel 5.15 dropped support for ipx), see https://github.com/RinCat/RTL88x2BU-Linux-Driver/blob/master/core/rtw_br_ext.c.

So I would first double check the version that is failing is not an old one.