chenhaiq / mt7610u_wifi_sta_v3002_dpo_20130916

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

Make error fixed :) #42

Open tope5 opened 6 years ago

tope5 commented 6 years ago

I had all the same issues, after hours of trial and error I found an error in a function call of the makefile.

  1. open the extracted file
  2. use "control f" to search "rtmposfilewrite"
  3. click rt_linux.c
  4. use "control f" to search for vfs
  5. there will be about 5!!! different lines of code that look like vfs_read(osfd, pDataPtr, readLen, &osfd->f_pos);) or vfs_write(osfd, pDataPtr, (size_t) writeLen, &osfd->f_pos);

................you need to remove the underscores from before the funtion call so that it looks like this

vfs_read(osfd, pDataPtr, readLen, &osfd->f_pos);) or vfs_write(osfd, pDataPtr, (size_t) writeLen, &osfd->f_pos);

  1. once this is done save the changes and open up the makefile again.

  2. Make sure at the bottom of the make file in the little tabs just left of where it says "line" "tabwith" it says "makefile" mine originally said "plain text".

  3. save the file

  4. repeat the steps by @artv2007 👍

Are you use kali live usb? If no, delete all from sources.list except this string deb http://http.kali.org/kali kali-rolling main non-free contrib

and run again sudo apt-get install linux-headers-$(uname -r)

if the error will again, then do sudo apt-get update # this pulls the latest packages list from the kali sources repo sudo apt-get -y dist-upgrade # when installing this, you would see the latest kernel

image in the list of packages to be installed,something

like" linux-image-4.5.0-kali1-amd64"

reboot # MOST IMPORTANT STEP! make sure you reboot the machine via this cmd OR

shutdown, restart forcefully after completing prev cmds

after reboot sudo apt-get install linux-headers-$(uname -r)

  1. and then follow the steps provided by this link:

https://medium.com/@honsontran/installing-tp-link-archer-t2uh-ac600-on-vmware-for-kali-linux-4fa2db52cd69

(Note: on the link it shows an update alternative to gcc 5. this is also part of the solution but you will have to install gcc5 first. I was running gcc 7 and had to swap to the older version. To do this )

enter this line in a new terminal echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list.d/unstable.list

sudo apt-get update

apt-get install -t unstable gcc-5

(then run the previous alternatives command and try the whole procces following the steps in the link provided)

ZelphirKaltstahl commented 6 years ago

Looks interesting, will try that soon, I think. Thanks for posting it.

tope5 commented 6 years ago

Please note: The first part of the fix where i said error in the "makefile" i actually meant a function that the makefile calls from a seperate file. So by open extracted file i actually mean open: "mt7610u_wifi_sta_v3002_dpo_20130916-master" then follow the instructions..