Skip to content

Instantly share code, notes, and snippets.

@huafu
Created June 16, 2015 01:32
Show Gist options
  • Select an option

  • Save huafu/b34ad7062dc7f09cd80b to your computer and use it in GitHub Desktop.

Select an option

Save huafu/b34ad7062dc7f09cd80b to your computer and use it in GitHub Desktop.
Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter not recognized as a wifi card in OpenWrt 15.05-r2 on a RaspBerry B+

I have a fresh install of OpenWrt 15.05-rc2 on a RaspBerry B+

root@bnh-traveller:~# uname -a
Linux bnh-traveller 3.18.11 #1 Mon May 18 21:56:20 CEST 2015 armv6l GNU/Linux

I have already installed required packages with success

root@bnh-traveller:~# opkg install kmod-rt2800-lib kmod-rt2800-usb kmod-rt2x00-lib kmod-rt2x00-usb  
Package kmod-rt2800-lib (3.18.14+2015-03-09-3) installed in root is up to date.
Package kmod-rt2800-usb (3.18.14+2015-03-09-3) installed in root is up to date.
Package kmod-rt2x00-lib (3.18.14+2015-03-09-3) installed in root is up to date.
Package kmod-rt2x00-usb (3.18.14+2015-03-09-3) installed in root is up to date.

Here is my USB wifi device:

root@bnh-traveller:~# lsusb 
Bus 001 Device 005: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter

But no wireless extension recognize after a reboot

root@bnh-traveller:~# iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

br-lan    no wireless extensions.

Tho the kernel recognize my USB wifi card...

[  500.821888] usb 1-1.3: USB disconnect, device number 5
[  506.176242] usb 1-1.3: new high-speed USB device number 6 using dwc_otg
[  506.303676] usb 1-1.3: New USB device found, idVendor=148f, idProduct=3070
[  506.312046] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  506.320858] usb 1-1.3: Product: 802.11 n WLAN
[  506.326715] usb 1-1.3: Manufacturer: Ralink
[  506.332343] usb 1-1.3: SerialNumber: 1.0

I have done the extact same setup on a TL-WR842ND with same OpenWrt version and same packages, and it is recognized correctly and I could use it as a wifi usb dongle.

@huan

huan commented Apr 13, 2017

Copy link
Copy Markdown

+1

@0xmtn

0xmtn commented May 16, 2019

Copy link
Copy Markdown

@huafu; Could you managed to get it work?

@huafu

huafu commented May 23, 2019

Copy link
Copy Markdown
Author

@0xmtn that was long time ago I guess I managed to make it work somehow, maybe with latest updates, or it was a USB power issue

@kekneus373

Copy link
Copy Markdown

Solved

Ikr it's an ancient topic but for those who still stumbles across this, I actually managed to get Ralink RT3070 working in OpenWRT 25.12.4. Here's what I did:

  1. Install (add) following packages: kmod-cfg80211 kmod-mac80211 kmod-rt2800-usb kmod-rt2800-lib rt2800-usb-firmware hostapd-mbedtls hostapd-utils usbutils (I believe that's all)
    • Because Ralink RT3070 adapters use rt2800usb driver, you don't need rt2x00!
  2. Reboot for resetting interface names (mine did change)
  3. Go to Network → Wireless
  4. Activate default OpenWrt SSID under Generic MAC80211 802.11b/g/n
  5. Try connecting - should work very well

BTW, I built a custom image so I added all the required stuff right aaway.
Also, a good source for more help: https://kb.protectli.com/kb/how-to-configure-protectli-wifi-kit-wap01k-in-openwrt-on-the-vault/

Hope that helps!1111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment