Missing headers for driver compilation

Topics about the Software of Revolution Pi
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47
Answers: 0

Missing headers for driver compilation

Post by thalesmaoa »

Hi, I need to compile some drivers, but the headers are missing.
I appreciate if anyone can help.

https://github.com/lwfinger/rtl8188eu
or
https://github.com/aircrack-ng/rtl8188eus

Code: Select all

$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.95-rt38/build M=/home/pi/RealtekDriver/rtl8188eu  modules
make[1]: *** /lib/modules/4.19.95-rt38/build: No such file or directory.  Stop.
Makefile:155: recipe for target 'modules' failed
make: *** [modules] Error 2
User avatar
nicolaiB
KUNBUS
Posts: 876
Joined: 21 Jun 2018, 10:33
Answers: 8
Location: Berlin
Contact:

Re: Missing headers for driver compilation

Post by nicolaiB »

Hi,

you have to install the package raspberrypi-kernel-headers

-Nicolai
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47
Answers: 0

Re: Missing headers for driver compilation

Post by thalesmaoa »

Thanks. It did work.
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47
Answers: 0

Re: Missing headers for driver compilation

Post by thalesmaoa »

I'm getting segmentation fault. Any idea how to fix?
User avatar
nicolaiB
KUNBUS
Posts: 876
Joined: 21 Jun 2018, 10:33
Answers: 8
Location: Berlin
Contact:

Re: Missing headers for driver compilation

Post by nicolaiB »

No, I'm afraid not. Maybe you can try one of the other Realtek drivers most of them are forks in a more or less volatile state. If nothing helps, you probably should open an issue at the drivers repository.

-Nicolai
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47
Answers: 0

Re: Missing headers for driver compilation

Post by thalesmaoa »

Any tutorial for cross compilation? Can't match the headers.
User avatar
nicolaiB
KUNBUS
Posts: 876
Joined: 21 Jun 2018, 10:33
Answers: 8
Location: Berlin
Contact:

Re: Missing headers for driver compilation

Post by nicolaiB »

Why do you want to cross compile the driver? Just install the kernel headers on your RevPi and build the module. Cross compilation is only needed if you have to build on a different architecture than your target.

-Nicolai
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47
Answers: 0

Re: Missing headers for driver compilation

Post by thalesmaoa »

I can't compile within RevPi. I alsways get Segmentation Fault.
It did work using cross compilation.

It was difficult to find the correct path, but it is working now.
thalesmaoa
Posts: 16
Joined: 19 Jul 2022, 20:47
Answers: 0

Re: Missing headers for driver compilation

Post by thalesmaoa »

After compiling and testing:

Code: Select all

sudo /sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -D8188eu,wext -iwlan0
It works as expected, however, using service. Nothing happens. I'm using buster version now. Any help?
How do I correctly configure wifi network?
User avatar
nicolaiB
KUNBUS
Posts: 876
Joined: 21 Jun 2018, 10:33
Answers: 8
Location: Berlin
Contact:

Re: Missing headers for driver compilation

Post by nicolaiB »

Without any configuration shown, it is hard to guess. I suggest you try to configure it with raspi-config or other ways the official Raspberry Pi documentation suggests (our image uses Raspberry Pi OS as a base)

-Nicolai
Post Reply