Author Topic: Ralink RT2870 based USB Wireless N adapters (Ubuntu)  (Read 137651 times)

0 Members and 1 Guest are viewing this topic.

Offline fishfinger

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #195 on: January 21, 2013, 05:51:11 pm »
I have problem with ASUS n-11 USB, instal driver was successful (make and install - no error) but nothing happen when i put wifi in USB.

ubuntu 12.04

Code: [Select]
sudo lsmod | grep rt28
rt2870sta             570836  0
mediacenter@mediacenter-xbmc:~$

Code: [Select]
iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

Code: [Select]
sudo lshw -C network
  *-network               
       description: Ethernet interface
       product: RTL8111/8168B PCI Express Gigabit Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: eth0
       version: 03
       serial: 20:cf:30:f2:df:c6
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8168d-2.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:41 ioport:e800(size=256) memory:f8fff000-f8ffffff memory:f8ff8000-f8ffbfff memory:fbff0000-fbffffff

Code: [Select]
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 15d9:0a4c Trust International B.V. USB+PS/2 Optical Mouse
Bus 002 Device 002: ID 14cd:6600 Super Top USB 2.0 IDE DEVICE
Bus 002 Device 003: ID 1058:0706 Western Digital Technologies, Inc.
Bus 004 Device 002: ID 0bc7:0006 X10 Wireless Technology, Inc. Wireless Transceiver (ACPI-compliant)
Bus 002 Device 007: ID 1761:0b05 ASUSTek Computer, Inc. (wrong ID) 802.11n Network Adapter (wrong ID - swapped vendor and device)

What`s  wrong?

Offline Mad Penguin

  • #Mad_Penguin_UK
  • Administrator
  • Hero Member
  • *****
  • Posts: 1327
  • Karma: 10017
  • Gender: Male
    • View Profile
    • Linux in the UK
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #196 on: January 21, 2013, 05:58:10 pm »
Mmm, it's looking a bit like that driver doesn't support your particular network card ... however;

Take a look at;

Code: [Select]
common/rtusb_dev_id.c
Try adding;

Code: [Select]
{USB_DEVICE(0x1761,0x0B05)}, 
To the list of recognised devices, then recompile, rmmod, insmod, and try again ...

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14306
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #197 on: January 21, 2013, 06:05:33 pm »
Any particular reason you're not using rt2800usb which contains that VENDOR:DEVICE ID string:-

Quote
alias:          usb:v1761p0B05d*dc*dsc*dp*ic*isc*ip*

What happens if you run:
Code: [Select]
sudo modprobe -r rt2870sta
then
Code: [Select]
sudo modprobe rt2800usb

Does Wireless spring to life ?
« Last Edit: January 21, 2013, 06:15:45 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline fishfinger

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #198 on: January 21, 2013, 08:29:05 pm »
Quote
Take a look at;

Code: [Select]

common/rtusb_dev_id.c

Try adding;

Code: [Select]

{USB_DEVICE(0x1761,0x0B05)},

To the list of recognised devices, then recompile, rmmod, insmod, and try again ...

BIG THX - asus n-11 USB - its live



Quote
Any particular reason you're not using rt2800usb which contains that VENDOR:DEVICE ID string:-
wifi is suspended after 20 minutes and I have to reset the device to re-work...

Offline Cataleyo

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #199 on: April 29, 2014, 06:27:06 pm »
Hello,
I try to install a rt2870sta driver a 4th day (I am newbie in Linux) and its still not working, fully desperated I decided to ask you whats wrong. I read steps written here but nothing helped me. This is output what i get

Code: [Select]
root@cataleyo:/home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1# make && make install
make -C tools
make[1]: Entering directory `/home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools'
/home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1/tools/bin2h
cp -f os/linux/Makefile.6 /home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/Makefile
make -C /lib/modules/2.6.32-25-generic/build SUBDIRS=/home/cataleyo/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux modules
make: *** /lib/modules/2.6.32-25-generic/build: No such file or directory.  Stop.
make: *** [LINUX] Error 2

uname -a output:
Code: [Select]
Linux cataleyo 2.6.32-25-generic #44-Ubuntu i686 GNU/Linux


its NodeZero linux

I was trying this drivers:
2009_0302_RT2870_Linux_STA_v2.1.0.0
2010_0709_RT2870_Linux_STA_v2.4.0.1

also tried this commands to edit:
Code: [Select]
make clean
find . -name \*.[ch] -exec grep usb_buffer_alloc "{}" ";" -exec sed -i 's/usb_buffer_alloc/usb_alloc_coherent/g' "{}" ";"
find . -name \*.[ch] -exec grep usb_buffer_free "{}" ";" -exec sed -i 's/usb_buffer_free/usb_free_coherent/g' "{}" ";"

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14306
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #200 on: April 29, 2014, 06:41:59 pm »
This line:
make: *** /lib/modules/2.6.32-25-generic/build: No such file or directory.  Stop.
suggests you don't have the kernel headers for your kernel installed

Run a full system update.

then REBOOT

then make sure you have build-essential and linux-headers-generic installed:
Code: [Select]
sudo apt-get install build-essential linux-headers-generic
any errors from that command, post them here .. if not, carry on below

then try building 2.4.0.1 again without making any edits
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Cataleyo

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #201 on: May 01, 2014, 02:01:40 pm »
system update was smoothly, driver install also I did all steps without the edit section and after reboot the output from iwconfig was:

Code: [Select]
cataleyo@cataleyo:~$ iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

vboxnet0  no wireless extensions.

pan0      no wireless extensions.

wlan1     IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

and lsmod
Code: [Select]
sudo lsmod | grep rt28  
rt2800usb              31531  0
rt2x00usb               9639  1 rt2800usb
rt2x00lib              27573  2 rt2800usb,rt2x00usb
crc_ccitt               1339  1 rt2800usb
rt2870sta             556845  0

but I cant see any networks, I tried network manager and also the airodump-ng with monitoring mode

but after edit of blacklist.conf by rt2800usb output is
rt2870sta             556845  0

and iwconfig

Code: [Select]
iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

vboxnet0  no wireless extensions.

pan0      no wireless extensions.

Code: [Select]
sudo lshw -C network 
  *-network UNCLAIMED     
       description: Network controller
       product: Broadcom Corporation
       vendor: Broadcom Corporation
       physical id: 0
       bus info: pci@0000:07:00.0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:80400000-80403fff
  *-network
       description: Ethernet interface
       product: AR8131 Gigabit Ethernet
       vendor: Atheros Communications
       physical id: 0
       bus info: pci@0000:09:00.0
       logical name: eth0
       version: c0
       serial: c8:0a:a9:c6:81:7e
       capacity: 1GB/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=atl1c driverversion=1.0.0.1-NAPI firmware=N/A latency=0 link=no multicast=yes port=twisted pair
       resources: irq:29 memory:80800000-8083ffff ioport:4000(size=128)
  *-network DISABLED
       description: Ethernet interface
       physical id: 2
       logical name: vboxnet0
       serial: 0a:00:27:00:00:00
       capabilities: ethernet physical
       configuration: broadcast=yes multicast=yes
« Last Edit: May 01, 2014, 03:02:38 pm by Cataleyo »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14306
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #202 on: May 01, 2014, 04:12:01 pm »
Erm .. I'm not sure you need the Ralink drivers at all .. you seem to have a Broadcom adapter

What's the output from:
Code: [Select]
lsusb
and
Code: [Select]
lspci -vnn | grep -i net
?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Cataleyo

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #203 on: May 01, 2014, 04:46:22 pm »
yes I have Broadcom also, but working on ralink first bc. of distance to acess point

Code: [Select]
lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 0489:e011 Foxconn / Hon Hai
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 148f:3070 Ralink Technology, Corp.
Bus 002 Device 003: ID 04f2:b044 Chicony Electronics Co., Ltd
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: [Select]
lspci -vnn | grep -i net
07:00.0 Network controller [0280]: Broadcom Corporation Device [14e4:4357] (rev 01)
09:00.0 Ethernet controller [0200]: Atheros Communications AR8131 Gigabit Ethernet [1969:1063] (rev c0)

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14306
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #204 on: May 01, 2014, 05:08:11 pm »
Your adapter requires the rt3070sta driver, not rt2870sta

With an active (wired) internet connection run these commands in sequence:
Code: [Select]
mkdir ~/rt3070sta
then
Code: [Select]
cd ~/rt3070sta
then
Code: [Select]
wget https://dl.dropboxusercontent.com/u/11876059/2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO.tar.bz2
then
Code: [Select]
tar xjvf 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO.tar.bz2
then
Code: [Select]
cd ~/rt3070sta/2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO
then
Code: [Select]
sudo su
then
Code: [Select]
make
then
Code: [Select]
make install
then
Code: [Select]
exit
then
Code: [Select]
sudo modprobe -r rt2870sta
then
Code: [Select]
sudo modprobe rt3070sta
did wireless spring to life ?
« Last Edit: May 01, 2014, 05:10:30 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Cataleyo

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #205 on: May 01, 2014, 05:46:16 pm »
many thanks to you, wifi working well :)

ps. just dont got it why producer gives 2870 driver for this card :D

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 14306
  • Karma: 357
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #206 on: May 01, 2014, 06:48:40 pm »
You're most welcome :)
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline aspivak

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #207 on: May 09, 2014, 12:33:35 am »
Hi friends just made all the steps didn't worked for me

running Kali on vmware

my lsusb
Quote
Bus 001 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 0e0f:0008 VMware, Inc.
lspci -vnn | grep -i net
Quote
02:01.0 Ethernet controller [0200]: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) [8086:100f] (rev 01)

iwconfig
Quote
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on




got some errors after running make


Quote
make -C tools
make[1]: Entering directory `/root/RT3070/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/root/RT3070/tools'
/root/RT3070/tools/bin2h
cp -f os/linux/Makefile.6 /root/RT3070/os/linux/Makefile
make -C /lib/modules/3.12-kali1-amd64/build SUBDIRS=/root/RT3070/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.12-kali1-amd64'
  CC [M]  /root/RT3070/os/linux/../../os/linux/rt_linux.o
/root/RT3070/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:
/root/RT3070/os/linux/../../os/linux/rt_linux.c:498:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
In file included from /usr/src/linux-headers-3.12-kali1-common/arch/x86/include/asm/string.h:4:0,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/string.h:17,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/dynamic_debug.h:111,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/kernel.h:14,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/cache.h:4,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/time.h:4,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/stat.h:18,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/module.h:10,
                 from /root/RT3070/include/os/rt_linux.h:31,
                 from /root/RT3070/include/rtmp_os.h:44,
                 from /root/RT3070/include/rtmp_comm.h:60,
                 from /root/RT3070/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.12-kali1-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
/root/RT3070/os/linux/../../os/linux/rt_linux.c:500:3: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast [enabled by default]
In file included from /usr/src/linux-headers-3.12-kali1-common/arch/x86/include/asm/string.h:4:0,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/string.h:17,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/dynamic_debug.h:111,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/kernel.h:14,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/cache.h:4,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/time.h:4,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/stat.h:18,
                 from /usr/src/linux-headers-3.12-kali1-common/include/linux/module.h:10,
                 from /root/RT3070/include/os/rt_linux.h:31,
                 from /root/RT3070/include/rtmp_os.h:44,
                 from /root/RT3070/include/rtmp_comm.h:60,
                 from /root/RT3070/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.12-kali1-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
/root/RT3070/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:
/root/RT3070/os/linux/../../os/linux/rt_linux.c:652:20: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/RT3070/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsPktInit’:
/root/RT3070/os/linux/../../os/linux/rt_linux.c:671:2: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/RT3070/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:
/root/RT3070/os/linux/../../os/linux/rt_linux.c:698:15: warning: assignment makes integer from pointer without a cast [enabled by default]
/root/RT3070/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/root/RT3070/os/linux/../../os/linux/rt_linux.c:1126:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
/root/RT3070/os/linux/../../os/linux/rt_linux.c:1127:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
make[4]: *** [/root/RT3070/os/linux/../../os/linux/rt_linux.o] Error 1
make[3]: *** [_module_/root/RT3070/os/linux] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.12-kali1-amd64'
make: *** [LINUX] Error 2

Offline chemicalfan

  • Hero Member
  • *****
  • Posts: 828
  • Karma: 29
  • Gender: Male
  • I've been here a little while!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #208 on: May 09, 2014, 08:56:51 am »
Don't know why make failed, but the procedure will be different for a VM.
What is the host CPU & OS? Do you have the guest extensions installed (if applicable - I'm only familar with Virtualbox myself)?

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal