abcd567 Posted August 8, 2016 Posted August 8, 2016 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. 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.sh2) Run the installation script $ sudo chmod +x install.sh $ sudo ./install.sh3) Output generated: Decompress the driver source tar ball: rtl8192EU_linux_v4.2.2_7585.20130524.tar.gzrtl8192EU_linux_v4.2.2_7585.20130524/rtl8192EU_linux_v4.2.2_7585.20130524/cleanrtl8192EU_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/runwpartl8192EU_linux_v4.2.2_7585.20130524/wlan0dhcprtl8192EU_linux_v4.2.2_7585.20130524 Authentication requested [root] for make clean:cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.kocd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.kocd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.kocd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.kocd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.kocd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.kocd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.kocd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.kocd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.kocd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.korm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.orderrm -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 modulesmake[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 directorymake[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' failedmake: *** [modules] Error 2##################################################Compile make driver error: 2Please 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 "##################################################"
Tido Posted August 8, 2016 Posted August 8, 2016 Without digging deep into your post I see 2011, have look here: https://wireless.wiki.kernel.org/en/users/drivers/rtl819x rtl8xxxu is a multi-driver for USB devices(RTL8723AU/RTL8723BU/RTL8191EU/RTL8192EU/RTL8188EU/RTL8188RU) (4.3+), for other chips WIP: git-tree make sure you compile for ARM architecture.
tkaiser Posted August 8, 2016 Posted August 8, 2016 /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)
Tido Posted August 8, 2016 Posted August 8, 2016 @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).
shahidali55 Posted August 8, 2016 Posted August 8, 2016 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
zador.blood.stained Posted August 8, 2016 Posted August 8, 2016 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
tkaiser Posted August 8, 2016 Posted August 8, 2016 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)?
Recommended Posts