Tuesday, 31 July 2012

My Hell With RT5370!

Online Cashback


Every had that one technical problem that you have tried everything you can think of but just can not get it to damm work well this past week has been my hell for the raspberry pi and the RT5370 wireless adapter.

ONLY TESTED ON RASPXBMC

1. - The package firmware-ralink from the Debian Squeeze install doesn't work - it doesn't contain the right firmware.


2 - Copy and paste

sudo wget http://ftp.uk.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-ralink_0.28+squeeze1_all.deb


3. - INSTALL THE FIRMWARE

CODE
sudo dpkg --install firmware-ralink_0.28+squeeze1_all.deb
4. -  reverse the comments in sources.list so that you put it back to squeeze and run apt-get update for good measure.

5. Install package wpasupplicant & usb utils and wireless tools for lsusb and iwconfig
CODE
sudo apt-get install wpasupplicant usbutils wireless-tools

6. Create a config file:

CODE
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

with the following content - dont forget to change the SSID to your wireless network name and the PSK to your wireless password

CODE
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

network={
  ssid="network_id"
  psk="password"
  proto=WPA
  key_mgmt=WPA-PSK
  pairwise=TKIP
  group=TKIP
  id_str="Nickname"
}

NOTE: The critical change (for WPA-PSK) I had to make from those advised elsewhere was to change "proto=RSN" to "proto=WPA"

7. Modify the interfaces file:

CODE
sudo nano /etc/network/interfaces

to use the wpa configuration, like:

CODE
auto wlan0
  iface wlan0 inet dhcp
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

8 Then restart the interface:

CODE
sudo /etc/init.d/networking restart
If you get any failures please type  mkdir -p /var/run/network  and then do


CODE
sudo /etc/init.d/networking restart
This correctly obtained an IP address from the DHCP server and worked for me :)

Online Cashback


9 comments:

  1. Cheers for doing all the hard work!!

    Ebay is saturated with the RT5370 chipset Wifi adaptors at low cost but I didn't want to buy without knowing if I could get it to work. So thanks to you, i'm going to buy one of these bad-boys!

    Many Thanks
    Brad

    ReplyDelete
  2. Thank you very much! I bought a cheap RT5370 on ebay and after spending hours trying to get it going. I found your website and after following your instructions, I had wifi working within minutes!!

    Cheers

    ReplyDelete
  3. Thanks for sharing this, very detailed how to. Any tips on how to configure WPA2-PSK[AES] on wpa_supplicant.conf? (tried a few different configurations without success).

    Cheers
    Igor

    ReplyDelete
  4. I was really excited to se that you hade the same chipset issues. I cannot get it to work however.

    network restart gives:
    Cannot find device "wlan0"
    Bind socket to interface: No such device
    Failed to bring up wlan0.
    done.

    lsusb shows:
    Bus 001 Device 007: ID 2001:3c15 D-Link Corp.

    dmesg:

    generic-usb 0003:2101:8501.0003: hiddev0: USB HID v1.11 Device [Action Star USB HID] on usb-bcm2708_usb-1.2.1/input0
    usb 1-1.2.2: new high-speed USB device number 7 using dwc_otg
    usb 1-1.2.2: New USB device found, idVendor=2001, idProduct=3c15
    usb 1-1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 1-1.2.2: Product: 11n Adapter
    usb 1-1.2.2: Manufacturer: D-Link
    usb 1-1.2.2: SerialNumber: 1.0
    bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k)
    bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k)



    Any ideas?
    Seems like it is not picking up the correct driver. The card i use is a D-Link DWA-140 rev B3

    ReplyDelete
  5. I can't get mine to work on wheezy. If I install the firmware link above the drivers complain that they don't support the chip set. If I apt-get install firmware-ralink then I don't get complaints. wlan0 is created, but I can activate it.

    Yet to find out what's really wrong.

    Richard

    ReplyDelete
  6. My RT5370 adapter is working without any problem, no problems with installing this adapter on Raspbmc what so ever.

    What did i do:
    - download the latest version of Raspbmc
    - isntall the program-add on "Network-Manager"
    - run the program "Network-Manager" and configure your Wifi network with just a few mouse clicks.

    ReplyDelete
  7. cant get mine to detect either I have 3 of these adapters.

    ReplyDelete
  8. latest raspbian seems to work now for this

    ReplyDelete
  9. Thanks!
    Using a WiPi dongle from Element14 - worked with Openelec 3.2.2, but not with the latest Raspbian from NOOBS v1.3 :0

    Your Blog saved me.

    ReplyDelete

Amazon

Donate

Donate Towards More Raspberry PI's for Projects