USB WiFi Adapter Driver Help

I purchased a usb wifi adapter RTL8192 chip, 300Mbps.
Canadian $10.47 + Free Shipping, Requires Driver Installation (CD Provided),

When I tried to install driver, error :angry:
Need help.

This is what happened:

  1. Copied following 2 files from CD to RPi 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:

##################################################
Realtek Wi-Fi driver Auto installation script
Novembor, 21 2011 v1.1.0
##################################################
Decompress the driver source tar ball:
rtl8192EU_linux.tar.gz



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=armv6l CROSS_COMPILE= -C /lib/modules/4.4.13+/build M=/home/pi/driver-8192eu/driver/rtl8192EU_linux_v4.2.2_7585.20130524 modules
make[1]: Entering directory ‘/usr/src/linux-headers-4.4.13+’
Makefile:606: arch/armv6l/Makefile: No such file or directory
make[1]: *** No rule to make target ‘arch/armv6l/Makefile’. Stop.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.4.13+’
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 "##################################################"


Is this for a RPi?

Did you try just plugging it in and seeing if the built-in drivers worked?

Normally you just have to change two files:

/etc/network/interfaces


source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback
iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

and /etc/wpa_supplicant/wpa_supplicant.conf


ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
	ssid="myssid"
	psk="secret"
	key_mgmt=WPA-PSK
	scan_ssid=1
}

scan_ssid is set to 1 if you have a hidden SSID, 0 if published.

@edgy
Yes, initially I added my wifi passwd & id in file “wpa_supplicant.conf”, then pluged in and watched, then rebooted, but it wont pickup.

I have purchased another one (Canadian $2.55+Free shipping) which is Plug-n-Play and started working out of the box. No driver installation required, but its range is not good.

Thanks for guidance. I will try your method on my 2nd Pi.
On my Pi 1, I have solved the problem by following method:

SOLVED!

I solved it by installing driver as described on this page:

raspberrypi.org/forums/view … p?t=148389

$ uname -a
Linux pi1 4.4.13+ #894 Mon Jun 13 12:43:26 BST 2016 armv6l GNU/Linux

$ sudo wget dl.dropboxusercontent.com/u/80256631/8192eu-4.4.13-894.tar.gz

$ sudo tar xzf 8192eu-4.4.13-894.tar.gz

$ dir
8192eu-4.4.13-894.tar.gz 8192eu.conf 8192eu.ko install.sh

$ sudo ./install.sh


$sudo reboot

Note:
Before trying to install driver from CD, I have opened file /etc/wpa_supplicant/wpa_supplicant.conf and added ssid & psk, as shown below.



$  sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

country=CA
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

#Added the 4 lines below
network={
        ssid="xxxxxxxxxxx"
        psk="yyyyyyyyyyyy"
}



@edgy
On my Pi2, I checked the 2 files “/etc/network/interfaces” and " /etc/wpa_supplicant/wpa_supplicant.conf".
Both files are exactly like you have posted, and the file wpa_supplicant.conf has correct wifi ssid & passwd, but the Wifi adapter does not pick up. Tried reboot, no success. I then tried the same method as for Pi1 (B+), but that site does not have driver for my Pi2 (Model2). I have now posted on that site, a request for driver for the Pi Model 2 (4.1.19-v7+ #858).

~ $ uname -a
Linux pi2 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux

~ $ sudo wget dl.dropboxusercontent.com/u/80256631/8192eu-4.4.19-v7-858.tar.gz
–2016-08-03 14:29:39-- dl.dropboxusercontent.com/u/802 … 858.tar.gz
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)… 45.58.70.5
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|45.58.70.5|:443… connected.
HTTP request sent, awaiting response… 404 Not Found

I take the opposite approach of buying dongles that are known to work out of the box. Out of tree vendor drivers are a pain to set up and the quality is usually a bit suspect.

I have now learned the lesson, but the hard way. :frowning:

Anyway it is surprising that the cheaper one (can $2.55) is plug n play and worked out of the box (no driver installation required), while the other one 4 times the cost (can $ 10.47) requires driver installation, and the driver provided by seller on a CD does not even get installed!

Make sure to include:


key_mgmt=WPA-PSK

Inside the wpa_supplicant.conf network brackets.

I’ve felt the same pain too. I’m with OBJ. Dongles that need a custom driver installed are a total PITA. Not only do you have to get it working the first time, but when you upgrade the operating system you have to go through the driver compile/install all over again.

I did not know it will require a driver when I ordered it (the RTL8929EU 300mbps). There was no mention of driver CD. Only when i received it, I found it has a CD.

The other cheaper model 150 mbps proved to be plug-n-play. It worked out of the box, no driver installation. The cheap one has limited range about 20 to 25 feet only.

Actually I dont need wifi adapters. It was just an experiment out of curiosity. My entire installation, including antennas is indoor, and I have wired network available at locations of all the 3 RPi s.

My RPi 3 of course has built-in, but the RPi 2 I bought a “Realtek Semiconductor Corp. RTL8191SU” (that’s what is says when I do a lsusb). It’s labeled IOGear GWU625 and the PX sells them for $20. I have 3 of them on my network computers, as my router is out in the garage. They seem to work just fine. Kind of slow finding the network on reboot (20 seconds or so).

On my piaware Pi (the RPi 2) I connect it to some heliax to the antenna up about 20 feet, and connect to the internet via the wireless. Then I run the wired network to my desktop in link-local dhcp mode (169.254.x.x network). That way I don’t burn-up the wifi network with my port 30003 data to the database feed.

My Linux knowledge is in bits and pieces, not a proper systematic learning like going through a tutorial or a book.
Just out of curiosity, want to know what are linux-headers & Makefile Rules?
Can I install these by apt-get or some other way?
Please see below what I got when I tried to install driver from the .tar.gz file from installation CD:

make[1]: Entering directory ‘/usr/src/linux-headers-4.4.13+’
Makefile:606: arch/armv6l/Makefile: No such file or directory
make[1]: *** No rule to make target ‘arch/armv6l/Makefile’. Stop.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.4.13+’
Makefile:1043: recipe for target ‘modules’ failed
make: *** [modules] Error 2