MrEngman
Posts: 3859
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 27, 2012 1:11 am

Jogi wrote:After being clueless for about an hour, i figured out why the install script was stuck waiting for the wlan to connect.

Don't change the local (to german for example) before you run the script!! Or otherwise the many grep in this script wont ever find the right values to compare. :D

Is there a possibility to include a check or an automatic locale switch? If not there should at least be a warning.

I have to admit, that i don't have read all the posts in this thread, because i assumed i can get all needed information from the script itself.

Nevertheless many thanks for this great piece of software! Except of this little drawback, the installation of my edimax stick was done easily in minutes!

Joachim
I have been asked about this before. There is a way to do it but I'm just not sure how to test it.

I think something like the following needs to be added to the beginning of the script

Code: Select all

export LC_ALL="C"
export LANG="C"
export LANGUAGE="C"
I don't like to make changes without being able to test it properly.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3859
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 27, 2012 1:21 am

Montala wrote:
MrEngman wrote: If you get a kernel crash or something like that then you may have PSU problems. This appears to be a common problem where the install has failed looking at recent posts.
Hi,
Apologies for not having come back before now, to thank you for your very long, and most informative post.
As you surmised, I think that PSU problems were behind some of the problems I was experiencing, as despite using a powered hub, it obviously needed a bit more than a 1 amp supply!
I am just waiting now to get my hands on something a bit more suitable, and am also going to try using another USB wifi adapter... an Asus USB-N10 actually!
I noticed another post from you that mentioned the N10 - you'll need to find the right driver as it is different to the one used with the Edimax. 8192SU rather than the 8192CU used with the rtl8188cus devices. The source is on the Realtek web site
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

User avatar
Montala
Posts: 675
Joined: Mon Mar 05, 2012 11:54 pm
Location: Herefordshire (U.K.)

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 27, 2012 8:03 am

MrEngman wrote:I noticed another post from you that mentioned the N10 - you'll need to find the right driver as it is different to the one used with the Edimax. 8192SU rather than the 8192CU used with the rtl8188cus devices. The source is on the Realtek web site
I did indeed, but I was under the impression that these (and other drivers) are already included in the latest 'official' Raspbian "Wheezy" image... or is that not in fact the case?

adambialas
Posts: 12
Joined: Mon Jul 16, 2012 2:42 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 27, 2012 8:18 am

Hello , I have Raspbian and after i update firmware using rpi-update a have kernel info :
Linux version 3.1.9+ (dc4@dc4-arm-01) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #202 PREEMPT Wed Jul 25 22:11:06 BST 2012
and automatic setup for RTL8188CUS is not longer working :(
My TL-WN723N ver.2.2 is not working and dmesg is full of errors like :
[ 12.788515] 8192cu: disagrees about version of symbol skb_copy
[ 12.807507] 8192cu: Unknown symbol skb_copy (err -22)
[ 12.814546] 8192cu: disagrees about version of symbol skb_clone
[ 12.822424] 8192cu: Unknown symbol skb_clone (err -22)
[ 12.829317] 8192cu: disagrees about version of symbol dev_get_by_name
[ 12.837675] 8192cu: Unknown symbol dev_get_by_name (err -22)
[ 12.845245] 8192cu: disagrees about version of symbol netif_carrier_on
[ 12.853664] 8192cu: Unknown symbol netif_carrier_on (err -22)
[ 12.861284] 8192cu: disagrees about version of symbol find_vpid
[ 12.869007] 8192cu: Unknown symbol find_vpid (err -22)
[ 12.876051] 8192cu: disagrees about version of symbol register_netdevice
[ 12.884606] 8192cu: Unknown symbol register_netdevice (err -22)
How can I install now my WiFi USB card?

MrEngman
Posts: 3859
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 27, 2012 11:28 am

adambialas wrote:Hello , I have Raspbian and after i update firmware using rpi-update a have kernel info :
Linux version 3.1.9+ (dc4@dc4-arm-01) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #202 PREEMPT Wed Jul 25 22:11:06 BST 2012
and automatic setup for RTL8188CUS is not longer working :(
My TL-WN723N ver.2.2 is not working and dmesg is full of errors like :
[ 12.788515] 8192cu: disagrees about version of symbol skb_copy
[ 12.807507] 8192cu: Unknown symbol skb_copy (err -22)
[ 12.814546] 8192cu: disagrees about version of symbol skb_clone
[ 12.822424] 8192cu: Unknown symbol skb_clone (err -22)
[ 12.829317] 8192cu: disagrees about version of symbol dev_get_by_name
[ 12.837675] 8192cu: Unknown symbol dev_get_by_name (err -22)
[ 12.845245] 8192cu: disagrees about version of symbol netif_carrier_on
[ 12.853664] 8192cu: Unknown symbol netif_carrier_on (err -22)
[ 12.861284] 8192cu: disagrees about version of symbol find_vpid
[ 12.869007] 8192cu: Unknown symbol find_vpid (err -22)
[ 12.876051] 8192cu: disagrees about version of symbol register_netdevice
[ 12.884606] 8192cu: Unknown symbol register_netdevice (err -22)
How can I install now my WiFi USB card?
You need the latest version of driver to work with linux version #202 PREEMPT. If you used a recent version of my script to install the wifi run the script. Follow the instructions output on the screen.

If you have no wired internet connection it should tell you what to do - that should be download the latest version of the script and run the new version - this will then tell you what driver version you need. You will need to download the new driver and copy it to the SD card and run the script to install it - select the update option.

If you have a wired internet connection run the script and it should update itself. Then re-run the script and it will load and install the new driver - select the update option.

If you haven't used the script then if you have a wired internet connection you can run the following commands to download and install the latest driver

Code: Select all

wget http://dl.dropbox.com/u/80256631/8192cu-20120726.tar.gz
tar -zxf 8192cu-20120726.tar.gz
sudo install -p -m 644 8192cu.ko /lib/modules/3.1.9+/kernel/drivers/net/wireless/
sudo depmod -a
sudo ifup --force wlan0
If you do not have a wired internet connection you will need to download the driver on to another system and copy it to the SD card /boot directory. then run the commands

Code: Select all

sudo mv /boot/8192cu-20120726.tar.gz ./
tar -zxf 8192cu-20120726.tar.gz
sudo install -p -m 644 8192cu.ko /lib/modules/3.1.9+/kernel/drivers/net/wireless/
sudo depmod -a
sudo ifup --force wlan0
This should get you back up and running.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

raul.suarez.marin
Posts: 7
Joined: Thu Jul 19, 2012 11:33 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 27, 2012 3:29 pm

Hello,

First of all, thanks MrEngman for your script that made my adapter Edimax nano work. Awesome!

But I'd like to know why I'm getting loads of dropped packages. This might be drivers issues? I will be glad if someone had this problem and had already solved it.

Regards,
Raúl Suárez

MrEngman
Posts: 3859
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 27, 2012 3:42 pm

raul.suarez.marin wrote:Hello,

First of all, thanks MrEngman for your script that made my adapter Edimax nano work. Awesome!

But I'd like to know why I'm getting loads of dropped packages. This might be drivers issues? I will be glad if someone had this problem and had already solved it.

Regards,
Raúl Suárez
This is a common problem and not specific to this driver/wifi adapter. May be something to do with general network memory/buffer configuration or a general usb issue.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

pjc123
Posts: 913
Joined: Thu Mar 29, 2012 3:37 pm
Contact: Website

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 27, 2012 4:31 pm

These damn RTL8188CUS adapters are so small that my friends cat grabbed it off the table last night and carried it upstairs. I had to search the entire house for two hours before I found it hidden under a rug. Luckily it wasn't all chewed up and it still works. Certainly if he ate it I wasn't about to search through pi poop. When I am done with the pi for the day I now have to cover the pi, breadboard, relays, etc. with a cardboard box and a heavy weight on top.
My Raspberry Pi Project Page:
https://www.flaminghellmet.com/launch/

raspsteve
Posts: 1
Joined: Sat Jul 28, 2012 8:38 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 8:44 am

After running rpi-update and debian apt-get upgrade today I also got the "8192cu: disagrees about version" and "8192cu: Unknown symbol" messages. Update with newer module files from dropbox was at first without success.
I checked the modules directory and found another 8192cu file:
pi@raspberrypi:/lib/modules$ find ./ -iname "*8192cu*"
./3.1.9+/kernel/net/wireless/8192cu.ko
./3.1.9+/kernel/drivers/net/wireless/8192cu.ko
./3.1.9+/kernel/drivers/net/wireless/rtlwifi/rtl8192cu
./3.1.9+/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko

Removing the file ./3.1.9+/kernel/net/wireless/8192cu.ko helped me to bring wireless back.

Hubertrum
Posts: 29
Joined: Tue May 22, 2012 11:56 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 9:47 am

I am trying to get my EDIMAX wifi dongle working on Raspbian. I did have it working OK on Debian Squeeze, When I download Mr Engemens script, I make it executable. But when I try to run it nothing happens. I have double-clicked from File Manager and also do a sudo command from the Terminal. I did get 8192cu.ko. Both install-rtl8188cus.sh and 8192cu.ko are in folder /home/pi. Any idea why the script won't run?

stockbroker
Posts: 14
Joined: Wed Jul 04, 2012 4:41 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 11:24 am

hi
can you tell me if this script works with the latest version of raspbian wheezy 2012-07-15, I bought the edimax 7811Un followed your instructions and nothing.
could it be that I have entered the wrong WEP password? struggling to get wireless adapter working and would appreciate help.
thx

PaulCheffus
Posts: 381
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 11:27 am

stockbroker wrote:hi
can you tell me if this script works with the latest version of raspbian wheezy 2012-07-15, I bought the edimax 7811Un followed your instructions and nothing.
could it be that I have entered the wrong WEP password? struggling to get wireless adapter working and would appreciate help.
thx
Hi

It worked for me.

Cheers

Paul
Procrastination - The Thief of Time.

MrEngman
Posts: 3859
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 11:34 am

Hubertrum wrote:I am trying to get my EDIMAX wifi dongle working on Raspbian. I did have it working OK on Debian Squeeze, When I download Mr Engemens script, I make it executable. But when I try to run it nothing happens. I have double-clicked from File Manager and also do a sudo command from the Terminal. I did get 8192cu.ko. Both install-rtl8188cus.sh and 8192cu.ko are in folder /home/pi. Any idea why the script won't run?
I would suggest you first read the instructions. That might help. To start with the script and driver should be copied to the /boot directory, not your home directory. It will not work if it is not in the /boot directory.

Open a terminal window and start the script using command

Code: Select all

sudo /boot/install-rtl8188cus.sh
To run a script I believe the general command format is

Code: Select all

sudo directory/script
so if running a script from your home directory you would use the command

Code: Select all

sudo ./script
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Hubertrum
Posts: 29
Joined: Tue May 22, 2012 11:56 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 1:07 pm

I now have both install-rtl8188cus.sh and install-rtl8188cus-latest.sh in my /boot directory. The scripts still won't start. I looked in file manager and they look to be executable. When I downloaded them and did a "Save As" to the /boot directory it did give a Permission error. But then it did save them there.

thetallman
Posts: 4
Joined: Sun Apr 15, 2012 7:24 am
Contact: Website

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 1:15 pm

Dear MrEngman,

I am trying to run your wifi script and have a rather basic question.

The downloaded script has the file name "install-rtl8188cus.sh"

The instructions indicate that to run script you should type "sudo /boot/install-rlt8188cus-latest.sh"

My question is if the file name is "install-rlt8188cus.sh", then how can the script run if you type "sudo /boot/install-rlt8188cus-latest.sh" with the word latest.

It seems to me that it will not find the file to run the script because of the word latest.

can you help.

Hubertrum
Posts: 29
Joined: Tue May 22, 2012 11:56 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 1:20 pm

My image is #168 PREEMPT sat Jul 14 18:56:31 BST 2012. The problem I have is how to save to /boot. I am logged as as the default user pi. It won't allow me to save to this folder. Although it did create a document in the name e.g install-rtl8188cus.sh which did confuse me into thinking it was there.

How, then, do I use thee provided link to save to the /boot folder?

stryker
Posts: 8
Joined: Fri Jan 27, 2012 5:36 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 1:26 pm

Hubertrum wrote:My image is #168 PREEMPT sat Jul 14 18:56:31 BST 2012. The problem I have is how to save to /boot. I am logged as as the default user pi. It won't allow me to save to this folder. Although it did create a document in the name e.g install-rtl8188cus.sh which did confuse me into thinking it was there.

How, then, do I use thee provided link to save to the /boot folder?
Just put the SD card into your PC's reader and copy the files to the root directory. That's mapped as /boot in your pi.

MrEngman
Posts: 3859
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 1:53 pm

Hubertrum wrote:I now have both install-rtl8188cus.sh and install-rtl8188cus-latest.sh in my /boot directory. The scripts still won't start. I looked in file manager and they look to be executable. When I downloaded them and did a "Save As" to the /boot directory it did give a Permission error. But then it did save them there.
You should be able to use either one. They are almost identical except in install-rtl8188cus.sh refrences to the install script are "install-rtl8188cus.sh" and in install-rtl8188cus-latest.sh they are "install-rtl8188cus-latest.sh" otherwise they are the same.

How are you trying to run the script? What command do you use? What error does it give when the script doesn't run?

You shouldn't try installing from the gui. Exit the gui and run in terminal mode. Then use command

Code: Select all

sudo /boot/install-rtl8188cus-latest.sh
to run the script if not logged in as root. If logged in as root do not use "sudo".

If the script is loaded correctly the directory list command ls -l /boot should show something like

Code: Select all

-rwxr-xr-x 1 root root  38698 Jul 28 14:43 install-rtl8188cus-latest.sh
-rwxr-xr-x 1 root root  38642 Jul 28 14:40 install-rtl8188cus.sh
except date and time will be different.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3859
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 2:07 pm

thetallman wrote:Dear MrEngman,

I am trying to run your wifi script and have a rather basic question.

The downloaded script has the file name "install-rtl8188cus.sh"

The instructions indicate that to run script you should type "sudo /boot/install-rlt8188cus-latest.sh"

My question is if the file name is "install-rlt8188cus.sh", then how can the script run if you type "sudo /boot/install-rlt8188cus-latest.sh" with the word latest.

It seems to me that it will not find the file to run the script because of the word latest.

can you help.
If you download the script from the same place as the instructions - from the wiki - the script is named install-rtl8188cus-latest.sh. There is a copy with the name install-rtl8188cus.sh but it may not be up to date.

As you have install-rtl8188cus.sh use the command "sudo /boot/install-rtl8188cus.sh"

EDIT: I've just updated the instructions to include a pointer to install-rtl8188cus-latest.sh.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

thetallman
Posts: 4
Joined: Sun Apr 15, 2012 7:24 am
Contact: Website

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jul 28, 2012 3:09 pm

Dear Mr. Engman,

thanks so ,much.
with your great help, I was able to download and copy the version of the script with the "latest" word in it.
Now to the Pi and try to install my wifi adapter
Thanks again
the tallman

ogradye
Posts: 2
Joined: Sun Jul 29, 2012 2:24 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Jul 29, 2012 2:34 am

Thank You!
Script worked flawlessly!

I bought a Netgear n150 micro USB wireless adapter for $25.
Bus 001 Device 005: ID 0846:9041 NetGear, Inc. WNA1000M 802.11bgn [Realtek RTL8188CUS]
on Raspian image 2012-07-15-wheezy-raspbian.
I reused a Logitech K350 keyboard with a M510 mouse which I bought as a pair (one USB receiver woks both).
I went to Radio Shack and bought an iGO Wall Juicer which has 5v & 2.1 amps. No more error messages! One USB for wireless and one for Keyboard and mouse.

Thanks for saving me a whole lot of time!
Emmett

mwingaa
Posts: 9
Joined: Sun May 13, 2012 7:43 am
Location: Elsinore, Denmark

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 30, 2012 8:40 am

Dear Mr. Engman,

your script is working great, but I have a suggestion for the next version.
I don't like the wpa-psk is in clear text in /etc/network/interfaces.

Why not patch /etc/wpa_supplicant.conf instead?
# to get encoded PSK run: wpa_passphrase <ESSID>
psk=<psk returned by wpa_passphrase>

Kind regards,

Mikael

raul.suarez.marin
Posts: 7
Joined: Thu Jul 19, 2012 11:33 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 30, 2012 9:15 am

Dear MrEngman

I ran your script for my edimax wifi adapter. It works great, the only problem is that if I try to download a big file with wget, my wifi connection stops working.

What could cause this?

As a solution, I tried this:
http://www.ctrl-alt-del.cc/2012/05/rasp ... s-ada.html

But it also did not worked since my SD Card is 8GB SDHC Class 10 Extreme (30MB/s HD Video) and works with specific bootcode.bin and that tutorial needs to replace that file.

Regards,
Raúl Suarez

makernz
Posts: 4
Joined: Mon Jul 30, 2012 9:45 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 30, 2012 9:47 am

Fantastic instructions! Worked like a charm with my ASUS USB-N10 plugged directly into my Pi.

Thanks so much!

User avatar
Montala
Posts: 675
Joined: Mon Mar 05, 2012 11:54 pm
Location: Herefordshire (U.K.)

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Jul 30, 2012 11:14 am

makernz wrote:Fantastic instructions! Worked like a charm with my ASUS USB-N10 plugged directly into my Pi.

Thanks so much!
Your comment puzzles me slightly as according to MrEngman "... you'll need to find the right driver, as the N10 driver is different to the one used with the Edimax. 8192SU rather than the 8192CU used with rthe rtl8188cus devices."
The correct driver does however appear to be 'built in' to the latest Raspbian "Wheezy" image!

Return to “Beginners”