User avatar
Trixster
Posts: 261
Joined: Sat Jul 07, 2012 3:53 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Aug 04, 2012 11:50 am

Nice one, that worked!

Khenke
Posts: 4
Joined: Thu Aug 02, 2012 11:22 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Aug 04, 2012 6:40 pm

MrEngman wrote:
Michi wrote: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
Hmm. Haven't tried that image. Where can I find it? I will need to check which version of driver it needs before making any modifications.
I have the same problem with Xbian http://xbian.org/ that the script abort.
Would like to be able to skip that pesky cable :)

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Aug 04, 2012 7:53 pm

Khenke wrote:
MrEngman wrote:
Michi wrote:I wanna use the script with Raspbmc but i think the script don't know the operating system and abort the install:


What do i need to change in the script to get it working?

Greetings,
Michael
Hmm. Haven't tried that image. Where can I find it? I will need to check which version of driver it needs before making any modifications.
I have the same problem with Xbian http://xbian.org/ that the script abort.
Would like to be able to skip that pesky cable :)
There is a script for raspBMC here.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

dikonist
Posts: 6
Joined: Mon Jul 30, 2012 7:28 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sat Aug 04, 2012 10:58 pm

XBian kernel is 3.2.21
http://kevinclarke.info/tbe/building-32 ... ntu-laptop

XBian image:
http://www.xbian.org

I would appreciate it if you are able to change the script so it work's with XBian 0.4.1
Thanks in advance!

Khenke
Posts: 4
Joined: Thu Aug 02, 2012 11:22 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Aug 05, 2012 4:32 pm

MrEngman wrote: There is a script for raspBMC here.
Tthanks!

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Aug 05, 2012 5:22 pm

dikonist wrote:XBian kernel is 3.2.21
http://kevinclarke.info/tbe/building-32 ... ntu-laptop

XBian image:
http://www.xbian.org

I would appreciate it if you are able to change the script so it work's with XBian 0.4.1
Thanks in advance!
I am looking at this and will post when I have some news.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Automatic setup for RTL8188CUS based wifi adapters

Sun Aug 05, 2012 7:07 pm

I think we shouldn't need this script!

Unless there is something else that's miles better/cheaper - all distro producers should build in RTL8188 support as a default - it would make life much, much, much easier for anyone following in their footsteps :)

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

User avatar
Jim JKla
Posts: 2218
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Mon Aug 06, 2012 4:24 pm

Can somebody thats worked through this write it up for the wiki.

It will be better if a noob writes it up then it is less likely to go all uber-geek
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

ashpash150
Posts: 16
Joined: Sat Aug 04, 2012 7:26 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 8:17 am

hey I have a slite problem as in I have no way of connecting my pi to eth to gain acsess to the internet to get the required files for this install all I have is my WiFi adapter wich oveusly dosent work yet and my mobile phone wich iv successfuly manages to mount to my raspberrypi enabling me to acsess its memory card so I had a bit of a brain wave I was wondering if I can download the required files to my mobile phones sd card then mount it to my raspberrypi and move the files to the required folders to then be able to run this setup ino its a long way rounud and ino I coldd buy a WiFi to eth adapter but I dont wonna soend any extra cash on something to get the WiFi working ic anyone can help il be grateful

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 8:45 am

ashpash150 wrote:hey I have a slite problem as in I have no way of connecting my pi to eth to gain acsess to the internet to get the required files for this install all I have is my WiFi adapter wich oveusly dosent work yet and my mobile phone wich iv successfuly manages to mount to my raspberrypi enabling me to acsess its memory card so I had a bit of a brain wave I was wondering if I can download the required files to my mobile phones sd card then mount it to my raspberrypi and move the files to the required folders to then be able to run this setup ino its a long way rounud and ino I coldd buy a WiFi to eth adapter but I dont wonna soend any extra cash on something to get the WiFi working ic anyone can help il be grateful
Hi

You can also download the files to your normal PC and copy them into the boot folder on the SD card by putting the SD card into your PC.

You can then put the SD card back into the Pi and run the script.

Cheers

Paul
Procrastination - The Thief of Time.

r0nnie
Posts: 49
Joined: Fri Aug 03, 2012 1:53 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 12:40 pm

hello im trying to run this script on raspbian wheezy with the edimax dongle along with a powered hub
i just keep getting this error
i have internet connection (wired) but in the error it says no internet?

sorry i dont have more info im a total noob, if you need more info please let me know and ill try my best :oops:

thanks

Code: Select all

If you have a working wifi adapter and it is plugged in do not unplug it. It
will be used to download files needed for the installation from the internet.

install-rtl8188cus-latest.sh: 68: read: Illegal option -n


The RTL8188CUS driver module is not installed.
install-rtl8188cus-latest.sh: 127: [: 0: unexpected operator
install-rtl8188cus-latest.sh: 127: [: 0: unexpected operator
install-rtl8188cus-latest.sh: 165: [: 0: unexpected operator

You have 0 wifi adapters configured.

install-rtl8188cus-latest.sh: 195: [: 0: unexpected operator
The Pi has no Internet connection.

A basic installation will be made to enable an internet connection using the
wifi. This will then allow the remaining files required to be downloaded from
the internet. Any files needed for the basic wifi installation need to be in
the /boot directory of the SD card for the installation to complete.

If you are unsure of the files required for the installation the script will
notify you of any files it cannot find that are needed then the script will
abort. You must then copy the files to the SD card /boot directory and re-run
the script. If you're using a Windows system to generate the SD card the /boot
directory is the one you see when viewing the SD card with Windows Explorer.

To copy the files you can either shut down the Pi, remove the SD card and copy
the files needed to the SD card using the system you used to copy the image to
the SD card, or you can copy the files to a usb stick or similar and then mount
the usb stick on the Pi and copy the files from the USB stick to the /boot
directory of the Pi.

install-rtl8188cus-latest.sh: 221: read: Illegal option -n


install-rtl8188cus-latest.sh: 417: [: 0: unexpected operator

The wifi driver for your current Linux version will now be installed/re-installed
and the necessary files will be configured as required.
install: cannot stat `8192cu.ko': No such file or directory
rm: cannot remove `8192cu*.tar.gz': No such file or directory
rm: cannot remove `8192cu.ko': No such file or directory
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator

updating system module dependencies - I know, I don't know what this is as well
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator

r0nnie
Posts: 49
Joined: Fri Aug 03, 2012 1:53 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 2:00 pm

r0nnie wrote:hello im trying to run this script on raspbian wheezy with the edimax dongle along with a powered hub
i just keep getting this error
i have internet connection (wired) but in the error it says no internet?

sorry i dont have more info im a total noob, if you need more info please let me know and ill try my best :oops:

thanks

Code: Select all

If you have a working wifi adapter and it is plugged in do not unplug it. It
will be used to download files needed for the installation from the internet.

install-rtl8188cus-latest.sh: 68: read: Illegal option -n


The RTL8188CUS driver module is not installed.
install-rtl8188cus-latest.sh: 127: [: 0: unexpected operator
install-rtl8188cus-latest.sh: 127: [: 0: unexpected operator
install-rtl8188cus-latest.sh: 165: [: 0: unexpected operator

You have 0 wifi adapters configured.

install-rtl8188cus-latest.sh: 195: [: 0: unexpected operator
The Pi has no Internet connection.

A basic installation will be made to enable an internet connection using the
wifi. This will then allow the remaining files required to be downloaded from
the internet. Any files needed for the basic wifi installation need to be in
the /boot directory of the SD card for the installation to complete.

If you are unsure of the files required for the installation the script will
notify you of any files it cannot find that are needed then the script will
abort. You must then copy the files to the SD card /boot directory and re-run
the script. If you're using a Windows system to generate the SD card the /boot
directory is the one you see when viewing the SD card with Windows Explorer.

To copy the files you can either shut down the Pi, remove the SD card and copy
the files needed to the SD card using the system you used to copy the image to
the SD card, or you can copy the files to a usb stick or similar and then mount
the usb stick on the Pi and copy the files from the USB stick to the /boot
directory of the Pi.

install-rtl8188cus-latest.sh: 221: read: Illegal option -n


install-rtl8188cus-latest.sh: 417: [: 0: unexpected operator

The wifi driver for your current Linux version will now be installed/re-installed
and the necessary files will be configured as required.
install: cannot stat `8192cu.ko': No such file or directory
rm: cannot remove `8192cu*.tar.gz': No such file or directory
rm: cannot remove `8192cu.ko': No such file or directory
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator

updating system module dependencies - I know, I don't know what this is as well
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
ok sorry i didnt realise you need to be in /boot/ i has the file just in ~/ and it wasnt working

so the script ran, i put in my ssid and wpa pass rebooted rasp and its still not working

FML

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 2:55 pm

r0nnie wrote:
r0nnie wrote:hello im trying to run this script on raspbian wheezy with the edimax dongle along with a powered hub
i just keep getting this error
i have internet connection (wired) but in the error it says no internet?

sorry i dont have more info im a total noob, if you need more info please let me know and ill try my best :oops:

thanks

Code: Select all

If you have a working wifi adapter and it is plugged in do not unplug it. It
will be used to download files needed for the installation from the internet.

install-rtl8188cus-latest.sh: 68: read: Illegal option -n


The RTL8188CUS driver module is not installed.
install-rtl8188cus-latest.sh: 127: [: 0: unexpected operator
install-rtl8188cus-latest.sh: 127: [: 0: unexpected operator
install-rtl8188cus-latest.sh: 165: [: 0: unexpected operator

You have 0 wifi adapters configured.

install-rtl8188cus-latest.sh: 195: [: 0: unexpected operator
The Pi has no Internet connection.

A basic installation will be made to enable an internet connection using the
wifi. This will then allow the remaining files required to be downloaded from
the internet. Any files needed for the basic wifi installation need to be in
the /boot directory of the SD card for the installation to complete.

If you are unsure of the files required for the installation the script will
notify you of any files it cannot find that are needed then the script will
abort. You must then copy the files to the SD card /boot directory and re-run
the script. If you're using a Windows system to generate the SD card the /boot
directory is the one you see when viewing the SD card with Windows Explorer.

To copy the files you can either shut down the Pi, remove the SD card and copy
the files needed to the SD card using the system you used to copy the image to
the SD card, or you can copy the files to a usb stick or similar and then mount
the usb stick on the Pi and copy the files from the USB stick to the /boot
directory of the Pi.

install-rtl8188cus-latest.sh: 221: read: Illegal option -n


install-rtl8188cus-latest.sh: 417: [: 0: unexpected operator

The wifi driver for your current Linux version will now be installed/re-installed
and the necessary files will be configured as required.
install: cannot stat `8192cu.ko': No such file or directory
rm: cannot remove `8192cu*.tar.gz': No such file or directory
rm: cannot remove `8192cu.ko': No such file or directory
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator

updating system module dependencies - I know, I don't know what this is as well
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
ok sorry i didnt realise you need to be in /boot/ i has the file just in ~/ and it wasnt working

so the script ran, i put in my ssid and wpa pass rebooted rasp and its still not working

FML
I usually say the script should be in the /boot directory as I have not tested it when it is in the user home directory ./ It may work from the home directory but it has not been tested from there.

I have seen something like this before. Are you using ssh to connect to the Pi?

You need to use the command

Code: Select all

sudo bash ./install-rtl8188cus-latest.sh
The errors are happening because the script is not being run with bash. The command above should force it to use bash to run the script. If you are logged in as root do not use "sudo" in the command to run the script.

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

r0nnie
Posts: 49
Joined: Fri Aug 03, 2012 1:53 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 3:16 pm

MrEngman wrote:
r0nnie wrote:
r0nnie wrote:hello im trying to run this script on raspbian wheezy with the edimax dongle along with a powered hub
i just keep getting this error
i have internet connection (wired) but in the error it says no internet?

sorry i dont have more info im a total noob, if you need more info please let me know and ill try my best :oops:

thanks

Code: Select all

If you have a working wifi adapter and it is plugged in do not unplug it. It
will be used to download files needed for the installation from the internet.

install-rtl8188cus-latest.sh: 68: read: Illegal option -n


The RTL8188CUS driver module is not installed.
install-rtl8188cus-latest.sh: 127: [: 0: unexpected operator
install-rtl8188cus-latest.sh: 127: [: 0: unexpected operator
install-rtl8188cus-latest.sh: 165: [: 0: unexpected operator

You have 0 wifi adapters configured.

install-rtl8188cus-latest.sh: 195: [: 0: unexpected operator
The Pi has no Internet connection.

A basic installation will be made to enable an internet connection using the
wifi. This will then allow the remaining files required to be downloaded from
the internet. Any files needed for the basic wifi installation need to be in
the /boot directory of the SD card for the installation to complete.

If you are unsure of the files required for the installation the script will
notify you of any files it cannot find that are needed then the script will
abort. You must then copy the files to the SD card /boot directory and re-run
the script. If you're using a Windows system to generate the SD card the /boot
directory is the one you see when viewing the SD card with Windows Explorer.

To copy the files you can either shut down the Pi, remove the SD card and copy
the files needed to the SD card using the system you used to copy the image to
the SD card, or you can copy the files to a usb stick or similar and then mount
the usb stick on the Pi and copy the files from the USB stick to the /boot
directory of the Pi.

install-rtl8188cus-latest.sh: 221: read: Illegal option -n


install-rtl8188cus-latest.sh: 417: [: 0: unexpected operator

The wifi driver for your current Linux version will now be installed/re-installed
and the necessary files will be configured as required.
install: cannot stat `8192cu.ko': No such file or directory
rm: cannot remove `8192cu*.tar.gz': No such file or directory
rm: cannot remove `8192cu.ko': No such file or directory
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator
install-rtl8188cus-latest.sh: 702: [: N: unexpected operator

updating system module dependencies - I know, I don't know what this is as well
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
install-rtl8188cus-latest.sh: 881: [: 1: unexpected operator
ok sorry i didnt realise you need to be in /boot/ i has the file just in ~/ and it wasnt working

so the script ran, i put in my ssid and wpa pass rebooted rasp and its still not working

FML
I usually say the script should be in the /boot directory as I have not tested it when it is in the user home directory ./ It may work from the home directory but it has not been tested from there.

I have seen something like this before. Are you using ssh to connect to the Pi?

You need to use the command

Code: Select all

sudo bash ./install-rtl8188cus-latest.sh
The errors are happening because the script is not being run with bash. The command above should force it to use bash to run the script. If you are logged in as root do not use "sudo" in the command to run the script.

MrEngman
thanks i got it running kind of, the script went through the add ssid, pass, security type then i see:
Plug in the wifi adapter. It should start automatically. Just wait a while for
the wifi adapter LED to start flashing then press any key to continue...

You now have 1 wifi adapter configured
then it hangs there for a while and does nothing till i ctrl+c it

rebooted then see this from dmesg:

Code: Select all

[   11.701806] usb 1-1.3.5: Product: 802.11n WLAN Adapter
[   11.730177] usb 1-1.3.5: Manufacturer: Realtek
[   11.753873] usb 1-1.3.5: SerialNumber: 00e04c000001
[   11.992854] 8192cu: disagrees about version of symbol alloc_etherdev_mqs
[   12.011611] 8192cu: Unknown symbol alloc_etherdev_mqs (err -22)
[   12.024439] 8192cu: disagrees about version of symbol skb_copy_bits
[   12.037327] 8192cu: Unknown symbol skb_copy_bits (err -22)
[   12.049342] 8192cu: disagrees about version of symbol skb_put
[   12.061498] 8192cu: Unknown symbol skb_put (err -22)
[   12.072830] 8192cu: disagrees about version of symbol __netif_schedule
[   12.085868] 8192cu: Unknown symbol __netif_schedule (err -22)
[   12.098014] 8192cu: disagrees about version of symbol unregister_netdev
[   12.111000] 8192cu: Unknown symbol unregister_netdev (err -22)
[   12.123321] 8192cu: disagrees about version of symbol skb_dequeue
[   12.135876] 8192cu: Unknown symbol skb_dequeue (err -22)
[   12.147624] 8192cu: disagrees about version of symbol dev_alloc_name
[   12.160442] 8192cu: Unknown symbol dev_alloc_name (err -22)
[   12.172485] 8192cu: disagrees about version of symbol unregister_netdevice_queue
[   12.186427] 8192cu: Unknown symbol unregister_netdevice_queue (err -22)
[   12.199498] 8192cu: disagrees about version of symbol eth_type_trans
[   12.212103] 8192cu: Unknown symbol eth_type_trans (err -22)
[   12.224066] 8192cu: disagrees about version of symbol netif_device_attach
[   12.237184] 8192cu: Unknown symbol netif_device_attach (err -22)
[   12.249488] 8192cu: disagrees about version of symbol skb_queue_tail
[   12.262005] 8192cu: Unknown symbol skb_queue_tail (err -22)
[   12.273616] 8192cu: disagrees about version of symbol dev_kfree_skb_any
[   12.286316] 8192cu: Unknown symbol dev_kfree_skb_any (err -22)
[   12.297958] 8192cu: disagrees about version of symbol init_net
[   12.309503] 8192cu: Unknown symbol init_net (err -22)
[   12.320348] 8192cu: disagrees about version of symbol skb_pull
[   12.331965] 8192cu: Unknown symbol skb_pull (err -22)
[   12.342742] 8192cu: disagrees about version of symbol skb_push
[   12.354078] 8192cu: Unknown symbol skb_push (err -22)
[   12.364576] 8192cu: disagrees about version of symbol wireless_send_event
[   12.376633] 8192cu: Unknown symbol wireless_send_event (err -22)
[   12.387848] 8192cu: disagrees about version of symbol register_netdev
[   12.399460] 8192cu: Unknown symbol register_netdev (err -22)
[   12.410203] 8192cu: disagrees about version of symbol free_netdev
[   12.421224] 8192cu: Unknown symbol free_netdev (err -22)
[   12.431580] 8192cu: disagrees about version of symbol dev_alloc_skb
[   12.444805] 8192cu: Unknown symbol dev_alloc_skb (err -22)
[   12.464886] 8192cu: disagrees about version of symbol skb_queue_purge
[   12.487427] 8192cu: Unknown symbol skb_queue_purge (err -22)
[   12.498249] 8192cu: disagrees about version of symbol __pskb_pull_tail
[   12.509792] 8192cu: Unknown symbol __pskb_pull_tail (err -22)
[   12.520616] 8192cu: disagrees about version of symbol netif_rx
[   12.531412] 8192cu: Unknown symbol netif_rx (err -22)
[   12.541415] 8192cu: disagrees about version of symbol __netdev_alloc_skb
[   12.553083] 8192cu: Unknown symbol __netdev_alloc_skb (err -22)
[   12.564030] 8192cu: disagrees about version of symbol skb_trim
[   12.574800] 8192cu: Unknown symbol skb_trim (err -22)
[   12.584948] 8192cu: disagrees about version of symbol netif_carrier_off
[   12.596481] 8192cu: Unknown symbol netif_carrier_off (err -22)
[   12.607300] 8192cu: disagrees about version of symbol skb_copy
[   12.618087] 8192cu: Unknown symbol skb_copy (err -22)
[   12.628023] 8192cu: disagrees about version of symbol skb_clone
[   12.638878] 8192cu: Unknown symbol skb_clone (err -22)
[   12.648891] 8192cu: disagrees about version of symbol dev_get_by_name
[   12.660414] 8192cu: Unknown symbol dev_get_by_name (err -22)
[   12.670955] 8192cu: disagrees about version of symbol netif_carrier_on
[   12.682381] 8192cu: Unknown symbol netif_carrier_on (err -22)
[   12.694395] 8192cu: disagrees about version of symbol find_vpid
[   12.705305] 8192cu: Unknown symbol find_vpid (err -22)
[   12.715427] 8192cu: disagrees about version of symbol register_netdevice
[   12.726977] 8192cu: Unknown symbol register_netdevice (err -22)
5hours later and still no wifi! lol :cry:

ashpash150
Posts: 16
Joined: Sat Aug 04, 2012 7:26 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 4:54 pm

Is there an offline way I can do this as I only have a 3g WiFi dongle and no eth be nice if I could download the required files then put them on a Usb stick

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 5:45 pm

r0nnie wrote:thanks i got it running kind of, the script went through the add ssid, pass, security type then i see:
Plug in the wifi adapter. It should start automatically. Just wait a while for
the wifi adapter LED to start flashing then press any key to continue...

You now have 1 wifi adapter configured
then it hangs there for a while and does nothing till i ctrl+c it

rebooted then see this from dmesg:

Code: Select all

[   11.701806] usb 1-1.3.5: Product: 802.11n WLAN Adapter
[   11.730177] usb 1-1.3.5: Manufacturer: Realtek
[   11.753873] usb 1-1.3.5: SerialNumber: 00e04c000001
[   11.992854] 8192cu: disagrees about version of symbol alloc_etherdev_mqs
[   12.011611] 8192cu: Unknown symbol alloc_etherdev_mqs (err -22)
[   12.024439] 8192cu: disagrees about version of symbol skb_copy_bits
[   12.037327] 8192cu: Unknown symbol skb_copy_bits (err -22)
[   12.049342] 8192cu: disagrees about version of symbol skb_put
[   12.061498] 8192cu: Unknown symbol skb_put (err -22)
[   12.072830] 8192cu: disagrees about version of symbol __netif_schedule
[   12.085868] 8192cu: Unknown symbol __netif_schedule (err -22)
[   12.098014] 8192cu: disagrees about version of symbol unregister_netdev
[   12.111000] 8192cu: Unknown symbol unregister_netdev (err -22)
[   12.123321] 8192cu: disagrees about version of symbol skb_dequeue
[   12.135876] 8192cu: Unknown symbol skb_dequeue (err -22)
[   12.147624] 8192cu: disagrees about version of symbol dev_alloc_name
[   12.160442] 8192cu: Unknown symbol dev_alloc_name (err -22)
[   12.172485] 8192cu: disagrees about version of symbol unregister_netdevice_queue
[   12.186427] 8192cu: Unknown symbol unregister_netdevice_queue (err -22)
[   12.199498] 8192cu: disagrees about version of symbol eth_type_trans
[   12.212103] 8192cu: Unknown symbol eth_type_trans (err -22)
[   12.224066] 8192cu: disagrees about version of symbol netif_device_attach
[   12.237184] 8192cu: Unknown symbol netif_device_attach (err -22)
[   12.249488] 8192cu: disagrees about version of symbol skb_queue_tail
[   12.262005] 8192cu: Unknown symbol skb_queue_tail (err -22)
[   12.273616] 8192cu: disagrees about version of symbol dev_kfree_skb_any
[   12.286316] 8192cu: Unknown symbol dev_kfree_skb_any (err -22)
[   12.297958] 8192cu: disagrees about version of symbol init_net
[   12.309503] 8192cu: Unknown symbol init_net (err -22)
[   12.320348] 8192cu: disagrees about version of symbol skb_pull
[   12.331965] 8192cu: Unknown symbol skb_pull (err -22)
[   12.342742] 8192cu: disagrees about version of symbol skb_push
[   12.354078] 8192cu: Unknown symbol skb_push (err -22)
[   12.364576] 8192cu: disagrees about version of symbol wireless_send_event
[   12.376633] 8192cu: Unknown symbol wireless_send_event (err -22)
[   12.387848] 8192cu: disagrees about version of symbol register_netdev
[   12.399460] 8192cu: Unknown symbol register_netdev (err -22)
[   12.410203] 8192cu: disagrees about version of symbol free_netdev
[   12.421224] 8192cu: Unknown symbol free_netdev (err -22)
[   12.431580] 8192cu: disagrees about version of symbol dev_alloc_skb
[   12.444805] 8192cu: Unknown symbol dev_alloc_skb (err -22)
[   12.464886] 8192cu: disagrees about version of symbol skb_queue_purge
[   12.487427] 8192cu: Unknown symbol skb_queue_purge (err -22)
[   12.498249] 8192cu: disagrees about version of symbol __pskb_pull_tail
[   12.509792] 8192cu: Unknown symbol __pskb_pull_tail (err -22)
[   12.520616] 8192cu: disagrees about version of symbol netif_rx
[   12.531412] 8192cu: Unknown symbol netif_rx (err -22)
[   12.541415] 8192cu: disagrees about version of symbol __netdev_alloc_skb
[   12.553083] 8192cu: Unknown symbol __netdev_alloc_skb (err -22)
[   12.564030] 8192cu: disagrees about version of symbol skb_trim
[   12.574800] 8192cu: Unknown symbol skb_trim (err -22)
[   12.584948] 8192cu: disagrees about version of symbol netif_carrier_off
[   12.596481] 8192cu: Unknown symbol netif_carrier_off (err -22)
[   12.607300] 8192cu: disagrees about version of symbol skb_copy
[   12.618087] 8192cu: Unknown symbol skb_copy (err -22)
[   12.628023] 8192cu: disagrees about version of symbol skb_clone
[   12.638878] 8192cu: Unknown symbol skb_clone (err -22)
[   12.648891] 8192cu: disagrees about version of symbol dev_get_by_name
[   12.660414] 8192cu: Unknown symbol dev_get_by_name (err -22)
[   12.670955] 8192cu: disagrees about version of symbol netif_carrier_on
[   12.682381] 8192cu: Unknown symbol netif_carrier_on (err -22)
[   12.694395] 8192cu: disagrees about version of symbol find_vpid
[   12.705305] 8192cu: Unknown symbol find_vpid (err -22)
[   12.715427] 8192cu: disagrees about version of symbol register_netdevice
[   12.726977] 8192cu: Unknown symbol register_netdevice (err -22)
5hours later and still no wifi! lol :cry:
What is the image you are using?

What is the output of command uname -a ?

For some reason the driver is the wrong version. Probably because you didn't run it properly in the first place. Run the script again and when it asks if you want to upgrade or add another wifi select upgrade - press U key.
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: 3856
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 6:01 pm

dikonist wrote:XBian kernel is 3.2.21
http://kevinclarke.info/tbe/building-32 ... ntu-laptop

XBian image:
http://www.xbian.org

I would appreciate it if you are able to change the script so it work's with XBian 0.4.1
Thanks in advance!
Hi dikonist,

My script has now been updated to run with xbian. I have used it on xbian 0.4.2. I haven't tried it with 0.4.1


Take a look here http://forum.xbian.org/viewtopic.php?f= ... t=10#p1041
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

r0nnie
Posts: 49
Joined: Fri Aug 03, 2012 1:53 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 6:07 pm

MrEngman wrote:
What is the image you are using?

What is the output of command uname -a ?

For some reason the driver is the wrong version. Probably because you didn't run it properly in the first place. Run the script again and when it asks if you want to upgrade or add another wifi select upgrade - press U key.
2012-07-15-wheezy-raspbian
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l GNU/Linux

ive think ive messed somthing up big time, ive just noticed the usb wifi isnt even lighting up

Code: Select all

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 2101:8500 ActionStar
Bus 001 Device 005: ID 2101:8501 ActionStar
Bus 001 Device 011: ID 1bcf:0007 Sunplus Innovation Technology Inc. Optical Mouse
Bus 001 Device 012: ID 0e8f:0022 GreenAsia Inc.
Bus 001 Device 017: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
and its also not showing running here

Code: Select all

Module                  Size  Used by
snd_bcm2835            21485  0
snd_pcm                82208  1 snd_bcm2835
snd_page_alloc          5383  1 snd_pcm
snd_seq                59808  0
snd_seq_device          6920  1 snd_seq
snd_timer              21905  2 snd_seq,snd_pcm
snd                    57668  5 snd_timer,snd_seq_device,snd_seq,snd_pcm,snd_bcm2835
joydev                  9804  0
evdev                   8922  0
i have also tried upgrading and adding a new wlan

using Driver tar file: 8192cu-20120701.tar.gz (http://dl.dropbox.com/u/80256631/8192cu-20120701.tar.gz)
For kernel versions:

Linux raspberrypi 3.1.9+ #174 PREEMPT Sun Jul 22 19:04:28 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #171 PREEMPT Tue Jul 17 01:08:22 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #165 PREEMPT Fri Jul 13 18:54:13 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #162 PREEMPT Thu Jul 12 12:01:22 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #159 PREEMPT Wed Jul 11 19:54:53 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #155 PREEMPT Mon Jul 9 12:49:19 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #152 PREEMPT Fri Jul 6 18:47:16 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #149 PREEMPT Thu Jul 5 01:33:01 BST 2012 armv6l GNU/Linux
Linux raspberrypi 3.1.9+ #144 PREEMPT Sun Ju1 1 12:37:10 BST 2012 armv6l GNU/Linux

r0nnie
Posts: 49
Joined: Fri Aug 03, 2012 1:53 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 7:17 pm

cant edit last post...

right i have gave up!

im making a fresh image now and going to try it all over again

ill report back when its done.

thanks

baz4096
Posts: 6
Joined: Fri Apr 13, 2012 2:16 pm

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 10:47 pm

I had no end of problems with this. I tried different firmware versions, with the corresponding versions of the 8192cu driver. I tried two different USB dongles (Edimax EW-7811Un and microNEXT MN-WD552B) on two different RPis until I eventually figured out that both the edimax and the micronext were drawing too much power. They were either not being recognised at all (no lsusb entry) or were being recognised but no wlan0 on ifconfig. This was even the case when they were the only device plugged into the Pi.

Adding a powered USB hub fixed everything (as long as you're installing the correct driver for the correct firmware).

I kind of wish I'd tried that first, as I now have a spare 802.11n adapter.

Just for the record, I've successfully configured an Edimax EW-7811Un on Raspbian #242 using a powered USB hub and the 8192cu-20120726.tar.gz driver.

One minor annoying thing that I did discover was, when used offline, the script removes the tar.gz file from the /boot directory once it's installed. However if you wish to re-install you need to re-copy the file on another machine. That said, it's an excellent script and my thanks go to the author and contributors.

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Wed Aug 08, 2012 11:41 pm

baz4096 wrote:I had no end of problems with this. I tried different firmware versions, with the corresponding versions of the 8192cu driver. I tried two different USB dongles (Edimax EW-7811Un and microNEXT MN-WD552B) on two different RPis until I eventually figured out that both the edimax and the micronext were drawing too much power. They were either not being recognised at all (no lsusb entry) or were being recognised but no wlan0 on ifconfig. This was even the case when they were the only device plugged into the Pi.

Adding a powered USB hub fixed everything (as long as you're installing the correct driver for the correct firmware).

I kind of wish I'd tried that first, as I now have a spare 802.11n adapter.

Just for the record, I've successfully configured an Edimax EW-7811Un on Raspbian #242 using a powered USB hub and the 8192cu-20120726.tar.gz driver.

One minor annoying thing that I did discover was, when used offline, the script removes the tar.gz file from the /boot directory once it's installed. However if you wish to re-install you need to re-copy the file on another machine. That said, it's an excellent script and my thanks go to the author and contributors.
Whether the wifi adapters will run when plugged directly into the Pi's USB ports is very dependent on the power supply powering the Pi. I plug mine directly into the USB port of the Pi and have no trouble with power but I use a high quality switched mode PSU, not a phone charger like many people, and can adjust the voltage to make sure the voltage at the Pi's test points are well within spec.

Note taken about deleting the files.

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

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

Talon876
Posts: 4
Joined: Thu Aug 09, 2012 2:47 am

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Aug 09, 2012 2:53 am

I have the NetGear, Inc. WNA1000M 802.11bgn [Realtek RTL8188CUS] adapter.

I followed the instructions exactly and when it got to the end it just said "you now have 1 wifi adapter configured". I let it sit there for a few minutes before I ctrl-c'd to close it.

ifconfig shows

eth0 Link encap:Ethernet HWaddr b8:27:eb:a0:f7:10
inet addr:192.168.1.197 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:276 errors:0 dropped:1 overruns:0 frame:0
TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29807 (29.1 KiB) TX bytes:23930 (23.3 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan1 Link encap:Ethernet HWaddr 84:1b:5e:90:7d:77
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan1 doesn't have an IP address for some reason. Rebooting it didn't help. I tried rerunning the script and pressed U to update/upgrade and that didn't help either.

I'm running wheezy image.
Here's the output from uname -a:
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l GNU/Linux

Any advice?

SwanseaMick
Posts: 45
Joined: Wed Aug 08, 2012 8:05 am
Location: Gower, Swansea

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Aug 09, 2012 9:33 am

MrEngman
Suggest a small change may be required to your installation notes for us Linux beginners
I had previously tried unsuccesfully to install the adaptor prior to running your script, and got as far as modifying the /etc/network/interfaces file to include an entry wlan0 (rubbish as it turns out - a little knowledge is a dangerous thing!).

When attemping to run your script, to upgrade previous installation, I couldn't proceed beyond the stage when it asked me to insert adaptor and wait for green light to flash - it never did! I tried moving adaptor/keyboard to different usb ports (direct Rpi and powered hub), but still no green light.

At my wits end, I decided to delete the bad wlan0 entry in the interfaces file and give your script one last try and voila! it worked!!!!!

So another device to add to your list of succesful WiFi adaptors:
Solwise NET-WL-UMD-606N (0bda:8176)

Many Many Thanks

(now if someone could produce a similar script to install an old Webcam .....)
Last edited by SwanseaMick on Thu Aug 09, 2012 9:44 am, edited 1 time in total.

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

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Aug 09, 2012 9:37 am

Talon876 wrote:I have the NetGear, Inc. WNA1000M 802.11bgn [Realtek RTL8188CUS] adapter.

I followed the instructions exactly and when it got to the end it just said "you now have 1 wifi adapter configured". I let it sit there for a few minutes before I ctrl-c'd to close it.

ifconfig shows

wlan1 Link encap:Ethernet HWaddr 84:1b:5e:90:7d:77
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan1 doesn't have an IP address for some reason. Rebooting it didn't help. I tried rerunning the script and pressed U to update/upgrade and that didn't help either.

I'm running wheezy image.
Here's the output from uname -a:
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l GNU/Linux

Any advice?
What wheezy image are you using? There are quite a few different ones.

If you have only installed one wifi adapter it should be named wlan0. Have you plugged in any other wifi adapter?

What do the commands

Code: Select all

cat /etc/network/interfaces 
cat /etc/udev/rules.d/70-persistent-net.rules
show. I would especially like to see the output from 70-persistent-net.rules.

/etc/network/interfaces should show a single set of settings for wlan0 and nothing for wlan1 like

Code: Select all

allow-hotplug wlan0

auto wlan0

iface wlan0 inet dhcp
wpa-ssid "network name"
wpa-psk "network password"
I think /etc/udev/rules.d/70-persistent.net.rules will show two devices - wlan0 and wlan1. And it will show your wifi, HWaddr 84:1b:5e:90:7d:77, as wlan1. Unplug your wifi adapter then delete the file /etc/udev/rules.d/70-persistent-net.rules

Code: Select all

rm /etc/udev/rules.d/70-persistent-net.rules
and then plug in your wifi adapter again.

Check file /etc/udev/rules.d/70-persistent-net.rules to see if your device is now wlan0. And hopefully it should now work.
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: 3856
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Automatic setup for RTL8188CUS based wifi adapters

Thu Aug 09, 2012 9:45 am

SwanseaMick wrote:MrEngman
Suggest a small change may be required to your installation notes for us Linux beginners
I had previously tried unsuccesfully to install the adaptor prior to running your script, and got as far as modifying the /etc/network/interfaces file to include an entry wlan0 (rubbish as it turns out - a little knowledge is a dangerous thing!).

When attemping to run your script, to upgrade previous installation, I couldn't proceed beyond the stage when it asked me to insert adaptor and wait for green light to flash - it never did! I tried moving adaptor/keyboard to different usb ports (direct Rpi and powered hub), but still no green light.

At my wits end, I decided to delete the bad wlan0 entry in the interfaces file and give your script one last try and voila! it worked!!!!!

So another device to add to your list of succesful WiFi adaptors:
Solwise NET-WL-UMD-606N

Many Many Thanks

(now if someone could produce a similar script to install an old Webcam .....)
Note taken, thanks. Would be interested to see the output from command lsusb for your wifi adapter so I can add it to the list of devices in the instructions that use the rtl8188cus driver.
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”