Open nikunjlahoti opened 8 years ago
I was able to easily compile it on Ubuntu 15.04 4.2.0-35-generic. After blacklisting lsmod | grep 8188
gives correct result.
Will check if the AP capabilities work in Ubuntu and go back to raspberry pi 2.
I got it to work on Ubuntu Snappy 16.04.2! Thanks!
My primary objective is to start Soft-AP on raspberrypi2 running osmc (kernel = 4.4.16-4-osmc). I was able to start AP in Windows using the supplied CD.
modinfo r8188eu
suggests that the driver is in staging. /lib/modules/4.4.16-4-osmc/kernel/drivers/staging/rtl8188eu/r8188eu.kosudo ln -s /usr/src/rbp2-headers-4.4.16-4-osmc /lib/modules/4.4.16-4-osmc/build
sudo tar -xjvf /usr/src/rbp2-source-4.4.16-1-osmc.tar.bz2
sudo mv rbp2-source-4.4.16-1-osmc rbp2-source-4.4.16-4-osmc
(adding mach/memory.h)
sudo cp -r /usr/src/rbp2-source-4.4.16-4-osmc/arch/arm/mach-bcm2709/include/mach/ /usr/src/rbp2-headers-4.4.16-4-osmc/arch/arm/include/
$ make all
I found a similar issue at https://www.open-mesh.org/issues/246. Where the solution says "We should not compile a kernel module against kernel headers which are not meant to be used for kernel modules".
Can anyone please guide me or tell me what I am doing wrong? I am going to try it on Ubuntu later. Hopefully it will work there.
(source: https://discourse.osmc.tv/t/tutorial-compiling-a-working-kernel-driver-for-rtl8192eu/5252)