Skip to main content

Compiling Realtek 8192eu for Adafruit's PiTFT image

This post is about how I compiled the Realtek 8192eu drivers for the Adafruit PiTFT image. You can read about my journey and woes to how I got here in my previous post. Or if you don't want to read anything and just want the driver here it is: realtek_8192eu_adafruit_4.1.14+_pitft.tar.gz.

I have done the following on an Intel i7-4700MQ 2.40GHz laptop running Ubuntu 16.04 and compile time of the kernel was under 20mins. Hopefully that should give you some rough estimate of how long it takes to compile the kernel.

  1. Install Adafruit Pi Kernel-O-Matic.
    1. Follow the instructions on the Installing Dependencies and Starting The VM pages. You will now have a VM that is ready to build kernels.
    2. Follow the instructions on the Build The VM page (it is towards the bottom) to checkout and build the Adafruit PiTFT branch of the kernel.
  2. SSH into your Vagrant VM and git clone the 8192eu drivers. I used the source from https://github.com/romcyncynatus/rtl8192eu.git
  3. Change to the 8192eu driver source directory that you just cloned
  4. I made a slight modification to the makefile at line 16 (hopefully this doesn't come back to bite me since I'm not really sure what I did)

    Change:
    EXTRA_CFLAGS += -Wno-error=date-time
    To:
    EXTRA_CFLAGS += -Wno-date-time
  5. Run the following make command

    sudo make ARCH=arm CROSS_COMPILE=/opt/rpi_tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi- KSRC=/kernel_repos/adafruit/adafruit-raspberrypi-linux/v1

Voila, you should see a freshly built 8192eu.ko driver file that is ready to be used on your Pi that has the Adafruit PiTFT image. You just have to transfer and install 8192eu.ko to your Pi from the Vagrant VM.

Or you can just get realtek_8192eu_adafruit_4.1.14+_pitft.tar.gz that has the driver file and install script. The install script is a modified version of MrEngman's install script over on the Raspberry Pi forums. If you need the driver for a more recent version of Raspbian, most likely he has compiled it and has shared it.

I hope this helps others that have an 8192eu Wi-Fi adapter chipset wanting to use Adafruit's PiTFT image.
 

Comments

Popular posts from this blog

Fishing Pole/Rod Dryer

My friend, Ross, wanted to fix his fishing pole guides but did not have all the necessary equipment. Luckily, he had a friend that had rod building equipment. I had mentioned to my friend that one day I would like to wrap a custom pole. So my friend said hey look at the stuff you would need. The most expensive piece of equipment was the rod dryer. His friend's dryer was retail bought at some online fishing store, I want to say Cabela's but I am unsure of that. The dryers can be pricey. So my friend and I looked up cheap DIY alternatives. We found many and the concept was the same. Slow rotating motor with a cup to hold the end of the rod. Here is our take on a dryer. Some of the parts to make this was given to me by Ross, thanks dude.

Canoe Stand

When my wife got her canoe, there were only a few instructions on the net for building stands. There were many pictures of PVC canoe stands but not much, if any, detailed instructions on making them. Here is my shot at a detailed tutorial (this was also on a site that is no more that I had awhile back). Table of Contents Summary Getting Ready Materials Tools Pipe Cutting Hole Drilling Assembly Finishing Touches Summary Project: Canoe stands x 2 Project Time: About 3 hours Material Cost: Around $45 Easy to make canoe stands made out of PVC pipes. These stands have rope padding in place of the standard foam padding I have seen. Personally, I think the rope looks better than foam. Disclaimer: I take no responsibility if your stand fails to do its job or if you get hurt making the stands. I am writing this because seems like every project has a disclaimer because someone somehow screws up. Getting Ready Materials The following items were purchased ...

DIY Children's Swing

DIY Children's Swing Here is a simple and fairly cheap small swing for little toddlers under 40lbs.