﻿{"id":342,"date":"2010-11-09T22:55:53","date_gmt":"2010-11-09T14:55:53","guid":{"rendered":"http:\/\/nick.workao.org\/?p=342"},"modified":"2010-11-09T22:56:11","modified_gmt":"2010-11-09T14:56:11","slug":"ubuntu%e7%bc%96%e8%af%91%e5%87%ba%e8%83%bd%e8%bf%90%e8%a1%8c%e5%9c%a8dd-wrt%e3%80%81tomato%e4%b8%8b%e7%9a%84%e8%bd%af%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/nick.txtcc.com\/index.php\/linux\/342","title":{"rendered":"UBUNTU\u7f16\u8bd1\u51fa\u80fd\u8fd0\u884c\u5728DD-WRT\u3001Tomato\u4e0b\u7684\u8f6f\u4ef6"},"content":{"rendered":"<div id=\"blog_text\">\n\n<span style=\"font-size: small;\">\u6211\u7684\u7cfb\u7edf\u73af\u5883\uff1avista<\/span>\n\n<span style=\"font-size: small;\">\u5728\u865a\u62df\u673avirtualbox\u4e2d\u5b89\u88c5ubuntu<\/span>\n\n<span style=\"font-size: small;\">1.\u88c5\u597dubuntu\uff0c\u5b89\u88c5\u589e\u5f3a\u5de5\u5177<\/span>\n\n<span style=\"font-size: small;\">2.\u5728ubuntu\u7684\u7528\u6237\u76ee\u5f55\u4e0b\u5efa\u7acb\u4ee5\u4e0b\u51e0\u4e2a\u6587\u4ef6\u5939cross\u3001tools\u3001source\u3002<\/span>\n\n<span style=\"font-size: small;\">tools\uff1a\u653e\u7f6e\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177 source\uff1a\u5b58\u653e\u6e90\u4ee3\u7801<\/span>\n<div><span style=\"font-size: small;\"><img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/11\/145557McB.jpg\" border=\"0\" alt=\"\"><\/span><\/div>\n<span style=\"font-size: small;\">3.\u5230DD-WRT\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177toolchains.x86.debian.sp1.tar.bz2<\/span>\n\n<span style=\"font-size: small;\">4.\u5c06toolchains.x86.debian.sp1.tar.bz2\u4e2d\u76844.1.0-uclibc-0.9.28\uff0c\u89e3\u538b\u7f29\u5230tools\u76ee\u5f55\uff0c\u5e76\u6539\u540d\u4e3add<\/span>\n\n<span style=\"color: #ff0000;\"><span style=\"font-size: small;\"> <strong> \u8fd9\u4e2a\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u7f16\u8bd1\u51fa\u7684\u7a0b\u5e8f\u53ef\u5728tomato\u548cdd-wrt\u4e0b\u6b63\u5e38\u8fd0\u884c<\/strong><\/span><\/span>\n<div><strong><span style=\"font-size: small;\"><img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/11\/1456020Mi.jpg\" border=\"0\" alt=\"\"><\/span><\/strong><\/div>\n<span style=\"font-size: small;\">5.\u5b89\u88c5\u4e00\u4e9b\u6240\u9700\u8981\u7684\u5de5\u5177<\/span>\n\n<span style=\"font-size: small;\"> <span style=\"color: #ff0000;\">sudo apt-get install bison flex build-essential patch libncurses5-dev<\/span><\/span>\n\n<span style=\"font-size: small;\">6. \u5230\u8fd9\u4e2a\u65f6\u5019\u51c6\u5907\u5de5\u4f5c\u5c31\u57fa\u672c\u5b8c\u6210\u4e86<\/span>\n\n<span style=\"font-size: small;\"> \u6bcf\u6b21\u65b0\u6253\u5f00\u7ec8\u7aef\uff0c<span style=\"color: #ff00ff;\">\u4f7f\u7528\u524d\u8bf7\u8fd0\u884c<\/span><\/span>\n\n<span style=\"font-size: small;\"> export PATH=&#8221;$PATH:<span style=\"color: #ff0000;\">\/home\/jacky\/tools\/dd\/bin<\/span>&#8221; \uff08\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539\u8def\u5f84\uff09<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">1.\u4e0b\u8f7dlibpcap\u6e90\u7801<a href=\"http:\/\/www.tcpdump.org\/release\/\">http:\/\/www.tcpdump.org\/release\/<\/a><\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">\uff08\u6211\u7528\u7684\u662f0.9.8\uff0c\u56e0\u4e3a\u8fd9\u4e2a\u7248\u672c\u7f16\u8bd1\u51fa\u6765\u7684libpcap.a\u6bd4\u8f83\u5c0f254KB\uff09<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">2.\u5c06\u5176\u89e3\u538b\u7f29\u5230cross\u76ee\u5f55<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">3.\u8fdb\u5165libpcap\u76ee\u5f55,cd \/home\/jacky\/cross\/libpcap-0.9.8<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">4.\u8fd0\u884c\u547d\u4ee4 export PATH=&#8221;$PATH:<span style=\"color: #ff0000;\">\/home\/jacky\/tools\/dd\/bin<\/span>&#8221; <\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">5.\u8fd0\u884c\u547d\u4ee4 export ac_cv_linux_vers=2.6<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">6.\u8fd0\u884c\u547d\u4ee4 .\/configure &#8211;host=mipsel-linux-uclibc &#8211;prefix=<span style=\"color: #ff0000;\">\/home\/jacky\/tools\/dd<\/span> &#8211;with-pcap=linux<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">\uff08&#8211;host=HOST \u6307\u5b9a\u8f6f\u4ef6\u8fd0\u884c\u7684\u7cfb\u7edf\u5e73\u53f0\uff0cconfigure &#8211;host=mipsel-linux-uclibc\u8fd9\u4e2a\u5c31\u662fmipsel\u7684\u4ea4\u53c9\u7f16\u8bd1\u9009\u9879\u3002<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">prefix\u662f\u4f60\u8981\u5b89\u88c5\u7684\u4f4d\u7f6e\uff0c\u8fd9\u91cc\u6211\u628alibpcap\u5b89\u88c5\u5230\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u6240\u5728\u76ee\u5f55\uff09<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">7.\u8fd0\u884c\u547d\u4ee4 make<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">8.\u8fd0\u884c\u547d\u4ee4 make install<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53; font-size: small;\">\u7ea2\u8272\u5b57\u4f53\u90e8\u5206\uff0c\u8bf7\u6309\u5b9e\u9645\u60c5\u51b5\u4fee\u6539\u8def\u5f84<\/span>\n\n<span style=\"font-family: \u5b8b\u4f53;\"><span style=\"font-size: small;\">\u901a\u5e38\u4ea4\u53c9\u7f16\u8bd1\u5f00\u6e90\u8f6f\u4ef6\u4e00\u822c\u53ea\u9700\u4ee5\u4e0b\u51e0\u6b65\u5373\u53ef\u7f16\u8bd1<\/span>\n\n<span style=\"font-size: small;\">1 export PATH=&#8221;$PATH:<span style=\"color: #ff0000;\">\/home\/jacky\/tools\/dd\/bin<\/span>&#8220;<\/span>\n\n<span style=\"font-size: small;\">2 .\/configure &#8211;host=mipsel-linux<\/span>\n\n<span style=\"font-size: small;\">3 make<\/span>\n\n<span style=\"font-size: small;\">&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<\/span>\n\n<span style=\"font-size: small;\">\u9488\u5bf9tomato\u5bf9xclient\u8fdb\u884c\u7684\u5c0f\u4fee\u6539<\/span>\n\n<span style=\"font-size: small;\">xclient\u6e90\u7801\u4e2d\uff0c\u4f7f\u7528\u4e86pkill\u3001dhclient\u547d\u4ee4\uff0c\u4f46\u662ftomato\u4e2d\u5e76\u6ca1\u6709\u8fd9\u4e24\u4e2a\u547d\u4ee4\uff0c<\/span>\n\n<span style=\"font-size: small;\">\u6240\u4ee5\u7528killall\u66ff\u4ee3pkill\uff0c\u7528dhcpc-renew\u66ff\u4ee3dhclient\u3002<\/span>\n\n<span style=\"font-size: small;\">\u901a\u5e38\u5728tomato\u4e2d\u5ba2\u6237\u7aef\u662f\u8bbe\u7f6e\u6210\u5f00\u673a\u81ea\u52a8\u8fd0\u884c\u7684\uff0c\u6211\u4eec\u96be\u4ee5\u77e5\u9053\u5ba2\u6237\u7aef\u8fd0\u884c\u60c5\u51b5\u3002<\/span>\n\n<span style=\"font-size: small;\">\u6240\u4ee5\u6211\u60f3\u4e86\u4e00\u4e2a\u6298\u4e2d\u7684\u65b9\u6cd5\uff0c\u628a\u62e8\u53f7\u65f6\u7684\u63d0\u793a\u4fe1\u606f\u8f93\u51fa\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\u3002<\/span>\n\n<span style=\"font-size: small;\">tomato\u4e2d\u6709\u4e2alogger\u547d\u4ee4\uff0c\u53ef\u4ee5\u7528\u4ed6\u628a\u4fe1\u606f\u8f93\u5165\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\uff0c<\/span>\n\n<span style=\"font-size: small;\">\u5982\u8fd0\u884clogger hello\uff0c\u53ef\u5728tomato\u65e5\u5fd7\u4e2d\u53d1\u73b0\u4fe1\u606fuser.notice root: hello<\/span>\n\n<span style=\"font-size: small;\">\u5177\u4f53\u4fee\u6539\u5982\u56fe\u6240\u793a<\/span>\n<div><span style=\"font-size: small;\"><img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/11\/145611v6M.jpg\" border=\"0\" alt=\"\"><\/span><\/div>\n<span style=\"font-size: small;\">&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<\/span>\n\n<span style=\"font-size: small;\">\u76f8\u5173\u6587\u7ae0\uff1a<\/span>\n\n<span style=\"font-size: small;\"><a href=\"http:\/\/felix021.com\/blog\/read.php?1467\">http:\/\/felix021.com\/blog\/read.php?1467<\/a><\/span>\n\n<span style=\"font-size: small;\"><a href=\"http:\/\/www.right.com.cn\/forum\/viewthread.php?tid=22853&#038;extra=page%3D1&#038;page=1\">http:\/\/www.right.com.cn\/forum\/viewthread.php?tid=22853&#038;extra=page%3D1&#038;page=1<\/a><\/span>\n\n<span style=\"font-size: small;\"><a href=\"http:\/\/groups.google.com\/group\/njit8021xclient\">http:\/\/groups.google.com\/group\/njit8021xclient<\/a><\/span>\n\n<span style=\"font-size: small;\"><a href=\"http:\/\/gforge.osdn.net.cn\/projects\/njit8021xclient\/\">http:\/\/gforge.osdn.net.cn\/projects\/njit8021xclient\/<\/a><\/span>\n\n<span style=\"font-size: small;\"><span style=\"text-decoration: underline;\"><span style=\"color: #800080;\"><a href=\"http:\/\/hi.baidu.com\/syshall\/blog\/item\/d75d89182368904243a9adda.html\">http:\/\/hi.baidu.com\/syshall\/blog\/item\/d75d89182368904243a9adda.html<\/a><\/span><\/span><\/span>\n\n<\/span><\/div>","protected":false},"excerpt":{"rendered":"<p>\u6211\u7684\u7cfb\u7edf\u73af\u5883\uff1avista \u5728\u865a\u62df\u673avirtualbox\u4e2d\u5b89\u88c5ubuntu 1.\u88c5\u597dubuntu\uff0c\u5b89\u88c5\u589e\u5f3a\u5de5\u5177 2.\u5728ubuntu\u7684\u7528\u6237\u76ee\u5f55\u4e0b\u5efa\u7acb\u4ee5\u4e0b\u51e0\u4e2a\u6587\u4ef6\u5939cross\u3001tools\u3001source\u3002 t&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[221,222,7],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-linux","tag-dd-wrt","tag-tomato","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":1,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":343,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/342\/revisions\/343"}],"wp:attachment":[{"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}