Posts: 15
Joined: Sat May 25, 2019 8:30 am

Compiling Tenda U6 wifi driver (rtl8192eu)

Tue Jun 18, 2019 11:41 am

Here is the manual to compile Realtek modules for Raspbian kernel. It will work for other chipsets too, if you have the driver source for it.
And the same strategy also works with crazycat's media build for rare USB DVB dongles.

Install some needed packages

Code: Select all

sudo apt-get install libncurses5-dev build-essential bc git wget
Install rpi-source script

Code: Select all

sudo wget -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update
Question: is rpi-source available by apt-get too?

Run it

Code: Select all

This will download the sources of currently used kernel from the internet. This step needs the fast connection and several hundreds of MB of free space. It also makes some symlinks needed and builds the database of module dependencies.

Get the driver source you need, here it is rtl8192eu

Code: Select all

git clone
Now you need to set the correct architecture in Makefile

Code: Select all

cd rtl8192eu-linux-driver/
nano Makefile
in CONFIG_PLATFORM section, set all platforms to n
but ARM_RPI to y


Code: Select all

This needs some time and fresh air to CPU, asi it becomes warm.

If no errors, install the new module

Code: Select all

sudo make install
and reboot...


After this procedure, the wifi works, iwlist wlan0 scan lists all ap's nearby. But the system does not manage the connection. If I configure it by hand, it works, but it does not conncect to networks in /etc/wpa_supplicant/ automatically. Older Tenda dongle supported by kernel does, but this newly compiled does not.
How can I make it to work automatically, like older supported wifi dongles?

Posts: 2
Joined: Tue Jun 18, 2019 7:14 pm

Re: Compiling Tenda U6 wifi driver (rtl8192eu)

Tue Jun 18, 2019 7:31 pm

Suggest you search the forums for Mr Engman's self updating script.

Return to “Raspberry Pi OS”