{"id":1860,"date":"2016-05-07T19:37:07","date_gmt":"2016-05-07T11:37:07","guid":{"rendered":"http:\/\/www.51cos.com\/?p=1860"},"modified":"2016-05-15T23:37:29","modified_gmt":"2016-05-15T15:37:29","slug":"tp-link-wr720n-%e6%8a%98%e8%85%be%e8%ae%b0%ef%bc%81%ef%bc%882%ef%bc%89","status":"publish","type":"post","link":"http:\/\/www.51cos.com\/?p=1860","title":{"rendered":"TP-LINK WR720N \u6298\u817e\u8bb0\uff01\uff082\uff09"},"content":{"rendered":"<p>\u5b66\u5230\u4e00\u62db\uff1a\u867d\u7136OpenWRT\u7f51\u4e0a\u8d44\u6599\u548c\u6559\u7a0b\u975e\u5e38\u591a\uff0c\u4f46\u8fd8\u662f\u5b98\u65b9WiKi\u6700\u9760\u8c31\uff0c\u53ef\u4ee5\u5c11\u8d70\u5f88\u591a\u8def\uff01<br \/>\n\u63a8\u8350\u7ed9\u521d\u5b66\u8005\u4e00\u7bc7\u6587\u7ae0\uff1ahttp:\/\/www.leiphone.com\/author\/hoowa<\/p>\n<p>&nbsp;<\/p>\n<h1>\u5982\u4f55\u5b89\u88c5Web\u7ba1\u7406\u754c\u9762<\/h1>\n<p>\u8def\u7531\u5668\u90fd\u6709\u4e2a\u7f51\u9875\u7ba1\u7406\u754c\u9762\uff0c\u767b\u9646\u540e\u53ef\u505a\u5f88\u591a\u4e8b\u60c5\u3002\u5176\u5b9e\u5b89\u88c5\u5f88\u7b80\u5355\uff01<br \/>\nhttps:\/\/wiki.openwrt.org\/doc\/howto\/luci.essentials<\/p>\n<pre class=\"prettyprint linenums\">opkg update<br \/>\nopkg install luci<\/p>\n<p>\u6253\u5f00http:\/\/192.168.1.1\u5373\u53ef<\/p>\n<pre class=\"prettyprint linenums\">[ 0.763919] 5 tp-link partitions found on MTD device spi0.0<br \/>\n[ 0.768293] Creating 5 MTD partitions on \"spi0.0\":<br \/>\n[ 0.773019] 0x000000000000-0x000000020000 : \"u-boot\"<br \/>\n[ 0.779253] 0x000000020000-0x00000015c630 : \"kernel\"<br \/>\n[ 0.784016] 0x00000015c630-0x0000003f0000 : \"rootfs\"<br \/>\n[ 0.789067] mtd: device 2 (rootfs) set to be root filesystem<br \/>\n[ 0.793545] 1 squashfs-split partitions found on MTD device rootfs<br \/>\n[ 0.799744] 0x000000340000-0x0000003f0000 : \"rootfs_data\"<br \/>\n[ 0.806247] 0x0000003f0000-0x000000400000 : \"art\"<br \/>\n[ 0.810960] 0x000000020000-0x0000003f0000 : \"firmware\"<\/p>\n<p>\u5206\u533a\u540d\u79f0\u3001\u5206\u533a\u5bb9\u91cf\u3001\u5206\u533a\u4f5c\u7528\uff1a<\/p>\n<pre class=\"prettyprint linenums\">\"u-boot\"\uff1a128KB\uff0c\u8bbe\u5907\u521d\u59cb\u5316\u7a0b\u5e8f+\u5f15\u5bfc\u7a0b\u5e8f\u4ee3\u7801\u672c\u8eab<br \/>\n\"kernel\" \uff1a1MB\uff0c\u5b58\u653e\u7cfb\u7edf\u5185\u6838\u7684\u4e8c\u8fdb\u5236\u4ee3\u7801\uff0c\u6309\u7167x86\u4e0b\u7684\u8bb2\u6cd5\u662fRaw\u5206\u533a\uff0c\u5c31\u662f\u8fd9\u91cc\u53ea\u6709\u5185\u6838\u7684\u4e8c\u8fdb\u5236\uff0c\u4e0d\u5b58\u5728\u6587\u4ef6\u7cfb\u7edf\u3002<br \/>\n\"rootfs\"\uff1a6.7MB\uff0c\u5b8c\u6574\u7684\u7cfb\u7edf\u6587\u4ef6\u5305\u542b\u53ea\u8bfb\u548c\u53ef\u5199<br \/>\n\"rootfs_data\"\uff1a4.9MB\uff0c\u5728rootfs\u4e2d\u7684\u53ef\u5199\u90e8\u5206\u7684\u4f4d\u7f6e<br \/>\n\"art\"\uff1a64KB\uff0cEEPROM\u5206\u533a\uff0c\u5728Atheros\u7684\u65b9\u6848\u4e2d\u8fd9\u4e2a\u5206\u533a\u4fdd\u5b58\u4e86\u65e0\u7ebf\u7684\u786c\u4ef6\u53c2\u6570<br \/>\n\"firmware\"\uff1a7.9MB\uff0c\u5b8c\u6574\u7684\u56fa\u4ef6\u4f4d\u7f6e\u5305\u542b\u4e86\u9664\"u-boot\"\u548c\"art\"\u4e4b\u5916\u5168\u90e8\u7684\u5185\u5bb9<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1866\" src=\"http:\/\/www.51cos.com\/wp-content\/uploads\/2016\/05\/5-a1.jpg\" alt=\"5-a1\" width=\"456\" height=\"224\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Collected errors:<br \/>\n* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-scsi-core:<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\uff0c\u6dfb\u52a0<\/p>\n<pre class=\"prettyprint linenums\"> --force-depends --force-overwrite<\/p>\n<p>opkg install kmod-usb-storage-extras kmod-scsi-core  --force-depends  --force-overwrite<\/p>\n<p>\uff1a<\/p>\n<h1>\u53d1\u73b0\u4e0a\u9762\u7684\u65b9\u6cd5\u5e76\u4e0d\u592a\u597d\u7528\uff0c\u8fd8\u662f\u7ecf\u5e38\u63d0\u793a\u4e0a\u8ff0\u9519\u8bef\u3002<\/h1>\n<h1>\u6240\u4ee5\u4e0d\u5f97\u4e0d\u642d\u5efa\u672c\u5730\u670d\u52a1\u6e90\uff01<\/h1>\n<p>1.\u9996\u5148\u4f60\u8981\u6709\u4e00\u53f0\u81ea\u5df1\u7684VPS\u670d\u52a1\u5668\u548c\u4e2a\u4eba\u57df\u540d\uff01<\/p>\n<p>2.\u5229\u7528wget\u4e0b\u8f7d\u5168\u7ad9\u6587\u4ef6\uff1a<\/p>\n<pre class=\"prettyprint linenums\">wget -r -p -np -k  http:\/\/downloads.openwrt.org\/snapshots\/trunk\/ar71xx<\/p>\n<p>-r,  --recursive\uff08\u9012\u5f52\uff09          specify recursive download.\uff08\u6307\u5b9a\u9012\u5f52\u4e0b\u8f7d\uff09<br \/>\n-k,  --convert-links\uff08\u8f6c\u6362\u94fe\u63a5\uff09      make links in downloaded HTML point to local files.\uff08\u5c06\u4e0b\u8f7d\u7684HTML\u9875\u9762\u4e2d\u7684\u94fe\u63a5\u8f6c\u6362\u4e3a\u76f8\u5bf9\u94fe\u63a5\u5373\u672c\u5730\u94fe\u63a5\uff09<br \/>\n-p,  --page-requisites\uff08\u9875\u9762\u5fc5\u9700\u5143\u7d20\uff09    get all images, etc. needed to display HTML page.\uff08\u4e0b\u8f7d\u6240\u6709\u7684\u56fe\u7247\u7b49\u9875\u9762\u663e\u793a\u6240\u9700\u7684\u5185\u5bb9\uff09<br \/>\n-np, --no-parent\uff08\u4e0d\u8ffd\u6eaf\u81f3\u7236\u7ea7\uff09          don't ascend to the parent directory.<\/p>\n<p>&nbsp;<\/p>\n<p>3.<\/p>\n<pre class=\"prettyprint linenums\">cat  \/etc\/opkg\/distfeeds.conf<\/p>\n<p>\u6216\u8005\u6253\u5f00\uff1ahttp:\/\/192.168.1.1\/cgi-bin\/luci\/admin\/system\/packages\/ipkg<br \/>\n\u4fee\u6539Distribution feeds\u4e3a\u81ea\u5df1\u7684\u5185\u5bb9\uff0c\u4fee\u6539\u524d\uff1a<\/p>\n<pre class=\"prettyprint linenums\">src\/gz designated_driver_base http:\/\/downloads.openwrt.org\/snapshots\/trunk\/ar71xx\/generic\/packages\/base<br \/>\nsrc\/gz designated_driver_kernel http:\/\/downloads.openwrt.org\/snapshots\/trunk\/ar71xx\/generic\/packages\/kernel<br \/>\nsrc\/gz designated_driver_luci http:\/\/downloads.openwrt.org\/snapshots\/trunk\/ar71xx\/generic\/packages\/luci<br \/>\nsrc\/gz designated_driver_management http:\/\/downloads.openwrt.org\/snapshots\/trunk\/ar71xx\/generic\/packages\/management<br \/>\nsrc\/gz designated_driver_packages http:\/\/downloads.openwrt.org\/snapshots\/trunk\/ar71xx\/generic\/packages\/packages<br \/>\nsrc\/gz designated_driver_routing http:\/\/downloads.openwrt.org\/snapshots\/trunk\/ar71xx\/generic\/packages\/routing<br \/>\nsrc\/gz designated_driver_telephony http:\/\/downloads.openwrt.org\/snapshots\/trunk\/ar71xx\/generic\/packages\/telephony<br \/>\n# src\/gz designated_driver_targets http:\/\/downloads.openwrt.org\/snapshots\/trunk\/ar71xx\/generic\/packages\/targets<\/p>\n<p>\u4fee\u6539\u540e\uff1a<\/p>\n<pre class=\"prettyprint linenums\">src\/gz designated_driver_base http:\/\/openwrt.51cos.com\/generic\/packages\/base<br \/>\nsrc\/gz designated_driver_kernel http:\/\/openwrt.51cos.com\/generic\/packages\/kernel<br \/>\nsrc\/gz designated_driver_luci http:\/\/openwrt.51cos.com\/generic\/packages\/luci<br \/>\nsrc\/gz designated_driver_management http:\/\/openwrt.51cos.com\/generic\/packages\/management<br \/>\nsrc\/gz designated_driver_packages http:\/\/openwrt.51cos.com\/generic\/packages\/packages<br \/>\nsrc\/gz designated_driver_routing http:\/\/openwrt.51cos.com\/generic\/packages\/routing<br \/>\nsrc\/gz designated_driver_telephony http:\/\/openwrt.51cos.com\/generic\/packages\/telephony<br \/>\n# src\/gz designated_driver_targets http:\/\/openwrt.51cos.com\/generic\/packages\/targets<\/p>\n<p>\u7136\u540e\u6267\u884c\uff1a<\/p>\n<pre class=\"prettyprint linenums\">opkg update<\/p>\n<p>\u91cd\u65b0\u5347\u7ea7\u56fa\u4ef6\uff1a<\/p>\n<pre class=\"prettyprint linenums\">cd \/tmp\/<br \/>\nwget http:\/\/openwrt.51cos.com\/generic\/openwrt-ar71xx-generic-<br \/>\ntl-wr720n-v4-squashfs-sysupgrade.bin<\/p>\n<p>mtd write openwrt-ar71xx-generic-tl-wr720n-v4-squashfs-sysupg<br \/>\nrade.bin firmware<br \/>\nreboot<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>opkg install fdisk #\u53ef\u652f\u6301fdisk<br \/>\nopkg install usbutils #\u5b89\u88c5\u4e86\u8fd9\u4e2a\u540e\u53ef\u4ee5\u7528 lsusb<br \/>\nopkg install e2fsprogs #\u652f\u6301\u683c\u5f0f\u5316<br \/>\nopkg install blkid                   #\u7528\u4e8e\u67e5\u770bUSB\u8bbe\u5907uuid\u4fe1\u606f <\/p>\n<p>opkg install luci#\u652f\u6301luci\u7f51\u9875\u754c\u9762<br \/>\nopkg install http:\/\/openwrt.51cos.com\/\/generic\/packages\/luci\/luci-i18n-base-zh-cn_git-16.131.69935-650c031-1_all.ipk  #\u5b89\u88c5Luci\u7b80\u4f53\u4e2d\u6587<\/p>\n<pre class=\"prettyprint linenums\" >\nopkg install kmod-usb-audio  \/\/\u5b89\u88c5\u58f0\u97f3\u670d\u52a1<br \/>\nopkg install alsa-utils \/\/\u8fd9\u4e24\u4e2a\u97f3\u9891\u670d\u52a1\u5b89\u88c5\u540e\uff0c\u8981\u63d2\u4e0aUSB\u58f0\u5361\u540e\u91cd\u542f\uff0c\u770b\u5230\/dev\/dsp \/dev\/audio\u5c31\u8868\u793a\u6210\u529f\u4e86<\/p>\n<p>opkg install madplay #\u5b89\u88c5\u97f3\u4e50\u64ad\u653e\u5668<\/p>\n<p> wget -O - http:\/\/yinyueshiting.baidu.com\/data2\/music\/246072959\/136591821600128.mp3?xcode=9586a28b5ec9196ac9bf3d409e407d1c | madplay  - #\u6d4b\u8bd5\u64ad\u653e\u5728\u7ebf\u97f3\u4e50\uff0c\u6210\u529f\u4f46\u662f\u97f3\u8d28\u4e00\u822c\u822c<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>opkg install kmod-fs-ext4\u00a0 kmod-fs-vfat kmod-fuse ntfs-3g # \u6587\u4ef6\u7cfb\u7edf\u7684\u652f\u6301<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"prettyprint linenums\"> opkg list-installed<br \/>\ndmesg<br \/>\nlsmod<br \/>\nfdisk -l<br \/>\nlsusb <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>OpenWRT\u55c5\u63a2\u6559\u7a0b<\/p>\n<p>1.openwrt\u8def\u7531\u4e0b\u5b89\u88c5 tcpdump<\/p>\n<pre class=\"prettyprint linenums\" >\nopkg update<br \/>\nopkg install tcpdump<\/p>\n<p>2.\u7535\u8111\u88c5wireshark \u548cplink.exe\uff08putty\u4e5f\u884c\uff0c\u91cc\u9762\u81ea\u5e26plink\uff09<br \/>\nhttps:\/\/www.wireshark.org\/download.html<br \/>\nhttp:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html<\/p>\n<p>3.\u8def\u7531\u4e0btcpdump\u6293\u5305\uff0cPC\u7aef\u4f7f\u7528 wireshark \u5b9e\u65f6\u76d1\u542c<\/p>\n<pre class=\"prettyprint linenums\" >\nD:\\putty>plink.exe -ssh -pw 111111 root@192.168.1.1 \"tcpdump -ni wlan0 -s 0 -w -<br \/>\n not port 22\" | \"D:\\Wireshark\\Wireshark.exe\" -k -i -<\/p>\n<p>111111 \u662f\u8def\u7531\u5668root\u7528\u6237\u7684\u5bc6\u7801\uff0croot\u662f\u7528\u6237\u540d \uff0cwlan0 \u65e0\u7ebf\u7f51\u5361\u4ee3\u53f7\uff0c  ifconfig \u53ef\u4ee5\u770b\u5230\u5177\u4f53\u8be6\u7ec6\u4fe1\u606f<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u5230\u4e00\u62db\uff1a\u867d\u7136OpenWRT\u7f51\u4e0a\u8d44\u6599\u548c\u6559\u7a0b\u975e\u5e38\u591a\uff0c\u4f46\u8fd8\u662f\u5b98\u65b9WiKi\u6700\u9760\u8c31\uff0c\u53ef\u4ee5\u5c11\u8d70\u5f88\u591a\u8def\uff01 \u63a8\u8350\u7ed9\u521d\u5b66\u8005\u4e00\u7bc7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1860","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/1860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1860"}],"version-history":[{"count":20,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/1860\/revisions"}],"predecessor-version":[{"id":1888,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/1860\/revisions\/1888"}],"wp:attachment":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1860"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}