You are not logged in.

#1 2022-12-06 12:23:17

SinonTM
Member
Registered: 2022-12-06
Posts: 9

[Solved] No WiFi with rtl8852be

Hello,

I've been using Arch Linux for some time now, and I got around to installing it on my laptop. The problem is that there is no WiFi. At first I tried

iwctl device list

and there are no devices listed. Same thing with:

iwctl adapter list

I dug further into possible solutions and come across a driver specifically for this. Link.
Now I run into another issue. Whenever I try to install the driver, doesn't matter whether through cloning it directly or through yay, it seems to be working fine until the end where it throws the error:

Error! Bad return status for module build on kernel: 6.0.11-arch1-1 (x86_64)
Consult /var/lib/dkms/rtl8852be/r28.28daf8c/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8852be/r28.28daf8c -k 6.0.11-arch1-1' exited 10

The stranger thing about all of this is that after more digging I thought that a solution might be to install

linux-lts-headers

and it ends up throwing the same error as before, just with different name. What really puzzles me, is that now when I try to install the driver through the same command, it gives me this error:

(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod rtl8852be/r28.28daf8c -k 5.15.81-1-lts
Error! Bad return status for module build on kernel: 5.15.81-1-lts (x86_64)
Consult /var/lib/dkms/rtl8852be/r28.28daf8c/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8852be/r28.28daf8c -k 5.15.81-1-lts' exited 10
==> dkms install --no-depmod rtl8852be/r28.28daf8c -k 6.0.11-arch1-1
Error! Bad return status for module build on kernel: 6.0.11-arch1-1 (x86_64)
Consult /var/lib/dkms/rtl8852be/r28.28daf8c/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8852be/r28.28daf8c -k 6.0.11-arch1-1' exited 10

all as one error for this command.

Any help would be greatly appreciated. If you need any more information please tell.

Last edited by SinonTM (2022-12-07 05:25:02)

Offline

#2 2022-12-06 12:36:09

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,988
Website

Re: [Solved] No WiFi with rtl8852be

dkms wrote:

Consult /var/lib/dkms/rtl8852be/r28.28daf8c/build/make.log for more information.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#3 2022-12-06 12:45:32

SinonTM
Member
Registered: 2022-12-06
Posts: 9

Re: [Solved] No WiFi with rtl8852be

Sorry for not adding it in.

DKMS make.log for rtl8852be-r28.28daf8c for kernel 6.0.11-arch1-1 (x86_64)
Mon Dec  5 08:18:25 PM PST 2022
Makefile:622: /phl/phl.mk: No such file or directory
make: *** No rule to make target '/phl/phl.mk'.  Stop.

Offline

#4 2022-12-06 13:05:34

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,988
Website

Re: [Solved] No WiFi with rtl8852be

I find it odd that make is looking for a file under /.
There's probably some prefix missing, namely $(src):
https://github.com/HRex39/rtl8852be/blo … efile#L622

PS: I think for some reason this condition is now being triggered. I currently have no time to look into this further. But you can try setting KERNELRELEASE= when invoking make in dkms.conf.

Last edited by schard (2022-12-06 17:00:02)


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#5 2022-12-06 19:24:22

rab0171610@gmail.com
Member
Registered: 2022-11-05
Posts: 20

Re: [Solved] No WiFi with rtl8852be

First, I am not an expert.  Someone may find fault with my workaround, that's ok.
Someone else here with more experience may have a better solution but in the mean time I was able to get it working on my machine.
The problem with the package (for me at least) is the included dkms.conf file(the PKGBUILD is ok for now.)  Change the dkms.conf to the following and try building again with "makepkg --skipinteg" (or "makepkg -g" to generate new integrity sums for the PKGBUILD):


PACKAGE_NAME="@_PKGBASE@"
PACKAGE_VERSION="@PKGVER@"
BUILT_MODULE_NAME="8852be"
MAKE="'make' -j$(nproc) KVER=${kernelver} KSRC=/lib/modules/${kernelver}/build"
KSRC="/lib/modules/${kernelver}/build"
CLEAN="make clean"
DEST_MODULE_LOCATION="/kernel/drivers/net/wireless/realtek/rtw8852be"
AUTOINSTALL="yes"

The dkms.conf file needs to be in the same folder as the PKGBUILD if I remember correctly.
You can also build it from the git sources with make and make install and it works fine, but you will have to rebuild it manually with every kernel update.
(If I did the code tags incorrectly, someone please advise and I will fix it accordingly)

Offline

#6 2022-12-06 21:40:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,743

Re: [Solved] No WiFi with rtl8852be

You should be using https://aur.archlinux.org/packages/rtw89-dkms-git for most current realtek out of tree driver needs, the others are deprecated and expected to be removed. The one you are currently using is definitely abandoned and shouldn't be used anymore. Note you'll likely have to adjust the dkms.conf from the AUR package so it actually builds rtl8852be as well but should be clear on how to do that. FWIW

PACKAGE_NAME="@_PKGBASE@"
PACKAGE_VERSION="@PKGVER@"
BUILT_MODULE_NAME[0]="rtw89pci"
BUILT_MODULE_NAME[1]="rtw89core"
BUILT_MODULE_NAME[2]="rtw_8852a"
BUILT_MODULE_NAME[3]="rtw_8852ae"
BUILT_MODULE_NAME[4]="rtw_8852be"
MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
DEST_MODULE_LOCATION[0]=/kernel/drivers/net/wireless/realtek/rtw89
DEST_MODULE_LOCATION[1]=/kernel/drivers/net/wireless/realtek/rtw89
DEST_MODULE_LOCATION[2]=/kernel/drivers/net/wireless/realtek/rtw89
DEST_MODULE_LOCATION[3]=/kernel/drivers/net/wireless/realtek/rtw89
DEST_MODULE_LOCATION[4]=/kernel/drivers/net/wireless/realtek/rtw89
AUTOINSTALL=yes
BUILD_EXCLUSIVE_KERNEL="^(4\.[0-9]+\.|5\.[0-9]\.|5\.1[0-5]\.)"

and reading the comments here: https://github.com/lwfinger/rtw89/issue … 1297257693 you can probably drop the AUR package once the 6.2 kernels arrive.

Last edited by V1del (2022-12-06 21:51:24)

Offline

#7 2022-12-07 04:16:20

rab0171610@gmail.com
Member
Registered: 2022-11-05
Posts: 20

Re: [Solved] No WiFi with rtl8852be

I am editing this as I misread a previous post.  The  rtl8852be should not be used (use rtw not rtl). The repo for the rtw8852be is still available even if it has been superseded by rtw89.   
As of right now, the rtw89 from sourcedoes not work for some Arch users -- see issues page at the repo.  I did not get it to work from source.
Thanks for the above dkms.conf as that may fix the problem I had with the rtw89 dkms package in AUR.

Last edited by rab0171610@gmail.com (2022-12-07 04:39:58)

Offline

#8 2022-12-07 05:22:00

SinonTM
Member
Registered: 2022-12-06
Posts: 9

Re: [Solved] No WiFi with rtl8852be

Thank you to everyone who replied.
In the end, the solution that finally worked for me was to install the newer driver repo.

yay -S rtw89-dkms-git

There was no need for additional editing to the make files.

I will mark solved and I hope this helps anyone in the future.

Offline

#9 2022-12-07 05:32:15

rab0171610@gmail.com
Member
Registered: 2022-11-05
Posts: 20

Re: [Solved] No WiFi with rtl8852be

Thank you for sharing that info SinonTM.  I had issues with the rtw89-dkms-git package a few months back (not building the rtw8852be module.)  I am glad to know it is now working.  I will try it again now.

Offline

Board footer

Powered by FluxBB