axl.axel
Posts: 5
Joined: Wed Jun 27, 2012 7:57 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Jun 27, 2012 8:03 pm

Hi Guy,
first of all thank you to realize this quick guide to help the very beginner user as me :D

I've tried to apply the procedure following the instruction on dropbox but after the conclusion of the configuration my device is not recognized. During the boot I receive the message "wlan0 not foun" how can I solve my issue? Some ideas from the community?

thanks a lot
Alessandro

texy
Forum Moderator
Forum Moderator
Posts: 5160
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Jun 27, 2012 9:43 pm

MrEngman wrote:Good to hear you've got it working.


The hub I use is a very old Belkin F5U224, no longer manufactured. I cannot recommend any others. I have a small Logik L4THUB10 and I would recommend NOT to use one of those. It sucks power from the Pi even when powered from its own supply. Probably the same with other Logik hubs as well. AndI think a common problem with many hubs nowadays.
I also have this hub. I cut the +v to the pi's USB cable. Undo the 4 small phillips screws and cut the red wire. There's a thread somewhere showing how.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Jun 27, 2012 9:53 pm

texy wrote:
MrEngman wrote:Good to hear you've got it working.


The hub I use is a very old Belkin F5U224, no longer manufactured. I cannot recommend any others. I have a small Logik L4THUB10 and I would recommend NOT to use one of those. It sucks power from the Pi even when powered from its own supply. Probably the same with other Logik hubs as well. AndI think a common problem with many hubs nowadays.
I also have this hub. I cut the +v to the pi's USB cable. Undo the 4 small phillips screws and cut the red wire. There's a thread somewhere showing how.
Texy
Well, yes. Guess that's one way round the problem with these hubs.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

nsa666
Posts: 8
Joined: Thu Jun 28, 2012 7:21 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Jun 28, 2012 7:23 am

Can somebody add 0864:9041 for the WNA1000M to the driver? It seems not to load.

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jun 29, 2012 8:41 am

nsa666 wrote:Can somebody add 0864:9041 for the WNA1000M to the driver? It seems not to load.
Are you sure that ID is correct? I don't thnk it is.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

mintz
Posts: 2
Joined: Mon Dec 12, 2011 11:45 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jun 29, 2012 8:47 am

Hi.

I managed to get my Edimax EW-7811UN working directly on one of the Pi's USB ports (no need for a powered hub) using MrEngman's script. Thanks MrEngman!

Once I was sure the wifi worked I tried powering the Pi from a TeckNet iEP387 battery pack. It's running headless so I didn't have the HDMI or keyboard/mouse connected. After charging the battery pack overnight I only had a brief chance to test it this morning by ssh'ing into it and it seems to work well. So I now have a truly wireless Raspberry Pi play with. Not sure what to do with it now.

The only issue I have with the battery pack it that I don't think you can recharge it while it is powering something else and you need to press a button on it to provide the power. So my plan to have it run as a UPS for the Pi is not going to work.

Mint

nsa666
Posts: 8
Joined: Thu Jun 28, 2012 7:21 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jun 29, 2012 1:15 pm

MrEngman wrote:
nsa666 wrote:Can somebody add 0864:9041 for the WNA1000M to the driver? It seems not to load.
Are you sure that ID is correct? I don't thnk it is.
lsusb gives me:

Bus 001 Device 008: ID 0846:9041 NetGear, Inc. WNA1000M 802.11bgn [Realtek RTL8188CUS]

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jun 29, 2012 3:00 pm

nsa666 wrote:
MrEngman wrote:
nsa666 wrote:Can somebody add 0864:9041 for the WNA1000M to the driver? It seems not to load.
Are you sure that ID is correct? I don't thnk it is.
lsusb gives me:

Bus 001 Device 008: ID 0846:9041 NetGear, Inc. WNA1000M 802.11bgn [Realtek RTL8188CUS]
Right so it's 0846 not 0864. I'll see what I can do. I need to know what "uname -v" gives you.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

nsa666
Posts: 8
Joined: Thu Jun 28, 2012 7:21 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jun 29, 2012 8:13 pm

Sorry my fault.

uname -v gives me
#138 PREEMPT Tue Jun 26 16:27:52 BST 2012

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jun 29, 2012 10:23 pm

nsa666 wrote:Sorry my fault.

uname -v gives me
#138 PREEMPT Tue Jun 26 16:27:52 BST 2012
OK try this. My rtl8188cus based adapters are still working after installing this new driver so can't be too bad.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

irongeek
Posts: 10
Joined: Sun Jun 24, 2012 4:35 pm
Contact: Website

Re: Automatic setup for RTL8188CUS based wifi adapters

Fri Jun 29, 2012 11:18 pm

Thanks for this script. I made this adapter work for me:

http://www.meritline.com/showproduct.as ... m-lan-card

though it did not automatically connect, I installed wicd and had no problems connecting with it. Thanks.

link94
Posts: 4
Joined: Sat Jun 30, 2012 1:10 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jun 30, 2012 1:37 am

Is it just me or does the link to the script not work anymore? I get a 404 from dropbox when I try: http://dl.dropbox.com/u/80256631/install-rtl8188cus.sh

Thanks in advanced.

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jun 30, 2012 2:35 am

link94 wrote:Is it just me or does the link to the script not work anymore? I get a 404 from dropbox when I try: http://dl.dropbox.com/u/80256631/install-rtl8188cus.sh

Thanks in advanced.
Look on this wiki page and the links are in the Micronet SP907NS, 11N Wireless LAN USB Adapter section.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jun 30, 2012 9:43 am

I managed to get a Edimax nano adapter working on Debian wheezy beta . I connected it directly to the Raspi event it declares maximum power 500mA in lsusb -v. It is working up to now

link94
Posts: 4
Joined: Sat Jun 30, 2012 1:10 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Jun 30, 2012 11:19 pm

Thanks for the link.

I am using the NetGear WNA1000M (same lsusb result as nsa666 posted above except mine's device 007). I grabbed the driver you posted in a reply to nsa666 a few replies above this one and put it on a newly imaged SD card along with the firmware and script as per the instructions for no ethernet (I assumed I shouldn't use ethernet since the driver is different).

When the script gets to the part where it tells me to plug in the wifi adapter, I do so and then hit a key and it spits out "wlan0: error fetching interface information: Device not found" over and over.

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Jul 01, 2012 12:31 am

link94 wrote:Thanks for the link.

I am using the NetGear WNA1000M (same lsusb result as nsa666 posted above except mine's device 007). I grabbed the driver you posted in a reply to nsa666 a few replies above this one and put it on a newly imaged SD card along with the firmware and script as per the instructions for no ethernet (I assumed I shouldn't use ethernet since the driver is different).

When the script gets to the part where it tells me to plug in the wifi adapter, I do so and then hit a key and it spits out "wlan0: error fetching interface information: Device not found" over and over.
What image are you using? If it's a Raspbian image you may need to install wpa_supplicant. Run "apt-get update" and "apt-get install wpasupplicant" (no underscore). If not root user preceed the commands with "sudo".
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

link94
Posts: 4
Joined: Sat Jun 30, 2012 1:10 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Jul 01, 2012 12:35 am

MrEngman wrote:
link94 wrote:Thanks for the link.

I am using the NetGear WNA1000M (same lsusb result as nsa666 posted above except mine's device 007). I grabbed the driver you posted in a reply to nsa666 a few replies above this one and put it on a newly imaged SD card along with the firmware and script as per the instructions for no ethernet (I assumed I shouldn't use ethernet since the driver is different).

When the script gets to the part where it tells me to plug in the wifi adapter, I do so and then hit a key and it spits out "wlan0: error fetching interface information: Device not found" over and over.
What image are you using?
debian6-19-04-2012

I also forgot to mention I'm plugging the wifi adapter into (and power the pi via) a powered USB hub (the 4-port DLink one listed here).

blindabraxas
Posts: 2
Joined: Sun Jul 01, 2012 5:12 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Jul 01, 2012 5:20 am

Hi,

I've tried to get the driver installed on a couple squeeze images, and each time it's giving me the following error:

8192cu: disagrees about version of symbol module_layout

The current squeeze image (debian6-19-04-2012) shows this for uname -v:

#90 Wed Apr 18 18:23:05 BST 2012

the adapter I've tried to get up and running shows this for lsusb:

Bus 001 Device 006: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

So over and over, things appear to indicate that the driver isn't compatible with the kernel version? Is there a handy way of compiling the driver to go with whatever kernel I'm running, to avoid this error? This has also given me fits with the wheezy beta, the driver keeps failing to load. Any guidance would be appreciated, thanks.

nsa666
Posts: 8
Joined: Thu Jun 28, 2012 7:21 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Jul 01, 2012 12:27 pm

MrEngman wrote:
nsa666 wrote:Sorry my fault.

uname -v gives me
#138 PREEMPT Tue Jun 26 16:27:52 BST 2012
OK try this. My rtl8188cus based adapters are still working after installing this new driver so can't be too bad.
It works now. Thank you! :D

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Jul 01, 2012 2:23 pm

blindabraxas wrote:Hi,

I've tried to get the driver installed on a couple squeeze images, and each time it's giving me the following error:

8192cu: disagrees about version of symbol module_layout

The current squeeze image (debian6-19-04-2012) shows this for uname -v:

#90 Wed Apr 18 18:23:05 BST 2012

the adapter I've tried to get up and running shows this for lsusb:

Bus 001 Device 006: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

So over and over, things appear to indicate that the driver isn't compatible with the kernel version? Is there a handy way of compiling the driver to go with whatever kernel I'm running, to avoid this error? This has also given me fits with the wheezy beta, the driver keeps failing to load. Any guidance would be appreciated, thanks.
Take a look here.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

blindabraxas
Posts: 2
Joined: Sun Jul 01, 2012 5:12 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Jul 01, 2012 2:52 pm

Take a look here.
What driver do you suppose he used? What methodology did he employ - was it just booting the wheezy beta image and plugging in the adapter just like that? No driver download? I've tried the driver from the electronictea url every time and had the same result - disagrees about version of symbol module_layout.

Is there a way I can recompile the driver for my kernel on my own, that I just haven't found yet?

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Jul 01, 2012 3:44 pm

link94 wrote:
MrEngman wrote:
link94 wrote:Thanks for the link.

I am using the NetGear WNA1000M (same lsusb result as nsa666 posted above except mine's device 007). I grabbed the driver you posted in a reply to nsa666 a few replies above this one and put it on a newly imaged SD card along with the firmware and script as per the instructions for no ethernet (I assumed I shouldn't use ethernet since the driver is different).

When the script gets to the part where it tells me to plug in the wifi adapter, I do so and then hit a key and it spits out "wlan0: error fetching interface information: Device not found" over and over.
What image are you using?
debian6-19-04-2012

I also forgot to mention I'm plugging the wifi adapter into (and power the pi via) a powered USB hub (the 4-port DLink one listed here).
Well nsa666 says he has his working now so what can be wrong ??
Take a look at the files /etc/network/interfaces and /etc/udev/rules.d/70-persistent-net.rules.

/etc/network/interfaces should have a single entry like

Code: Select all

allow-hotplug wlan0

auto wlan0

iface wlan0 inet dhcp
wpa-ssid "SSID"
wpa-psk "PASSWORD"
If this is repeated delete the repeated entries.

/etc/udev/rules.d/70-persistent-net.rules should have one entry for for wlan devices - wlan0 - something like below. If it has any other entries for wlan devices - e.g. wlan1, etc. delete all entries for wlan devices and reboot.

Code: Select all

# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:3b:19:1f:30", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
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

Sun Jul 01, 2012 4:24 pm

blindabraxas wrote:
Take a look here.
What driver do you suppose he used? What methodology did he employ - was it just booting the wheezy beta image and plugging in the adapter just like that? No driver download? I've tried the driver from the electronictea url every time and had the same result - disagrees about version of symbol module_layout.

Is there a way I can recompile the driver for my kernel on my own, that I just haven't found yet?
He may have used one of the driver versions I compiled and maybe he used my script to install it. I don't know.

However, the link I gave you was to the previous post - not that one and nothing to do with wheezy. Try this --> Look on this wiki page and the links are in the Micronet SP907NS, 11N Wireless LAN USB Adapter section.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

link94
Posts: 4
Joined: Sat Jun 30, 2012 1:10 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Jul 01, 2012 6:36 pm

So, I just waited like 2 minutes after plugging it in before hitting a key and instead of spitting out the error it freezes the script. After waiting for a while for it to exit out of that while loop, I gave up and just unplugged the pi. However, when I plugged it back in, the wireless worked perfectly so I'm happy now :)

I'm happy to test stuff out to help improve the script if necessary. I appreciate your work creating this script - I've now added it to my own RPi setup script (which I should probably post somewhere...).

CannyDuck
Posts: 3
Joined: Sun Jun 03, 2012 10:46 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Jul 01, 2012 8:57 pm

I used the raspbian hexheh image (wheezy) and 'uname -a' says:

Code: Select all

Linux raspberry 3.1.9+ #144 PREEMPT Sun Jul 1 12:37:10 BST 2012 armv6l GNU/Linux
I try the latest Microsoft firmware from here:
http://elinux.org/RPi_VerifiedPeriphera ... i_Adapters
and get:

Code: Select all

8192cu: disagrees about version of symbol alloc_etherdev_mq
Which is the right version of the firmware I have to use?

Return to “Beginners”