Install Realtek 88x2bu-20210702 from morrownr git doesn´t work

Hello,

i can´t install the driver Realtek 88x2bu-20210702 from morrownr git.
I’m on kernel 6.13.0-rc1-2-cachyos-rc.

~/88x2bu-20210702 main
❯ sudo sh install-driver.sh
: ---------------------------
: install-driver.sh v20241003
: x86_64 (kernel architecture)
: x86_64 (architecture to send to gcc)
: 8/8 (in-use/total processing units)
: 16320768 (total system memory)
: 6.13.0-rc1-2-cachyos-rc (kernel version)
: Linux (version of gcc used to compile the kernel)
: gcc (GCC) 14.2.1 20240910
: dkms-3.1.4
: mokutil not installed (Secure Boot status unknown)
: ---------------------------

Checking for previously installed drivers...
Removing a driver that was added to dkms.

Deleting module rtl88x2bu/5.13.1 completely from the DKMS tree.
Removing 88x2bu.conf from /etc/modprobe.d
Removing source files from /usr/src/rtl88x2bu-5.13.1
Finished checking for and uninstalling previously installed drivers.
: ---------------------------

Starting installation.
Copying 88x2bu.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl88x2bu-5.13.1
Creating symlink /var/lib/dkms/rtl88x2bu/5.13.1/source -> /usr/src/rtl88x2bu-5.13.1
The driver was added to dkms successfully.
: ---------------------------


Sign command: /usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Cleaning build area... done.
Building module(s)...(bad exit status: 2)
Failed command:
kernelver=6.13.0-rc1-2-cachyos-rc ./dkms-make.sh LLVM=1

Error! Bad return status for module build on kernel: 6.13.0-rc1-2-cachyos-rc (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log for more information.
An error occurred. dkms build error:  10
Please report this error.
Please copy all screen output and paste it into the problem report.
Run the following before reattempting installation.
$ sudo ./remove-driver.sh

~/88x2bu-20210702 main
❯ 

the dkms log

DKMS make.log for rtl88x2bu/5.13.1 for kernel 6.13.0-rc1-2-cachyos-rc (x86_64)
Do 23. Jan 10:18:20 CET 2025
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.13.0-rc1-2-cachyos-rc/build M=/var/lib/dkms/rtl88x2bu/5.13.1/build  modules
make[1]: Verzeichnis „/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build“ wird betreten
make[2]: Verzeichnis „/var/lib/dkms/rtl88x2bu/5.13.1/build“ wird betreten
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: clang version 18.1.8
  You are using:           gcc (GCC) 14.2.1 20240910
  CC [M]  core/rtw_cmd.o
  CC [M]  core/rtw_security.o
  CC [M]  core/rtw_debug.o
  CC [M]  core/rtw_io.o
  CC [M]  core/rtw_ioctl_query.o
  CC [M]  core/rtw_ioctl_set.o
  CC [M]  core/rtw_ieee80211.o
  CC [M]  core/rtw_mlme.o
gcc: Fehler: unbekannte Kommandozeilenoption »-mretpoline-external-thunk«
gcc: Fehler: unbekannte Kommandozeilenoption »-mretpoline-external-thunk«
gcc: Fehler: unbekannte Kommandozeilenoption »-mretpoline-external-thunk«
gcc: Fehler: unbekannte Kommandozeilenoption »-mretpoline-external-thunk«
gcc: Fehler: unbekannte Kommandozeilenoption »-mretpoline-external-thunk«
gcc: Fehler: unbekannte Kommandozeilenoption »-mretpoline-external-thunk«
gcc: Fehler: unbekannte Kommandozeilenoption »-fsplit-lto-unit«
gcc: Fehler: unbekannte Kommandozeilenoption »-fsplit-lto-unit«
make[4]: *** [/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/scripts/Makefile.build:194: core/rtw_cmd.o] Fehler 1
make[4]: *** Es wird auf noch nicht beendete Prozesse gewartet …
make[4]: *** [/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/scripts/Makefile.build:194: core/rtw_security.o] Fehler 1
gcc: Fehler: unbekannte Kommandozeilenoption »-fsplit-lto-unit«
make[4]: *** [/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/scripts/Makefile.build:194: core/rtw_debug.o] Fehler 1
gcc: Fehler: unbekannte Kommandozeilenoption »-mretpoline-external-thunk«
gcc: Fehler: unbekannte Kommandozeilenoption »-fsplit-lto-unit«
make[4]: *** [/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/scripts/Makefile.build:194: core/rtw_io.o] Fehler 1
gcc: Fehler: unbekannte Kommandozeilenoption »-fsplit-lto-unit«
make[4]: *** [/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/scripts/Makefile.build:194: core/rtw_ioctl_set.o] Fehler 1
gcc: Fehler: unbekannte Kommandozeilenoption »-fsplit-lto-unit«
make[4]: *** [/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/scripts/Makefile.build:194: core/rtw_ioctl_query.o] Fehler 1
gcc: Fehler: unbekannte Kommandozeilenoption »-fsplit-lto-unit«
make[4]: *** [/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/scripts/Makefile.build:194: core/rtw_ieee80211.o] Fehler 1
gcc: Fehler: unbekannte Kommandozeilenoption »-mretpoline-external-thunk«
gcc: Fehler: unbekannte Kommandozeilenoption »-fsplit-lto-unit«
make[4]: *** [/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/scripts/Makefile.build:194: core/rtw_mlme.o] Fehler 1
make[3]: *** [/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/Makefile:1997: .] Fehler 2
make[2]: *** [/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build/Makefile:251: __sub-make] Fehler 2
make[2]: Verzeichnis „/var/lib/dkms/rtl88x2bu/5.13.1/build“ wird verlassen
make[1]: *** [Makefile:251: __sub-make] Fehler 2
make[1]: Verzeichnis „/usr/lib/modules/6.13.0-rc1-2-cachyos-rc/build“ wird verlassen
make: *** [Makefile:2533: modules] Fehler 2

Your system looks out of date. Please update to dkms 3.1.4 which is latest so it can use the correct compiler to build the modules.

Thanks for answer.
My System is up to date.
By the way with the standard kernel 6.12.10 arch1-1 it works. On cachyos-mirrorlist the kernels are not up to date, here is linux-cachyos-rc-6.13.rc1-2-x86_64 and on
3v mirrorlist is linux-cachyos-6.13.0-2-x86_64_v3
But i want it to get work with the cachyos kernels. :wink:

❯ pacman -Qi dkms
Installed From           : cachyos
Name                     : dkms
Version                  : 3.1.4-2
Beschreibung             : Dynamic Kernel Modules System
Architektur              : any
URL                      : https://github.com/dell/dkms
Lizenzen                 : GPL-2.0-or-later
Gruppen                  : Nichts
Stellt bereit            : Nichts
Hängt ab von             : bash  clang  coreutils  gawk  gcc  kmod  lld  llvm  make  patch  sed
Optionale Abhängigkeiten : linux-headers: build modules against the Arch kernel [Installiert]
                           linux-lts-headers: build modules against the LTS kernel
                           linux-zen-headers: build modules against the ZEN kernel
                           linux-hardened-headers: build modules against the HARDENED kernel
Benötigt von             : Nichts
Optional für             : Nichts
In Konflikt mit          : Nichts
Ersetzt                  : Nichts
Installationsgröße       : 131,97 KiB
Packer                   : CachyOS <admin@cachyos.org>
Erstellt am              : Sa 21 Dez 2024 14:03:39 CET
Installiert am           : Do 23 Jan 2025 10:00:17 CET
Installationsgrund       : Ausdrücklich installiert
Installations-Skript     : Ja
Verifiziert durch        : Signatur



Well the dkms log kinda says otherwise, it’s using GCC rather than clang, which is what the kernel was built with. You can use linux-cachyos-rc-gcc or linux-cachyos-gcc instead to use a GCC-built kernel.

when i understand you right, i should use a cachyos gcc build kernel?
I don’t have found linux-cachyos-gcc in the Repo.

Oh right… you’re on v1. Install linux-cachyos-bore then. It’s identical to linux-cachyos-gcc.

1 Like

Thank you now it works.