chenhaiq / mt7610u_wifi_sta_v3002_dpo_20130916

Modified usb wifi driver for TP_link TL-WDN5200
MIT License
132 stars 116 forks source link

mod loaded but could not up the interface #22

Open imcom opened 7 years ago

imcom commented 7 years ago

Hi, I've met a problem when using TP-Link Wifi usb adaptor on Kali Linux VMware appliance Linux kali 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux I can successfully build and install the driver. root@kali:~/Downloads# ls /etc/Wireless/ RT2860STA RT2870STA root@kali:~/Downloads# lsmod | grep mt mt7650u_sta 913408 0 root@kali:~/Downloads# modinfo mt7650u_sta filename: /lib/modules/4.6.0-kali1-amd64/kernel/drivers/net/wireless/mt7650u_sta.ko version: 3.0.0.2 description: RT2870 Wireless Lan Linux Driver author: Paul Lin <paul_lin@ralinktech.com> license: GPL srcversion: C4EC161E050A8991A242873 alias: usb:v0E8Dp7650d*dc*dsc*dp*icFFisc02ipFFin* alias: usb:v0E8Dp7640d*dc*dsc*dp*icFFisc02ipFFin* alias: usb:v0E8Dp7630d*dc*dsc*dp*icFFisc02ipFFin* alias: usb:v148Fp760Ad*dc*dsc*dp*ic*isc*ip*in* alias: usb:v2357p0105d*dc*dsc*dp*ic*isc*ip*in* alias: usb:v0E8Dp7610d*dc*dsc*dp*ic*isc*ip*in* alias: usb:v148Fp7610d*dc*dsc*dp*ic*isc*ip*in* alias: usb:v148Fp761Ad*dc*dsc*dp*ic*isc*ip*in* depends: usbcore vermagic: 4.6.0-kali1-amd64 SMP mod_unload modversions parm: mac:rt28xx: wireless mac addr (charp) root@kali:~/Downloads# lsusb Bus 002 Device 002: ID 148f:761a Ralink Technology, Corp. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub Bus 001 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub iwconfig can also list the device ` root@kali:~/Downloads# iwconfig lo no wireless extensions.

ra0 Ralink STA

eth0 no wireless extensions.

`

However, when I try to up the interface ra0, it will show · root@kali:~/Downloads# ifconfig ra0 up SIOCSIFFLAGS: Operation not permitted

· and dmesg output ... · 3106.912404] INFO::Network is down! [ 3106.912406] INFO::Network is down! [ 3106.912407] INFO::Network is down! [ 3106.912408] INFO::Network is down! [ 3106.912409] ===>rt_ioctl_giwrange [ 3106.912411] INFO::Network is down! [ 3106.912412] INFO::Network is down! [ 3106.912413] INFO::Network is down! [ 3106.912414] rt28xx_get_wireless_stats ---> [ 3106.912415] INFO::Network is down! [ 3106.912415] INFO::Network is down! [ 3106.912416] INFO::Network is down! [ 3106.912416] INFO::Network is down! [ 3106.912417] INFO::Network is down! [ 3106.912417] INFO::Network is down! [ 3150.651213] Allocate 12288 memory for BA reordering [ 3150.651531] MAC[Ver:Rev=0x76502000 : 0x76100002] [ 3150.671691] -->RTUSBVenderReset [ 3150.675501] <--RTUSBVenderReset [ 3150.680466] fw version:0.1.00 build:7640 [ 3150.680468] build time:201308221655____ [ 3150.680471] ilm length = 68780(bytes) [ 3150.680471] dlm length = 11476(bytes) [ 3150.757458] # [ 3150.843875] # [ 3150.925979] # [ 3151.011840] # [ 3151.093876] # [ 3151.179903] # [ 3151.261929] # [ 3151.345241] # [ 3151.426794] # [ 3151.508764] # [ 3151.514113] RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x6, Idx=0x800,pAd->Flags=0x0 [ 3151.514117] VendrCmdMultiWrite_nBytes failed! [ 3151.556553] loading fwupload fw timeout(1000ms) [ 3152.575907] andes_usb_loadfw: submit urb, sent_len = 14584, ilm_ilm = 68780, cur_len = 14648 [ 3152.580451] Load fw spent 1928ms [ 3152.580458] ERROR!!! NICLoadFirmware failed, Status[=0x00000001] [ 3152.580575] !!! rt28xx init fail !!! [ 3152.580579] rt28xx_open return fail! · What could be wrong here ?

Thanks in advance

zaldhyx77 commented 7 years ago

i got the exact same issue!! im using 4.9.6-1-MANJARO pls help me i installed without any error using AUR package... also another strange thing its detected at first 5seconds when pluged ra0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 18:d6:c7:12:ff:96 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 then dissapeared.. only showed at 'iwconfig' with 'ra0 Ralink STA'

xieqiang15 commented 7 years ago

make sure that: [xxx@dev ~]$ tree /etc/Wireless/ /etc/Wireless/ ├── RT2860STA │   └── RT2860STA.dat └── RT2870STA └── RT2870STA.dat

2 directories, 2 files

So, to make it work at least somehow:

Stop NetworkManager

Create netctl profile:

Description='Localhost-new @ ra0' Interface=ra0 Connection=wireless Security=wpa ESSID=Localhost-new IP=dhcp Key=12345678

$ netctl start ra0-Localhost-new (or whatever you named your file)

steveash commented 7 years ago

I got mine working by:

  1. exactly following the instructions in the README.md file.
    1. create /etc/Wireless/RT2870STA
    2. re-run make install to re-copy the RT2860STA file to the right spot
    3. type out the cp command exactly as written in README.md. do not use tab completion because that will lead you to accidentally overwrite RT2860STA instead of copy a new file RT2870STA
  2. rebooting still didn't auto-detect the device though. but now i was able to run ifconfig ra0 up without getting an error message
  3. I did have to manually create a wifi connection through network manager gui in ubuntu:
    1. network connections -> Add. Manually specify the SSID and for device put ra0 then enter any password info.
  4. restart network-manager: sudo service network-manager restart
  5. viola! now it auto-detects all of the SSIDs around me and connects just fine