[SOLVED] TP link Dual Band wifi adapter
Welcome, Guest.
"When tyranny becomes law, rebellion becomes duty." -Thomas Jefferson

Author Topic: [SOLVED] TP link Dual Band wifi adapter  (Read 5639 times)

Offline w7gsh

  • Newbie
  • **
  • Posts: 22
  • Success is a Journey.Not a Destination
[SOLVED] TP link Dual Band wifi adapter
« on: October 29, 2016, 07:07:58 PM »
Hello All,I have been using MCOLE for about a month now,and its been awesome.I recently obtained another pc that has no wifi so I went and bought a wifi adapter for it.I bought a TP_Link Archer T2U ac 600 Dual Band USB adapter.The problem is I cant get the driver to install the output from my terminal is below of what I did to try to install it.Any help would be appreciated.Thanks                    
                           gary@Gary
                           OS: manjaro cup of linux edition 1.16
                           Kernel: x86_64 Linux 4.1.34-2-MANJARO
       #####               Uptime: 22h 5m
      #######              Packages: Unknown
      ##O#O##              Shell: bash 4.3.46
      #######              Resolution: 1280x1024
    ###########            DE: XFCE4
   #############           WM: Xfwm4
  ###############          WM Theme: Tgc
  ################         GTK Theme: mCOLe-twilight [GTK2]
 #################         Icon Theme: gnome
#####################       Font: Cantarell 10
#####################       CPU: Intel Core i3-2120 CPU @ 3.3GHz
 #################         GPU: Mesa DRI Intel(R) Sandybridge Desktop
                           RAM: 731MiB / 5868MiB
                         
                         
┌────[gary@Gary]───────[16:53:57]───────[~]─────────────────────────────────────
└──> yaourt mt7610u_wifi_sta
1 aur/mt7610u_wifi_sta 4606187-2 (6) (0.95)
  Kernel module for MediaTek MT7610U chipset featured in TP-Link Archer T2U
  and T2UH, TP-Link TL-WDN5200, ASUS USB-AC50, ASUS USB-AC51, Comcast
  Xfinity KXW02AAA, D-Link DWA-171 rev B1 and more
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> -------------------------------------------------------
==> 1


==> Downloading mt7610u_wifi_sta PKGBUILD from AUR...
x .SRCINFO
x 0001-fix-compile-against-kernel-4.6.patch
x PKGBUILD
x depmod.install
kreon commented on 2016-06-01 17:42
Hi @cyrelk @lothar_m.
I've fixed install path, thanks for your patience.

edh commented on 2016-07-03 13:31
The module is not building with the latest 4.6 kernel. Maybe the patch [1] which is suggested at the underlying repository might work in a modified version.

[1] newbielink:https://github.com/chenhaiq/mt7610u_wifi_sta_v3002_dpo_20130916/pull/6/files [nonactive]

kreon commented on 2016-10-07 19:52
I've fixed kernel 4.6 compile. Thanks for your patience!

ralivraliv commented on 2016-10-28 20:14
I tried to use it but I get this message every time that I use it:
make -C tools
make[1]: Entering directory '/root/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/root/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
/root/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h
chipset = mt7650u
chipset = mt7630u
chipset = mt7610u
cp -f os/linux/Makefile.6 /root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/Makefile
make -C /lib/modules/4.6.0-kali1-amd64/build SUBDIRS=/root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules
make[1]: Entering directory '/lib/modules/4.6.0-kali1-amd64/build'
make[1]: Nothing to be done for 'modules'.
make[1]: Leaving directory '/lib/modules/4.6.0-kali1-amd64/build'
cp -f /root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/mt7650u_sta.ko /tftpboot 2/dev/null || :

It is for a Tp-Link T2UH.

kreon commented on 2016-10-28 20:18
I'm unsure why it sends you to /tftpboot, seems you have non-default Arch (Kali?!) installation. You should fix Makefile to install the module to right place.

mt7610u_wifi_sta 4606187-2  (2016-10-07 19:51)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> mt7610u_wifi_sta dependencies:
- linux (already installed)
- git (already installed) [makedepend]
- linux-headers (already installed) [makedepend]


==> Edit depmod.install ? [Y/n] ("A" to abort)
==> ------------------------------------------
==> n

==> Continue building mt7610u_wifi_sta ? [Y/n]
==> ------------------------------------------
==> y

==> Building and installing package
==> Making package: mt7610u_wifi_sta 4606187-2 (Sat Oct 29 16:54:58 MDT 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning mt7610u_wifi_sta git repo...
Cloning into bare repository '/tmp/yaourt-tmp-gary/aur-mt7610u_wifi_sta/mt7610u_wifi_sta'...
remote: Counting objects: 581, done.
remote: Total 581 (delta 0), reused 0 (delta 0), pack-reused 581
Receiving objects: 100% (581/581), 2.00 MiB | 526.00 KiB/s, done.
Resolving deltas: 100% (267/267), done.
-> Found 0001-fix-compile-against-kernel-4.6.patch
==> Validating source files with md5sums...
  mt7610u_wifi_sta ... Skipped
  0001-fix-compile-against-kernel-4.6.patch ... Passed
==> Extracting sources...
-> Creating working copy of mt7610u_wifi_sta_v3002_dpo_20130916 git repo...
Cloning into 'mt7610u_wifi_sta'...
done.
==> Starting build()...
patching file chips/mt76x0.c
patching file chips/rtmp_chip.c
patching file common/rtusb_io.c
patching file common/txpower.c
patching file mcu/mcu.c
patching file mcu/mcu_and.c
patching file os/linux/cfg80211.c
make: Entering directory '/tmp/yaourt-tmp-gary/aur-mt7610u_wifi_sta/src/mt7610u_wifi_sta'
make -C tools
make[1]: Entering directory '/tmp/yaourt-tmp-gary/aur-mt7610u_wifi_sta/src/mt7610u_wifi_sta/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/tmp/yaourt-tmp-gary/aur-mt7610u_wifi_sta/src/mt7610u_wifi_sta/tools'
/tmp/yaourt-tmp-gary/aur-mt7610u_wifi_sta/src/mt7610u_wifi_sta/tools/bin2h
chipset = mt7610u
cp -f os/linux/Makefile.6 /tmp/yaourt-tmp-gary/aur-mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/Makefile
make -C /lib/modules/4.1.34-2-MANJARO/build SUBDIRS=/tmp/yaourt-tmp-gary/aur-mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux modules
make[1]: Entering directory '/usr/lib/modules/4.1.34-2-MANJARO/build'
make[1]: *** No rule to make target 'modules'.  Stop.
make[1]: Leaving directory '/usr/lib/modules/4.1.34-2-MANJARO/build'
make: *** [Makefile:404: LINUX] Error 2
make: Leaving directory '/tmp/yaourt-tmp-gary/aur-mt7610u_wifi_sta/src/mt7610u_wifi_sta'
==> ERROR: A failure occurred in build().
  Aborting...
==> ERROR: Makepkg was unable to build mt7610u_wifi_sta.
==> Restart building mt7610u_wifi_sta ? [y/N]
==> -----------------------------------------
==>
« Last Edit: November 10, 2016, 07:29:24 AM by w7gsh »

Offline edge226

  • Full Member
  • ****
  • Posts: 285
Re: TP link Dual Band wifi adapter
« Reply #1 on: October 29, 2016, 07:38:26 PM »
Can you reform your post using
Code: [Select]
code blocks
to split up the things you're saying and the terminal output. It all bleeds together and I can't really get what is what. Also when you post output, the command you ran is required.

Offline w7gsh

  • Newbie
  • **
  • Posts: 22
  • Success is a Journey.Not a Destination
Re: TP link Dual Band wifi adapter
« Reply #2 on: October 29, 2016, 07:55:28 PM »
The top of the post is from Screenfetch.Could you tell how to make code blocks sorry.I searched the name of driver in yaourt and entered the number to install.and terminal took over from there.So not sure what you are asking me. Bottom line I was trying to install the driver for the adapter and mkpkg failed and I dont know why.              
                            gary@Gary
                            OS: manjaro cup of linux edition 1.16
                            Kernel: x86_64 Linux 4.1.34-2-MANJARO
        #####               Uptime: 22h 5m
       #######              Packages: Unknown
       ##O#O##              Shell: bash 4.3.46
       #######              Resolution: 1280x1024
     ###########            DE: XFCE4
    #############           WM: Xfwm4
   ###############          WM Theme: Tgc
   ################         GTK Theme: mCOLe-twilight [GTK2]
  #################         Icon Theme: gnome
#####################       Font: Cantarell 10
#####################       CPU: Intel Core i3-2120 CPU @ 3.3GHz
  #################         GPU: Mesa DRI Intel(R) Sandybridge Desktop
                            RAM: 731MiB / 5868MiB
                           
                           
┌────[gary@Gary]───────[16:53:57]───────[~]─────────────────────────────────────
└──> yaourt mt7610u_wifi_sta
1 aur/mt7610u_wifi_sta 4606187-2 (6) (0.95)
   Kernel module for MediaTek MT7610U chipset featured in TP-Link Archer T2U
   and T2UH, TP-Link TL-WDN5200, ASUS USB-AC50, ASUS USB-AC51, Comcast
   Xfinity KXW02AAA, D-Link DWA-171 rev B1 and more
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> -------------------------------------------------------
==> 1


==> Downloading mt7610u_wifi_sta PKGBUILD from AUR...
x .SRCINFO
x 0001-fix-compile-against-kernel-4.6.patch
x PKGBUILD
x depmod.install

[1] newbielink:https://github.com/chenhaiq/mt7610u_wifi_sta_v3002_dpo_20130916/pull/6/files [nonactive]

kreon commented on 2016-10-07 19:52
I've fixed kernel 4.6 compile. Thanks for your patience!

ralivraliv commented on 2016-10-28 20:14
I tried to use it but I get this message every time that I use it:
make -C tools
make[1]: Entering directory '/root/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/root/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
/root/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h
chipset = mt7650u
chipset = mt7630u
chipset = mt7610u
cp -f os/linux/Makefile.6 /root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/Makefile
make -C /lib/modules/4.6.0-kali1-amd64/build SUBDIRS=/root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules
make[1]: Entering directory '/lib/modules/4.6.0-kali1-amd64/build'
make[1]: Nothing to be done for 'modules'.
make[1]: Leaving directory '/lib/modules/4.6.0-kali1-amd64/build'
cp -f /root/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/mt7650u_sta.ko /tftpboot 2/dev/null || :



mt7610u_wifi_sta 4606187-2  (2016-10-07 19:51)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n

==> mt7610u_wifi_sta dependencies:
- linux (already installed)
- git (already installed) [makedepend]
- linux-headers (already installed) [makedepend]


==> Edit depmod.install ? [Y/n] ("A" to abort)
==> ------------------------------------------
==> n
make[1]: Entering directory '/usr/lib/modules/4.1.34-2-MANJARO/build'
make[1]: *** No rule to make target 'modules'.  Stop.
make[1]: Leaving directory '/usr/lib/modules/4.1.34-2-MANJARO/build'
make: *** [Makefile:404: LINUX] Error 2
make: Leaving directory '/tmp/yaourt-tmp-gary/aur-mt7610u_wifi_sta/src/mt7610u_wifi_sta'
==> ERROR: A failure occurred in build().
   Aborting...
==> ERROR: Makepkg was unable to build mt7610u_wifi_sta.
==> Restart building mt7610u_wifi_sta ? [y/N]
==> -----------------------------------------



« Last Edit: October 29, 2016, 09:49:14 PM by w7gsh »

Offline edge226

  • Full Member
  • ****
  • Posts: 285
Re: TP link Dual Band wifi adapter
« Reply #3 on: October 30, 2016, 06:55:02 AM »
At the top of the place where you type on the forum there is an icon with a sheet of paper that has <>, That allows you to format it so it will be more readable.
 I'd suggest just modifying the exiting first post then we can remove non-troubleshooting related posts.

Offline w7gsh

  • Newbie
  • **
  • Posts: 22
  • Success is a Journey.Not a Destination
Re: TP link Dual Band wifi adapter
« Reply #4 on: October 30, 2016, 09:57:35 PM »
I got the driver to install finally,and I can now see the adapter using lsusb in terminal.The problem now is I can see the adapter in networks but it says it's disconnected,and when try to create a new connection it says;
Failed to add new connection
(2) active connection removed before it was initialized