After struggling with the matter for a while, I have successfully compiled a working driver for my 8192eu based wifi usb adapter.
I ended up compiling it on the Pi itself (cross compiling didn’t work too well), and after knowing what to do it was pretty straightforward.
Just for my convenience, I’m assuming you are running Raspberry Pi 1 with “3.18.13-1-osmc” kernel.
This is MOST LIKELY not your case, so make sure to “search and replace” my instructions as follows:
3.18.13-1-osmc: Change to the output of ‘uname -r’ command on your Pi.
rbp1: Change to rbp2 if you are on Raspberry Pi 2.
bcm2708: Change to bcm2709 if you are on Raspberry Pi 2.
Without further ado, here goes:
Get your Pi ready for code compilation:
sudo apt-get update
sudo apt-get install build-essential git
Get the appropriate kernel headers:
sudo apt-get install rbp1-headers-3.18.13-1-osmc
A bit more info about this is available here - https://osmc.tv/help/wiki/kernel-sources
Add missing files to kernel headers:
(On future versions of OSMC this would hopefully be unnecessary - https://github.com/samnazarko/osmc/issues/167)
sudo apt-get install rbp1-source-3.18.13-1-osmc
sudo tar -xjvf /usr/src/rbp1-source-3.18.13-1-osmc.tar.bz2
sudo cp -r /usr/src/rbp1-source-3.18.13-1-osmc/arch/arm/mach-bcm2708/include/mach/ /usr/src/rbp1-headers-3.18.13-1-osmc/arch/arm/include/
sudo rm -rf /usr/src/rbp1-source-3.18.13-1-osmc
sudo apt-get remove rbp1-source-3.18.13-1-osmc
Get driver source, compile it, and install:
(This is rtl8192EU_linux_v4.3.8_12406.20140929 found on GitHub)
git clone https://github.com/romcyncynatus/rtl8192eu.git /home/osmc/rtl8192eu
make ARCH=arm KVER=3.18.13-1-osmc KSRC=/usr/src/rbp1-headers-3.18.13-1-osmc
sudo make ARCH=arm KVER=3.18.13-1-osmc KSRC=/usr/src/rbp1-headers-3.18.13-1-osmc install
sudo bash -c ‘echo “options 8192eu rtw_power_mgnt=0 rtw_enusbss=0”>/etc/modprobe.d/8192eu.conf’
Activate the newly created driver and get some info:
That’s it, you should now have a working wifi adapter, and you may proceed to configuring your network settings.