uname -r
sudo lsmod | grep rt28
sudo gedit /etc/modprobe.d/blacklist.conf
sudo apt-get update && sudo apt-get install build-essential linux-headers-generic
make[2]: *** [/home/mark/Desktop/RT2870/os/linux/../../common/cmm_mac_usb.o] Error 1
make[1]: *** [_module_/home/mark/Desktop/RT2870/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-27-generic'
make: *** [LINUX] Error 2
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' "{}" ";"
sudo su
make && make install
modprobe rt2870sta
exit
iwconfig
ra0 RT2870 Wireless ESSID:"" Nickname:"RT2870STA"
Mode:Managed Frequency=2.412 GHz Access Point:
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=100/100 Signal level:-29 dBm Noise level:-71 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
sudo sh -c 'echo rt2870sta >> /etc/modules'
sudo gedit /etc/Wireless/RT2870STA/RT2870STA.dat
cd ~
wget -O 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 "http://bit.ly/eZHx0J"
tar -jxvf 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2
cd ~/2010_0709_RT2870_Linux_STA_v2.4.0.1
sudo su
make && make install
man tar
man make
man modprobe
sudo lshw -C network
This, as you may have guessed is all information related to my onboard network adapter which I can visually confirm is not what connects me to the Internet. Never has been, never will, and I forgot about it until now. I have had to use my windows OS to sign onto the internet
sudo apt-get update && sudo apt-get install build-essential linux-headers-generic
dmesg | tail -n 15
sudo lshw -C network
lsusb
lsusb
lsusb
cd ~
tar -xjvf Noobuntu.tar.bz2
sudo su
cd /home/username/2010_0709_RT2870_Linux_STA_v2.4.0.1
make
make install
modprobe rt2870sta
exit
iwconfig
sudo sh -c 'echo rt2870sta >> /etc/modules'
lsmod
iwconfig
sudo gedit /etc/modules
cd ~
tar -xjvf 2011_0427_RT3572_Linux_STA_v2.5.0.0.tar.bz2
sudo su
cd /home/username/2011_0427_RT3572_Linux_STA_v2.5.0.0
make
make install
modprobe rt3572sta
exit
iwconfig
sudo sh -c 'echo rt3572sta >> /etc/modules'
cd ~
tar -xjvf RT3572_Linux_STA_v2.5.0.0.tar.bz2
sudo su
cd /home/username/RT3572_Linux_STA_v2.5.0.0
make
make install
modprobe rt3572sta
exit
iwconfig
sudo sh -c 'echo rt3572sta >> /etc/modules'
sudo lshw -C network
lsusb
lspci -nn
[email protected]:~$ sudo lshw -C network
[sudo] password for sebastien:
*-network
description: Ethernet interface
product: RTL-8139/8139C/8139C+
vendor: Realtek Semiconductor Co., Ltd.
physical id: f
bus info: [email protected]:02:0f.0
logical name: eth0
version: 10
serial: 00:0e:a6:39:81:f4
size: 10MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=half latency=64 link=no maxlatency=64 mingnt=32 multicast=yes port=MII speed=10MB/s
resources: irq:19 ioport:b400(size=256) memory:feaef400-feaef4ff
*-network
description: Wireless interface
physical id: 1
logical name: ra0
serial: 00:08:d3:44:aa:4f
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=RALINK WLAN driverversion=2.4.0.0 ip=192.168.1.5 multicast=yes wireless=Ralink STA
[email protected]:~$ lsusb
Bus 005 Device 003: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
Bus 005 Device 002: ID 03f0:040c Hewlett-Packard
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 002: ID 058f:9254 Alcor Micro Corp. Hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 04f2:0111 Chicony Electronics Co., Ltd KU-9908 Keyboard
Bus 002 Device 002: ID 046d:c040 Logitech, Inc. Corded Tilt-Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 008: ID 054c:0243 Sony Corp. MicroVault Flash Drive
Bus 001 Device 005: ID 06f8:e030 Guillemot Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
EDIT: I've read about that in some forums and it appeared that only the HWNUm-300 worked with the RTL8192SU driver but you're probably right... But now my wireless adaptater works with your pre-modified driver! I just wrote in ./common/rt_dev_id.c "{USB_DEVICE(0x06f8:0xe030)}, /*HWNU-300/*" to make my wireless adpatater recognized.
Thank you for your driver, if i have a problem i will try the RTL8182SU driver :)
Thank you!
lsusb
sudo lshw -C network
iwconfig
WARNING: modpost: missing MODULE_LICENSE() in /home/user/2011_0225_RT5370_RT5372_Linux_STA_V2.5.0.1_DPO/os/linux/rt5370sta.o
see include/linux/module.h for more information
If the lsusb reports the Device ID as ID 148f:3070 Ralink Technology, Corp .. Then you DO need the RT3070 driver... you can download a pre-modified version here:
http://dl.dropbox.com/u/11876059/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO.tar.bz2 ([url]http://http://dl.dropbox.com/u/11876059/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO.tar.bz2[/url])
(pre-modified = WPA(2) enabled) the above driver should compile properly in 2.6.38, as long as you have the headers and build-essential installed
also, make sure rt2870sta is NOT blacklisted.
But you *may* have to blacklist rt2800usb
sudo su
make && make install
lsusb
sudo lshw -C network
iwconfig
nm-tool
lsmod
sudo rfkill list
*-network DISABLED
configuration: broadcast=yes driver=rt2800usb driverversion=2.6.35-30-generic-pae
*-network DISABLED
description: Wireless interface
physical id: 1
bus info: [email protected]:1
logical name: wlan1
serial: 00:1f:1f:87:e1:61
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rt2800usb driverversion=2.6.35-30-generic-pae firmware=N/A link=yes multicast=yes wireless=IEEE 802.11bgn
sudo ifup wlan1
cd ~
dpkg --get-selections >> paackag_list
dpkg --get-selections | grep backports
sudo modprobe -r rt2870sta
sudo modprobe rt5370sta
lsmod | grep rt
sudo lshw -C network
sudo ifdown -v ra0
sudo ifup -v ra0
wpa_supplicant -Dwext -ira0 -c /etc/wpa_supplicant.conf -dd
wpa_supplicant -Dralink -ira0 -c /etc/wpa_supplicant.conf -dd
wpa_passphrase NetworkEssid your_passphrase
network={
ssid="NetworkEssid"
#psk="your_passphrase"
psk=559cb7c92c036b711ccdb40514c57b33c58372e7df912fc5f36a9f05a04d98ab
auto ra0
iface ra0 inet static
address 10.0.0.19
netmask 255.255.255.0
gateway 10.0.0.140
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ap_scan=2
#eapol_version=1
#fast_reauth=1
network={
ssid="NetworkEssid"
proto=WPA2 WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
#psk="your_passphrase"
psk=559cb7c92c036b711ccdb40514c57b33c58372e7df912fc5f36a9f05a04d98ab
}
wpa_supplicant -Dwext -ira0 -c /etc/wpa_supplicant.conf -dd
[ 26.644532] BUG: unable to handle kernel paging request at 2982b000
[ 26.644673] IP: [<f85ef5af>] MainVirtualIF_open+0x4f/0x120 [rt2870sta]
[ 26.644812] *pdpt = 0000000025db7001 *pde = 0000000000000000
[ 26.644939] Oops: 0002 [#1] SMP
[ 26.645033] last sysfs file: /sys/module/snd_seq_device/initstate
[ 26.645083] Modules linked in: iptable_filter snd_seq_midi_event iptable_mangle iptable_nat snd_seq nf_nat nf_conntrack_ipv4 snd_timer nf_conntrack snd_seq_device nf_defrag_ipv4 usbhid btusb ip_tables psmouse snd bluetooth x_tables hid serio_raw usblp soundcore snd_page_alloc shpchp sis_agp video rt2870sta lp parport usb_storage uas r8169 sata_sis
[ 26.646131]
[ 26.646169] Pid: 661, comm: wpa_supplicant Not tainted 2.6.38-9-generic-pae #43-Ubuntu To Be Filled By O.E.M. To Be Filled By O.E.M./To be filled by O.E.M.
[ 26.646374] EIP: 0060:[<f85ef5af>] EFLAGS: 00010293 CPU: 0
[ 26.646447] EIP is at MainVirtualIF_open+0x4f/0x120 [rt2870sta]
[ 26.646494] EAX: f3bd8000 EBX: f4a1c000 ECX: f84e4104 EDX: 00000292
[ 26.646542] ESI: f84e4000 EDI: f8405000 EBP: e509fe60 ESP: e509fe4c
[ 26.646590] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 26.646637] Process wpa_supplicant (pid: 661, ti=e509e000 task=e5f96500 task.ti=e509e000)
[ 26.646689] Stack:
[ 26.646723] c1107c58 2e1c1025 f4a1c000 f4a1c048 f8405000 e509fe80 c145a22b e509fe70
[ 26.646991] c1531be6 e509fe80 f4a1c000 00001003 00000000 e509fea8 c145a4a2 00000001
[ 26.647273] c178f8c0 bfb2620c 00001002 00000001 f4a1c000 bfb2620c 00001002 e509febc
[ 26.647567] Call Trace:
[ 26.647627] [<c1107c58>] ? __do_fault+0x418/0x520
[ 26.647698] [<c145a22b>] __dev_open+0x9b/0xf0
[ 26.647758] [<c1531be6>] ? _raw_spin_unlock_bh+0x16/0x20
[ 26.647819] [<c145a4a2>] __dev_change_flags+0x82/0x150
[ 26.647879] [<c145a613>] dev_change_flags+0x23/0x60
[ 26.647939] [<c14b0c04>] devinet_ioctl+0x624/0x680
[ 26.647999] [<c1287782>] ? copy_to_user+0x42/0x60
[ 26.648064] [<c14b15b5>] inet_ioctl+0x95/0xb0
[ 26.648123] [<c1445eed>] sock_ioctl+0x6d/0x290
[ 26.648180] [<c1445e80>] ? sock_ioctl+0x0/0x290
[ 26.648241] [<c1141eeb>] do_vfs_ioctl+0x7b/0x2e0
[ 26.648300] [<c11421d7>] sys_ioctl+0x87/0x90
[ 26.648358] [<c1131025>] ? sys_close+0x75/0xd0
[ 26.648418] [<c100ab5f>] sysenter_do_call+0x12/0x28
[ 26.648465] Code: f4 8b 75 f8 8b 7d fc 89 ec 5d c3 90 8b 46 08 85 c0 74 59 83 c0 01 89 46 08 83 3d 00 9f 61 f8 02 0f 84 a8 00 00 00 a1 70 a0 61 f8 <64> ff 00 a1 7c e9 7b c1 85 c0 75 6e 8b 83 00 02 00 00 f0 80 60
[ 26.648465] EIP: [<f85ef5af>] MainVirtualIF_open+0x4f/0x120 [rt2870sta] SS:ESP 0068:e509fe4c
[ 26.648465] CR2: 000000002982b000
[ 26.650653] ---[ end trace 25b99e8aa091c880 ]---
ctrl_interface=/var/run/wpa_supplicant
ap_scan=2
#eapol_version=1
#fast_reauth=1
network={
ssid="NetworkEssid"
proto=WPA2 WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="your_passphrase_in_plain_text_here"
}
wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf -d
iwlist wlan0 scanning
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RSN: received GTK in pairwise handshake - hexdump(len=34): [REMOVED]
WPA: Unsupported CCMP Group Cipher key length 32 (32).
RSN: Failed to install GTK
RSN: Failed to configure GTK
wpa_driver_wext_deauthenticate
cd ~
dmesg >> dmesg.txt
zip dmesg.zip dmesg.txt
new full speed USB device using uhci_hcd and address 3
lsusb
sudo lshw -C network
rt73.bin
rt2561.bin
rt2561s.bin
rt2661.bin
rt2860.bin
rt2870.bin
rt3070.bin <--- now replaced by a symlink
rt3071.bin
rt3090.bin <--- symlink
wpa_supplicant -v
sudo apt-get -v wpa_supplicant
I've a hunch that this might be due to the AP being hidden.
wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf -d
iwlist wlan0 scanning
Yeh sure... I'm quite happy to keep looking for a WPA2 solution, I too hate being beaten ;)
Excellent observation...
Oddly enough after going through that with Michael, I was going to suggest a firmware update, and the latest drivers... maybe there is some kind of mismatch going on.
You mean a mismatch concerning what exactly?
I also wonder if there is a later version of wpa_supplicant than the Maverick version... which version do you have:Code: [Select]wpa_supplicant -v
That gives: v0.6.10
and for the Ubuntu package version:Code: [Select]sudo apt-get -v wpa_supplicant
That's not going to work as expected. Apt only displays information about itself.
According to aptitude the version in the repositories is v0.6.10-2 being the same version as the one installed.
According to the website of wpasupplicant (http://w1.fi/wpa_supplicant ([url]http://http://w1.fi/wpa_supplicant[/url])) there is a new version 0.7.3. but that one hasn't made it into the repository apparently.QuoteI've a hunch that this might be due to the AP being hidden.
AFAIK the only way to be sure where the connection is failing would be to run:Code: [Select]wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf -d
That's what is in the attachment of the post of July 16, 2011, 01:10:46 am.
andCode: [Select]iwlist wlan0 scanning
Finds the correct MAC-address but fails to detect the SSID.
BTW, I wouldn't worry too much about the lights, I've got a PCMCIA card in an old laptop that flashes both the power and RX/TX lights very oddly in Linux (fine in Windows), but connects perfectly and has done for a year + .. both lights flash twice, then there's a gap, then they flash twice again... rinse and repeat.
So far the connection is still going strong without interruption. I guess this random blinking now represents the real activity while the earlier observed continuous blinking was in fact the odd behavior.
B.T.W.: in the older kernel there used to be frequent messages on the screen (but not in the logs) about a certain IOCTL error. That issue has stopped now either. Probably the connection in the old kernel was not so perfect after all.
I'll have a search for CCMP key length problems/solutions in the morning.
Did this result in new information?
dpkg --status wpasupplicant
AFAIK the only way to be sure where the connection is failing would be to run:Code: [Select]wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf -d
Did this result in new information?
lsmod
wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
wpa_supplicant -Dralink -iwlan0 -c wpa_supplicant.conf -d
If you look in the recent firmware... rt3070 is just a symlink to rt2870, so I'm guessing it's similar with the more recent driver module.
So I guess if you force the loading of rt3070, it still loads rt2870... though I would have expected blacklisting BOTH would have killed the connection :o
I would have guessed that too, but it is not.
So are you sayiing that if you:
blacklist rt2800usb
blacklist rt2800lib
blacklist rt2x00usb
blacklist rt2x00lib
blacklist rt2870sta
blacklist rt3070sta
the connection STILL comes up, and loads rt2870sta ? .. if so, what is the output fromCode: [Select]lsmod
Yes indeed, that's what I said. In fact I'm running it now with all these items blacklisted and I do still have a nice WPA2 encrypted wireless connection.
The relevant part of the output from lsmod is:
xt_multiport 1577 2
parport_pc 26378 0
x_tables 15921 10 xt_multiport,iptable_nat,iptable_mangle,xt_limit,ipt_LOG,xt_recent,xt_state,xt_tcpudp,iptable_filter,ip_tables
rt2870sta 406818 1
agpgart 32075 1 sis_agp
crc_ccitt 1351 1 rt2870sta
parport 31492 3 parport_pc,ppdev,lp
It may give a clue as to what is loading rt2870sta
Strange, and a little disappointing that the driver/kernel/firmware/wpa_supplicant can't handle a router set to mixed mode ::)
Well, I've found multiple claims on the internet that Ralink adapters and mixed mode means trouble. As far as I can see these claims are quite valid.
Thanks for letting us know that though... I'm sure someone will benefit from the info ;)
You're most welcome.
It would be interesting to know if this is specific to the combination of your wireless card and router, or if it is a more general problem with ANY card and ANY router set to mixed mode.
Are you now considering the issue unresolvable, or are you still experimenting ?
Actually I consider the issue as solved.
When I started participating in this thread the issue was kernel 2.6.31 being able to connect to a WPA2 encrypted wireless network and kernel 2.6.35 not being able to connect at all.
Later we managed to get kernel 2.6.35 to connect to a WPA encrypted wireless network and now I've found that 2.6.35 is able to connect to a WPA2 encrypted network provided that the network is not mixed mode. The only remaining difference is now that kernel 2.6.31 can connect regardless if the network is mixed mode while 2.6.35 needs a WPA2 only network but I can live with that "limitation".
Although my issue has been solved now, we can still work more things out if you like. I know what should be in my configuration so I can always restore that.
Judging by the rocketing number of views of this thread I guess there are certainly people who can benefit from it.
The past weeks at least I did learn a lot about this subject...
This seems to be one of the very few threads that really gives answers about issues with Ralink adapters and I guess we still have some answers to give, so let's try it. ;D
on another note...
Did you ever try setting 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n' in config.mk before compiling... then bringing the network up with:Code: [Select]orwpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
Code: [Select]wpa_supplicant -Dralink -iwlan0 -c wpa_supplicant.conf -d
Well, not exactly. As I stated in Reply #83 on: July 16, 2011, 01:10:46 am, I've decided to get rid of all previous attempts so at that time I've reinstalled kernel 2.6.35 without touching kernel 2.6.31.
So the 2.6.35 kernel now works with the standard components that are available in the kernel itself. Currently I don't use any additional drivers or the drivers you've provided and therefore I did not need to compile anything.
I'm still a bit bothered about why you're wlan0 rather than ra0 as a logical device... as far as I'm aware, the ralink drivers should give you ra0, ra1, etc.
Yes, I don't like that part too but it is like it is. The only option I can think of is that I probably did leave something behind that has survived the reinstall of the 2.6.35 kernel and that is responsible for the changed device name, but I can't imagine what it would be.
modinfo rt3070sta
Module Size Used by
rt2870sta 406818 1
crc_ccitt 1351 1 rt2870sta
Module Size Used by
rt2870sta 406818 0
crc_ccitt 1351 1 rt2870sta
grep -i RT28 /boot/config-$(uname -r)*
CONFIG_RT2800PCI=m
CONFIG_RT2800PCI_RT33XX=y
CONFIG_RT2800PCI_RT35XX=y
# CONFIG_RT2800PCI_RT53XX is not set
CONFIG_RT2800USB=m
CONFIG_RT2800USB_RT33XX=y
# CONFIG_RT2800USB_RT35XX is not set
CONFIG_RT2800USB_UNKNOWN=y <--- This maybe ?
CONFIG_RT2800_LIB=m
CONFIG_RT2860=m
CONFIG_RT2870=m
modinfo rt2870sta | grep v148Fp3070
Removing those 2 files should have automagically removed the entry from /sys/bus/usb/drivers/rt2870/new_id, as it appears it is "injected" at each boot only if those files are present.
OK, but is that new_id entry always present? Because in my Ubuntu desktop version there isn't a sys/bus/drivers folder at all.
[EDIT]
Hmm... just had an idea... if you've removed those files, is the driver now aware of your device ID string ?, or is rt2870sta somehow getting loaded for an "unknown" device as a default... in which case it would probably be unaware of the correct section of the firmware to load.
Well, I guess that's probably yes because it works in the older 2.6.31 which is the kernel that I did not experiment with and that one works pretty much out of the box.
Those two files don't exist in that older kernel.
I know this is only slightly related:
https://bugs.launchpad.net/ubuntu/+source/linux-firmware/+bug/762987
but it does point out that different sections of the firmware are used for different "devices".
It happens to be that user mrahk in that thread is... me!
I already said before that I mentioned the issue on launchpad and that the developers only suggested to file a bugreport...
In post #33 of that thread you can see that at that moment rt2870 was already loaded by something so it's not just an issue in kernel 2.6.35.
Adding the device ID to one of the installable drivers would be quite easy... and *should* leave you with ra0 rather than wlan0
[END EDIT]
I don't see any advantage in doing so. Post #10 in that launchpad thread reports also the name of interface as wlan0 so it happens more often.
But I'm still baffled where rt2870sta is being loaded, and why blacklisting has no effect... I know blacklist.conf will not stop drivers that are part of the kernel from being loaded, without updating initrd after blacklisting... so I'm afraid it's just a bit of an assumption on my part that the rt2870sta module is being loaded by something contained in initrd .. I'm not saying the module is itself "contained" in initrd, but your lsmod:QuoteModule Size Used by
rt2870sta 406818 1
crc_ccitt 1351 1 rt2870sta
seems to be saying rt2870sta is being used by one other module.
As far as I can remember, every lsmod I've seen it before read:QuoteModule Size Used by
rt2870sta 406818 0
crc_ccitt 1351 1 rt2870sta
OK, sometimes the rt2870sta module "size" varies depending on the version... but if I'm reading this correctly, something *appears* to be loading it as a dependency.
Yes I agree, it is loaded by something. B.T.W.: what does that size number mean? The rt2870sta module does not have that size (measured in bytes).
There definitely seems to be something rt2870 related in the kernel:Code: [Select]output on my system (11.04 desktop)=grep -i RT28 /boot/config-$(uname -r)*
QuoteCONFIG_RT2800PCI=m
CONFIG_RT2800PCI_RT33XX=y
CONFIG_RT2800PCI_RT35XX=y
# CONFIG_RT2800PCI_RT53XX is not set
CONFIG_RT2800USB=m
CONFIG_RT2800USB_RT33XX=y
# CONFIG_RT2800USB_RT35XX is not set
CONFIG_RT2800USB_UNKNOWN=y <--- This maybe ?
CONFIG_RT2800_LIB=m
CONFIG_RT2860=m
CONFIG_RT2870=m
On my Ubuntu Server the output is pretty much identical, the only difference is that RT33 is substituted by RT30 in my output and the lines are in a slightly different order.
That said, if there is no rt3070sta module, trying to load it seems somewhat pointess... I'll keep digging ;)
(see the EDIT above - I'm wondering if this is firmware "section" issue... ie. it's using the wrong section)
Did any of that make sense to you, or should I try to re-order my line of thought ?
I can follow your line of thought. No need to reorder them. However I assume the thoughts are preliminary and that you're going to elaborate anyway. Therefore I've added a few of my observations.
It is an interesting subject, that's for sure.
OK, this is a pure guess but see what you think anyway...
The parameter:
CONFIG_RT2800USB_UNKNOWN=y
says to the kernel, if an unknown RT2800USB device is encountered... load rt2800usb, but as that's blacklisted, rt2870(staging) is loaded instead as it's the most commonly used, and semi-works with most USB ralink devices.
So rt2870sta gets loaded before the blacklist.conf is read.
Sounds about right.
I guess the "m" in some of the above lines stand for "manual" configuration (as opposed to automatic configuration; the "y" option)?
As it's an "UNKNOWN" device (ie. the device ID is missing), rt2870sta uses the firmware section for RT2870 chipped cards, rather than the RT3070 section... which "semi" works with RT3070 chips
As I said, that it TOTAL speculation on my part... but it *may* explain things
So what I'm thinking is if we add your device ID to the most recent driver from ralink in the RT3070 section, and use the most recent firmware....
The device ID (148F:3070) is already in the RT3070 section if I recall it correctly. I did a test with kernel 2.6.35 with the firmware mentioned in the launchpad at that moment and it did not work.
It would be nice to know for SURE where rt2870sta is getting loaded, so I'm off to see if I can find a way to discover this ;)
OK, but is that new_id entry always present? Because in my Ubuntu desktop version there isn't a sys/bus/drivers folder at all.
sudo modprobe rt2870sta
I don't see any advantage in doing so. Post #10 in that launchpad thread reports also the name of interface as wlan0 so it happens more often.
B.T.W.: what does that size number mean?
The device ID (148F:3070) is already in the RT3070 section if I recall it correctly. I did a test with kernel 2.6.35 with the firmware mentioned in the launchpad at that moment and it did not work.
modinfo rt2870sta
sudo lshw -C network
Create a new file /etc/udev/rules.d/network_drivers.rules with this line in it:
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="148f", ATTR{idProduct}=="2870", RUN+="/sbin/modprobe -qba rt2870sta"
Create another new file /etc/modprobe.d/network_drivers.conf with this line in it:
install rt2870sta /sbin/modprobe –ignore-install rt2870sta $CMDLINE_OPTS; /bin/echo “148f 2870″ > /sys/bus/usb/drivers/rt2870/new_id
rt2800usb 31531 0
rt2x00usb 9703 1 rt2800usb
rt2x00lib 27509 2 rt2800usb,rt2x0
ra0: ERROR while getting interface flags: No such device
lo no wireless extensions.
eth0 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
Power Management:on
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 003: ID 413c:2106 Dell Computer Corp.
Bus 003 Device 002: ID 0461:4d81 Primax Electronics, Ltd
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 148f:2070 Ralink Technology, Corp.
Bus 001 Device 002: ID 0bda:0181 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
modinfo rt2800usb | grep 2070
modinfo rt2870sta | grep 2070
modinfo rt3070sta | grep 148f
sudo lshw -C network
alias: usb:v148Fp2070d*dc*dsc*dp*ic*isc*ip*
could not find module rt2800sta
ERROR: modinfo: could not find module rt3070sta
*-network
description: Ethernet interface
product: NetLink BCM57788 Gigabit Ethernet PCIe
vendor: Broadcom Corporation
physical id: 0
bus info: [email protected]:02:00.0
logical name: eth0
version: 01
serial: f0:4d:a2:e9:10:00
size: 10MB/s
capacity: 1GB/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.102 duplex=half firmware=sb latency=0 link=no multicast=yes port=MII speed=10MB/s
resources: irq:27 memory:febf0000-febfffff
*-network
description: Wireless interface
physical id: 1
logical name: wlan0
serial: 78:44:76:7f:75:d1
capabilities: ethernet physical wireless
configuration: broadcast=yes multicast=yes wireless=IEEE 802.11bgn
modinfo rt2870sta | grep 2070
QuoteOK, but is that new_id entry always present? Because in my Ubuntu desktop version there isn't a sys/bus/drivers folder at all.
<snip>
BTW, I'm assuming that was a typo... it should be /sys/bus/usb/drivers/rt2870
Yes and no... I meant of course the folder you mentioned. However I just looked at the wrong place searching for the folder I mentioned.
The correct folder is present even on a Ubuntu desktop...
Thanks for pointing this out.
<snip>
Post #10 in the launchpad thread is using the rt2800usb driver... NOT rt2870sta
So I still have a sneeking suspicion that rt2800usb is coming into play somewhere here... or that rt2870sta hasn't got the device ID string for your card compiled in.
It seems that rt2870sta indeed hasn't my device ID string compiled in. It is getting very strange now...
Here's the important bit (if you want to skip the rest)
What I think *may* be happening is the USB subsystem *is* aware of the device ID (from a previous driver compile/install) so is loading rt2870sta... but the driver (because it's now the default version) *isn't* aware of the device ID, or is using the wrong section or wrong version of the firmware.
Is there any way to verify this?
<snip>QuoteThe device ID (148F:3070) is already in the RT3070 section if I recall it correctly. I did a test with kernel 2.6.35 with the firmware mentioned in the launchpad at that moment and it did not work.
Yes, but didn't *I* add that device ID to the most recent drivers before you downloaded them from my dropbox ? ..
I don't recall that and I assume you didn't because if you did so that would mean that my device ID is not recognized by rt3070sta in its original state.
Why do you think then that rt3070sta is better suitable for my device than rt2870sta?
To be honest I'd rather get rid of those staging drivers and it would be very nice if one of the Ubuntu standard drivers would work. In the earlier mentioned launchpad thread the developers claim that the RaLink drivers are sort of inferior to the standard drivers and that they will never make it out of staging. It seems that in Natty they are removed all together.
and even if I didn't, they were never tested with the "latest" firmware were they ? (I don't mean the firmware mentioned in that thread, I mean the very latest firmware)
I've tested them with firmware 1.53 which was the newest at that time and it didn't work. If there's a newer firmware then that might be better.
ATM, I'm still trying to discover a way of being SURE where rt2870sta is being loaded...
Can you post the full output from:Code: [Select]please.modinfo rt2870sta
well, that is a very long list. I'll dump it in an attachment.
and confirm that:Code: [Select]says the wireless device is using rt2870sta rather than rt2800usbsudo lshw -C network
It displays:
*-network
description: Wireless interface
physical id: 1
logical name: wlan0
serial: 00:1f:1f:87:e1:61
capabilities: ethernet physical wireless
configuration: broadcast=yes ip=10.0.0.19 multicast=yes wireless=Ralink STA
also, check to see if either of those are included in /etc/initramfs-tools/modules
That file contains a few commented lines.
BTW, I don't know if it was a typo... but those 2 lines you originally added had the wrong ID string anyway:QuoteCreate a new file /etc/udev/rules.d/network_drivers.rules with this line in it:
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="148f", ATTR{idProduct}=="2870", RUN+="/sbin/modprobe -qba rt2870sta"
Create another new file /etc/modprobe.d/network_drivers.conf with this line in it:
install rt2870sta /sbin/modprobe –ignore-install rt2870sta $CMDLINE_OPTS; /bin/echo “148f 2870″ > /sys/bus/usb/drivers/rt2870/new_id
Isn't your device ID 148f:3070 ?
Yes, that's the device ID. But I said I've tried both possibilities. So it is not a typo. I just reproduced the lines from the first event because I had this info still available.
Erm... sorry that was so long... I got a bit carried away :)
modinfo rt3070sta
ERROR: modinfo: could not find module rt3070sta
Broken Hardware encryption
Current problems:
* Cannot scan 11n AP's
* No TX during first minute after association
* Broken Hardware encryption
alias: usb:v148Fp3070d*dc*dsc*dp*ic*isc*ip*
rt73.bin
rt2561.bin
rt2561s.bin
rt2661.bin
rt2860.bin
rt2870.bin
rt3070.bin <--- now replaced by a symlink
rt3071.bin
rt3090.bin <--- symlink
iwconfig
ra0 RT2870 Wireless ESSID:"" Nickname:"RT2870STA"
Mode:Managed Frequency=2.412 GHz Access Point:
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=100/100 Signal level:-29 dBm Noise level:-71 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Yes, I'm afraid it *does* need an active internet connection to install those packages... can't you connect to the router with an ethernet cable ?
[EDIT]
If your 10.04 has never been updated, it may be best to remove the blacklisting of rt2800usb .. connect to a router with an ethernet cable .. run a complete system update .. then check if your wireless "just works", before installing the above mentioned driver ;)
*-network
description: Ethernet interface
product: NetLink BCM57788 Gigabit Ethernet PCIe
vendor: Broadcom Corporation
physical id: 0
bus info: [email protected]:02:00.0
logical name: eth0
version: 01
serial: f0:4d:a2:e9:10:00
size: 100MB/s
capacity: 1GB/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.102 duplex=full firmware=sb ip=192.168.1.3 latency=0 link=yes multicast=yes port=MII speed=100MB/s
resources: irq:27 memory:febf0000-febfffff
ra0: ERROR while getting interface flags: No such device
lsusb -v
lsmod
modinfo rt2870sta
modinfo rt3070sta
sudo lshw -C network
First, it's probably best to ignore rt3070sta (as a module), it doesn't really exist anymore (at least not in Natty), 3070 based cards use rt2870sta, but load the rt3070.bin firmware.
Can you confirm this by running:Code: [Select]I'm expecting -modinfo rt3070sta
QuoteERROR: modinfo: could not find module rt3070sta
I've tested this on the desktop edition which is Natty and you're spot on.
I'd also go with the staging driver over rt2800usb, which IMHO aren't ready yet... indeed according to here:
http://linuxwireless.org/en/users/Drivers/rt2800usb ([url]http://http://linuxwireless.org/en/users/Drivers/rt2800usb[/url])QuoteBroken Hardware encryption
and the latest commit here:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d53d9e67b55f6a9fc3f836c5c392eb41ce5676f4 ([url]http://http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d53d9e67b55f6a9fc3f836c5c392eb41ce5676f4[/url])QuoteCurrent problems:
* Cannot scan 11n AP's
* No TX during first minute after association
* Broken Hardware encryption
Well, I guess I can confirm that broken hardware encryption. Right now on the laptop (Natty desktop version) I have a wireless connection via the second RT3070 usb stick and it uses the rt2800usb driver. Every now and then it looses the connection for a short while...
There is something very strange going on with your drivers... rt2870sta *does* have the device ID...
From modinfo rt2870staQuotealias: usb:v148Fp3070d*dc*dsc*dp*ic*isc*ip*
maybe left over from an earlier driver installation attempt... which would explain rt2870sta loading even if it's blacklisted.
but I'm still baffled why it's wlan0, which suggests it's using rt2800usb ???
Which driver is being used on the desktop edition ?
The desktop uses driver rt2800usb and detects the interface as wlan1 (because wlan0 is taken by the internal wireless network card which is made by Realtek)
Is rt2870sta still blacklisted ?
On the server it is still blacklisted.
OK, here's what I'd do (but it's up to you whether you want to mess with a working system)
1) Download these drivers:
http://dl.dropbox.com/u/11876059/q7icmfm%20-2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO.tar.bz2 ([url]http://http://dl.dropbox.com/u/11876059/q7icmfm%20-2011_0407_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.2_DPO.tar.bz2[/url])
unpack them, cd into the direectory, change to root with sudo su, then run make && make install
2) Make sure the ONLY thing that is blacklisted is rt2800usb .. ie. un-blacklist -
rt2800lib
rt2x00usb
rt2x00lib
rt2870sta
rt3070sta
3) Reboot and test the card (or ifdown wlan0 then modprobe -r rt2870sta then modprobe rt2870sta then ifup ra0)
4) if necessary, replace the firmware in /lib/firmware with the ones contained in the latest firmware from one of these Debian mirrors:
http://packages.debian.org/sid/all/firmware-ralink/download ([url]http://http://packages.debian.org/sid/all/firmware-ralink/download[/url])
Be aware - You cannot install this as you normally would a .deb... it's best to backup the files you are going to replace in /lib/firmware
ie.Quotert73.bin
rt2561.bin
rt2561s.bin
rt2661.bin
rt2860.bin
rt2870.bin
rt3070.bin <--- now replaced by a symlink
rt3071.bin
rt3090.bin <--- symlink
then manually unpack the files from the .deb (using fileroller), and place them in /lib/firmware
Then I would expectCode: [Select]to return something like -iwconfig
Quotera0 RT2870 Wireless ESSID:"" Nickname:"RT2870STA"
Mode:Managed Frequency=2.412 GHz Access Point:
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=100/100 Signal level:-29 dBm Noise level:-71 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
or similar.
If it *does* change to ra0, remember you'll have to change it in /etc/network/interfaces
But as I said, it's up to you if you want to mess with the wireless drivers/firmware, whilst it is (more or less) working ;)
blacklist rt2800usb
lsmod
lsusb
sudo lshw -C network
lsmod | grep rt
modinfo rt2870sta | grep 2070
modinfo rt2800usb | grep 2070
cat /etc/*-release
uname -a
ls -l /lib/firmware/rt2870.bin
modinfo rt2800usb | grep 0031
So I can see which firmware you are using, and if your device id's are included in rt2800usb...
Can you send the output from:Code: [Select]ls -l /lib/firmware/rt2870.bin
andCode: [Select]modinfo rt2800usb | grep 0031
-rw-r--r-- 1 root root 4096 2010-11-18 16:20 /lib/firmware/rt2870.bin
modinfo rt2870sta | grep 0031
alias: usb:v13B1p0031d*dc*dsc*dp*ic*isc*ip*
modinfo rt2800usb
lsusb
Bus 002 Device 003: ID 045e:007d Microsoft Corp. Notebook Optical Mouse
Bus 002 Device 002: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 13b1:0031 Linksys AM10 v1 802.11n [Ralink RT2870]
Bus 001 Device 005: ID 1307:1169 Transcend Information, Inc. TS2GJF210 JetFlash 210 2GB
Bus 001 Device 004: ID 1307:0169 Transcend Information, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
modinfo rt2800usb
filename: /lib/modules/2.6.38-11-generic/kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
license: GPL
firmware: rt2870.bin
description: Ralink RT2800 USB Wireless LAN driver.
version: 2.3.0
author: http://rt2x00.serialmonkey.com
srcversion: 52008801035C9FD38B91EC7
alias: usb:v0586p341Ad*dc*dsc*dp*ic*isc*ip*
alias: usb:v177Fp0313d*dc*dsc*dp*ic*isc*ip*
alias: usb:v177Fp0153d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083ApF511d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083ApD522d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083ApC522d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083ApA512d*dc*dsc*dp*ic*isc*ip*
alias: usb:v18E8p6259d*dc*dsc*dp*ic*isc*ip*
alias: usb:v2019pAB24d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1D4Dp0011d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1D4Dp0010d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1D4Dp0002d*dc*dsc*dp*ic*isc*ip*
alias: usb:v05A6p0101d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1B75p3072d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1B75p3071d*dc*dsc*dp*ic*isc*ip*
alias: usb:v100Dp9032d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1737p0079d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1737p0078d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1737p0077d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1740p0615d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1740p0605d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1044p800Cd*dc*dsc*dp*ic*isc*ip*
alias: usb:v15A9p0010d*dc*dsc*dp*ic*isc*ip*
alias: usb:v203Dp14A1d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C17d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C15d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C13d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C0Bd*dc*dsc*dp*ic*isc*ip*
alias: usb:v18C5p0008d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07AAp0042d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07AAp0041d*dc*dsc*dp*ic*isc*ip*
alias: usb:v14B2p3C11d*dc*dsc*dp*ic*isc*ip*
alias: usb:v14B2p3C08d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0411p015Dd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0411p0150d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0411p0148d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0411p012Ed*dc*dsc*dp*ic*isc*ip*
alias: usb:v050Dp825Ad*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3322d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3284d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3262d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1761p0B05d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0B05p1790d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0B05p1761d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0B05p1760d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0E0Bp9041d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0E0Bp9031d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p0050d*dc*dsc*dp*ic*isc*ip*
alias: usb:v148Fp8070d*dc*dsc*dp*ic*isc*ip*
alias: usb:v148Fp3370d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0586p3416d*dc*dsc*dp*ic*isc*ip*
alias: usb:v5A57p5257d*dc*dsc*dp*ic*isc*ip*
alias: usb:v5A57p0283d*dc*dsc*dp*ic*isc*ip*
alias: usb:v5A57p0282d*dc*dsc*dp*ic*isc*ip*
alias: usb:v5A57p0280d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0CDEp0025d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0CDEp0022d*dc*dsc*dp*ic*isc*ip*
alias: usb:v157Ep300Ed*dc*dsc*dp*ic*isc*ip*
alias: usb:v177Fp0302d*dc*dsc*dp*ic*isc*ip*
alias: usb:v15A9p0006d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083ApB522d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083ApA703d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083ApA702d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083ApA701d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083ApA618d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083Ap8522d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083Ap7522d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083Ap7512d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083Ap7511d*dc*dsc*dp*ic*isc*ip*
alias: usb:v083Ap6618d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p0048d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p0047d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p0042d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p0040d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p003Fd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p003Ed*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p003Dd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p003Bd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p0039d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p002Dd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p002Cd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p002Bd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DF6p0017d*dc*dsc*dp*ic*isc*ip*
alias: usb:v129Bp1828d*dc*dsc*dp*ic*isc*ip*
alias: usb:v04E8p2018d*dc*dsc*dp*ic*isc*ip*
alias: usb:v148Fp3072d*dc*dsc*dp*ic*isc*ip*
alias: usb:v148Fp3071d*dc*dsc*dp*ic*isc*ip*
alias: usb:v148Fp3070d*dc*dsc*dp*ic*isc*ip*
alias: usb:v148Fp2870d*dc*dsc*dp*ic*isc*ip*
alias: usb:v148Fp2770d*dc*dsc*dp*ic*isc*ip*
alias: usb:v148Fp2070d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1A32p0304d*dc*dsc*dp*ic*isc*ip*
alias: usb:v2019pED06d*dc*dsc*dp*ic*isc*ip*
alias: usb:v2019pAB25d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0471p200Fd*dc*dsc*dp*ic*isc*ip*
alias: usb:v1D4Dp000Ed*dc*dsc*dp*ic*isc*ip*
alias: usb:v1D4Dp000Cd*dc*dsc*dp*ic*isc*ip*
alias: usb:v20B8p8888d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p899Ad*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p871Cd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p871Bd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p871Ad*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p870Ad*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p822Cd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p822Bd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p822Ad*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p821Ad*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p6899d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p3871d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p3870d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p3822d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p3821d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0DB0p3820d*dc*dsc*dp*ic*isc*ip*
alias: usb:v100Dp9031d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0789p0166d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0789p0164d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0789p0163d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0789p0162d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1737p0071d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1737p0070d*dc*dsc*dp*ic*isc*ip*
alias: usb:v04BBp0948d*dc*dsc*dp*ic*isc*ip*
alias: usb:v04BBp0947d*dc*dsc*dp*ic*isc*ip*
alias: usb:v04BBp0945d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0E66p0018d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0E66p0017d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0E66p0013d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0E66p000Bd*dc*dsc*dp*ic*isc*ip*
alias: usb:v0E66p0009d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0E66p0003d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0E66p0001d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1044p800Dd*dc*dsc*dp*ic*isc*ip*
alias: usb:v1044p800Bd*dc*dsc*dp*ic*isc*ip*
alias: usb:v1740p9709d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1740p9708d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1740p9707d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1740p9706d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1740p9705d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1740p9703d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1740p9702d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1740p9701d*dc*dsc*dp*ic*isc*ip*
alias: usb:v203Dp14A9d*dc*dsc*dp*ic*isc*ip*
alias: usb:v203Dp1480d*dc*dsc*dp*ic*isc*ip*
alias: usb:v7392p7718d*dc*dsc*dp*ic*isc*ip*
alias: usb:v7392p7717d*dc*dsc*dp*ic*isc*ip*
alias: usb:v7392p7711d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07FAp7712d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C16d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C11d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C0Fd*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C0Ed*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C0Dd*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C0Ad*dc*dsc*dp*ic*isc*ip*
alias: usb:v07D1p3C09d*dc*dsc*dp*ic*isc*ip*
alias: usb:v18C5p0012d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07AAp003Fd*dc*dsc*dp*ic*isc*ip*
alias: usb:v07AAp003Cd*dc*dsc*dp*ic*isc*ip*
alias: usb:v07AAp002Fd*dc*dsc*dp*ic*isc*ip*
alias: usb:v14B2p3C28d*dc*dsc*dp*ic*isc*ip*
alias: usb:v14B2p3C27d*dc*dsc*dp*ic*isc*ip*
alias: usb:v14B2p3C25d*dc*dsc*dp*ic*isc*ip*
alias: usb:v14B2p3C23d*dc*dsc*dp*ic*isc*ip*
alias: usb:v14B2p3C12d*dc*dsc*dp*ic*isc*ip*
alias: usb:v14B2p3C09d*dc*dsc*dp*ic*isc*ip*
alias: usb:v14B2p3C07d*dc*dsc*dp*ic*isc*ip*
alias: usb:v14B2p3C06d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0411p00E8d*dc*dsc*dp*ic*isc*ip*
alias: usb:v050Dp815Cd*dc*dsc*dp*ic*isc*ip*
alias: usb:v050Dp805Cd*dc*dsc*dp*ic*isc*ip*
alias: usb:v050Dp8053d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3321d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3307d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3305d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3273d*dc*dsc*dp*ic*isc*ip*
alias: usb:v13D3p3247d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0B05p1784d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0B05p1742d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0B05p1732d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0B05p1731d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1690p0740d*dc*dsc*dp*ic*isc*ip*
alias: usb:v15C5p0008d*dc*dsc*dp*ic*isc*ip*
alias: usb:v8516p3072d*dc*dsc*dp*ic*isc*ip*
alias: usb:v8516p3071d*dc*dsc*dp*ic*isc*ip*
alias: usb:v8516p3070d*dc*dsc*dp*ic*isc*ip*
alias: usb:v8516p2870d*dc*dsc*dp*ic*isc*ip*
alias: usb:v8516p2770d*dc*dsc*dp*ic*isc*ip*
alias: usb:v8516p2070d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1EDAp2310d*dc*dsc*dp*ic*isc*ip*
alias: usb:v1482p3C09d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07B8p3072d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07B8p3071d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07B8p3070d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07B8p2770d*dc*dsc*dp*ic*isc*ip*
alias: usb:v07B8p2870d*dc*dsc*dp*ic*isc*ip*
depends: rt2x00lib,rt2800lib,rt2x00usb
vermagic: 2.6.38-11-generic SMP mod_unload modversions
parm: nohwcrypt:Disable hardware encryption. (bool)
sudo cp -rv /lib/firmware /lib/firmware-old
sudo cp -rv /usr/share/doc/linux-firmware /usr/share/doc/linux-firmware-old
Also, if I want rt2800usb to have an eye out for 13b1:0031 (FYI I now have all the vendor and product IDs memorized, how scary is that), how do I do that?
gksudo gedit /etc/udev/rules.d/70-persistent-net.rules
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="13b1", ATTR{idProduct}=="0031", RUN+="/sbin/modprobe -qba rt2800usb"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:7f:74:e3:f6:4b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="ra*", NAME="ra0"
Give me a while... I want to try something in a VMOK. And thank you!
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="50:e5:49:6a:d2:1d", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# USB device 0x13b1:0x0031 (usb) OLD EFFORT DAS 2011-09-20
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:7f:74:e3:f6:4b", ATTR{dev_id}=="0x0", ATTR{type}=="1", #KERNEL=="ra*", NAME="ra0"
# USB device 0x13b1:0x0031 (usb)
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="13b1", ATTR{idProduct}=="0031", RUN+="/sbin/modprobe -qba rt2800usb"
OK, it will be interesting to see what happens when you blacklist rt2870sta and modprobe rt2800usb... as rt2800usb on your kernel doesn't have the correct ID's built in.
After trying that, there are a couple of options...
a) try a different STA driver... your adapter seems to be an rt3072
Now though I can find NO info for your particular card online, a few people usin a SWEEX card based on the rt3072 seem to have had luck adding the device ID's to the rt3070 drivers... so may be worth a shot.
b) move to a later kernel... problem with this is that the correct device ID's aren't in the 2.6.39 kernel either, which means moving to kernel >= 3.0 (I only know for sure they are in 3.1), vut this *may* introduce other problems, such as having to reload your graphics drivers... 3.1 works fine for me, but there are NO guarantees it will work (without issue) for you.
That said, you should still be able to boot the old kernel, if 3.1 gives you problems.
OR
You could just wait for Ubuntu 11.10, which will use kernel >=3.0 by default.
sudo modrope -r rt2870sta
sudo modprobe rt2800usb
sudo -s
echo 13B1 0031 > /sys/bus/usb/drivers/rt2800usb/new_id
exit
When you talk about kernel 2.6.39 - are you talking about of ubuntu? And what is kernel 3.0 - is that the version of Ubuntu that's coming out next month?
Do you think SWEEX is worth a shot?
AFAIK the included staging rt2870sta.ko is a loadable kernel object (module), and not compiled into the kernel itself .. so I would have expected it to be blacklistable .. but I no longer have an rt2870 based adapter to test it on, so who knows.You're right that the staging drivers are loadable kernel objects.
I'm pretty certain "staging" drivers are NOT merged into the mainline kernel and are stand-alone drivers, but could be wrong :o
Sorry for the misunderstanding. English is not my native langage....:-)
sudo lshw C network
[email protected]:~# sudo lshw -C network
*-network
description: Ethernet interface
product: 88E8056 PCI-E Gigabit Ethernet Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: [email protected]:06:00.0
logical name: eth0
version: 12
serial: e0:cb:4e:7a:ef:a5
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.28 duplex=full firmware=N/A ip=1.2.3.106 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:68 memory:fbdfc000-fbdfffff ioport:d800(size=256) memory:fbdc0000-fbddffff
*-network
description: Ethernet interface
product: 88E8056 PCI-E Gigabit Ethernet Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: [email protected]:04:00.0
logical name: eth1
version: 12
serial: e0:cb:4e:7a:f2:eb
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.28 firmware=N/A latency=0 link=no multicast=yes port=twisted pair
resources: irq:69 memory:fbbfc000-fbbfffff ioport:b800(size=256) memory:fbbc0000-fbbdffff
modprobe rt3572
[email protected]:~# modprobe rt3572sta
FATAL: Error inserting rt3572sta (/lib/modules/3.0.0-16-generic-pae/kernel/drivers/net/wireless/rt3572sta.ko): Device or resource busy
[email protected]:~# dmesg | tail -n 25
[ 209.462442] Error: Driver 'rt2870' is already registered, aborting...
[ 215.066454] rtusb init rt2870 --->
[ 215.066520] Error: Driver 'rt2870' is already registered, aborting...
[ 1595.030337] usb 1-5: new high speed USB device number 5 using ehci_hcd
[ 1595.351736] rtusb init rt2870 --->
[ 1595.351741] Error: Driver 'rt2870' is already registered, aborting...
[ 1779.959823] HDMI hot plug event: Pin=5 Presence_Detect=1 ELD_Valid=0
[ 1779.964735] HDMI status: Pin=5 Presence_Detect=0 ELD_Valid=0
[ 1780.772260] vmap allocation for size 16781312 failed: use vmalloc=<size> to increase size.
[ 1780.772808] NVRM: failed to map registers!!
[ 1780.772809] NVRM: RmInitAdapter failed! (0x10:0x32:1351)
[ 1780.772815] NVRM: rm_init_adapter(1) failed
[ 1780.780259] HDMI hot plug event: Pin=5 Presence_Detect=1 ELD_Valid=0
[ 1780.786644] HDMI status: Pin=5 Presence_Detect=1 ELD_Valid=0
[ 1780.799039] HDMI hot plug event: Pin=5 Presence_Detect=0 ELD_Valid=1
[ 1780.806578] HDMI status: Pin=5 Presence_Detect=1 ELD_Valid=1
[ 1781.098923] gnome-settings-[2134]: segfault at 0 ip b42d01d3 sp bfec8f10 error 4 in libxsettings.so[b42cd000+9000]
[ 1781.588519] HDMI: detected monitor ASUS VW266H
[ 1781.588521] at connection type HDMI
[ 1781.588525] HDMI: available speakers: FL/FR
[ 1781.588538] HDMI: supports coding type LPCM: channels = 2, rates = 44100 48000 88200, bits = 16 20 24
[ 1786.296730] usb 1-5: USB disconnect, device number 5
[ 1808.743960] usb 1-5: new high speed USB device number 6 using ehci_hcd
[ 1809.065156] rtusb init rt2870 --->
[ 1809.065161] Error: Driver 'rt2870' is already registered, aborting...
[email protected]:~# sudo lshw -C network
*-network
description: Ethernet interface
product: 88E8056 PCI-E Gigabit Ethernet Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: [email protected]:06:00.0
logical name: eth0
version: 12
serial: e0:cb:4e:7a:ef:a5
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.28 duplex=full firmware=N/A ip=1.2.3.106 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:68 memory:fbdfc000-fbdfffff ioport:d800(size=256) memory:fbdc0000-fbddffff
*-network
description: Ethernet interface
product: 88E8056 PCI-E Gigabit Ethernet Controller
vendor: Marvell Technology Group Ltd.
physical id: 0
bus info: [email protected]:04:00.0
logical name: eth1
version: 12
serial: e0:cb:4e:7a:f2:eb
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.28 firmware=N/A latency=0 link=no multicast=yes port=twisted pair
resources: irq:69 memory:fbbfc000-fbbfffff ioport:b800(size=256) memory:fbbc0000-fbbdffff
lsmod
[email protected]:~# lsmod
Module Size Used by
parport_pc 32114 0
ppdev 12849 0
vesafb 13489 1
bnep 17923 2
rfcomm 38408 0
bluetooth 148839 10 bnep,rfcomm
snd_hda_codec_hdmi 31426 8
snd_hda_codec_analog 75090 1
binfmt_misc 17292 1
nvidia 10390874 40
snd_hda_intel 28358 3
snd_hda_codec 91859 3 snd_hda_codec_hdmi,snd_hda_codec_analog,snd_hda_intel
snd_hwdep 13276 1 snd_hda_codec
snd_pcm 80435 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq_midi 13132 0
snd_rawmidi 25241 1 snd_seq_midi
snd_seq_midi_event 14475 1 snd_seq_midi
snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event
snd_timer 28932 2 snd_pcm,snd_seq
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 55902 16 snd_hda_codec_hdmi,snd_hda_codec_analog,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 12600 1 snd
snd_page_alloc 14108 2 snd_hda_intel,snd_pcm
joydev 17393 0
mxm_wmi 12859 0
psmouse 63474 0
serio_raw 12990 0
usbhid 41905 0
hid 77367 1 usbhid
i7core_edac 23254 0
edac_core 46858 1 i7core_edac
asus_atk0110 17742 0
wmi 18744 1 mxm_wmi
rt2870sta 570803 0
lp 17455 0
parport 40930 3 parport_pc,ppdev,lp
firewire_ohci 35846 0
usb_storage 44173 0
firewire_core 56937 1 firewire_ohci
uas 17699 0
crc_itu_t 12627 1 firewire_core
ahci 21634 0
libahci 25761 1 ahci
pata_jmicron 12651 0
sky2 49304 0
floppy 60310 0
sudo modprobe -r rt2870sta
sudo modprobe rt2870sta
sudo gedit /etc/modprobe.d/blacklist.conf
sudo modprobe -r rt2870sta
sudo modprobe rt3572sta
sudo sh -c 'echo rt3572sta >> /etc/modules'
[email protected]:~$ sudo -s
[sudo] password for fatguy1121:
Sorry, try again.
[sudo] password for fatguy1121:
[email protected]:~# lshw -C network
*-network
description: Wireless interface
product: RTL8191SEvB Wireless LAN Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: [email protected]:0a:00.0
logical name: wlan0
version: 10
serial: 1c:65:9d:0f:56:98
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtl8192se driverversion=3.0.0-16-generic firmware=N/A ip=1.2.3.196 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
resources: irq:16 ioport:4000(size=256) memory:f0600000-f0603fff
*-network
description: Ethernet interface
product: AR8131 Gigabit Ethernet
vendor: Atheros Communications
physical id: 0
bus info: [email protected]:0b:00.0
logical name: eth0
version: c0
serial: 60:eb:69:50:24:3d
capacity: 1Gbit/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.1.0-NAPI firmware=N/A latency=0 link=no multicast=yes port=twisted pair
resources: irq:46 memory:f0400000-f043ffff ioport:5000(size=128)
*-network
description: Wireless interface
physical id: 2
logical name: ra0
serial: 78:44:76:8d:b5:f4
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=RALINK WLAN promiscuous=yes wireless=Ralink STA
[email protected]:~# lsmod
Module Size Used by
parport_pc 32114 0
ppdev 12849 0
joydev 17393 0
snd_hda_codec_hdmi 31426 4
bnep 17923 2
rfcomm 38408 8
rt3572sta 597215 1
arc4 12473 2
snd_hda_codec_conexant 52418 1
snd_hda_intel 24262 3
snd_hda_codec 91859 3 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel
uvcvideo 67271 0
videodev 85626 1 uvcvideo
snd_hwdep 13276 1 snd_hda_codec
btusb 18160 2
snd_seq_midi 13132 0
snd_pcm 80435 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
bluetooth 148839 23 bnep,rfcomm,btusb
snd_rawmidi 25241 1 snd_seq_midi
snd_seq_midi_event 14475 1 snd_seq_midi
psmouse 73673 0
snd_seq 51567 2 snd_seq_midi,snd_seq_midi_event
snd_timer 28932 2 snd_pcm,snd_seq
snd_seq_device 14172 3 snd_seq_midi,snd_rawmidi,snd_seq
i7core_edac 23254 0
nouveau 663226 2
rtl8192se 94139 0
edac_core 46858 3 i7core_edac
rtlwifi 95614 1 rtl8192se
mac80211 393421 2 rtl8192se,rtlwifi
serio_raw 12990 0
ttm 65224 1 nouveau
drm_kms_helper 32889 1 nouveau
drm 192194 4 nouveau,ttm,drm_kms_helper
cfg80211 172427 2 rtlwifi,mac80211
snd 55902 16 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
i2c_algo_bit 13199 1 nouveau
mxm_wmi 12859 1 nouveau
soundcore 12600 1 snd
snd_page_alloc 14115 2 snd_hda_intel,snd_pcm
video 18908 1 nouveau
sparse_keymap 13658 0
toshiba_bluetooth 12711 0
wmi 18744 1 mxm_wmi
binfmt_misc 17292 1
lp 17455 0
parport 40930 3 parport_pc,ppdev,lp
ahci 21634 1
libahci 25727 1 ahci
atl1c 36638 0
firewire_ohci 35854 0
firewire_core 56937 1 firewire_ohci
crc_itu_t 12627 1 firewire_core
sdhci_pci 13658 0
sdhci 27360 1 sdhci_pci
[email protected]:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"FUCK YOU!"
Mode:Managed Frequency:2.417 GHz Access Point: 00:14:D1:CD:F0:AC
Bit Rate=150 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=70/70 Signal level=-35 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:11 Missed beacon:0
ra0 Ralink STA ESSID:"11n-AP" Nickname:"RT3572STA"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=10/100 Signal level:0 dBm Noise level:0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[email protected]:~#
ifconfig
iwconfig
iwlist scanninng
[email protected]:~$ sudo -s
[sudo] password for fatguy1121:
[email protected]:~# ifconfig
eth0 Link encap:Ethernet HWaddr 60:eb:69:50:24:3d
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:47
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2768 errors:0 dropped:0 overruns:0 frame:0
TX packets:2768 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:218672 (218.6 KB) TX bytes:218672 (218.6 KB)
ra0 Link encap:Ethernet HWaddr 78:44:76:8d:b5:f4
inet6 addr: fe80::7a44:76ff:fe8d:b5f4/64 Scope:Link
UP BROADCAST MTU:1500 Metric:1
RX packets:15783 errors:0 dropped:0 overruns:0 frame:0
TX packets:3830 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3750911 (3.7 MB) TX bytes:457007 (457.0 KB)
wlan0 Link encap:Ethernet HWaddr 1c:65:9d:0f:56:98
inet addr:1.2.3.101 Bcast:1.2.3.255 Mask:255.255.255.0
inet6 addr: fe80::1e65:9dff:fe0f:5698/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5047 errors:0 dropped:0 overruns:0 frame:0
TX packets:5004 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2758416 (2.7 MB) TX bytes:849416 (849.4 KB)
[email protected]:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"TRENDnet TEW-691GR"
Mode:Managed Frequency:2.417 GHz Access Point: 00:14:D1:CD:F0:AC
Bit Rate=150 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=70/70 Signal level=-35 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ra0 Ralink STA ESSID:"FUCK YOU!" Nickname:"RT3572STA"
Mode:Auto Frequency=2.417 GHz Access Point: 00:14:D1:CD:F0:AC
Bit Rate=1 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=100/100 Signal level:-41 dBm Noise level:-41 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[email protected]:~# iwlist scanning
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
wlan0 Scan completed :
Cell 01 - Address: 00:14:D1:CD:F0:AC
Channel:2
Frequency:2.417 GHz (Channel 2)
Quality=69/70 Signal level=-41 dBm
Encryption key:off
ESSID:"TRENDnet TEW-691GR"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=000000002c0c9166
Extra: Last beacon: 50760ms ago
IE: Unknown: 00125452454E446E6574205445572D3639314752
IE: Unknown: 010882848B961224486C
IE: Unknown: 030102
IE: Unknown: 2A0100
IE: Unknown: 32040C183060
IE: Unknown: 2D1A6E1017FFFFFF00010000000000000000000000000F0000000000
IE: Unknown: 3D1602050400000000000000000000000000000000000000
IE: Unknown: 3E0100
IE: Unknown: DD180050F2020101030003A4000027A4000042435E0062322F00
IE: Unknown: 0B0501001F127A
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: DD07000C4307000000
ra0 Scan completed :
Cell 01 - Address: 08:86:3B:17:51:9A
Protocol:802.11b/g/n
ESSID:"belkin.19a"
Mode:Managed
Frequency:2.417 GHz (Channel 2)
Quality=0/100 Signal level=-93 dBm Noise level=-88 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD0E0050F204104A0001101044000102
Cell 02 - Address: 08:86:3B:1A:E1:08
Protocol:802.11b/g/n
ESSID:"belkin.108"
Mode:Managed
Frequency:2.417 GHz (Channel 2)
Quality=7/100 Signal level=-87 dBm Noise level=-82 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD0E0050F204104A0001101044000102
Cell 03 - Address: 20:4E:7F:6C:DD:B1
Protocol:802.11b/g/n
ESSID:"reagansavestheday"
Mode:Managed
Frequency:2.422 GHz (Channel 3)
Quality=13/100 Signal level=-85 dBm Noise level=-80 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Cell 04 - Address: 00:1E:E5:45:42:9F
Protocol:802.11b/g
ESSID:"TheRays"
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality=2/100 Signal level=-89 dBm Noise level=-84 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Cell 05 - Address: 00:1E:E5:B5:15:73
Protocol:802.11b/g
ESSID:"@Home1573"
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality=47/100 Signal level=-71 dBm Noise level=-66 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Cell 06 - Address: 00:1C:DF:D8:E1:17
Protocol:802.11b/g
ESSID:"homemj"
Mode:Managed
Frequency:2.462 GHz (Channel 11)
Quality=0/100 Signal level=-95 dBm Noise level=-102 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
Cell 07 - Address: 00:1F:C6:74:45:03
Protocol:802.11b/g
ESSID:"TWC7932"
Mode:Managed
Frequency:2.462 GHz (Channel 11)
Quality=26/100 Signal level=-79 dBm Noise level=-86 dBm
Encryption key:on
Bit Rates:54 Mb/s
Cell 08 - Address: 00:24:B2:B7:1B:86
Protocol:802.11b/g
ESSID:"Danielle-PC-Wireless"
Mode:Managed
Frequency:2.412 GHz (Channel 1)
Quality=2/100 Signal level=-89 dBm Noise level=-84 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Cell 09 - Address: B8:C7:5D:0C:1E:73
Protocol:802.11b/g
ESSID:"Tranquility Base"
Mode:Managed
Frequency:2.452 GHz (Channel 9)
Quality=0/100 Signal level=-91 dBm Noise level=-86 dBm
Encryption key:on
Bit Rates:54 Mb/s
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Cell 10 - Address: 00:14:D1:CD:F0:AC
Protocol:802.11b/g/n
ESSID:"TRENDnet TEW-691GR"
Mode:Managed
Frequency:2.417 GHz (Channel 2)
Quality=100/100 Signal level=-41 dBm Noise level=-92 dBm
Encryption key:off
Bit Rates:300 Mb/s
[email protected]:~#
cd ~
wget http://dl.dropbox.com/u/11876059/2010_0709_RT3572_Linux_STA_v2.4.0.1.tar.bz2
tar -xjvf 2010_0709_RT3572_Linux_STA_v2.4.0.1.tar.bz2
cd 2010_0709_RT3572_Linux_STA_v2.4.0.1
make
sudo make install
sudo modprobe -r rt3572sta
sudo modprobe rt3572sta
modinfo rt3572sta | grep version
product: RTL8188CE 802.11b/g/n WiFi Adapter
vendor: Realtek Semiconductor Co., Ltd.
lspci -vnn
sudo lshw -C network
ifconfig
iwconfig
iwlist scanning
rfkill list
I'm having an identical issue with a different wireless card.
sudo lsmod | grep rt28
rt2870sta 570836 0
[email protected]:~$
iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
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: [email protected]: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
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)
common/rtusb_dev_id.c
{USB_DEVICE(0x1761,0x0B05)},
alias: usb:v1761p0B05d*dc*dsc*dp*ic*isc*ip*
sudo modprobe -r rt2870sta
sudo modprobe rt2800usb
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 ...
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...
[email protected]:/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
Linux cataleyo 2.6.32-25-generic #44-Ubuntu i686 GNU/Linux
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' "{}" ";"
sudo apt-get install build-essential linux-headers-generic
[email protected]:~$ 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
sudo lsmod | grep rt28
rt2800usb 31531 0
rt2x00usb 9639 1 rt2800usb
rt2x00lib 27573 2 rt2800usb,rt2x00usb
crc_ccitt 1339 1 rt2800usb
rt2870sta 556845 0
iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
vboxnet0 no wireless extensions.
pan0 no wireless extensions.
sudo lshw -C network
*-network UNCLAIMED
description: Network controller
product: Broadcom Corporation
vendor: Broadcom Corporation
physical id: 0
bus info: [email protected]: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: [email protected]: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
lsusb
lspci -vnn | grep -i net
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
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)
mkdir ~/rt3070sta
cd ~/rt3070sta
wget https://dl.dropboxusercontent.com/u/11876059/2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO.tar.bz2
tar xjvf 2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO.tar.bz2
cd ~/rt3070sta/2010_0831_RT3070_Linux_STA_v2.4.0.1_DPO
sudo su
make
make install
exit
sudo modprobe -r rt2870sta
sudo modprobe rt3070sta
Bus 001 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapterlspci -vnn | grep -i net
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.
02:01.0 Ethernet controller [0200]: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) [8086:100f] (rev 01)
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
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
BE AWARE
For kernels >= 2.6.35 make sure you read the the EDIT.
If you want to know which kernel you are using, open a terminal and enter:Code: [Select](if it's greater than, or equal to 2.6.35, be sure to follow the instructions in the EDIT.uname -r
In Ubuntu 9.10 (Karmic), Ubuntu 10.04 (Lucid), and Ubuntu 10.10 (Maverick) there is an issue with USB Wireless N adapters based on the Ralink RT2870 chip.
The issue seems to be that 2 (conflicting?) driver modules are loaded... rt2870sta and rt2800usb... resulting in no wireless access.
The solution is to blacklist the rt2800usb module if it is loaded.
To see if they are both loaded, enter this in a terminal:Code: [Select]if they are both loaded, blacklist the rt2800usb module by opening the /etc/modprobe.d/blacklist.conf file (as root)sudo lsmod | grep rt28
Code: [Select]sudo gedit /etc/modprobe.d/blacklist.conf
and add the line:
blacklist rt2800usb
then save the file and reboot.
If after rebooting you can now 'see' the network, but it will not accept a WPA key (WEP seems fine)... you need to recompile the driver with WPA support... the driver can be found here:
2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 ([url]http://http://eng.ralinktech.com.tw/license_us.php?n=2&p=0&t=U0wyRnpjMlYwY3k4eU1ERXdMekEzTHpBNUwyUnZkMjVzYjJGa05ETTVOalU0TXpVeU5pNWllakk5UFQweU1ERXdYekEzTURsZlVsUXlPRGN3WDB4cGJuVjRYMU5VUVY5Mk1pNDBMakF1TVM1MFlYST1D[/url]) (you can enter 'any' name and email)
or
Ralink Linux Driver Page ([url]http://http://eng.ralinktech.com.tw/en/Products/support.php?sn=501[/url])
(HINT-change the files extension to tar.gz before unpacking... for some reason it comes up as an invalid bz2 archive, but unpacks properly as a tar.gz)
Before compiling - you are going to need to install build-essential, and linux-headers-generic.Code: [Select]sudo apt-get update && sudo apt-get install build-essential linux-headers-generic
If you use WPA/WPA2 encryption, you will have to change the lines
HAS_WPA_SUPPLICANT=n
and
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
in:
/os/linux/config.mk
(inside the unpacked driver)
to
HAS_WPA_SUPPLICANT=y
and
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
Once you have changed these to =y and saved the config.mk file...
[EDIT]
Newer kernels >= 2.6.35 will fail to compile (make) the driver because the driver makes use of the functions usb_buffer_alloc() and usb_buffer_free() which were renamed in kernel 2.6.35 .. so if during the next (make && make install) step it fails with this error:Quotemake[2]: *** [/home/mark/Desktop/RT2870/os/linux/../../common/cmm_mac_usb.o] Error 1
make[1]: *** [_module_/home/mark/Desktop/RT2870/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-27-generic'
make: *** [LINUX] Error 2
or similar.
The fix is to cd to the driver source directory (eg. 2010_0709_RT2870_Linux_STA_v2.4.0.1), and run the following 3 commands which will clean the build directory and replace the old calls with the new ones:Code: [Select](hitting enter after each line)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' "{}" ";"
Or, I've uploaded a pre-modified version of the driver that WILL compile on kernels >= 2.6.35 here:
2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 ([url]http://http://bit.ly/eZHx0J[/url])
Then carry on with the "sudo su" and "make && make install", as per the instructions below.
[END EDIT]
To compile and install, open a terminal and enter:Code: [Select]It is important here not to use "sudo" alone, but "sudo su" because with sudo for some reason the installation script fails to create the necessary files and folders.sudo su
make && make install
Now, while still root modprobe the driver module:Code: [Select]modprobe rt2870sta
Give it a minute to create the ra0 device node, and network manager should now be able to display all visible wireless networks in your area, meanwhile you can stop being root.Code: [Select]exit
Make sure that ra0 is up and running as it's supposed to:Code: [Select]iwconfig
and check for a section similar to:Quotera0 RT2870 Wireless ESSID:"" Nickname:"RT2870STA"
Mode:Managed Frequency=2.412 GHz Access Point:
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=100/100 Signal level:-29 dBm Noise level:-71 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
To make sure the module is loaded after a reboot, add it to the /etc/modules file:Code: [Select]sudo sh -c 'echo rt2870sta >> /etc/modules'
Your wireless card should now be working (it may require a reboot first)... Use network manager to set your WEP/WPA(2) key, and connect to your network.
Further info can be found at the following URLs:
[url]https://bugs.launchpad.net/ubuntu/+source/linux/+bug/460323[/url] ([url]https://bugs.launchpad.net/ubuntu/+source/linux/+bug/460323[/url])
http://www.linuxquestions.org/questions/linux-hardware-18/d-link-dwa-140-802-11n-usb-with-ralink-rt2870-chispet-driver-probs-635827/ ([url]http://http://www.linuxquestions.org/questions/linux-hardware-18/d-link-dwa-140-802-11n-usb-with-ralink-rt2870-chispet-driver-probs-635827/[/url])
http://swiss.ubuntuforums.org/showthread.php?t=1382798 ([url]http://http://swiss.ubuntuforums.org/showthread.php?t=1382798[/url])
/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.c: In function ‘RTMPIoctlE2PROM’:
/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.c:6035:1: warning: the frame size of 1344 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: set di istruzioni per l'obiettivo "/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.o" non riuscito
make[2]: *** [/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.o] Errore 1
Makefile:1420: set di istruzioni per l'obiettivo "_module_/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux" non riuscito
make[1]: *** [_module_/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-4.4.0-83-generic"
Makefile:243: set di istruzioni per l'obiettivo "LINUX" non riuscito
make: *** [LINUX] Errore 2
lsusb
lsusb
lspci -vnn | grep -i net
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install build-essential linux-headers-$(uname -r) git dkms
mkdir ~/mt7610u-driver
cd ~/mt7610u-driver
git clone https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes.git
cd ~/mt7610u-driver/mt7610u-linksys-ae6000-wifi-fixes
sudo cp -R . /usr/src/mt7610u_sta-1.0
sudo dkms add mt7610u_sta/1.0
sudo dkms build mt7610u_sta/1.0
sudo dkms install mt7610u_sta/1.0
sudo modprobe mt7610u_sta
Your wireless adapter uses the MT7610U chipset.
Okay you're going to NEED an internet connection to do this, so either connect to your router with an ethernet cable, or borrow a wireless adapter that works OOTB.
At this point I'm assuming you're running Ubuntu or an Ubuntu based distro....
Once connected to the internet, open a terminal and run these commands in sequence:-Code: [Select]thensudo apt-get update
Code: [Select]Once that has finished, REBOOT <-- IMPORTANTsudo apt-get dist-upgrade
Once rebooted, connect to the internet again, open a terminal and run these commands in sequence:Code: [Select]thensudo apt-get install build-essential linux-headers-$(uname -r) git dkms
Code: [Select]thenmkdir ~/mt7610u-driver
Code: [Select]thencd ~/mt7610u-driver
Code: [Select]thengit clone https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes.git
Code: [Select]thencd ~/mt7610u-driver/mt7610u-linksys-ae6000-wifi-fixes
Code: [Select]thensudo cp -R . /usr/src/mt7610u_sta-1.0
Code: [Select]thensudo dkms add mt7610u_sta/1.0
Code: [Select]thensudo dkms build mt7610u_sta/1.0
Code: [Select]thensudo dkms install mt7610u_sta/1.0
Code: [Select]did wireless spring to life ?sudo modprobe mt7610u_sta
Your wireless adapter uses the MT7610U chipset.
Okay you're going to NEED an internet connection to do this, so either connect to your router with an ethernet cable, or borrow a wireless adapter that works OOTB.
At this point I'm assuming you're running Ubuntu or an Ubuntu based distro....
Once connected to the internet, open a terminal and run these commands in sequence:-Code: [Select]thensudo apt-get update
Code: [Select]Once that has finished, REBOOT <-- IMPORTANTsudo apt-get dist-upgrade
Once rebooted, connect to the internet again, open a terminal and run these commands in sequence:Code: [Select]thensudo apt-get install build-essential linux-headers-$(uname -r) git dkms
Code: [Select]thenmkdir ~/mt7610u-driver
Code: [Select]thencd ~/mt7610u-driver
Code: [Select]thengit clone https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes.git
Code: [Select]thencd ~/mt7610u-driver/mt7610u-linksys-ae6000-wifi-fixes
Code: [Select]thensudo cp -R . /usr/src/mt7610u_sta-1.0
Code: [Select]thensudo dkms add mt7610u_sta/1.0
Code: [Select]thensudo dkms build mt7610u_sta/1.0
Code: [Select]thensudo dkms install mt7610u_sta/1.0
Code: [Select]did wireless spring to life ?sudo modprobe mt7610u_sta
IT WORKS!!! ITS ALIVE!!!! Man who are you, did you write the embedded system code for the adaptor? THANK YOU SO MUCH.
sudo dkms remove mt7610u_sta/1.02 --all
sudo dkms install mt7610u_sta/1.0
Linux debian 2.6.32-5-686
#define usb_buffer_alloc(a, b, c, d) usb_alloc_coherent(a, b, c, d)
#define usb_buffer_free(a, b, c, d) usb_free_coherent(a, b, c, d)
[ 4528.722646] rt2870sta: Unknown symbol usb_alloc_coherent
[ 4528.723334] rt2870sta: Unknown symbol usb_free_coherent
[11112.284041] usb 2-3: new full speed USB device using ohci_hcd and address 3
[11112.464042] usb 2-3: device descriptor read/64, error -62
[11112.748374] usb 2-3: device descriptor read/64, error -62
[11113.028041] usb 2-3: new full speed USB device using ohci_hcd and address 4
[11113.208041] usb 2-3: device descriptor read/64, error -62
[11113.492042] usb 2-3: device descriptor read/64, error -62
[11113.772041] usb 2-3: new full speed USB device using ohci_hcd and address 5
[11114.180034] usb 2-3: device not accepting address 5, error -62
[11114.356040] usb 2-3: new full speed USB device using ohci_hcd and address 6
[11114.764034] usb 2-3: device not accepting address 6, error -62
[11114.764361] hub 2-0:1.0: unable to enumerate USB device on port 3
lsusb
Try:Code: [Select]then:sudo dkms remove mt7610u_sta/1.02 --all
Code: [Select]then reboot.sudo dkms install mt7610u_sta/1.0
In function ‘memcpy’,
inlined from ‘rt_ioctl_iwaplist’ at /var/lib/dkms/mt7610u_sta/1.0/build/os/linux/../../os/linux/sta_ioctl.c:696:2:
./include/linux/string.h:305:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter
__read_overflow2();
^
scripts/Makefile.build:308: recipe for target '/var/lib/dkms/mt7610u_sta/1.0/build/os/linux/../../os/linux/sta_ioctl.o' failed
make[2]: *** [/var/lib/dkms/mt7610u_sta/1.0/build/os/linux/../../os/linux/sta_ioctl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:1550: recipe for target '_module_/var/lib/dkms/mt7610u_sta/1.0/build/os/linux' failed
make[1]: *** [_module_/var/lib/dkms/mt7610u_sta/1.0/build/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-32-generic'
Makefile:394: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
sudo dkms uninstall mt7610u_sta/1.0
sudo dkms remove mt7610u_sta/1.0 --all
sudo rm -rv /usr/src/mt7610u_sta-1.0
sudo rm -rv ~/mt7610u-driver
mkdir ~/mt7610u-driver
cd ~/mt7610u-driver
git clone https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes.git
cd ~/mt7610u-driver/mt7610u-linksys-ae6000-wifi-fixes
sudo cp -R . /usr/src/mt7610u_sta-1.0
sudo dkms add mt7610u_sta/1.0
sudo dkms build mt7610u_sta/1.0
sudo dkms install mt7610u_sta/1.0
sudo modprobe mt7610u_sta
Im trying to see why that is
sudo dkms uninstall mt7610u_sta/1.0
sudo dkms remove mt7610u_sta/1.0 --all
sudo rm -rv /usr/src/mt7610u_sta-1.0
sudo rm -rv ~/mt7610u-driver
mkdir ~/mt7610u
cd ~/mt7610u
git clone https://github.com/ulli-kroll/mt7610u.git
cd ~/mt7610u/mt7610u
make
sudo make installfw
sudo rm -rv /etc/Wireless/RT2870STA
sudo mkdir /etc/Wireless/RT2870STA
sudo cp -v RT2870STA.dat /etc/Wireless/RT2870STA/
sudo install -d /lib/modules/$(uname -r)/kernel/drivers/net/wireless/
sudo install -m 644 -c mt7610u.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless/
sudo depmod -a $(uname -r)
sudo rmmod mt7610u_sta
sudo modprobe mt7610u
sudo rmmod mt7610u
sudo rm -v /lib/modules/$(uname -r)/kernel/drivers/net/wireless/mt7610u.ko
sudo rm -rv /etc/Wireless/RT2870STA
sudo rm -v /lib/firmware/mt7610u.bin
sudo rm -v /lib/firmware/mt7650u.bin
sudo depmod -a $(uname -r)