0
abcd567

Orange PI PC Wireless Module RTL8192EU - Help for Driver

Recommended Posts

I purchased a usb wifi adapter RTL8192EU chip, 300Mbps.
Requires Driver Installation (CD was provided with the adapter),

When I tried to install driver on Orange Pi PC / Armbian, gave error. :(  :angry:  
Need help.


This is what happened:

1) Copied following 2 files from CD to Orange Pi PC by SFTP:
    rtl8192EU_linux_v4.2.2_7585.20130524.tar.gz
    install.sh

2) Run the installation script
    $ sudo chmod +x install.sh
    $ sudo ./install.sh

3) Output generated:

 

 

 

Decompress the driver source tar ball:
        rtl8192EU_linux_v4.2.2_7585.20130524.tar.gz
rtl8192EU_linux_v4.2.2_7585.20130524/
rtl8192EU_linux_v4.2.2_7585.20130524/clean
rtl8192EU_linux_v4.2.2_7585.20130524/core/
rtl8192EU_linux_v4.2.2_7585.20130524/core/efuse/
rtl8192EU_linux_v4.2.2_7585.20130524/core/efuse/rtw_efuse.c
................................

................................

................................

................................

rtl8192EU_linux_v4.2.2_7585.20130524/runwpa
rtl8192EU_linux_v4.2.2_7585.20130524/wlan0dhcp
rtl8192EU_linux_v4.2.2_7585.20130524

 

Authentication requested [root] for make clean:
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions

 

Authentication requested [root] for make driver:
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/3.4.112-sun8i/build M=/home/pi/driver-18192eu/driver/rtl8192EU_linux_v4.2.2_7585.20130524  modules
make[1]: Entering directory '/usr/src/linux-headers-3.4.112-sun8i'
Makefile:568: /usr/src/linux-headers-3.4.112-sun8i/arch/armv7l/Makefile: No such file or directory
make[1]: *** No rule to make target '/usr/src/linux-headers-3.4.112-sun8i/arch/armv7l/Makefile'.  Stop.

make[1]: Leaving directory '/usr/src/linux-headers-3.4.112-sun8i'
Makefile:1043: recipe for target 'modules' failed
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################

 

 

Here is the install.sh code:

 

 

#!/bin/bash
# Auto install for 8192cu
# September, 1 2010 v1.0.0, willisTang
#
# Add make_drv to select chip type
# Novembor, 21 2011 v1.1.0, Jeff Hung
################################################################################

echo "##################################################"
echo "Realtek Wi-Fi driver Auto installation script"
echo "Novembor, 21 2011 v1.1.0"
echo "##################################################"

################################################################################
#            Decompress the driver source tal ball
################################################################################
cd driver
Drvfoulder=`ls |grep .tar.gz`
echo "Decompress the driver source tar ball:"
echo "    "$Drvfoulder
tar zxvf $Drvfoulder

Drvfoulder=`ls |grep -iv '.tar.gz'`
echo "$Drvfoulder"
cd  $Drvfoulder

################################################################################
#            If makd_drv exixt, execute it to select chip type
################################################################################
if [ -e ./make_drv ]; then
    ./make_drv
fi

################################################################################
#                       make clean
################################################################################
echo "Authentication requested [root] for make clean:"
if [ "`uname -r |grep fc`" == " " ]; then
        sudo su -c "make clean"; Error=$?
else
        su -c "make clean"; Error=$?
fi

################################################################################
#            Compile the driver
################################################################################
echo "Authentication requested [root] for make driver:"
if [ "`uname -r |grep fc`" == " " ]; then
    sudo su -c make; Error=$?
else    
    su -c make; Error=$?
fi
################################################################################
#            Check whether or not the driver compilation is done
################################################################################
module=`ls |grep -i 'ko'`
echo "##################################################"
if [ "$Error" != 0 ];then
    echo "Compile make driver error: $Error"
    echo "Please check error Mesg"
    echo "##################################################"
    exit
else
    echo "Compile make driver ok!!"    
    echo "##################################################"
fi

if [ "`uname -r |grep fc`" == " " ]; then
    echo "Authentication requested [root] for remove driver:"
    sudo su -c "rmmod $module"
    echo "Authentication requested [root] for insert driver:"
    sudo su -c "insmod $module"
    echo "Authentication requested [root] for install driver:"
    sudo su -c "make install"
else
    echo "Authentication requested [root] for remove driver:"
    su -c "rmmod $module"
    echo "Authentication requested [root] for insert driver:"
    su -c "insmod $module"
    echo "Authentication requested [root] for install driver:"
    su -c "make install"
fi
echo "##################################################"
echo "The Setup Script is completed !"
echo "##################################################"

 

 

Share this post


Link to post
Share on other sites

/lib/modules/3.4.112-sun8i/build

 

The OP is not so surprisingly using Armbian with legacy kernel.

 

Without digging deep into your post [...] (4.3+)

 

And now a 'solution' for mainline kernel is suggested. Good luck.

 

Unfortunately the only real solution for problems of this kind I know of is to change methodology. First do some research which WiFi dongle will work, then buy and follow known tutorials (eg. this one). If you don't want to fiddle around with driver installation at all then simply choose any of the Armbian supported boards that do feature onboard WiFi (since we ship with drivers and config stubs for these devices)

Share this post


Link to post
Share on other sites

@TK you cloud have answered before, did you wait to leave some smart comments.

 

 

totally obvious to anyone

 

First do some research which WiFi dongle will work, then buy and follow known tutorials (eg. this one).

Share this post


Link to post
Share on other sites

Hi abcd567,

 

Install linux headers first:

sudo apt-get install linux-headers-sun8i

 

Paste the output you see for when lsusb command is run with the dongle connected.

 

I've tested all possible WiFi N chipsets from Realtek on armbian 5.14 with legacy kernel and confirm good performance, even with some real cheap ones.

 

On the other hand, Mediatek MT7601 dongles are stuck to 54Mbps no matter what I do.

 

 

make[1]: Entering directory '/usr/src/linux-headers-3.4.112-sun8i'

Makefile:568: /usr/src/linux-headers-3.4.112-sun8i/arch/armv7l/Makefile: No such file or directory

Share this post


Link to post
Share on other sites

Install linux headers first:

sudo apt-get install linux-headers-sun8i

Headers are installed by default to all images

 

Makefile:568: /usr/src/linux-headers-3.4.112-sun8i/arch/armv7l/Makefile: No such file or directory

make[1]: *** No rule to make target '/usr/src/linux-headers-3.4.112-sun8i/arch/armv7l/Makefile'.  Stop.

Looks like build script detected wrong architecture, it should use ARCH=arm instead of ARCH=armv7l

Share this post


Link to post
Share on other sites

Headers are installed by default to all images

 

But do you remember when we changed the procedure so that 'make scripts' wasn't necessary any more (as it's still outlined in docs)? Prior to 5.14 or later (some people never update)?

 

Setting ARCH=arm variable should work most probably in Makefile? (replacing broken auto-detection or are there platforms that might use ARCH=armv7l, RPi for example)?

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
0