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

Can't initialise driver #289

Open
robcalcroft opened this issue Oct 18, 2022 · 3 comments
Open

Can't initialise driver #289

robcalcroft opened this issue Oct 18, 2022 · 3 comments

Comments

@robcalcroft
Copy link

When i run ifconfig i see the interface wlx2887ba3aaf01 showing up but when i go to start wpa_supplicant i get this error:

me@server:~$ wpa_supplicant -B -i wlx2887ba3aaf01 -c /etc/wpa_supplicant/wpa_supplicant.conf 
Successfully initialized wpa_supplicant
nl80211: deinit ifname=wlx2887ba3aaf01 disabled_11b_rates=0
wlx2887ba3aaf01: Failed to initialize driver interface
$ cat /proc/version
Linux version 4.15.0-194-generic (buildd@lcy02-amd64-052) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022

Do i need to compile differently for a amd64 system?

@CGarces
Copy link
Collaborator

CGarces commented Oct 18, 2022

amd64 should use the standard CONFIG_PLATFORM_I386_PC = y

Please compile the kernel from
https://github.com/clnhub/rtl8192eu-linux/tree/5.11.2.1
And ping me with the results to understand if the problem is caused by my custom modifications.

@robcalcroft
Copy link
Author

Sadly that didn't work on that branch:
Result of install_wifi.sh

rmmod: ERROR: Module 8192eu is not currently loaded
rmmod: ERROR: Module rtl8xxxu is not currently loaded
Error! There are no instances of module: rtl8192eu
located in the DKMS tree.
Error! Invalid number of parameters passed.
Usage: remove <module>/<module-version> --all
   or: remove <module>/<module-version> -k <kernel-version>
rm: cannot remove '/var/lib/dkms/rtl8192eu': No such file or directory

Creating symlink /var/lib/dkms/rtl8192eu/1.0/source ->
                 /usr/src/rtl8192eu-1.0

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' all KVER=4.15.0-194-generic......(bad exit status: 2)
ERROR (dkms apport): binary package for rtl8192eu: 1.0 not found
Error! Bad return status for module build on kernel: 4.15.0-194-generic (x86_64)
Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.
modprobe: FATAL: Module 8192eu not found in directory /lib/modules/4.15.0-194-generic

cat of make.log

DKMS make.log for rtl8192eu-1.0 for kernel 4.15.0-194-generic (x86_64)
Tue 18 Oct 15:10:18 BST 2022
/bin/sh: 1: bc: not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-194-generic/build M=/var/lib/dkms/rtl8192eu/1.0/build  modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-194-generic'
/bin/sh: 1: bc: not found
  CC [M]  /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.o
/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.c: In function ‘dump_drv_version’:
/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.c:45:62: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
  RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, __TIME__);
                                                              ^
/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.c:45:62: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.c:45:62: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.c:45:62: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
scripts/Makefile.build:333: recipe for target '/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.o' failed
make[2]: *** [/var/lib/dkms/rtl8192eu/1.0/build/core/rtw_debug.o] Error 1
Makefile:1590: recipe for target '_module_/var/lib/dkms/rtl8192eu/1.0/build' failed
make[1]: *** [_module_/var/lib/dkms/rtl8192eu/1.0/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-194-generic'
Makefile:2425: recipe for target 'modules' failed
make: *** [modules] Error 2

@CGarces any suggestions here?

@CGarces
Copy link
Collaborator

CGarces commented Oct 18, 2022

I don't have free time to find the issue, maybe on November I can work on this.

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

2 participants