Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on Linux Kernel 6.11.3-3-cachyos #367

Open
mxaban opened this issue Oct 13, 2024 · 8 comments
Open

Cannot build on Linux Kernel 6.11.3-3-cachyos #367

mxaban opened this issue Oct 13, 2024 · 8 comments

Comments

@mxaban
Copy link

mxaban commented Oct 13, 2024

When trying to build the module it gives me the following error:

Install DKMS modules
==> dkms install --no-depmod rtw89/r1090.d1fced1 -k 6.11.3-3-cachyos
Error! Bad return status for module build on kernel: 6.11.3-3-cachyos (x86_64)
Consult /var/lib/dkms/rtw89/r1090.d1fced1/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtw89/r1090.d1fced1 -k 6.11.3-3-cachyos' exited 10

Content of /var/lib/dkms/rtw89/r1090.d1fced1/build/make.log

DKMS make.log for rtw89-r1090.d1fced1 for kernel 6.11.3-3-cachyos (x86_64)
dom 13 oct 2024 06:36:03 CST
make: se entra en el directorio '/usr/lib/modules/6.11.3-3-cachyos/build'
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/core.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/mac80211.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/mac.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/mac_be.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/phy.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/phy_be.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/fw.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/cam.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/efuse.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/efuse_be.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/regd.o
CC [M] /var/lib/dkms/rtw89/r1090.d1fced1/build/sar.o
/var/lib/dkms/rtw89/r1090.d1fced1/build/mac80211.c:1177:12: error: incompatible function pointer types initializing 'void (*)(struct ieee80211_hw , bool)' (aka 'void ()(struct ieee80211_hw *, _Bool)') with an expression of type 'void (struct ieee80211_hw *)' [-Wincompatible-function-pointer-types]
1177 | .stop = rtw89_ops_stop,
| ^~~~~~~~~~~~~~
1 error generated.
make[2]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtw89/r1090.d1fced1/build/mac80211.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[1]: *** [/usr/lib/modules/6.11.3-3-cachyos/build/Makefile:1934: /var/lib/dkms/rtw89/r1090.d1fced1/build] Error 2
make: *** [Makefile:224: __sub-make] Error 2
make: se sale del directorio '/usr/lib/modules/6.11.3-3-cachyos/build'

A similar error appears with rtw89-BT

Any help is appreciated, thanks

@pkshih
Copy link

pkshih commented Nov 6, 2024

I think you can just use built-in driver of kernel 6.11.
Did you encounter problems? Which WiFi chip you are using?

@kihiukiragu
Copy link

Also have the same issue:
Kernel: 6.11.5-amd64
WiFi Chip: Realtek RTL8852BE PCIe 802.11ax Wireless

Built in driver doesn't appear to work.

@pkshih
Copy link

pkshih commented Nov 7, 2024

We found interoperability problem if platforms are not Intel, and the patch is draining to stable 6.11.
Please try kernel 6.10 with built-in driver to see if it works to you.

By the way, attaching log will be helpful to understand the case you met.

@kihiukiragu
Copy link

This is the error I get when I run make:

make -C /lib/modules/6.11.5-amd64/build M=/home/kkiragu/Documents/git/rtw89 modules
make[1]: Entering directory '/usr/src/linux-headers-6.11.5-amd64'
  CC [M]  /home/kkiragu/Documents/git/rtw89/core.o
  CC [M]  /home/kkiragu/Documents/git/rtw89/mac80211.o
/home/kkiragu/Documents/git/rtw89/mac80211.c:1177:35: error: initialization of ‘void (*)(struct ieee80211_hw *, bool)’ {aka ‘void (*)(struct ieee80211_hw *, _Bool)’} from incompatible pointer type ‘void (*)(struct ieee80211_hw *)’ [-Wincompatible-pointer-types]
 1177 |         .stop                   = rtw89_ops_stop,
      |                                   ^~~~~~~~~~~~~~
/home/kkiragu/Documents/git/rtw89/mac80211.c:1177:35: note: (near initialization for ‘rtw89_ops.stop’)
make[3]: *** [/usr/src/linux-headers-6.11.5-common/scripts/Makefile.build:249: /home/kkiragu/Documents/git/rtw89/mac80211.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.11.5-common/Makefile:1951: /home/kkiragu/Documents/git/rtw89] Error 2
make[1]: *** [/usr/src/linux-headers-6.11.5-common/Makefile:236: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.11.5-amd64'
make: *** [Makefile:104: all] Error 2

However, I tried the code from the pending pull request #366 and it builds ok, but the WiFi is still not recognized :(

I will try kernel 6.10 as suggested and see if that works for me.

@ppogorze
Copy link

ppogorze commented Nov 21, 2024

I can easily build module on latest 6.12 cachyos kernel.

Also there could be some regression/bug:
On 6.6 kernel when downloading large files via wifi (5GHZ) my BT audio and mouse ok, on 6.12 OR your dkms = its choppy and unresponsive.

@a5a5aa555oo
Copy link

a5a5aa555oo commented Nov 22, 2024

@ppogorze

Do you wanna try my rtw89 driver? kernel 6.6 ~ 6.13 are supported.
this driver comes from linux-mainline (the upcoming kernel 6.13) and it works with my 8852BE but BT is not tested.
You can simply install rtw89-dkms-git if you are using a Arch-based Linux distro.

@ppogorze
Copy link

ppogorze commented Nov 23, 2024

Thanks, great.
Weird thing is when I connect AirPods (even for a few seconds) my all issues is gone until reboot.

I will test your driver and come back with more info.

btw nothing weird in btmon, journal and dmesg

edit; same issue with dkms from arch. maybe its related to usb power management in newer kernels, because bluetooth is using btusb?

@a5a5aa555oo
Copy link

a5a5aa555oo commented Nov 23, 2024

Thanks, great. Weird thing is when I connect AirPods (even for a few seconds) my all issues is gone until reboot.

I will test your driver and come back with more info.

btw nothing weird in btmon, journal and dmesg

edit; same issue with dkms from arch. maybe its related to usb power management in newer kernels, because bluetooth is using btusb?

I'm not a pro driver programer, so the only thing I can do is backporting the latest stable rtw89 driver to older kernels.
if you found the latest stable driver still has some issues, it is recommended to email [email protected] as mentioned in README.md
sorry that there is nothing I can do. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants