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

Trouble compiling/installing the driver #31

Open
micha53 opened this issue Jul 31, 2023 · 1 comment
Open

Trouble compiling/installing the driver #31

micha53 opened this issue Jul 31, 2023 · 1 comment

Comments

@micha53
Copy link

micha53 commented Jul 31, 2023

I made an Update of my linux mint to version 21.2. Do not get Connection with Wifi and compiled this code making the following steps:

sudo apt install git dkms build-essential
git clone https://github.com/jeremyb31/rtl8822bu.git
sudo dkms add ./rtl8822bu
sudo dkms install 8822bu/1.1


In the last step I get an error message:

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' all KVER=5.15.0-78-generic........(bad exit status: 2)
**Error! Bad return status for module build on kernel:** 5.15.0-78-generic (x86_64)
Consult /var/lib/dkms/8822bu/1.1/build/make.log for more information.

The make.log:

DKMS make.log for 8822bu-1.1 for kernel 5.15.0-78-generic (x86_64)
Mo 31. Jul 15:19:13 CEST 2023
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-78-generic/build M=/var/lib/dkms/8822bu/1.1/build modules
make[1]: Verzeichnis „/usr/src/linux-headers-5.15.0-78-generic“ wird betreten
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
  You are using:           gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_mlme_ext.o
/var/lib/dkms/8822bu/1.1/build/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/var/lib/dkms/8822bu/1.1/build/core/rtw_mlme_ext.c:1428:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1428 |                 if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
      |                    ^
/var/lib/dkms/8822bu/1.1/build/core/rtw_mlme_ext.c:1433:9: note: here
 1433 |         case WIFI_ASSOCREQ:
      |         ^~~~
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/8822bu/1.1/build/core/rtw_br_ext.o
/var/lib/dkms/8822bu/1.1/build/core/rtw_br_ext.c:26:18: fatal error: net/ipx.h: Datei oder Verzeichnis nicht gefunden
   26 |         #include <net/ipx.h>
      |                  ^~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:297: /var/lib/dkms/8822bu/1.1/build/core/rtw_br_ext.o] Fehler 1
make[1]: *** [Makefile:1914: /var/lib/dkms/8822bu/1.1/build] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-5.15.0-78-generic“ wird verlassen
make: *** [Makefile:1319: modules] Fehler 2

is missing an ipx/net.h file.
Where to search for that file and where to put in?

@micha53
Copy link
Author

micha53 commented Jul 31, 2023

as far I found out meanwhile ipx is not supported anymore in actual kernel and should be removed from the driver.
Here it seems to be done already.

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

1 participant