How to compile rtl8192cu.ko for Raspberry Pi running Raspian?

If you want to use Wifi modules such as Edimax EW-7811Un with your Raspberry Pi, you will need the appropriate driver. For unknown reasons, the kernel-included driver for this module does not work. Luckily, Realtek is providing an open-source driver for exactly this radio module. To compile it, do this:

2 Comments

Heribert Riesbeck21.01.2013 at 23:00:40

Your instructions concerning concerning compilation of the rtl8192cu.ko driver module into the RaspberryPi (Raspian) Kernel appear at first sight easy enough although some explanation would be appreciated.

I require more detailed explanation with building the Kernel module on an Ubuntu System.

Thusfar, I have done the following:

1. Downloaded the Kernel sources from github.com. The files are now located in “my home” directory /raspberrypi-linux
2. Downloaded and installed the necessary compiler prereqisites with apt-get install git ncurses-dev make gcc-arm-linux-gnueabi
3. Downloaded and extracted the Wifi driver package from Realtek as per your writeup. The file resides in my homedirectory but not in the subdir /raspberrypi-linux
4. Modfified file “include/autoconfig.h” as per your instructions. The rtl8188_8192_usb…. directory also contains a “Makefile”

Firstly, given the above description, can I compile the module on a PC Ubuntu system?
Then, where should the expanded rtl8188C_8192C_usb…..file be located?. Together with the source files?
Should the above files be located in the root directory or can they remain in “my home” directory for the compile process?
Do I use the “Makefile” of step 4 to build the driver?

Your assistance would much appreciated.
Thank you very kindly.
Heribert Riesbeck