Mange/rtl8192eu-linux-driver

Can't compile driver

stefanlk opened this issue · 3 comments

when compiling on my Raspi I got following messages:

dkms install rtl8192eu/1.0

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' all KVER=6.1.19-v7+...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.19-v7+ (armv7l)
Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.

more /var/lib/dkms/rtl8192eu/1.0/build/make.log
DKMS make.log for rtl8192eu-1.0 for kernel 6.1.19-v7+ (armv7l)
So 2. Apr 12:19:43 CEST 2023
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/6.1.19-v7+/build M=/var/lib/dkms/rtl8192eu/1.0/build modules
make[1]: Verzeichnis ▒/usr/src/linux-headers-6.1.19-v7+▒ wird betreten
Makefile:775: arch/armv7l/Makefile: Datei oder Verzeichnis nicht gefunden
make[1]: *** Keine Regel, um ▒arch/armv7l/Makefile▒ zu erstellen. Schluss.
make[1]: Verzeichnis ▒/usr/src/linux-headers-6.1.19-v7+▒ wird verlassen
make: *** [Makefile:2287: modules] Fehler 2

uname -r
6.1.19-v7+
uname -a
Linux raspi-family 6.1.19-v7+ #1637 SMP Tue Mar 14 11:04:52 GMT 2023 armv7l GNU/Linux

ls -la /usr/src
insgesamt 28
drwxr-xr-x 7 root root 4096 2. Apr 11:34 .
drwxr-xr-x 22 root root 4096 8. Dez 2021 ..
lrwxrwxrwx 1 root root 24 2. Apr 11:33 linux -> linux-headers-6.1.19-v7+
drwxr-xr-x 25 root root 4096 2. Apr 11:31 linux-headers-6.1.19+
drwxr-xr-x 25 root root 4096 2. Apr 12:14 linux-headers-6.1.19-v7+
drwxr-xr-x 25 root root 4096 2. Apr 11:31 linux-headers-6.1.19-v7l+
drwxr-xr-x 7 root root 4096 2. Apr 11:34 rtl8192eu-1.0
drwxr-xr-x 3 root root 4096 4. M▒r 2021 sense-hat

whats the problem?
why does the make says architect armv7l? Shall it be arm?

I believe you will need to edit the platform configuration in the Makefile.

Open the Makefile and change CONFIG_PLATFORM_I386_PC to n and change CONFIG_PLATFORM_ARM_RPI to y. And just to be sure, run make clean after changing those options (although this probably isn't necessary).