{"id":86,"date":"2020-08-13T14:58:19","date_gmt":"2020-08-13T06:58:19","guid":{"rendered":"https:\/\/www.itechh.com\/?p=86"},"modified":"2021-03-10T21:08:34","modified_gmt":"2021-03-10T13:08:34","slug":"%e5%ae%89%e8%a3%85ubantu%e5%b9%b6%e7%bc%96%e8%af%91openwrt%e5%9b%ba%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/itechh.com\/?p=86","title":{"rendered":"\u5b89\u88c5Ubuntu\u5e76\u7f16\u8bd1openwrt\u56fa\u4ef6"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1.\u865a\u62df\u673a\u5b89\u88c5Ubuntu18\u7cfb\u7edf\u5e76\u8bbe\u7f6e<\/h2>\n\n\n\n<p>1.\u7f51\u7edc\u914d\u7f6e\u53c2\u8003\u5982\u4e0b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/itechh.com\/wp-content\/uploads\/2020\/08\/20200813142900.jpg\" alt=\"\" class=\"wp-image-97\" width=\"681\" height=\"350\" srcset=\"https:\/\/itechh.com\/wp-content\/uploads\/2020\/08\/20200813142900.jpg 717w, https:\/\/itechh.com\/wp-content\/uploads\/2020\/08\/20200813142900-300x154.jpg 300w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/figure>\n\n\n\n<p>2.\u53c2\u8003\u6587\u7ae0<a href=\"https:\/\/itechh.com\/?p=29\">https:\/\/itechh.com\/?p=29<\/a>\u6765\u7528\u7b2c\u4e09\u65b9ssh\u5de5\u5177\u767b\u5f55<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2.\u7f16\u8bd1\u73af\u5883\u914d\u7f6e<\/h2>\n\n\n\n<p>\u53c2\u8003lean\u7684\u6e90\u7801\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/coolsnowwolf\/lede\">https:\/\/github.com\/coolsnowwolf\/lede<\/a><\/p>\n\n\n\n<p>1.\u7528ssh\u5de5\u5177\u767b\u5f55\uff08\u975eroot\u7528\u6237\uff09ubuntu18<\/p>\n\n\n\n<p>2.\u4f9d\u6b21\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3.5 python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget swig rsync<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/coolsnowwolf\/lede<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>cd lede<\/code><\/pre>\n\n\n\n<p>3.\u52a0\u5165\u4e00\u4e9b\u8f6f\u4ef6\u6e90<\/p>\n\n\n\n<p>\u5728lede\u76ee\u5f55\u4e0b\uff0c\u6253\u5f00feeds.conf.default\u6587\u4ef6\uff0c\u52a0\u5165\u4ee5\u4e0b\u4e24\u4e2a\u8f6f\u4ef6\u6e90\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>src-git kenzo https:\/\/github.com\/kenzok8\/openwrt-packages\nsrc-git small https:\/\/github.com\/kenzok8\/small<\/code><\/pre>\n\n\n\n<p>4. \u7136\u540e\u4f9d\u6b21\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/scripts\/feeds update -a<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/scripts\/feeds install -a<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>make menuconfig<\/code><\/pre>\n\n\n\n<p>5.&nbsp;\u4e0b\u8f7ddl\u5e93\uff08\u56fd\u5185\u8bf7\u5c3d\u91cf\u5168\u5c40\u79d1\u5b66\u4e0a\u7f51\uff09\uff0c\u591a\u6267\u884c\u51e0\u6b21\uff0c\u786e\u4fdd\u4e0b\u8f7d\u5b8c\u6574\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make -j8 download V=s<\/code><\/pre>\n\n\n\n<p>6.\u7b2c\u4e00\u6b21\u7528\u5355\u7ebf\u7a0b\u7f16\u8bd1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make -j1 V=s<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3.\u4e8c\u6b21\u7f16\u8bd1<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>cd lede                                                                 # \u8fdb\u5165LEDE\u76ee\u5f55\ngit pull                                                                 # \u540c\u6b65\u66f4\u65b0\u5927\u96d5\u6e90\u7801\n.\/scripts\/feeds update -a &amp;&amp; .\/scripts\/feeds install -a             # \u66f4\u65b0Feeds\nrm -rf .\/tmp &amp;&amp; rm -rf .config                                        # \u6e05\u9664\u7f16\u8bd1\u914d\u7f6e\u548c\u7f13\u5b58\nmake menuconfig                                                 # \u8fdb\u5165\u7f16\u8bd1\u914d\u7f6e\u83dc\u5355\nmake -jn V=99                           # \u5f00\u59cb\u7f16\u8bd1 n=\u7ebf\u7a0b\u6570+1\uff0c\u4f8b\u59824\u7ebf\u7a0b\u7684I5\u586b-j5\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4.\u6ce8\u610f<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">\u8bf4\u660e\uff1a\u5982\u679c\u51fa\u73b0\u5c11\u4f9d\u8d56<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4\u5373\u53ef\uff0c\u8fd9\u6837\u5728Lean\u7684\u6e90\u7801lede\u4e0b\uff0c\u5c31\u4e0d\u4f1a\u5c11\u4f9d\u8d56\u4e86\uff0c\u5982\u679c\u5728Lienol\u4e0b\uff0c\u4e0d\u7528\u4e0b\u8f7d\u6b64\u4f9d\u8d56\u5e93<\/li><li>lede\/package$\u4e0b\u8fd0\u884c \u6216\u8005openwrt\/package$\u4e0b\u8fd0\u884c<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\"> git clone https:\/\/github.com\/kenzok8\/small.git<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u865a\u62df\u673a\u5b89\u88c5Ubuntu18\u7cfb\u7edf\u5e76\u8bbe\u7f6e 1.\u7f51\u7edc\u914d\u7f6e\u53c2\u8003\u5982\u4e0b 2.\u53c2\u8003\u6587\u7ae0https:\/\/itechh.com\/?p=29\u6765\u7528\u7b2c\u4e09\u65b9ssh\u5de5\u5177\u767b\u5f55 2.\u7f16\u8bd1\u73af\u5883\u914d\u7f6e \u53c2\u8003lean\u7684\u6e90\u7801\u5730\u5740\uff1ahttps:\/\/github.com\/cools&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"topic":[],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-openwrt"],"_links":{"self":[{"href":"https:\/\/itechh.com\/index.php?rest_route=\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itechh.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itechh.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itechh.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itechh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86"}],"version-history":[{"count":7,"href":"https:\/\/itechh.com\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":161,"href":"https:\/\/itechh.com\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions\/161"}],"wp:attachment":[{"href":"https:\/\/itechh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itechh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itechh.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/itechh.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}