Hi everybody,
well, I figured out how to compile the module.
First, you have to download kernel source from, GitHub - emlid/linux-rt-rpi: Real-time preemptible kernel for Raspberry Pi
Then, you have to follow their instructions and compile kernel and modules.
I was confused at this point and It took me two days to clarify that my raspberry was Rpi 1 not Rpi 2.
The next step is to download rt8188eu source, I did it from, GitHub - lwfinger/rtl8188eu: Repository for stand-alone RTL8188EU driver. and extracted in /home/eugenio//src_pi/rtl8188eu-master
To complile you have to change some lines in Makefile,
I changed
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
KVER := $(shell uname -r)
KSRC ?= /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless
to
ARCH = arm
CROSS_COMPILE = /home/eugenio/bin/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
KVER = 3.18.9-rt5+
KSRC = /home/eugenio/src_pi/linux-rt-rpi-rpi-3.18.9-rt5
MODDESTDIR = $(KSRC)/kernel-rt/lib/modules/kernel/drivers/net/wireless
After that, I compile the module with
make all
That was all with compilation stage, the result was a module, 8188eu.ko located in my directory /home/eugenio/src_pi/rtl8188eu-master/8188eu.ko
The nex stage was intalling this kernel module in the micro sd.
I mounted the sd in /home/eugenio/mountpoint2 with
mount /dev/sdb2 /home/eugenio/mountpoint2
Then I check Makefile and reply the commands in console,
install:
install -p -m 644 8188eu.ko $(MODDESTDIR)
@if [ -a /lib/modules/$(KVER)/kernel/drivers/staging/rtl8188eu/r8188eu.ko ] ; then modprobe -r r8188eu; fi;
@echo âblacklist r8188euâ > /etc/modprobe.d/50-8188eu.conf
cp rtl8188eufw.bin /lib/firmware/.
/sbin/depmod -a ${KVER}
mkdir -p /lib/firmware/rtlwifi
cp rtl8188eufw.bin /lib/firmware/rtlwifi/.
First I copy 8188eu.ko to /lib/modules/3.18.9-rt5+/drivers/net/wireles with chmod to 644
Then, create a file 50-8188eu.conf in directory /etc/modprobe.d with only one line: blacklist r8188eu
After that, copy the firmware rtl8188eufw.bin to directories /lib/firmware and /lib/firmware/rtlwifi
Now its time to boot raspberry,
After booting I verified that r8188eu is not running in modules with command lsmod
now, it is time to actualize modules with,
sudo /sbin/depmod -a 3.18.9-rt5+
my last step was to include another lines in 50-8188eu.conf
blacklist r8188eu
options 8188eu rtw_power_mgnt=0 rtw_enusbss=0
and last reboot
That was all