{"id":1921,"date":"2023-06-27T11:03:04","date_gmt":"2023-06-27T03:03:04","guid":{"rendered":"http:\/\/iqotom.com\/?p=1921"},"modified":"2023-06-28T16:12:54","modified_gmt":"2023-06-28T08:12:54","slug":"%e7%bc%96%e8%af%91openwrt%e5%b9%b6%e6%b7%bb%e5%8a%a0%e4%bb%a3%e7%90%86%e8%bd%af%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/iqotom.com\/?p=1921","title":{"rendered":"\u7f16\u8bd1Openwrt\u5e76\u6dfb\u52a0\u4ee3\u7406\u8f6f\u4ef6"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u4f7f\u7528Lean\u5927\u795e\u6e90\u7801\u4e8c\u6b21\u5f00\u53d1<\/h1>\n\n\n\n<p><a href=\"https:\/\/github.com\/coolsnowwolf\/lede\">coolsnowwolf\/lede: Lean&#8217;s LEDE source (github.com)<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6ce8\u610f<\/h2>\n\n\n\n<ol><li>\u4e0d\u8981\u7528root\u7528\u6237\u7f16\u8bd1<\/li><li>\u56fd\u5185\u7528\u6237\u7f16\u8bd1\u524d\u6700\u597d\u51c6\u5907\u597d\u68af\u5b50<\/li><li>\u9ed8\u8ba4\u767b\u9646IP 192.168.1.1 \u5bc6\u7801 password<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u7f16\u8bd1\u547d\u4ee4<\/h2>\n\n\n\n<p>1.\u7cfb\u7edf\u63a8\u8350Debian 11 \u6216 Ubuntu LTS\uff0c\u5b89\u88c5\u7f16\u8bd1\u4f9d\u8d56<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">sudo apt update -ysudo apt full-upgrade -ysudo apt install -y ack antlr3 aria2 asciidoc autoconf automake autopoint binutils bison build-essential \\bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \\git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libglib2.0-dev libgmp3-dev libltdl-dev \\libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz \\mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pip libpython3-dev qemu-utils \\rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev <\/code><\/pre>\n\n\n\n<p>2.\u4e0b\u8f7d\u6e90\u4ee3\u7801\uff0c\u66f4\u65b0feeds\u5e76\u9009\u62e9\u914d\u7f6e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">git clone https:\/\/github.com\/coolsnowwolf\/lede\ncd lede\n.\/scripts\/feeds update -a\n.\/scripts\/feeds install -a\nmake menuconfig <\/code><\/pre>\n\n\n\n<p>3.\u6dfb\u52a0\u989d\u5916\u8f6f\u4ef6\u5305<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">https:\/\/github.com\/kenzok8\/openwrt-packages\nsed -i '$a src-git kenzo https:\/\/github.com\/kenzok8\/openwrt-packages' feeds.conf.default\nsed -i '$a src-git small https:\/\/github.com\/kenzok8\/small' feeds.conf.default\ngit pull\n.\/scripts\/feeds update -a\n.\/scripts\/feeds install -a\nmake menuconfig <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/s1.ax1x.com\/2023\/04\/11\/ppOCWJP.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>4.\u4e0b\u8f7d dl \u5e93\uff0c\u7f16\u8bd1\u56fa\u4ef6(-j \u540e\u9762\u662f\u7ebf\u7a0b\u6570\uff0c\u7b2c\u4e00\u6b21\u7f16\u8bd1\u63a8\u8350\u7528\u5355\u7ebf\u7a0b\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">make download -j8\nmake V=sc -j1 FORCE_UNSAFE_CONFIGURE=1 <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u6b21\u7f16\u8bd1<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">cd lede\ngit pull\n.\/scripts\/feeds update -a\n.\/scripts\/feeds install -a\nmake defconfig\nmake download -j8\nmake V=s -j$(nproc) FORCE_UNSAFE_CONFIGURE=1<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5982\u679c\u9700\u8981\u91cd\u65b0\u914d\u7f6e\uff1a<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">rm -rf .\/tmp &amp;&amp; rm -rf .config\nmake menuconfig\nmake V=s -j$(nproc)<\/code><\/pre>\n\n\n\n<p><strong>\u7f16\u8bd1\u5b8c\u6210\u540e\u8f93\u51fa\u8def\u5f84\uff1abin\/targets<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/s1.ax1x.com\/2023\/04\/11\/ppOC5QS.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u7f16\u8bd1\u4e2d\u9047\u5230\u7684\u4e00\u4e9b\u9519\u8bef\uff0c\u4ec5\u4f9b\u53c2\u8003<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">WSL2\u7f16\u8bd1\u8bbe\u7f6e\u4ee3\u7406\uff0c\u8bbe\u7f6eproxy\uff0c\u53ef\u6dfb\u52a0\u5230.bashrc\u6587\u4ef6\uff0c\u4f8b\u5982\u6211\u4f7f\u7528socks\u4ee3\u7406<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">export all_proxy=socks5:\/\/192.168.8.12:1080<\/code><\/pre>\n\n\n\n<p>\u5373\u4f7f\u8bbe\u7f6e\u4e86\u4ee3\u7406\u4f9d\u7136\u53ef\u80fd\u51fa\u73b0\u4e0b\u8f7d\u6a21\u5757\u8d85\u65f6\u7684\u60c5\u51b5\uff0c\u6bd4\u5982\u4e0b\u8f7ddocker\u65f6\u9047\u5230TLS error\uff0c\u591a\u8bd5\u51e0\u6b21\u5c31\u597d\u4e86<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">GnuTLS recv error (-110): The TLS connection was non-properly terminated.<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Golong\u88ab\u5899\u8bbe\u7f6e\u4ee3\u7406\u89e3\u51b3\u529e\u6cd5\uff0c\u4e8c\u9009\u4e00<\/h3>\n\n\n\n<p>1\u3001 \u8bbe\u7f6e\u4ee3\u7406 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">export GOPROXY=https:\/\/proxy.golang.com.cn,direct<\/code><\/pre>\n\n\n\n<p>2\u3001 \u5728\u51fa\u9519\u7684\u8f6f\u4ef6\u4fee\u6539makefile<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">export GO111MODULE=on  \nexport GOPROXY=https:\/\/goproxy.cn <\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"> Microsoft\/GSL\u9519\u8bef<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">git clone https:\/\/github.com\/Microsoft\/GSL\/ .\/external\/GSL\n\/home\/laohu\/lede\/build_dir\/target-arm_cortex-a9+vfpv3-d16_musl_eabi\/trojan-plus-10.0.3\/external\/GSL<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">ruby  optparse (LoadError)<\/h3>\n\n\n\n<p>1\u3001\u5148make menuconfig\uff0c\u8fdb\u5165Languages-&gt;Ruby-&gt;ruby-optparse\u9009\u4e0a <\/p>\n\n\n\n<p>2\u3001\u5220\u9664\u6b8b\u7559<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">rm -rf staging_dir\/hostpkg\/lib\/ruby\nrm -rf staging_dir\/hostpkg\/include\/ruby-*\nrm staging_dir\/hostpkg\/lib\/pkgconfig\/ruby-*\nrm staging_dir\/hostpkg\/bin\/ruby\nrm -rf build_dir\/hostpkg\/ruby-*<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528Lean\u5927\u795e\u6e90\u7801\u4e8c\u6b21\u5f00\u53d1 coolsnowwolf\/lede: Lean&#8217;s LEDE sou\u2026 <span class=\"read-more\"><a href=\"http:\/\/iqotom.com\/?p=1921\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":1512,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/1921"}],"collection":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1921"}],"version-history":[{"count":5,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/1921\/revisions"}],"predecessor-version":[{"id":1927,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/posts\/1921\/revisions\/1927"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=\/wp\/v2\/media\/1512"}],"wp:attachment":[{"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1921"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/iqotom.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}