{"id":467,"date":"2019-06-22T16:16:08","date_gmt":"2019-06-22T08:16:08","guid":{"rendered":"http:\/\/www.byxiaoxie.com\/?p=467"},"modified":"2019-06-22T16:20:34","modified_gmt":"2019-06-22T08:20:34","slug":"openwrt-sdk%e7%bc%96%e8%af%91%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.byxiaoxie.com\/?p=467","title":{"rendered":"Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b"},"content":{"rendered":"<p>Openwrt\u7f16\u8bd1\u6559\u7a0b:<a style=\"color: #fefefe; border-bottom: none;\" href=\"https:\/\/www.byxiaoxie.com\/?p=438\" target=\"view_window\">https:\/\/www.byxiaoxie.com\/?p=438<\/a><\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\">\u58f0\u660e:\u8f6c\u8f7d\u8bf7\u5e26\u4e0a\u6587\u7ae0\u4f5c\u8005[ByXiaoXie] \u672c\u6559\u7a0b\u4e0d\u63d0\u4f9b\u7f16\u8bd1\u597d\u7684\u8f6f\u4ef6\u5305\u4e0b\u8f7d(\u9700\u8981\u8bf7\u8054\u7cfb\u7ad9\u957f)\uff0c\u5982\u679c\u672c\u6559\u7a0b\u6709\u8fdd\u53cd\u6cd5\u5f8b\u7b49\u884c\u4e3a,\u8bf7\u8054\u7cfb\u7ad9\u957f\u8fdb\u884c\u5220\u9664 \u8c22\u8c22!\r\n\r\n\u7f16\u8bd1\u73af\u5883\uff1a\u7cfb\u7edf[Debian 9] \u76ee\u6807[bcm53xx] SDK[Openwrt 18.06.2]\r\n\r\nSDK\u4e0b\u8f7d:https:\/\/openwrt.org\/docs\/guide-developer\/using_the_sdk\r\n\r\n\u6ce8\u610f\uff1a\u4e0d\u80fd\u4f7f\u7528root\u7528\u6237\u7f16\u8bd1\r\n\r\n\u5b89\u88c5\u7f16\u8bd1\u73af\u5883\u548c\u4ee3\u7801\u4e0b\u8f7d\r\n\r\n\u7f16\u8bd1\u73af\u5883\u5177\u4f53\u8bf7\u67e5\u770b:https:\/\/openwrt.org\/docs\/guide-developer\/build-system\/install-buildsystem\r\nSDK\u5bf9\u5e94\u4e0b\u8f7d\u8bf7\u67e5\u770b:https:\/\/openwrt.org\/docs\/guide-developer\/using_the_sdk\r\n\r\nDebian 9.4 Stretch:\r\nsudo apt install build-essential libncurses5-dev gawk git libssl-dev gettext zlib1g-dev swig unzip time\r\n\r\n\u4e0b\u8f7dSDK\u5e76\u89e3\u538b\r\n\r\nwget https:\/\/downloads.openwrt.org\/releases\/18.06.2\/targets\/bcm53xx\/generic\/openwrt-sdk-18.06.2-bcm53xx_gcc-7.3.0_musl_eabi.Linux-x86_64.tar.xz\r\n\r\ntar xvf openwrt-sdk-18.06.2-bcm53xx_gcc-7.3.0_musl_eabi.Linux-x86_64.tar.xz\r\n\r\n\u89e3\u538b\u5b8c\u6210\u4e4b\u540e\u8fdb\u5165SDK\u7136\u540e\u5b89\u88c5feeds\r\n\r\ncd openwrt-sdk-18.06.2-bcm53xx_gcc-7.3.0_musl_eabi.Linux-x86_64\r\n\r\nfeeds \u6309\u7167\u81ea\u5df1\u7684\u9700\u6c42\u6765\u5b89\u88c5\u5373\u53ef (\u8fd9\u91cc\u6211\u4f7f\u7528\u5c0f\u98de\u673a\u7684feeds)\r\n\r\n\u65b9\u6848\u4e00 (\u5c0f\u98de\u673a\u7684feeds,\u5982\u679c\u4f60\u662f\u7f16\u8bd1\u5c0f\u98de\u673a\u7684\u8bdd\u4f7f\u7528\u8fd9\u4e2a)\r\ngit clone https:\/\/github.com\/AlexZhuo\/openwrt-feeds.git package\/feeds\r\n\r\n\u65b9\u6848\u4e8c (\u5b98\u65b9feeds)\r\n.\/scripts\/feeds update -a\r\n.\/scripts\/feeds install -a (\u8fd9\u4e2a\u662f\u5168\u90e8\u5b89\u88c5,\u770b\u81ea\u5df1\u9700\u6c42\u6765\u9009\u62e9\u4e0d\u4e00\u5b9a\u9700\u8981\u5168\u90e8\u5b89\u88c5)\r\n\r\n\u5b89\u88c5\u597dfeeds\u4e4b\u540e\u4e0b\u8f7d\u8981\u7f16\u8bd1\u7684\u8f6f\u4ef6\u5305\u5230SDK\u4e2d (\u4ee5\u5c0f\u98de\u673a\u793a\u4f8b)\r\n\r\ngit clone https:\/\/github.com\/AlexZhuo\/openwrt-shadowsocksr.git package\/shadowsocksr-libev\r\n\r\n\u4e0b\u8f7d\u5b8c\u6210\u540e\u9009\u62e9\u8f6f\u4ef6\u5305\u5e76\u7f16\u8bd1\r\n\r\nmake menuconfig  #\u9009\u62e9\u8981\u7f16\u8bd1\u7684\u5305 Network -&gt; shadowsocksr-libev\r\n\r\n\u9009\u62e9\u5b8c\u6bd5\u540e[exit]\u9000\u51fa\u9009[Yes]\u4fdd\u5b58,\u5f00\u59cb\u7f16\u8bd1\r\n\r\nmake package\/shadowsocksr-libev\/compile V=99\r\n\r\n\u7f16\u8bd1\u5b8c\u6210\u540e\u6253\u5f00SDK\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u5939 [bin] \u627e\u5230\u7f16\u8bd1\u597d\u7684 [shadowsocksr-libev.ipk] \u6254\u5230openwrt\u4e0a\u5b89\u88c5\u5373\u53ef\uff01<\/code><\/pre>\n<pre class=\"pure-highlightjs\"><code class=\"\">\u7f16\u8bd1\u51fa\u9519\u53ca\u89e3\u51b3\u65b9\u6cd5 (\u6b63\u5728\u6536\u96c6):<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Openwrt\u7f16\u8bd1\u6559\u7a0b:https:\/\/www.byxiaoxie.com\/?p=438 \u58f0\u660e:\u8f6c\u8f7d\u8bf7\u5e26\u4e0a\u6587\u7ae0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[52,105,103,106],"class_list":["post-467","post","type-post","status-publish","format-standard","hentry","category-home","tag-openwrt","tag-sdk","tag-103","tag-106"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b - ByXiaoXie<\/title>\n<meta name=\"description\" content=\"ByXiaoXie - Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.byxiaoxie.com\/?p=467\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"byxiaoxie\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/?p=467#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/?p=467\"},\"author\":{\"name\":\"byxiaoxie\",\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/#\\\/schema\\\/person\\\/621eb60d17f9d6149d3196cb3f7b64c3\"},\"headline\":\"Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b\",\"datePublished\":\"2019-06-22T08:16:08+00:00\",\"dateModified\":\"2019-06-22T08:20:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/?p=467\"},\"wordCount\":8,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/#\\\/schema\\\/person\\\/621eb60d17f9d6149d3196cb3f7b64c3\"},\"keywords\":[\"openwrt\",\"SDK\",\"\u6559\u7a0b\",\"\u7f16\u8bd1\"],\"articleSection\":[\"Home\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.byxiaoxie.com\\\/?p=467#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/?p=467\",\"url\":\"https:\\\/\\\/www.byxiaoxie.com\\\/?p=467\",\"name\":\"Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b - ByXiaoXie\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/#website\"},\"datePublished\":\"2019-06-22T08:16:08+00:00\",\"dateModified\":\"2019-06-22T08:20:34+00:00\",\"description\":\"ByXiaoXie - Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/?p=467#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.byxiaoxie.com\\\/?p=467\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/?p=467#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/www.byxiaoxie.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/#website\",\"url\":\"https:\\\/\\\/www.byxiaoxie.com\\\/\",\"name\":\"ByXiaoXie\",\"description\":\"Gary \u4e2a\u4eba\u535a\u5ba2 \u6280\u672f\u5206\u4eab \u7a0b\u5e8f\u5f00\u53d1 \u642d\u5efa\u6559\u7a0b \u4e2a\u4eba\u7b14\u8bb0 \u4e8c\u6b21\u5143\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/#\\\/schema\\\/person\\\/621eb60d17f9d6149d3196cb3f7b64c3\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.byxiaoxie.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/#\\\/schema\\\/person\\\/621eb60d17f9d6149d3196cb3f7b64c3\",\"name\":\"byxiaoxie\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/tx.jpg\",\"url\":\"https:\\\/\\\/www.byxiaoxie.com\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/tx.jpg\",\"contentUrl\":\"https:\\\/\\\/www.byxiaoxie.com\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/tx.jpg\",\"width\":640,\"height\":640,\"caption\":\"byxiaoxie\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.byxiaoxie.com\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/tx.jpg\"},\"url\":\"https:\\\/\\\/www.byxiaoxie.com\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b - ByXiaoXie","description":"ByXiaoXie - Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.byxiaoxie.com\/?p=467","twitter_misc":{"\u4f5c\u8005":"byxiaoxie","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.byxiaoxie.com\/?p=467#article","isPartOf":{"@id":"https:\/\/www.byxiaoxie.com\/?p=467"},"author":{"name":"byxiaoxie","@id":"https:\/\/www.byxiaoxie.com\/#\/schema\/person\/621eb60d17f9d6149d3196cb3f7b64c3"},"headline":"Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b","datePublished":"2019-06-22T08:16:08+00:00","dateModified":"2019-06-22T08:20:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.byxiaoxie.com\/?p=467"},"wordCount":8,"commentCount":0,"publisher":{"@id":"https:\/\/www.byxiaoxie.com\/#\/schema\/person\/621eb60d17f9d6149d3196cb3f7b64c3"},"keywords":["openwrt","SDK","\u6559\u7a0b","\u7f16\u8bd1"],"articleSection":["Home"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.byxiaoxie.com\/?p=467#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.byxiaoxie.com\/?p=467","url":"https:\/\/www.byxiaoxie.com\/?p=467","name":"Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b - ByXiaoXie","isPartOf":{"@id":"https:\/\/www.byxiaoxie.com\/#website"},"datePublished":"2019-06-22T08:16:08+00:00","dateModified":"2019-06-22T08:20:34+00:00","description":"ByXiaoXie - Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b","breadcrumb":{"@id":"https:\/\/www.byxiaoxie.com\/?p=467#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.byxiaoxie.com\/?p=467"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.byxiaoxie.com\/?p=467#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.byxiaoxie.com\/"},{"@type":"ListItem","position":2,"name":"Openwrt SDK\u7f16\u8bd1\u8f6f\u4ef6\u5305\u6559\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.byxiaoxie.com\/#website","url":"https:\/\/www.byxiaoxie.com\/","name":"ByXiaoXie","description":"Gary \u4e2a\u4eba\u535a\u5ba2 \u6280\u672f\u5206\u4eab \u7a0b\u5e8f\u5f00\u53d1 \u642d\u5efa\u6559\u7a0b \u4e2a\u4eba\u7b14\u8bb0 \u4e8c\u6b21\u5143","publisher":{"@id":"https:\/\/www.byxiaoxie.com\/#\/schema\/person\/621eb60d17f9d6149d3196cb3f7b64c3"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.byxiaoxie.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.byxiaoxie.com\/#\/schema\/person\/621eb60d17f9d6149d3196cb3f7b64c3","name":"byxiaoxie","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.byxiaoxie.com\/wp-content\/uploads\/2017\/06\/tx.jpg","url":"https:\/\/www.byxiaoxie.com\/wp-content\/uploads\/2017\/06\/tx.jpg","contentUrl":"https:\/\/www.byxiaoxie.com\/wp-content\/uploads\/2017\/06\/tx.jpg","width":640,"height":640,"caption":"byxiaoxie"},"logo":{"@id":"https:\/\/www.byxiaoxie.com\/wp-content\/uploads\/2017\/06\/tx.jpg"},"url":"https:\/\/www.byxiaoxie.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.byxiaoxie.com\/index.php?rest_route=\/wp\/v2\/posts\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.byxiaoxie.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.byxiaoxie.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.byxiaoxie.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.byxiaoxie.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=467"}],"version-history":[{"count":3,"href":"https:\/\/www.byxiaoxie.com\/index.php?rest_route=\/wp\/v2\/posts\/467\/revisions"}],"predecessor-version":[{"id":472,"href":"https:\/\/www.byxiaoxie.com\/index.php?rest_route=\/wp\/v2\/posts\/467\/revisions\/472"}],"wp:attachment":[{"href":"https:\/\/www.byxiaoxie.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.byxiaoxie.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.byxiaoxie.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}