RTL88x2BU-Linux-Driver icon indicating copy to clipboard operation
RTL88x2BU-Linux-Driver copied to clipboard

unable to build on kernel 5.15

Open truexfan81 opened this issue 3 years ago • 7 comments

/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 avatar Jan 04 '22 04:01 truexfan81

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

truexfan81 avatar Jan 04 '22 04:01 truexfan81

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

RinCat avatar Jan 04 '22 05:01 RinCat

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

RinCat avatar Jan 04 '22 05:01 RinCat

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 avatar Jan 04 '22 23:01 truexfan81

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

truexfan81 avatar Jan 05 '22 03:01 truexfan81

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

RinCat avatar Jan 05 '22 05:01 RinCat

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.

clook avatar Jan 19 '22 23:01 clook