chenhaiq / mt7610u_wifi_sta_v3002_dpo_20130916

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

TP-Link Adapter T2UH fail on ifconfig ra0 up #38

Closed SAThomsen closed 6 years ago

SAThomsen commented 6 years ago

I'm running Kali version 2017.3 in VirtualBox, fully updated with guest additions.

When trying to launch the driver with ifconfig ra0 up i get:

SIOCSIFFLAGS: Operation not permitted

Running lsusb yield:

Bus 001 Device 004: ID 148f:761a Ralink Technology, Corp. 
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

I have modified the driver slightly in order to be able to build. I've included this in rt_linux.c in the top of the file:

#include <linux/slab.h>
#define __vfs_read(a,b,c,d) vfs_read(a,b,c,d)
#define __vfs_write(a,b,c,d) vfs_write(a,b,c,d)

The system log looks like this:

Dec 30 15:36:53 kali kernel: [ 5054.016620] -->RTUSBVenderReset
Dec 30 15:36:53 kali kernel: [ 5054.021224] <--RTUSBVenderReset
Dec 30 15:36:53 kali kernel: [ 5054.026189] fw version:0.1.00 
Dec 30 15:36:53 kali kernel: [ 5054.026191] build:7640
Dec 30 15:36:53 kali kernel: [ 5054.026191] build time:
Dec 30 15:36:53 kali kernel: [ 5054.026192] 2
Dec 30 15:36:53 kali kernel: [ 5054.026192] 0
Dec 30 15:36:53 kali kernel: [ 5054.026192] 1
Dec 30 15:36:53 kali kernel: [ 5054.026193] 3
Dec 30 15:36:53 kali kernel: [ 5054.026193] 0
Dec 30 15:36:53 kali kernel: [ 5054.026193] 8
Dec 30 15:36:53 kali kernel: [ 5054.026194] 2
Dec 30 15:36:53 kali kernel: [ 5054.026194] 2
Dec 30 15:36:53 kali kernel: [ 5054.026194] 1
Dec 30 15:36:53 kali kernel: [ 5054.026195] 6
Dec 30 15:36:53 kali kernel: [ 5054.026195] 5
Dec 30 15:36:53 kali kernel: [ 5054.026195] 5
Dec 30 15:36:53 kali kernel: [ 5054.026196] _
Dec 30 15:36:53 kali kernel: [ 5054.026196] _
Dec 30 15:36:53 kali kernel: [ 5054.026196] _
Dec 30 15:36:53 kali kernel: [ 5054.026197] _
Dec 30 15:36:53 kali kernel: [ 5054.026197] 
Dec 30 15:36:53 kali kernel: [ 5054.026198] ilm length = 68780(bytes)
Dec 30 15:36:53 kali kernel: [ 5054.026198] dlm length = 11476(bytes)
Dec 30 15:36:54 kali kernel: [ 5054.110424] #
Dec 30 15:36:54 kali kernel: [ 5054.195115] #
Dec 30 15:36:54 kali kernel: [ 5054.279675] #
Dec 30 15:36:54 kali kernel: [ 5054.363959] #
Dec 30 15:36:54 kali kernel: [ 5054.447249] #
Dec 30 15:36:54 kali kernel: [ 5054.531177] #
Dec 30 15:36:54 kali kernel: [ 5054.615710] #
Dec 30 15:36:54 kali kernel: [ 5054.699630] #
Dec 30 15:36:54 kali kernel: [ 5054.782998] #
Dec 30 15:36:54 kali kernel: [ 5054.867361] #
Dec 30 15:36:54 kali kernel: [ 5054.872370] RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x6, Idx=0x800,pAd->Flags=0x0
Dec 30 15:36:54 kali kernel: [ 5054.872371] VendrCmdMultiWrite_nBytes failed!
Dec 30 15:36:54 kali kernel: [ 5054.951961] #
Dec 30 15:36:54 kali kernel: [ 5055.035762] #
Dec 30 15:36:55 kali kernel: [ 5055.119615] #
Dec 30 15:36:55 kali kernel: [ 5055.203717] #
Dec 30 15:36:55 kali kernel: [ 5055.286749] #
Dec 30 15:36:55 kali kernel: [ 5055.370905] #
Dec 30 15:36:55 kali kernel: [ 5055.455632] #
Dec 30 15:36:55 kali kernel: [ 5055.539508] #
Dec 30 15:36:55 kali kernel: [ 5055.623810] #
Dec 30 15:36:55 kali kernel: [ 5055.710962] #
Dec 30 15:36:55 kali kernel: [ 5055.716027] RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x6, Idx=0x9a0,pAd->Flags=0x0
Dec 30 15:36:55 kali kernel: [ 5055.716028] VendrCmdMultiWrite_nBytes failed!
Dec 30 15:36:55 kali kernel: [ 5055.795613] #
Dec 30 15:36:55 kali kernel: [ 5055.879342] #
Dec 30 15:36:55 kali kernel: [ 5055.962912] #
Dec 30 15:36:56 kali kernel: [ 5056.048436] #
Dec 30 15:36:56 kali kernel: [ 5056.132031] #
Dec 30 15:36:56 kali kernel: [ 5056.215528] #
Dec 30 15:36:56 kali kernel: [ 5056.298488] #
Dec 30 15:36:56 kali kernel: [ 5056.382976] #
Dec 30 15:36:56 kali kernel: [ 5056.469754] #
Dec 30 15:36:56 kali kernel: [ 5056.554741] #
Dec 30 15:36:56 kali kernel: [ 5056.559743] RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x6, Idx=0x9a4,pAd->Flags=0x0
Dec 30 15:36:56 kali kernel: [ 5056.559744] VendrCmdMultiWrite_nBytes failed!
Dec 30 15:36:56 kali kernel: [ 5056.639786] #
Dec 30 15:36:56 kali kernel: [ 5056.723081] #
Dec 30 15:36:56 kali kernel: [ 5056.808144] #
Dec 30 15:36:56 kali kernel: [ 5056.891205] #
Dec 30 15:36:56 kali kernel: [ 5056.974474] #
Dec 30 15:36:57 kali kernel: [ 5057.059196] #
Dec 30 15:36:57 kali kernel: [ 5057.145004] #
Dec 30 15:36:57 kali kernel: [ 5057.226510] #
Dec 30 15:36:57 kali kernel: [ 5057.311484] #
Dec 30 15:36:57 kali kernel: [ 5057.394571] #
Dec 30 15:36:57 kali kernel: [ 5057.399596] RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x6, Idx=0x9c4,pAd->Flags=0x0
Dec 30 15:36:57 kali kernel: [ 5057.399597] VendrCmdMultiWrite_nBytes failed!
Dec 30 15:36:57 kali kernel: [ 5057.479473] #
Dec 30 15:36:57 kali kernel: [ 5057.562268] #
Dec 30 15:36:57 kali kernel: [ 5057.647247] #
Dec 30 15:36:57 kali kernel: [ 5057.730806] #
Dec 30 15:36:57 kali kernel: [ 5057.815246] #
Dec 30 15:36:57 kali kernel: [ 5057.898983] #
Dec 30 15:36:57 kali kernel: [ 5057.983711] #
Dec 30 15:36:58 kali kernel: [ 5058.067995] #
Dec 30 15:36:58 kali kernel: [ 5058.152980] #
Dec 30 15:36:58 kali kernel: [ 5058.236955] #
Dec 30 15:36:58 kali kernel: [ 5058.241984] RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x6, Idx=0xa6c,pAd->Flags=0x0
Dec 30 15:36:58 kali kernel: [ 5058.241985] VendrCmdMultiWrite_nBytes failed!
Dec 30 15:36:58 kali kernel: [ 5058.322244] #
Dec 30 15:36:58 kali kernel: [ 5058.407741] #
Dec 30 15:36:58 kali kernel: [ 5058.491593] #
Dec 30 15:36:58 kali kernel: [ 5058.575034] #
Dec 30 15:36:58 kali kernel: [ 5058.658548] #
Dec 30 15:36:58 kali kernel: [ 5058.742354] #
Dec 30 15:36:58 kali kernel: [ 5058.826900] #
Dec 30 15:36:58 kali kernel: [ 5058.911752] #
Dec 30 15:36:58 kali kernel: [ 5058.994940] #
Dec 30 15:37:00 kali kernel: [ 5059.041022] loading fw
Dec 30 15:37:00 kali kernel: [ 5060.098216] upload fw timeout(1000ms)
Dec 30 15:37:00 kali kernel: [ 5060.098220] andes_usb_loadfw: submit urb, sent_len = 14584, ilm_ilm = 68780, cur_len = 14648
Dec 30 15:37:00 kali kernel: [ 5060.121729] ERROR!!! 
Dec 30 15:37:00 kali kernel: [ 5060.121733] NICLoadFirmware failed, Status[=0x00000001]
Dec 30 15:37:00 kali kernel: [ 5060.121735] !!! rt28xx init fail !!!
vibern0 commented 6 years ago

If I'm not wrong, you are using Kali, but what kernel version ?

SAThomsen commented 6 years ago

Hey @obernardovieira, yeah sorry that should have been included ofc. I'm using the latest VirtualBox image version 2017.3, fully updated with guest additions. I've updated the post to include those details :)

ctlayon commented 6 years ago

Make sure you cp the build to the right path, i ran into the same issue:

cp RT2870STA.dat /etc/Wireless/RT2870STA.dat

goetzc commented 6 years ago

That is not the kernel version. Kali 2017.3 uses Linux 4.13.10

Noushikh commented 6 years ago

hey can u plz hepl i can't connect my tp link with my virtual m/c kali. am using mac and virtual kali and tp link 722n wifi adapter. when i start my virtual m.c the adapter goes to offline why ? anyone plz help me

Noushikh commented 6 years ago

Sorry I didn’t understand anything can you please help me

On Mon, 9 Jul 2018 at 11:48 AM, Sebastian Aleksander Thomsen < notifications@github.com> wrote:

Closed #38 https://github.com/chenhaiq/mt7610u_wifi_sta_v3002_dpo_20130916/issues/38 .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chenhaiq/mt7610u_wifi_sta_v3002_dpo_20130916/issues/38#event-1722321545, or mute the thread https://github.com/notifications/unsubscribe-auth/Ag_1FX890w7GIY9-lQQw93fCNtKWxsJ0ks5uEvWngaJpZM4RPsdD .