windhero
Posts: 34
Joined: Fri Aug 03, 2012 9:56 am

RT2870 Chipset and wireless, I'm desperate

Thu Aug 23, 2012 9:39 pm

So, I've got a WiFi-Dongle that uses the Ralink RT2870 chipset. Now I've done it how it's supposed to be done according to loads and loads of manuals without success.

Now I managed to find the file (2008_0528_RT2870_Linux_STA_v1.3.0.0.tar.bz2) and then unzip it by doing

Code: Select all

tar xjvf 2008_0528_RT2870_Linux_STA_v1.3.0.0.tar.bz2
which ended up in getting me a file called 2008_0528_RT2870_Linux_STA_v1.3.0.0 in my /home/pi/ folder. Keep in mind that I have no idea of what I'm doing. I'm a complete beginner. So I followed an instruction of how to install it that went something like this:

Code: Select all

cd 2008_0528_RT2870_Linux_STA_v1.3.0.0/
./configure
/make
/make install
The first problem pops up at ./configure where it says "bash: ./configure: No such file or directory

So I would try and do it with sudo and root terminal, same result - no success

Then I'd keep on going to the next step regardless of failing the first, which gives me:
make -C tools
make[1]: Entering directory `/home/pi/2008_0528_RT2870_Linux_STA_v1.3.0.0/tools'gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/pi/2008_0528_RT2870_Linux_STA_v1.3.0.0/tools'/home/pi/2008_0528_RT2870_Linux_STA_v1.3.0.0/tools/bin2h
cp -f os/linux/Makefile.6 /home/pi/2008_0528_RT2870_Linux_STA_v1.3.0.0/os/linux/Makefile
make -C /lib/modules/3.1.9+/build SUBDIRS=/home/pi/2008_0528_RT2870_Linux_STA_v1.3.0.0/os/linux modules
make: *** /lib/modules/3.1.9+/build: No such file or directory. Stop.
make: *** [LINUX] Error 2

And I cry. I'm 98% sure I have the right file in my /home/pi/ folder, I just cant figure out how to install it. Everything else should be A-OK, like /etc/interfaces/network and /etc/wpa.config/conf files and so on. Just wont install the damn driver. And apparently the Ralink firmware called firmware-ralink that can be installed via apt-get doesn't work with my dongle.

Help, please?
Picture related Image

User avatar
joan
Posts: 14257
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: RT2870 Chipset and wireless, I'm desperate

Thu Aug 23, 2012 9:47 pm

Please try

sudo apt-get install firmware-ralink

If successful the driver will be in /lib/firmware, to check use the ls command, i.e.

ls /lib/firmware

windhero
Posts: 34
Joined: Fri Aug 03, 2012 9:56 am

Re: RT2870 Chipset and wireless, I'm desperate

Thu Aug 23, 2012 10:04 pm

joan wrote:Please try

sudo apt-get install firmware-ralink

If successful the driver will be in /lib/firmware, to check use the ls command, i.e.

ls /lib/firmware
I've tried this and the firmware-ralink does not work.

I probably found the cause, now I need someone to explain me how I do this with the Debian Squeeze distribution:

"There are currently 2 groups developing drivers for Ralink chipsets: Ralink's own team and the community-run rt2x00 project. Rt2x00 drivers work very well, and are distributed with the Linux kernel. Ralink's drivers (such as rt2870sta and rt3070sta) have some ugly code, and at this time are distributed separately from the Linux kernel. These drivers have varying levels of support for different chipsets, and in some cases they would both support a given chip

Blacklisting Modules:

To begin, unplug any Ralink USB WiFi adapters and restart your computer (or unload the modules).

To use rt2870sta and blacklist rt2800usb, run the following commands in terminal:

Code: Select all

gksudo gedit /etc/modprobe.d/blacklist.conf
add these lines to the end of the file:

Code: Select all

blacklist rt2x00usb
blacklist rt2x00lib
blacklist rt2800usb
Save the file, then insert your USB WiFi device."

I figured out by fiercely googling that gksudo is not necessary in squeeze, so I just thought I'd use root terminal or sudo. Im currently installing gedit-plugins (glad I got a 8gb sd card) to be able to use the gedit command, though I dont know if this will work or not.

How should I do this on debian squeeze?


EDIT: As i suspected sudo gedit /etc/modprobe.d/blacklist.conf does not work. Is the blacklist in another folder? What is its location? How do I blacklist those chipsets?

User avatar
joan
Posts: 14257
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: RT2870 Chipset and wireless, I'm desperate

Thu Aug 23, 2012 10:16 pm

A bit off that the ralink software didn't work. Did the dmesg command report anything?

To edit files I use vi, but I'm old and cranky. Try

sudo nano /etc/modprobe.d/blacklist.conf

windhero
Posts: 34
Joined: Fri Aug 03, 2012 9:56 am

Re: RT2870 Chipset and wireless, I'm desperate

Thu Aug 23, 2012 10:24 pm

joan wrote:A bit off that the ralink software didn't work. Did the dmesg command report anything?

To edit files I use vi, but I'm old and cranky. Try

sudo nano /etc/modprobe.d/blacklist.conf
It just opened the file I apparently created with gedit.

I was supposed to put those "at the end of the line" but the blacklist.conf was empty, so I'm assuming I created it? Didn't solve any problems yet atleast.

User avatar
joan
Posts: 14257
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: RT2870 Chipset and wireless, I'm desperate

Thu Aug 23, 2012 10:44 pm

That file doesn't exist on my Pi. It's only there is someone needs to use it.

The output of the dmesg command should say lots about your wireless dongle.

windhero
Posts: 34
Joined: Fri Aug 03, 2012 9:56 am

Re: RT2870 Chipset and wireless, I'm desperate

Thu Aug 23, 2012 10:53 pm

joan wrote:That file doesn't exist on my Pi. It's only there is someone needs to use it.

The output of the dmesg command should say lots about your wireless dongle.
I know lots about my dongle. I just dont know how to make it work.
lsusb
ID: 148f:2870
lsmod:
rt2800usb 12510 0
rt2800lib 49181 1 rt2800 usb
crc_ccitt 1541 1 rt2800lib
rt2x00usb 12077 1 rt2x00usb,rt2800lib,rt2800usb
rt2x00lib 43890 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 253889 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 180459 2 max80211,rt2x00lib

User avatar
joan
Posts: 14257
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: RT2870 Chipset and wireless, I'm desperate

Thu Aug 23, 2012 10:59 pm

What does

dmesg

say when you plug in the dongle?

windhero
Posts: 34
Joined: Fri Aug 03, 2012 9:56 am

Re: RT2870 Chipset and wireless, I'm desperate

Thu Aug 23, 2012 11:03 pm

joan wrote:What does

dmesg

say when you plug in the dongle?
dmesg says a lot. However, I do not get the "manufacturer" etc message if that's what you're asking. It gives a load of errors, one of which goes: Error - Vendor Request 0x07 failed for offset 0x0208 with error -71.

All the information about the chipset is above. Manufacturer Ralink, ID 148f:2870, more specifically rt2800usb, not rt2870sta.

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 6:35 am

You need to carefully read the dmesg information, you may need to use the command
dmesg | less
and use the page up/down keys to wander around, press q to quit.

dmesg should show the device being detected and the firmware being loaded. Let us know which firmware is loaded and the first error that is reported.

ryshard
Posts: 2
Joined: Mon Jun 18, 2012 12:43 pm

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 6:40 am

Wifi dongle on RT2870 works fine witout installing drivers on Debian. I had the same problem with my Edimax Ew-7718Un. Problem was too smal current on usb port of RPi. Wifi need more than 200mA, but RPi gives only 140mA. Active usb hub solved the problem.

windhero
Posts: 34
Joined: Fri Aug 03, 2012 9:56 am

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 9:04 am

dmesg right after plugging it in. It's not about the power either, I'm using an active usb-hub. I get the same message whether firmware-ralink is installed or isnt installed.


[ 81.364336] usb 1-1.2.2: new high speed USB device number 7 using dwc_otg
[ 81.464679] usb 1-1.2.2: New USB device found, idVendor=148f, idProduct=2870
[ 81.464716] usb 1-1.2.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 81.562569] cfg80211: Calling CRDA to update world regulatory domain
[ 81.774302] usb 1-1.2.2: reset high speed USB device number 7 using dwc_otg
[ 81.945813] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 81.949517] Registered led device: rt2800usb-phy0::radio
[ 81.950120] Registered led device: rt2800usb-phy0::assoc
[ 81.950725] Registered led device: rt2800usb-phy0::quality
[ 81.953652] usbcore: registered new interface driver rt2800usb
[ 82.289407] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
[ 82.371689] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
[ 83.500855] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
[ 84.538972] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
[ 85.567155] phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.

Wendo
Posts: 142
Joined: Sun Jun 10, 2012 8:27 pm

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 10:51 am

What does

ls /lib/firmware

return?

It looks like you don't have the right firmware installed

windhero
Posts: 34
Joined: Fri Aug 03, 2012 9:56 am

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 11:43 am

Wendo wrote:What does

ls /lib/firmware

return?

It looks like you don't have the right firmware installed
I figured the same, but since firmware-ralink doesn't work I dont know what to do. I've tried to install other firmwares without success. Can you look at the first post? In the end of it you can see the problem I'm encountering when trying to install an alternative driver.

What should I do step by step to install the right firmware? I found this one http://driverscollection.com/?file_cid= ... 76a675c830 but I can't figure out how to install it. It keeps on saying it cannot be unzipped, or when unzipped it on windows and transferred the whole file to my SD card it complains that the directory cannot be found or it cannot be installed.

windhero
Posts: 34
Joined: Fri Aug 03, 2012 9:56 am

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 4:45 pm

Results from ls /lib/firmware (only ones with rt in them)

rt2561.bin
rt2561s.bin
rt2661.bin
rt2860.bin
rt2870.bin
rt3070.bin
rt3071.bin
rt3090.bin
rt73.bin
RTL8192E
RTL8192SU
rtl_nic
rtlwifi

And so on. Now I don't know if rt2870 works as there are apparently 2 types of rt2870: rt2870sta and rt2800usb if I understood right.

Sorry for double post, had to bump this up.

User avatar
Mr.Dave
Posts: 148
Joined: Sat Jun 30, 2012 6:59 pm

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 5:39 pm

windhero wrote:Results from ls /lib/firmware (only ones with rt in them)

rt2561.bin
rt2561s.bin
rt2661.bin
rt2860.bin
rt2870.bin
rt3070.bin
rt3071.bin
rt3090.bin
rt73.bin
RTL8192E
RTL8192SU
rtl_nic
rtlwifi

And so on. Now I don't know if rt2870 works as there are apparently 2 types of rt2870: rt2870sta and rt2800usb if I understood right.

Sorry for double post, had to bump this up.

I use this guide to get my RT5370 working, works fine each time

http://forum.xbian.org/viewtopic.php?f=7&t=29

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 6:38 pm

You definitely have a problem with an incorrect module, dmesg shows that an RT2800 device has been detected.
[ 81.953652] usbcore: registered new interface driver rt2800usb

It seems that you tried to blacklist the RT2800 but it didn't work.

Check if this file exists, if it does, tell us what it contains...
/etc/modprobe.conf

There are several possible module probe configuration files. If /etc/modprobe.conf exists, all other files are ignored. If you really want to know the intricacies, see
http://wiki.debian.org/KernelModuleBlacklisting

windhero
Posts: 34
Joined: Fri Aug 03, 2012 9:56 am

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 7:14 pm

bredman wrote:You definitely have a problem with an incorrect module, dmesg shows that an RT2800 device has been detected.
[ 81.953652] usbcore: registered new interface driver rt2800usb

It seems that you tried to blacklist the RT2800 but it didn't work.

Check if this file exists, if it does, tell us what it contains...
/etc/modprobe.conf

There are several possible module probe configuration files. If /etc/modprobe.conf exists, all other files are ignored. If you really want to know the intricacies, see
http://wiki.debian.org/KernelModuleBlacklisting
in the /etc folder there is no modprobe.conf. There is the /modprobe.d folder however. Inside of this folder there is
linux-sound-base_noOSS.conf
alsa-base-blacklist.conf
fbdev-blacklist.conf
rt2870sta.conf
raspi-blacklist.conf
ipv6.conf
alsa-base.conf

and blacklist.conf. I'm not sure if I made the blacklist.conf whilst trying to blacklist some of the drivers though. Im pretty sure I made the rt2870sta.conf file too. (Btw, how do I delete files like this?)



EDIT: At Mr.Dave, that guide didn't help. Thanks anyways.

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 7:44 pm

Use the cat command to check each of these files, for example
cat /etc/modprobe.d/rt2870sta.conf

At least one of these files must contain
blacklist rt2x00usb
blacklist rt2x00lib
blacklist rt2800usb

If you need to remove a file, use the sudo rm command, for example
sudo rm /etc/modprobe.d/rt2870sta.conf

sudo gives a normal user the right to remove a system file.

windhero
Posts: 34
Joined: Fri Aug 03, 2012 9:56 am

Re: RT2870 Chipset and wireless, I'm desperate

Fri Aug 24, 2012 9:11 pm

bredman wrote:Use the cat command to check each of these files, for example
cat /etc/modprobe.d/rt2870sta.conf

At least one of these files must contain
blacklist rt2x00usb
blacklist rt2x00lib
blacklist rt2800usb

If you need to remove a file, use the sudo rm command, for example
sudo rm /etc/modprobe.d/rt2870sta.conf

sudo gives a normal user the right to remove a system file.
Thanks, I actually bought the Meet Raspberry Pi Kindle book but finding the command without reading a chapter completely again was too hard compared to just asking :P

However, none of those files had any of those listed. I modified blacklist.conf with gedit, and now it has that list in it. I'm not sure if it solved any problems as I dont know if blacklist.conf is a file i created like the rt2870sta.conf file or not.

However, whats next?

Some info:
My /etc/network/interfaces has these added:

Code: Select all

auto wlan0
iface wlan0 inet dhcp 
wpa-conf /etc/ wpa.conf
and my /etc/wpa.conf looks as such:

Code: Select all

network={
ssid="network name"
key_mgmt=WPA-PSK
psk="network password"
}
Btw how do I install a folder with files on my desktop? Or how do I unzip a .tar.bz2 file or .zip file on my Desktop and then install it?

I tried the method shown here, but I cant get it to work. I get errors: http://ubuntuforums.org/showpost.php?p= ... ostcount=6

EDIT:

I have a folder called rt2870 on my desktop that has been unzipped with windows and transferred to the desktop with a usb-stick.
commands
cd ~/Desktop/rt2870
make
sudo make install

it gives me the error:
"install -d /lib/modules/3.1.9+/kernel/drivers/net/wireless
install -m 644 -c rt2870sta.ko /lib/modules/3.1.9+/kernel/drivers/net/wireless/
install: cannot stat 'rt2870sta.ko': No such file or directory
make[1]: *** [install] Error 1
etc etc

User avatar
simonmcc
Posts: 180
Joined: Mon Aug 19, 2013 10:07 pm

Re: RT2870 Chipset and wireless, I'm desperate

Mon Aug 19, 2013 10:09 pm

I know this is an old topic, but I just hit the same problem (same symptoms) tonight when building my own kernel with touchscreen support.

Solution I used was to run

Code: Select all

sudo apt-get remove firmware-ralink
sudo apt-get install firmware-ralink
My ipconfig command worked straight away after that. Hope that helps someone
simonmcc.blogspot.com/search/label/pi

littletaro
Posts: 4
Joined: Sat Aug 11, 2012 7:30 am

Re: RT2870 Chipset and wireless, I'm desperate

Wed Aug 20, 2014 8:49 pm

Sorry for bumping the post, but i am running the latest raspbian (2014-06-20-wheezy-raspbian) and still getting this problem.

Followed simonmcc's instructions to clear the firmware package and re-install it worked perfectly. Thanks!

Return to “Troubleshooting”