Bullace
Posts: 1
Joined: Thu Jul 19, 2012 1:10 am
Location: The Netherlands

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 1:24 am

Installed Raspbian yesterday and everything was great.
Then this appeared: https://twitter.com/ukscone/status/225729716211036161
Ever since wlan0 can not be detected, reflashed the sd-card but there was no change after trying a fresh install.
Using an Edimax EW-7811Un, WPA2, did choose to let it reconnect if device was unplugged.
Here's a photo I took of the error: http://i.imgur.com/cZIs6.jpg

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2876
Joined: Sat Mar 03, 2012 11:57 am
Location: UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 6:49 am

Nburnes wrote:
Paul_L wrote:Is there a script to install wireless dongle on new raspbian sd image. The one for wheezy is working ?
Newest one worked fine for me.
Was that with ethernet or putting the 3 files on sd card? I don't have ethernet at the moment and the 3 file method failed me :cry: At least my Wheezy distro card still works though :lol:
Alex Eames RasPi.TV, RasP.iO

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 9:29 am

alexeames wrote:
Nburnes wrote:
Paul_L wrote:Is there a script to install wireless dongle on new raspbian sd image. The one for wheezy is working ?
Newest one worked fine for me.
Was that with ethernet or putting the 3 files on sd card? I don't have ethernet at the moment and the 3 file method failed me :cry: At least my Wheezy distro card still works though :lol:
Hi,

There is a new updated script here.and you will need the driver file from here.

EDIT: Copy both files to the /boot directory and run the script

Code: Select all

sudo /boot/install-rtl8188cus-latest.sh
If you log on as root do not use "sudo".
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
alexeames
Forum Moderator
Forum Moderator
Posts: 2876
Joined: Sat Mar 03, 2012 11:57 am
Location: UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 10:03 am

Awesome. Thanks - I'll give it a try :)
Alex Eames RasPi.TV, RasP.iO

mfilos
Posts: 2
Joined: Thu Jul 19, 2012 8:51 am
Location: Athens, Greece

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 1:08 pm

It works just fine!!! Used it with the stock Rasbian image and with fimware #171 and it never failed me!

Thanks for these constant updates MrEngman!!!

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2876
Joined: Sat Mar 03, 2012 11:57 am
Location: UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 1:53 pm

MrEngman wrote:There is a new updated script here.and you will need the driver file from here.

EDIT: Copy both files to the /boot directory and run the script

Code: Select all

sudo /boot/install-rtl8188cus-latest.sh
If you log on as root do not use "sudo".
Mr Engman does it again. I had some problems, but they weren't anything to do with your excellent script. They were to do with my screen and VGA adaptor not liking the new Raspbian, but I found a way round it long enough to get the wifi up and running and now I no longer need the screen attached. Fantastic! You da man. 8-) Thank you :D
Alex Eames RasPi.TV, RasP.iO

DynaMight
Posts: 7
Joined: Sun Mar 25, 2012 1:14 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 5:32 pm

Took a punt on this at £3.83 delivered http://www.ebay.co.uk/itm/230660622912

It works perfectly, thank you!

Paul_L
Posts: 46
Joined: Tue May 29, 2012 2:13 pm
Location: Campina Romania

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 7:15 pm

Hi I want to share a little my experience with Mr Engman script that might explain some difficulties that some users had on running the script . I am not a linux newbie ans up to now I have installed the driver by hand.

I downloaded the script on my office workstation running windows 7 and also the driver in tar.gz. Sent tham by e-mail to me at home , put on the /boot partition under windows and when I tried to run the script from the root account and I had a BIG surprise :

Code: Select all

root@raspberrypi ~ # /boot/install-rtl8188cus-latest.sh
-bash: /boot/install-rtl8188cus-latest.sh: /bin/bash^M: bad interpreter: No such file or directory
root@raspberrypi ~ #
I was pretty sure that I was using bash as shell , checked my bashrc file , verify the environment variable, everything was ok . Finally I have observed that it is trying to run the shell /bin/bash^M .

The problem was that downloading the script or e-mailing under windows the script was converted to DOS format. Getting the script by wget directly under raspbian it worked like a charm

andrewmk
Posts: 6
Joined: Fri Jun 01, 2012 1:46 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 8:06 pm

Works perfectly for me under Raspbian with one of these connected directly to the Pi (no powered hub): Edimax EW-7811UN Wireless 802.11b/g/n 150Mbps Nano USB Adaptor

Image

Thanks very much for the script.

Andrew

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 8:46 pm

Paul_L wrote:Hi I want to share a little my experience with Mr Engman script that might explain some difficulties that some users had on running the script . I am not a linux newbie ans up to now I have installed the driver by hand.

I downloaded the script on my office workstation running windows 7 and also the driver in tar.gz. Sent tham by e-mail to me at home , put on the /boot partition under windows and when I tried to run the script from the root account and I had a BIG surprise :

Code: Select all

root@raspberrypi ~ # /boot/install-rtl8188cus-latest.sh
-bash: /boot/install-rtl8188cus-latest.sh: /bin/bash^M: bad interpreter: No such file or directory
root@raspberrypi ~ #
I was pretty sure that I was using bash as shell , checked my bashrc file , verify the environment variable, everything was ok . Finally I have observed that it is trying to run the shell /bin/bash^M .

The problem was that downloading the script or e-mailing under windows the script was converted to DOS format. Getting the script by wget directly under raspbian it worked like a charm
You gave me a bit of a fright there for a moment :o

Anyway just to check I've just tried downloading the script on to my Windows7 system and then emailing as an attachment in Outlook, and also right clicking and using send to - mail recipient which sends as an attachment in Outlook, and had no problems. Also opened the script in Wordpad to view it and sent it as email from within Wordpad. All files arrived at the destination in the original state with no added Carriage Returns.

Are you sure you didn't view the file in some Windows editor and save it rather than just close the editor before emailing it?
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

toonhead85
Posts: 8
Joined: Thu Jul 19, 2012 8:41 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 8:49 pm

I was wondering 2 things;
1) How can you find out what Chipset your USB WiFi Adapter is running on
2) I have a http://www.amazon.com/Belkin-Micro-Wire ... B005HO1UHQ, is this the same/similar enough to 050d:1102 F7D1102 N150/Surf Micro Wireless Adapter v1000 [Realtek RTL8188CUS] - (Belkin Components) that it would work with my RaspberryPi


** I noticed that the ony difference is that the Micro Adapter I have is a F7D1102tt
** I am running Raspbian “wheezy”

Thank you in advance for any an all help!!

toonhead85

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 10:35 pm

toonhead85 wrote:I was wondering 2 things;
1) How can you find out what Chipset your USB WiFi Adapter is running on
2) I have a http://www.amazon.com/Belkin-Micro-Wire ... B005HO1UHQ, is this the same/similar enough to 050d:1102 F7D1102 N150/Surf Micro Wireless Adapter v1000 [Realtek RTL8188CUS] - (Belkin Components) that it would work with my RaspberryPi


** I noticed that the ony difference is that the Micro Adapter I have is a F7D1102tt
** I am running Raspbian “wheezy”

Thank you in advance for any an all help!!

toonhead85
If you have a Windows machine plug the wifi adapter it into a USB port then select Control Panel/Device Manager/Network Adapters. Right click the device and select Properties/Details. Open the Properties tab and select Hardware Ids. This will show something like

Code: Select all

USB\VID_050d&PID_1102
if its the Belkin F7D1102.

Trying this on a Linux machine may cause it to hang if the device driver is not installed. On a Linux machine you can plug it into a USB port and type the command

Code: Select all

lsusb
This will output a list of USB devices with the hardware IDs if you're lucky although it's more likely to hang.

Probably best to use a Windows machine if you have one.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

toonhead85
Posts: 8
Joined: Thu Jul 19, 2012 8:41 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jul 19, 2012 11:13 pm

MrEngman wrote:On a Linux machine you can plug it into a USB port and type the command

Code: Select all

lsusb
I did this with my RaspberryPi, running Raspbian “wheezy” and found out all the info I needed. Thank you so very much for the reply!

Guess its on to trying things out now, with me luck :D

allcardr
Posts: 26
Joined: Sun Feb 26, 2012 8:09 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 5:38 am

Mr Engman!

we now have wi-pi !
Thanks to the new wheezy distro & the excellent new script, I now have a working wep key based wireless pi !

Many thanks for the sterling help & assistance you have given to help to get our Pi's wi-fi working !

mikfaina
Posts: 9
Joined: Fri Jul 20, 2012 12:56 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 1:02 pm

Hi all,
My raspberry pi is just arrived and I'd like to install raspbian and i have a d-link aw121 micro usb wireless that i red is a RTL8188CUS model.
Now i put image disk on a 8 Gb SD with win32diskimager but I don't have any boot directory to put files into. Should I put install script plus drivers files after installation?
By the way Windows 7 recognize my SD as a removable Disk of 55 Mb.
Any suggestions?

Sorry for my english

Thanks in advice

japester36
Posts: 14
Joined: Sun Jun 03, 2012 8:47 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 1:30 pm

mikfaina wrote: Now i put image disk on a 8 Gb SD with win32diskimager but I don't have any boot directory to put files into. Should I put install script plus drivers files after installation?
By the way Windows 7 recognize my SD as a removable Disk of 55 Mb.
Hi mikfaina - the 55Mb disk that Windows 7 sees, will become the /boot directory when you put it in the RasPi. So yes, that is where you put the script and driver files then you can run them on the RasPi. Once the RasPi has started up then you'll find them in /boot.

Have fun.

User avatar
devacc12
Posts: 13
Joined: Sat Jul 07, 2012 6:22 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 2:04 pm

MrEngman thanks for the script. Worked perfectly on the latest release of Raspbian. I slight problem when then WiFi adapter was plugged into a non-powered hub but I plugged into one of the Pi USB ports and no problem.

mikfaina
Posts: 9
Joined: Fri Jul 20, 2012 12:56 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 2:05 pm

japester36 wrote:
mikfaina wrote: Now i put image disk on a 8 Gb SD with win32diskimager but I don't have any boot directory to put files into. Should I put install script plus drivers files after installation?
By the way Windows 7 recognize my SD as a removable Disk of 55 Mb.
Hi mikfaina - the 55Mb disk that Windows 7 sees, will become the /boot directory when you put it in the RasPi. So yes, that is where you put the script and driver files then you can run them on the RasPi. Once the RasPi has started up then you'll find them in /boot.

Have fun.
Thanks for your reply.
But when I will put SD in raspi and boot sill start the installation process automaticcaly ?? If so how can i run script if it starts the system installation?

User avatar
devacc12
Posts: 13
Joined: Sat Jul 07, 2012 6:22 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 2:08 pm

I forgot to add I have the same problem with the latest Archlinux but alas I've not found any such useful script (yet).

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 2:11 pm

mikfaina wrote:Hi all,
My raspberry pi is just arrived and I'd like to install raspbian and i have a d-link aw121 micro usb wireless that i red is a RTL8188CUS model.
Now i put image disk on a 8 Gb SD with win32diskimager but I don't have any boot directory to put files into. Should I put install script plus drivers files after installation?
By the way Windows 7 recognize my SD as a removable Disk of 55 Mb.
Any suggestions?

Sorry for my english

Thanks in advice
You need to copy the script and the files to the directory you see in Windows Explorer. This is the /boot directory. Windows will say the disk is removable and about 55MB. This is OK. You will see something like this.

Image

Copy the script and files to this directory.
Image

There is a new script here.Please download and use this one. It was updated today to fix a small error.

There are some instructions here. It has a list of the files you will have to download. Download the files for the version of Rasbian you want to use and copy them to the directory you see in Windows.

MrEngman

EDIT: put the SD card in the Pi. Log in and then start the script using the command

Code: Select all

sudo /boot/install-rtl8188cus-latest.sh
If you log in as root you do not need to use "sudo" in the command
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

toonhead85
Posts: 8
Joined: Thu Jul 19, 2012 8:41 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 4:46 pm

Thanks for everyone that contributes to this forum... I dont know where I would be without it :D

With that being said, I am having some issue connecting my Belkin n150 Micro WiFi Adapter. I have created a fresh install, added the files necessary for Rasbian "wheezy":
1) 8192cu-20120701.tar.gz
2) install-rtl8188cus.sh, later I found the post about the updated version install-rtl8188cus-latest.sh

• I am running the script "sudo /boot/install-rtl8188cus.sh which goes well, i get the message 1 wifi device configured, but then get an error in the file (line 803 or 808, cant remember) and my Pi crashes.
• Running the script install-rtl8188cus-latest.sh gets all the way up to the point when it asks for the device to be connected, I connect - the light blinks a few times and then nothing - Pi crashes.

Any thoughts? Am I missing a step/file that needs to be added to the /boot??

Thanks

toonhead85
Posts: 8
Joined: Thu Jul 19, 2012 8:41 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 5:21 pm

toonhead85 wrote:but then get an error in the file (line 803 or 808, cant remember) and my Pi
I figured I would try to give a bit more information about the error I am getting. I am using the install-rtl8188cus-latest.sh script and I get all the way threw and see "You now have 1 wifi adapter configured" followed by "The wifi adapter driver is installed. Waiting for the wifi adapter to connect.
/boot/install-rtl8188cus-latest.sh: line 883: 2557 Terminated
ifup --force wlan$ADAPTER_NUMBER > /dev/null 2>&1

All of this was done with a fresh install of Raspbian. I will try again, but this is quite frustrating :x .

Kryddost
Posts: 1
Joined: Fri Jul 20, 2012 5:23 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 5:25 pm

I got it working by using this image: http://files.velocix.com/c1410/debian-x ... 4-2012.zip

For some reason XBMC didnt work with it so i got XBMC working with this guide: http://www.memetic.org/pre-compiled-xbmc-for-raspbian/


Now I've got my PI up and running with wireless and XBMC. Thank you so much for this script!

Michi
Posts: 13
Joined: Sun Jul 08, 2012 4:06 pm
Location: Germany

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 8:14 pm

I wanna use the script with Raspbmc but i think the script don't know the operating system and abort the install:
Unrecognised software version: Linux raspbmc 3.1.9-test-12-06 #1 PREEMPT Mon Jun 18 20:07:45 UTC 2012 armv6l GNU/Linux

Downloading the latest script.

The script you're using is the latest version.

Aborting the rtl8188cus installation script.
What do i need to change in the script to get it working?

Greetings,
Michael

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jul 20, 2012 8:52 pm

toonhead85 wrote:Thanks for everyone that contributes to this forum... I dont know where I would be without it :D

With that being said, I am having some issue connecting my Belkin n150 Micro WiFi Adapter. I have created a fresh install, added the files necessary for Rasbian "wheezy":
1) 8192cu-20120701.tar.gz
2) install-rtl8188cus.sh, later I found the post about the updated version install-rtl8188cus-latest.sh

• I am running the script "sudo /boot/install-rtl8188cus.sh which goes well, i get the message 1 wifi device configured, but then get an error in the file (line 803 or 808, cant remember) and my Pi crashes.
• Running the script install-rtl8188cus-latest.sh gets all the way up to the point when it asks for the device to be connected, I connect - the light blinks a few times and then nothing - Pi crashes.

Any thoughts? Am I missing a step/file that needs to be added to the /boot??

Thanks
Is that the new Raspbian image on the Rapberry Pi download page? I have had no problems with that image with both a Micronet SP907N adapter and an Edimax EW-7811Un adapter and have installed the wifi on that image many times while testing the script.

You have the right files.

I've seen another post with a similar error. I can't think of anything definite but it could be due to a power supply issue. The crash you are getting is happening just as the wifi adapter turns on and starts to take power. What power supply do you use? Have you tried plugging the wifi adapter into a hub?

There has been a lot of discussions regarding power supplies and wifi adapters plugged directly into the USB ports on the Pi. Insufficient power can cause some really bad problems like the one you're getting.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

Return to “Beginners”