﻿{"id":1681,"date":"2018-02-07T15:28:14","date_gmt":"2018-02-07T07:28:14","guid":{"rendered":"http:\/\/nick.txtcc.com\/?p=1681"},"modified":"2018-02-07T17:51:44","modified_gmt":"2018-02-07T09:51:44","slug":"install-tp-link-wn725n-wifi-usb-adapter-on-ubuntu","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/linux\/1681","title":{"rendered":"install tp link wn725n wifi usb adapter on ubuntu"},"content":{"rendered":"<p>I found the solution. I installed the driver for the usb wifi adapter successfully using the following:<\/p>\n<pre><code>sudo apt-get update\nsudo apt-get install linux-headers-$(uname -r)\nsudo apt-get update\nsudo apt-get install build-essential\nsudo apt-get install git\ngit clone https:\/\/github.com\/lwfinger\/rtl8188eu\ncd rtl8188eu\nmake all\nsudo make install\nsudo modprobe 8188eu.ko\n<\/code><\/pre>\n<p>and then I used the following command:<\/p>\n<pre><code>sudo lshw -C network\n<\/code><\/pre>\n<p>to get the internal wifi driver file name and then add it to blacklist<\/p>\n<pre><code>sudo -H gedit \/etc\/modprobe.d\/blacklist\n<\/code><\/pre>\n<p>and add the following line to the end of the file:<\/p>\n<pre><code>blacklist xxxxx\n<\/code><\/pre>\n<p>where\u00a0<code>xxxx<\/code>\u00a0is the internal wifi driver file name.<\/p>\n<p>Restart and Ubuntu should now work with the usb adapter.<\/p>\n<p>Note: if your internal wifi is fine then you don&#8217;t need to blacklist it, i only did that because it was tuened off by hardware switch and doesn&#8217;t want to turn on again and it turns off the usb wifi as well so i had to blacklist it.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Actually there are 2 different revision of this\u00a0<strong>tl-wn725n<\/strong>\u00a0wifi adapter, the\u00a0<strong>v1<\/strong>\u00a0and the\u00a0<strong>v2<\/strong>\u00a0which have different chipsets.<\/p>\n<h2>How to recognize them?<\/h2>\n<p>The\u00a0<a href=\"http:\/\/www.tp-link.com\/il\/faq-46.html\" rel=\"nofollow\">tp-link<\/a>\u00a0website say that is possible to recognize them by the FCCID (labeled on the adapter).<\/p>\n<p>If your FCCID terminates with\u00a0<strong>v2<\/strong>\u00a0then is the second revision, which use the\u00a0<strong>RTL8188EUS<\/strong>\u00a0Realtek chipset.<\/p>\n<p>Otherwise if your FCCID terminates with\u00a0<strong>v1<\/strong>\u00a0(or you can&#8217;t find a hardware version) it is the first revision, based on the Realtek\u00a0<strong>RTL8188CUS<\/strong>\u00a0chipset.<\/p>\n<h2>Where do i find the driver?<\/h2>\n<p>For the v2 version on the tp-link website :\u00a0<a href=\"http:\/\/www.tp-link.com\/il\/download\/TL-WN725N_V2.html\" rel=\"nofollow\">here<\/a><\/p>\n<p>For the v1 version\u00a0<a href=\"http:\/\/www.realtek.com\/downloads\/downloadsView.aspx?Langid=1&#038;PNid=21&#038;PFid=48&#038;Level=5&#038;Conn=4&#038;DownTypeID=3&#038;GetDown=false&#038;Downloads=true#2772\" rel=\"nofollow\">here<\/a>\u00a0(from realtek) , or\u00a0<a href=\"https:\/\/wireless.wiki.kernel.org\/en\/users\/Drivers\/rtl819x\" rel=\"nofollow\">here<\/a><\/p>\n<h2>More info:<\/h2>\n<p><a href=\"https:\/\/wikidevi.com\/wiki\/TP-LINK_TL-WN725N_v1\" rel=\"nofollow\"><a href=\"https:\/\/wikidevi.com\/wiki\/TP-LINK_TL-WN725N_v1\">https:\/\/wikidevi.com\/wiki\/TP-LINK_TL-WN725N_v1<\/a><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/help.ubuntu.com\/community\/HardwareSupportComponentsWirelessNetworkCardsTP-Link#USB\">https:\/\/help.ubuntu.com\/community\/HardwareSupportComponentsWirelessNetworkCardsTP-Link#USB<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3 class=\"post-title entry-title\">[FAILED] ubuntu 16.04 \u4e0a\u4f7f\u7528 TP-LINK WN725N \u514d\u9a71\u7248 \u65e0\u7ebf\u7f51\u5361<\/h3>\n<div class=\"post-header\"><\/div>\n<div id=\"post-body-8115532599153622977\" class=\"post-body entry-content\">\u8be5\u7f51\u5361\u4f7f\u7528MTK 7601u\u82af\u7247\u3002\u867d\u7136\u578b\u53f7\u4e5f\u53ebWN725N\uff0c\u4f46\u662f\u548c\u4e4b\u524d\u7684WN725N\u6839\u672c\u5c31\u4e0d\u662f\u4e00\u4e2a\u4e1c\u897f\u3002\u3002\u3002\u662f\u7684\uff0c\u9664\u4e86\u751f\u4ea7\u5382\u5bb6\u4ee5\u53ca\u90fd\u662f\u9ed1\u8272USB\u65e0\u7ebf\u7f51\u5361\u4ee5\u5916\uff0c\u4e8c\u8005\u6ca1\u6709\u4efb\u4f55\u5171\u540c\u70b9\u3002\n\u63d2\u5230\u673a\u5668\u4e0a\u4e4b\u540e\uff0clsusb\u663e\u793a\u4e3a\uff1a\nBus 003 Device 006: ID 148f:2878 Ralink Technology, Corp.\n\n\u7cfb\u7edf\u5c06\u4e4b\u6302\u8f7d\u4e3a\u4e00\u4e2acdrom\u3002\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u91cc\u9762\u7684\u5b89\u88c5\u7a0b\u5e8f\u8fdb\u884c\u9a71\u52a8\u5b89\u88c5\u3002\n\u5e76\u8bb2\u7f51\u5361\u6a21\u5f0f\u5207\u6362\u4e3a\u65e0\u7ebf\u7f51\u5361\u6a21\u5f0f\u3002\n\n\u5728Ubuntu\u4e0a\uff0c\u4e3a\u4e86\u5207\u6362\u6a21\u5f0f\uff0c\u53c2\u8003\u4e86usb_modeswitch\u7684data\u6587\u4ef6\uff1a\n# RaLink MT7601U\nTargetVendor=0x148f\nTargetProduct=0x7601\nStandardEject=1\n\n\u662f\u7684\uff0c\u53ea\u8981\u8fdb\u884ceject\u5373\u53ef\u3002\u3002\u3002\n\u53ef\u76f4\u63a5\u6267\u884c\uff1a\nsudo eject \/dev\/sr0\n\u6216\u8005\nsudo usb_modeswitch -v 148f -p 2878 -K\n\n\u4e4b\u540elsusb\uff0c\u7b49\u5f85\u4e00\u4e0b\uff0c\u5373\u53ef\u89c2\u5bdf\u5230\uff1a\nBus 003 Device 007: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter\n\n\u5176\u5b9e\u8fd9\u4e2a\u7b49\u5f85\u7684\u65f6\u95f4\uff0c\u662f\u7cfb\u7edf\u6b63\u5728\u4f7f\u7528\u81ea\u5e26mt7601\u9a71\u52a8\u5c1d\u8bd5probe\u7f51\u5361\u3002\n\n[ \u00a0589.049149] usb 3-11: reset high-speed USB device number 7 using xhci_hcd\n[ \u00a0589.179614] mt7601u 3-11:1.0: ASIC revision: 76010001 MAC revision: 76010500\n[ \u00a0589.180380] mt7601u 3-11:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____\n[ \u00a0592.645071] mt7601u 3-11:1.0: Vendor request req:07 off:09a8 failed:-110\n[ \u00a0595.764998] mt7601u 3-11:1.0: Vendor request req:02 off:09a8 failed:-110\n[ \u00a0598.884833] mt7601u 3-11:1.0: Vendor request req:07 off:0734 failed:-110\n[ \u00a0602.004776] mt7601u 3-11:1.0: Vendor request req:42 off:0230 failed:-110\n[ \u00a0605.124673] mt7601u 3-11:1.0: Vendor request req:07 off:0080 failed:-110\n[ \u00a0608.244542] mt7601u 3-11:1.0: Vendor request req:02 off:0080 failed:-110\n[ \u00a0611.364455] mt7601u 3-11:1.0: Vendor request req:02 off:0080 failed:-110\n[ \u00a0611.364489] mt7601u: probe of 3-11:1.0 failed with error -110\n[ \u00a0611.364526] usbcore: registered new interface driver mt7601u\n\n\u53ef\u4ee5\u770b\u5230\uff0cprobe\u6700\u7ec8\u5931\u8d25\u4e86\u3002\u5e94\u8be5\u662f\u7f51\u5361\u9a71\u52a8\uff08\u5206\u6790\u4ee3\u7801\u540e\u53d1\u73b0\uff0c\u4e5f\u53ef\u80fd\u662ffirmware\uff09\u548c\u8be5\u578b\u53f7\u7f51\u5361\u4e0d\u5339\u914d\u3002\n\u53c2\u7167<a href=\"https:\/\/askubuntu.com\/questions\/457061\/ralink-mt7601u-148f7601-wi-fi-adapter-installation\" target=\"_blank\">https:\/\/askubuntu.com\/questions\/457061\/ralink-mt7601u-148f7601-wi-fi-adapter-installation<\/a>\n\u624b\u52a8\u5b89\u88c5\u9a71\u52a8\u3002\n<blockquote class=\"tr_bq\"><code>sudo apt-get install linux-headers-generic build-essential git<\/code>\n<code><\/code><\/blockquote>\n<blockquote class=\"tr_bq\"><code>git clone https:\/\/github.com\/art567\/mt7601usta.git<\/code><\/blockquote>\n<blockquote class=\"tr_bq\"><code>cd mt7601usta\/src<\/code><\/blockquote>\n<blockquote class=\"tr_bq\"><code><\/code>\n<code>make<\/code><\/blockquote>\n<blockquote class=\"tr_bq\"><code>sudo make install<\/code><\/blockquote>\n<blockquote class=\"tr_bq\"><code>sudo mkdir -p \/etc\/Wireless\/RT2870STA\/<\/code><\/blockquote>\n<blockquote class=\"tr_bq\"><code>sudo cp RT2870STA.dat \/etc\/Wireless\/RT2870STA\/<\/code><\/blockquote>\n<blockquote class=\"tr_bq\"><code>sudo modprobe mt7601Usta<\/code><\/blockquote>\n<span style=\"text-decoration: line-through;\">\u6ce8\u610f\uff1a\u8003\u8651\u5230\u4e4b\u524d\u7684\u9a71\u52a8\u5df2\u7ecf\u52a0\u8f7d\uff0c\u5728\u6267\u884cmodprobe\u4e4b\u524d\uff0c\u5e94\u8be5\u8003\u8651\u5148\u5c06\u4e4b\u524d\u7684\u9a71\u52a8rmmod\u6389\u3002<\/span>\uff08\u5b9e\u9645\u5c1d\u8bd5\u540e\u53d1\u73b0\u7136\u5e76\u5375\u3002\uff09\n\u7cfb\u7edf\u9ed8\u8ba4\u9a71\u52a8\u4fe1\u606f\uff1a\n\nmodinfo mt7601u\nfilename: \u00a0 \u00a0 \u00a0 \/lib\/modules\/4.4.0-81-generic\/kernel\/drivers\/net\/wireless\/mediatek\/mt7601u\/mt7601u.ko\nlicense: \u00a0 \u00a0 \u00a0 \u00a0GPL\nfirmware: \u00a0 \u00a0 \u00a0 mt7601u.bin\nsrcversion: \u00a0 \u00a0 C4F802D4D12C5BC2BA7FEB7\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v7392p7710d*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v2A5Fp1000d*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v2955p1001d*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v2955p0001d*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v2717p4106d*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v2001p3D04d*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v148Fp760Dd*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v148Fp760Cd*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v148Fp760Bd*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v148Fp760Ad*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v148Fp7601d*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v13D3p3434d*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v13D3p3431d*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v0E8Dp760Bd*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v0E8Dp760Ad*dc*dsc*dp*ic*isc*ip*in*\nalias: \u00a0 \u00a0 \u00a0 \u00a0 \u00a0usb:v0B05p17D3d*dc*dsc*dp*ic*isc*ip*in*\ndepends: \u00a0 \u00a0 \u00a0 \u00a0mac80211,cfg80211\nintree: \u00a0 \u00a0 \u00a0 \u00a0 Y\nvermagic: \u00a0 \u00a0 \u00a0 4.4.0-81-generic SMP mod_unload modversions\n<div><\/div>\n<div>modprobe\u6267\u884c\u4e4b\u540e\uff0c\u53ef\u4ee5\u67e5\u770bsudo lshw -C net<\/div>\n<div>\n<div>\u00a0 *-network DISABLED<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0description: Wireless interface<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0physical id: 2<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0logical name: ra0<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0capabilities: ethernet physical wireless<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0configuration: broadcast=yes driver=RALINK WLAN multicast=yes wireless=Ralink STA<\/div>\n<\/div>\n<div><\/div>\n<div>\u53ef\u89c1\u7cfb\u7edf\u5df2\u7ecf\u53ef\u4ee5\u8bc6\u522b\u8be5\u7f51\u5361\uff0c\u4f46\u7f51\u7edc\u5904\u4e8edisable\u72b6\u6001\u3002\u53ef\u80fd\u548c\u6211\u673a\u5668\u7cfb\u7edf\u672c\u8eab\u6709\u5173\u3002\u5728dmesg\u4e2d\u53ef\u4ee5\u770b\u5230<\/div>\n<div>\n<div>[ 1108.702033] ModemManager[925]: segfault at 0 ip 0000000000431ab3 sp 00007fffc062e940 error 4 in ModemManager[400000+<\/div>\n<div>103000]<\/div>\n<\/div>\n<div><\/div>\n<div>\u63a5\u4e0b\u6765\u5c1d\u8bd5\u4f7f\u7528ifconfig\u5f3a\u884cup \u00a0ra0<\/div>\n<div><\/div>\n<div>sudo ifconfig ra0 up<\/div>\n<div><\/div>\n<div>\u547d\u4ee4\u957f\u65f6\u95f4\u6ca1\u6709\u53cd\u5e94\n\n\u5c1d\u8bd5\u5c06Ubuntu\u5347\u7ea7\u81f3 17.04\uff0c\u6548\u679c\u4f9d\u65e7\u3002\u4f30\u8ba1\u8981\u6df1\u5165\u5206\u6790\u9a71\u52a8\u4ee3\u7801\uff0c\u592a\u6d6a\u8d39\u65f6\u95f4\u3002\u540c\u65f6\u8003\u8651\u5230\u672a\u6765\u5185\u6838\u5347\u7ea7\u4e5f\u8981\u91cd\u65b0\u624b\u52a8\u4fee\u6539\u9a71\u52a8\uff0c\u7528\u6237\u4f53\u9a8c\u96be\u4ee5\u63a5\u53d7\u3002\u51b3\u5b9a\u653e\u5f03\u5c1d\u8bd5\u3002\n\n================================================================\n\u6700\u7ec8\u89e3\u51b3\u65b9\u6848\uff1a\n\u53c8\u8d2d\u4e70\u4e86\u666e\u901a\u7248\u672cTL-WN725N\uff08\u66f4\u5c0f\u66f4\u4fbf\u5b9c\uff09\uff0c\u672a\u505a\u4efb\u4f55\u914d\u7f6e\uff0c\u63d2\u5728\u673a\u5668\u4e0a\uff0c\u77ac\u95f4\u5b8c\u6210\u9a71\u52a8\u3002\n\u6559\u8bad\uff1a\u4e00\u5206\u94b1\u4e00\u5206\u8d27\u662f\u4e0d\u5047\uff0c\u4f46\u5728linux\u7684\u4e16\u754c\u91cc\uff0c\u6027\u4ef7\u6bd4\u624d\u662f\u6700\u5b89\u5168\u7684\u6807\u51c6\u3002<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>I found the solution. I installed the driver for the usb wifi adapter successfully using the followi&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1681","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=1681"}],"version-history":[{"count":3,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1681\/revisions"}],"predecessor-version":[{"id":1686,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1681\/revisions\/1686"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=1681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=1681"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=1681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}