The first should be the right one, but to make sure it has the right permissions use the commandMattPoat wrote:With regards to the PSK comments, on some of my re-installations I have done both of your suggestions (remove quotes and type as hexcode) but I don't think this is where my issue lies.
I will try with the different driver but just out of interest, should I put it in:
Sudo mv 8192cu.ko /lib/modules/3.1.9+/kernel/drivers/net/wireless/
OR
Sudo mv 8192cu.ko /lib/modules/3.1.9-cutdown+/kernel/drivers/net/wireless/
Or should I put it in both?
Matthew
Spot on, Im now up and running with my Edimax usb wifi dongle plugged direct into Pi usb port on Raspbian thanks to the alternative 8192cu.ko file and location permissions. Thanks MrEngmanMrEngman wrote: The first should be the right one, but to make sure it has the right permissions use the command
sudo install -p -m 644 8192cu.ko /lib/modules/3.1.9+/kernel/drivers/net/wireless/
For psk password - quotation marks for plain text - psk="xyz", none for hex encoded password - psk=1234.
Code: Select all
sudo apt-get install wget wireless-tools net-tools aptitude wpasupplicantCode: Select all
ifup wlan0Code: Select all
rfkill: Cannot open RFKILL control device
Could not read interface wlan0 flags: No such device
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface
Failed to bring up wlan0.reboot. What happens then? If you have no wifi what does the command "sudo lsmod" show? You should see an entry for 8192cu. If not then the 8192cu.ko driver module is not installed or you have the wrong version.chrisborrill wrote:Followed this for Raspbian, my config file look like those described, but it did not work, saying it could not find wpasupplicant, so I executed:
.
.
Any ideas what I have got wrong, thanks.
Chris
Reboot made no difference. lsmod showed no modules, which seems strange? I download the library again and installed again, with:reboot. What happens then? If you have no wifi what does the command "sudo lsmod" show? You should see an entry for 8192cu. If not then the 8192cu.ko driver module is not installed or you have the wrong version.
You've probably got the wrong version of the driver. 8192cu-latest.tar.gz (currently AKA 8192cu-20120726.tar.gz) works with linux version #202. http://dl.dropbox.com/u/80256631/8192cu-20120701.tar.gz works with linux versions between #144 and #174 inclusive. You can check your linux version with command "uname -v"chrisborrill wrote:Reboot made no difference. lsmod showed no modules, which seems strange? I download the library again and installed again, with:reboot. What happens then? If you have no wifi what does the command "sudo lsmod" show? You should see an entry for 8192cu. If not then the 8192cu.ko driver module is not installed or you have the wrong version.
wget http://dl.dropbox.com/u/80256631/8192cu-latest.tar.gz
tar -xvf 8192cu-latest.tar.gz
install -p -m 644 8192cu.ko /lib/modules/3.1.9+/kernel/drivers/net/wireless/
depmod -a
but lsmod still showed nothing. I am logged in as root.
thanks,
Chris
What response do you see for the command "iwlist wlan0 scan"? If the driver is installed and the wifi is plugged in it should show a list of wireless access points nearby even if you cannot connect because the set up files are not right.ma21dw wrote:Hi MrEngman, re:your response to someone else
>>reboot. What happens then? If you have no wifi what does the command "sudo lsmod" show?...
If you see module 8192cu is installed then you need to check the files that are updated to enable the wifi are correct.
I do see module 8192cu, so what should I be checking is correct and what files?
"sudo ifup wlan0" returns "Failed to bring up wlan0" after a number of DHCPDISCOVERS followed by No DHCPOFFERS received
Thanks for countless excellent replies and the hard work put into writing the script(s)!
Code: Select all
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "NETWORK SSID" (or wireless-essid NETWORK PASSWORD if WEP)
wpa-psk "NETWORK PASSWORD" (or wireless-key NETWORK PASSWORD if WEP)MrEngman, is there any possibility you could provide a simple guide for Raspbmc like you did for Raspbian for us newbies, so we can get wifi working? I got raspbian working fine with your script, but now I'm lost again.MrEngman wrote:The driver that works with raspBMC does not work with raspbian.
Download and install this one instead. http://dl.dropbox.com/u/80256631/8192cu-latest.tar.gz
Hi nigelp,nigelp wrote:MrEngman, is there any possibility you could provide a simple guide for Raspbmc like you did for Raspbian for us newbies, so we can get wifi working? I got raspbian working fine with your script, but now I'm lost again.MrEngman wrote:The driver that works with raspBMC does not work with raspbian.
Download and install this one instead. http://dl.dropbox.com/u/80256631/8192cu-latest.tar.gz
Code: Select all
wget http://dl.dropbox.com/u/80256631/install-raspBMC-rtl8188cus-20120801.sh
sudo chmod 700 ./install-raspBMC-rtl8188cus-20120801.sh
sudo ./install-raspBMC-rtl8188cus-20120801.shMrEngman wrote:Hi nigelp,nigelp wrote:MrEngman, is there any possibility you could provide a simple guide for Raspbmc like you did for Raspbian for us newbies, so we can get wifi working? I got raspbian working fine with your script, but now I'm lost again.MrEngman wrote:The driver that works with raspBMC does not work with raspbian.
Download and install this one instead. http://dl.dropbox.com/u/80256631/8192cu-latest.tar.gz
There is a new script which will load the rtl8188cus driver on to raspBMC. Do not plug in the wifi adapter before the script asks you to. It may hang if the wifi adapter is plugged in before the driver is ready for it.
As the installation of raspBMC relies on a wired internet connection to the Pi the script also requires a wired internet connection and so all files, including the script, can be loaded directly from the internet after the raspBMC installation has finished.
First exit from the gui. Select exit from the shutdown dialog box and when the screen goes blank press the ESC character - may be multiple times. A log on prompt should appear after a while. Log on using user name pi and password raspberry. You will then need to download the script and configure it to run. Use the following commandswhich will download it, configure it to be able to run and then start the script. It should handle unsecured, WEP and WPA networks but I've only checked with WPA.Code: Select all
wget http://dl.dropbox.com/u/80256631/install-raspBMC-rtl8188cus-20120801.sh sudo chmod 700 ./install-raspBMC-rtl8188cus-20120801.sh sudo ./install-raspBMC-rtl8188cus-20120801.sh
The script will first update the software packages list and update any that need to be updated and then install the wireless tools. The driver will then be downloaded and temporarily installed so a check can be made that it will work. A scan of local wifi access points is attempted. If any access points are displayed the wifi should work so select the continue option using key press y then the driver is permanently installed.
Follow the instructions output on screen. It will ask you about network security type, unsecured, WEP or WPA and for the network name, SSID, and network password when needed. You will need to press a key to continue several times to step through the final stages of the installation when the Network Manager wifi configuration file is set up, just to keep you occupied. When the script finishes it will reboot the system and your wifi should then be up and running.
From my observations when the gui is running the wifi may or may not keep running. I've also had the mouse stop working and the wifi keep running. It's just not at all reliable. In my opinion this is, at least in part, down to the general USB software and not specifically due to any issues with the wifi driver. It could be my mouse, keyboard or hub but still my favorite is the way the USB software works, or doesn't. It's certainly not a PSU problem.
Hope this is OK. Let me know what happens.
MrEngman
No not at all. A file download failed I think. A small python program that converts the sidd from text to a byte array. I just tried and it failed at the same place once and then re-running the script worked OK. Downloads can fail occasionally.nigelp wrote:Amazing, thanks so much for this help. I'm now SO close.
So the script install and updates etc all work perfectly I think, and it finds the local access points after I plug in the WiFi dongle.
But
When I press Q to continue the script something fails, which looks something like this:
resolving http://dd.tt failed
.
.
Did I do something stupid?
I've seen similar stuff when X is run on most images I've tried. I'm fairly sure that this is a general problem with the USB code and how it works with the BMC2708.ma21dw wrote:Ive somehwat fixed my problem. It was not at all a problem with MrEngmans script which wasa breeze to follow, but instead seems to be a conflict between peripherels attached via a powered usb hub. I can use any two of my mouse, keyboard and wifi dongle at once but not all three. Rebooting the pi with only the wifi dongle attached to the hub enables the wifi to connect fine fixing my previous query. I can then attach the keyboard and type away, pinging Google.com to ensure the wifi is still connected. If i startx and attach the mouse it wont move. If i detach the keyboard it will move. Attaching the keyboard again means i cant type until i detach the mouse. Very odd. I havent resolved this issue but am more than happy to discard the mouse, at leasr the wifi is working now.
MrEngman wrote:No not at all. A file download failed I think. A small python program that converts the sidd from text to a byte array. I just tried and it failed at the same place once and then re-running the script worked OK. Downloads can fail occasionally.nigelp wrote:Amazing, thanks so much for this help. I'm now SO close.
So the script install and updates etc all work perfectly I think, and it finds the local access points after I plug in the WiFi dongle.
But
When I press Q to continue the script something fails, which looks something like this:
resolving http://dd.tt failed
.
.
Did I do something stupid?
Just re-run the script. You do not need to do anything before running the script again. It will run through from the start but the packet updates and upgrade will not do anything, or not much, as they did on the first run. Just follow through the instructions as the script progresses.
This script can effectively be run as often as you want and can even be used to change security mode, network ssid and network password unlike my main script.
MrEngman wrote:No not at all. A file download failed I think. A small python program that converts the sidd from text to a byte array. I just tried and it failed at the same place once and then re-running the script worked OK. Downloads can fail occasionally.nigelp wrote:Amazing, thanks so much for this help. I'm now SO close.
So the script install and updates etc all work perfectly I think, and it finds the local access points after I plug in the WiFi dongle.
But
When I press Q to continue the script something fails, which looks something like this:
resolving http://dd.tt failed
.
.
Did I do something stupid?
Just re-run the script. You do not need to do anything before running the script again. It will run through from the start but the packet updates and upgrade will not do anything, or not much, as they did on the first run. Just follow through the instructions as the script progresses.
This script can effectively be run as often as you want and can even be used to change security mode, network ssid and network password unlike my main script.
Thanks nigelp,nigelp wrote:Cracked it!Thanks so much. I was being dumb and removing the wired connection when I inserted the WiFi dongle, so the download wasn't happening.
It's now all working fine apart from a little error on boot up which seems benign.
Thanks again, your scripts are excellent.
MrEngman wrote:Thanks nigelp,nigelp wrote:Cracked it!Thanks so much. I was being dumb and removing the wired connection when I inserted the WiFi dongle, so the download wasn't happening.
It's now all working fine apart from a little error on boot up which seems benign.
Thanks again, your scripts are excellent.
I've updated the script with a note not to unplug the wired connection until rebooting. And added code to retry the downloads in case they really do fail.![]()
MrEngman