{"id":99,"date":"2022-11-29T20:02:06","date_gmt":"2022-11-29T12:02:06","guid":{"rendered":"https:\/\/www.yyaan.top\/?p=99"},"modified":"2024-01-30T13:37:13","modified_gmt":"2024-01-30T05:37:13","slug":"ubuntu%e4%b8%8b%e7%94%a8lean%e6%ba%90%e7%a0%81%e7%bc%96%e8%af%91openwrt","status":"publish","type":"post","link":"https:\/\/www.yyaan.com\/?p=99","title":{"rendered":"Ubuntu\u4e0b\u7528Lean\u6e90\u7801\u7f16\u8bd1openwrt"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">\u6ce8\u610f\uff1a<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u4e0d\u8981\u7528&nbsp;<strong>root<\/strong>&nbsp;\u7528\u6237\u8fdb\u884c\u7f16\u8bd1\uff01\uff01\uff01<\/li>\n\n\n\n<li>\u56fd\u5185\u7528\u6237\u7f16\u8bd1\u524d\u6700\u597d\u51c6\u5907\u597d\u68af\u5b50<\/li>\n\n\n\n<li>\u9ed8\u8ba4\u767b\u9646IP 192.168.1.1 \u5bc6\u7801 password<\/li>\n<\/ol>\n\n\n\n<p>\u6e90\u7801\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/coolsnowwolf\/lede\">https:\/\/github.com\/coolsnowwolf\/lede<\/a>&nbsp;\u611f\u8c22Lean\u5927\u795e<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u9996\u5148\u88c5\u597d Linux \u7cfb\u7edf\uff0c\u63a8\u8350 Debian 11 \u6216 Ubuntu LTS<\/li>\n\n\n\n<li>\u5b89\u88c5\u7f16\u8bd1\u4f9d\u8d56<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update -y\r\nsudo apt full-upgrade -y\r\nsudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \\\r\nbzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \\\r\ngit gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev \\\r\nlibltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev \\\r\nlibssl-dev libtool lrzsz mkisofs msmtp ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 \\\r\npython3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \\\r\nuglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev<\/code><\/pre>\n\n\n\n<p>3\uff1a \u4f7f\u7528<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/coolsnowwolf\/lede&nbsp;\ncd lede<\/code><\/pre>\n\n\n\n<p>\u547d\u4ee4\u4e0b\u8f7d\u597d\u6e90\u4ee3\u7801\u7136\u540e<code>cd lede<\/code>&nbsp;\u8fdb\u5165\u76ee\u5f55<\/p>\n\n\n\n<p>4\uff1a\u7f1d\u5408\u4e00\u4e9b\u5176\u4ed6\u63d2\u4ef6\u539f\u5730\u5740:<a href=\"https:\/\/github.com\/kenzok8\/openwrt-packages\">https:\/\/github.com\/kenzok8\/openwrt-packages<\/a>&nbsp;\u6dfb\u52a0\u4e0b\u9762\u4ee3\u7801\u590d\u5236\u5230 lede\u6e90\u7801\u6839\u76ee\u5f55&nbsp;feeds.conf.default&nbsp;\u6587\u4ef6<\/p>\n\n\n\n<p>OpenWrt \u7f16\u8bd1 LuCI -&gt;&nbsp;<a href=\"https:\/\/www.right.com.cn\/forum\/thread-344825-1-1.html\">Applications \u6dfb\u52a0\u63d2\u4ef6\u5e94\u7528\u8bf4\u660e<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u559c\u6b22\u8ffd\u65b0\u7684\u53ef\u4ee5\u53bb\u4e0b\u8f7dsmall-package\uff0c\u8be5\u4ed3\u5e93\u6bcf\u5929\u81ea\u52a8\u540c\u6b65\u66f4\u65b0<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/kenzok8\/small-package\">small-package\u4ed3\u5e93\u5730\u5740<\/a><\/li>\n\n\n\n<li>\u8f6f\u4ef6\u4e0d\u5b9a\u671f\u540c\u6b65\u5927\u795e\u5e93\u66f4\u65b0\uff0c\u9002\u5408\u4e00\u952e\u4e0b\u8f7d\u7528\u4e8eopenwrt\u7f16\u8bd1<\/li>\n<\/ul>\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\n#src-git small8 https:\/\/github.com\/kenzok8\/small-package<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i '$a src-git kenzo https:\/\/github.com\/kenzok8\/openwrt-packages' feeds.conf.default\r\nsed -i '$a src-git small https:\/\/github.com\/kenzok8\/small' feeds.conf.default\n#sed -i '$a src-git smpackage https:\/\/github.com\/kenzok8\/small-package' feeds.conf.default<\/code><\/pre>\n\n\n\n<p>\u5bf9\u4e8e\u5f3a\u8feb\u75c7\u7684\u540c\u5b66\uff08\u6709\u62a5\u9519\u4fe1\u606f\u3001\u6216Lean\u6e90\u7801\u7f16\u8bd1\u51fa\u9519\u7684\u60c5\u51b5\uff09\uff0c\u8bf7\u5c1d\u8bd5\u5220\u9664\u51b2\u7a81\u7684\u63d2\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf feeds\/smpackage\/{base-files,dnsmasq,firewall*,fullconenat,libnftnl,nftables,ppp,opkg,ucl,upx,vsftpd-alt,miniupnpd-iptables,wireless-regdb}<\/code><\/pre>\n\n\n\n<p>miniupnpd\u7f16\u8bd1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf feeds\/smpackage\/miniupnpd-iptables&amp;&amp; rm -rf package\/feeds\/smpackage\/miniupnpd-iptables&amp;&amp;.\/scripts\/feeds update -a&amp;&amp; .\/scripts\/feeds install -a<\/code><\/pre>\n\n\n\n<p>aliyundrive-webdav\u7f16\u8bd1\uff0c\u4e8c\u9009\u4e00<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -o .\/feeds\/packages\/lang\/rust\/rust-values.mk https:\/\/raw.githubusercontent.com\/Jason6111\/packages\/patch-1\/lang\/rust\/rust-values.mk\r\ncurl -o .\/feeds\/packages\/lang\/rust\/Makefile https:\/\/raw.githubusercontent.com\/Jason6111\/OpenWrt_Personal\/main\/other\/rust\/Makefile\r\ncurl -o .\/feeds\/packages\/lang\/rust\/patches\/0001-Update-xz2-and-use-it-static.patch https:\/\/raw.githubusercontent.com\/Jason6111\/OpenWrt_Personal\/main\/other\/rust\/0001-Update-xz2-and-use-it-static.patch<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i 's\/stripped\/release\/g' feeds\/packages\/multimedia\/aliyundrive-webdav\/Makefile<\/code><\/pre>\n\n\n\n<p>\u7f16\u8bd1\u65b0\u7248Sing-box\u548chysteria\uff0c\u9700golang\u7248\u672c1.20\u6216\u8005\u4ee5\u4e0a\u7248\u672c \uff0c\u53ef\u4ee5\u7528\u4ee5\u4e0b\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf feeds\/packages\/lang\/golang\r\ngit clone https:\/\/github.com\/sbwml\/packages_lang_golang -b 21.x feeds\/packages\/lang\/golang<\/code><\/pre>\n\n\n\n<p>5\uff1a\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\uff0c\u66f4\u65b0\u7f16\u8bd1\u6e90\uff0c\u5e76\u8fdb\u5165\u914d\u7f6e\u9875\u9762\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/scripts\/feeds update -a\n.\/scripts\/feeds install -a\nmake menuconfig<\/code><\/pre>\n\n\n\n<p>6\uff1a\u4e0b\u8f7ddl\u5e93\uff08\u56fd\u5185\u8bf7\u5c3d\u91cf\u5168\u5c40\u79d1\u5b66\u4e0a\u7f51\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make -j8 download V=s<\/code><\/pre>\n\n\n\n<p><br>7\uff1a\u5f00\u59cb\u7f16\u8bd1\uff08-j1 \u540e\u9762\u662f\u7ebf\u7a0b\u6570\u3002\u7b2c\u4e00\u6b21\u7f16\u8bd1\u63a8\u8350\u7528\u5355\u7ebf\u7a0b\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make V=s -j1<\/code><\/pre>\n\n\n\n<p>\u7b2c\u4e00\u6b21\u7f16\u8bd1\u63a8\u8350<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/coolsnowwolf\/lede\ncd lede\nsed -i '$a src-git smpackage https:\/\/github.com\/kenzok8\/small-package' feeds.conf.default\nsed -i 's\/192\\.168\\.1\\.1\/192.168.2.1\/g' ~\/lede\/package\/base-files\/files\/bin\/config_generate\n.\/scripts\/feeds update -a &amp;&amp; .\/scripts\/feeds install -a\nsed -i 's\/&#91;Bb]&#91;Oo]&#91;Oo]&#91;Tt]&#91;Ss]&#91;Tt]&#91;Rr]&#91;Aa]&#91;Pp]\/argon\/g' ~\/lede\/feeds\/luci\/collections\/luci\/Makefile\nmake menuconfig\nmake -j8 download V=s\nmake V=s -j1<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">\u518d\u6b21\u7f16\u8bd1 \uff08\u9002\u7528\u4e8e\u4e0d\u66f4\u6539\u914d\u7f6e\u529f\u80fd\u548c\u63d2\u4ef6\uff0c\u4ec5\u5347\u7ea7\uff09<\/h6>\n\n\n\n<pre class=\"wp-block-code\"><code>cd lede\ngit pull\n.\/scripts\/feeds update -a &amp;&amp; .\/scripts\/feeds install -a\nmake defconfig\nmake -j8 download V=s\nmake V=s -j$(nproc)<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">\u66f4\u6539\u914d\u7f6e\u7f16\u8bd1<\/h6>\n\n\n\n<pre class=\"wp-block-code\"><code>cd lede\nrm -rf .\/tmp &amp;&amp; rm -rf .config\nmake menuconfig\nmake V=s -j$(nproc)<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">Make\u754c\u9762\u5f00\u542fIPV6<\/h6>\n\n\n\n<pre class=\"wp-block-code\"><code>extra packages\u2014\u2014ipv6helper<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">\u914d\u7f6e\u6587\u4ef6\u66f4\u6539LAN\u53e3\u7684\u9ed8\u8ba4IP\u5730\u5740<\/h6>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/package\/base-files\/files\/bin\/config_generate<\/code><\/pre>\n\n\n\n<p>\u5927\u6982\u5728150\u884c\u627e\u5230\u6211\u4eec\u9ed8\u8ba4\u7684\u539fIP\u5730\u5740\uff08192.168.1.1\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\tcase \"$protocol\" in\n\t\tstatic)\n\t\t\tlocal ipad\n\t\t\tcase \"$1\" in\n\t\t\t\tlan) ipad=${ipaddr:-\"192.168.1.1\"} ;;\n\t\t\t\t*) ipad=${ipaddr:-\"192.168.$((addr_offset++)).1\"} ;;\n\t\t\tesac\n\n\t\t\tnetm=${netmask:-\"255.255.255.0\"}\n\n\t\t\tuci -q batch &lt;&lt;-EOF\n\t\t\t\tset network.$1.proto='static'\n\t\t\t\tset network.$1.ipaddr='$ipad'\n\t\t\t\tset network.$1.netmask='$netm'\n\t\t\tEOF\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h6 class=\"wp-block-heading\">Make\u754c\u9762\u7f16\u8bd1\u63d2\u4ef6\u65f6\uff0c\u5efa\u8bae\u4fee\u6539\u4e0b\u9762\u4e24\u9879\u9ed8\u8ba4\u5927\u5c0f\uff0c\u7559\u8db3\u63d2\u4ef6\u7a7a\u95f4\u3002\uff08 x86\/64 \uff09<\/h6>\n\n\n\n<pre class=\"wp-block-code\"><code>Target Images ---&gt; (16) Kernel partition size (in MB)           #\u9ed8\u8ba4\u662f (16) \u5efa\u8bae\u4fee\u6539 (256)\nTarget Images ---&gt; (160) Root filesystem partition size (in MB) #\u9ed8\u8ba4\u662f (160) \u5efa\u8bae\u4fee\u6539 (512)<\/code><\/pre>\n\n\n\n<h6 class=\"wp-block-heading\">\u914d\u7f6e\u6587\u4ef6\u4fee\u6539\u56fa\u4ef6\u5927\u5c0f\u548c\u56fa\u4ef6\u7c7b\u578b<\/h6>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/config\/Config-images.in<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\tcomment \"Image Options\"\n\n\tsource \"target\/linux\/*\/image\/Config.in\"\n\n\tconfig TARGET_KERNEL_PARTSIZE\n\t\tint \"Kernel partition size (in MB)\"\n\t\tdepends on USES_BOOT_PART\n\t\tdefault 8 if TARGET_apm821xx_sata\n\t\tdefault 64 if TARGET_bcm27xx\n\t\tdefault 256\n\n\tconfig TARGET_ROOTFS_PARTSIZE\n\t\tint \"Root filesystem partition size (in MB)\"\n\t\tdepends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_omap || TARGET_sunxi || TARGET_uml\n\t\tdefault 512\n\t\thelp\n\t\t  Select the root filesystem partition size.<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\n\tconfig VMDK_IMAGES\n\t\tbool \"Build VMware image files (VMDK)\"\n\t\tdepends on TARGET_x86\n\t\tdepends on GRUB_IMAGES || GRUB_EFI_IMAGES\n\t\tdefault <strong>y<\/strong>  or  <strong>n<\/strong>\n\t\tselect PACKAGE_kmod-e1000<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h6 class=\"wp-block-heading\">\u6253\u5f00\u9002\u7528\u4e8eVMware\u7684VM Tools<\/h6>\n\n\n\n<pre class=\"wp-block-code\"><code>Utilities  ---&gt;  open-vm-tools  #\u6253\u5f00\u9002\u7528\u4e8eVMware\u7684VM Tools\nUtilities  ---&gt;  open-vm-tools-fuse  #\u6253\u5f00\u9002\u7528\u4e8eVMware\u7684VM Tools<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h6 class=\"wp-block-heading\">\u66f4\u6539\u4e3b\u9898luci-theme-xxx<\/h6>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/feeds\/luci\/collections\/luci\/Makefile<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>LUCI_TITLE:=Standard OpenWrt set including full admin with ppp support and the default <strong>argon <\/strong>theme\nLUCI_DEPENDS:= \\\n\t+uhttpd +uhttpd-mod-ubus +luci-mod-admin-full +luci-theme-<strong>argon<\/strong> \\\n\t+luci-app-firewall +luci-proto-ppp +libiwinfo-lua \\\n\t+rpcd-mod-rrdns<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u5b89\u88c5 Cloudflare DDNS \u7ec4\u4ef6<\/p>\n\n\n\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b Open\u00adWrt \u4e2d\u5e76\u6ca1\u6709 Cloud\u00adflare DDNS \u529f\u80fd\uff0c\u9700\u8981\u5728\u7f16\u8bd1\u65f6\u9009\u62e9\u76f8\u5e94\u7684\u7ec4\u4ef6\uff0c\u5176\u4f4d\u7f6e\u5728&nbsp;<code>Network<\/code>\u2192<code>IP Addresses and Names<\/code> \u2192<code>ddns-scripets_cloudflare.com-v4<\/code><\/p>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"toc_4\">\u6587\u4ef6\u6e05\u7406<\/h6>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6e05\u9664\u65e7\u7684\u7f16\u8bd1\u4ea7\u7269\uff08\u53ef\u9009\uff09<\/li>\n\n\n\n<li><code>make clean<\/code><\/li>\n\n\n\n<li>\u5728\u6e90\u7801\u6709\u5927\u89c4\u6a21\u66f4\u65b0\u6216\u8005\u5185\u6838\u66f4\u65b0\u540e\u6267\u884c\uff0c\u4ee5\u4fdd\u8bc1\u7f16\u8bd1\u8d28\u91cf\u3002\u6b64\u64cd\u4f5c\u4f1a\u5220\u9664<code>\/bin<\/code>\u548c<code>\/build_dir<\/code>\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u3002<\/li>\n\n\n\n<li>\u6e05\u9664\u65e7\u7684\u7f16\u8bd1\u4ea7\u7269\u3001\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u53ca\u5de5\u5177\u94fe\u7b49\u76ee\u5f55\uff08\u53ef\u9009\uff09<\/li>\n\n\n\n<li><code>make dirclean<\/code><\/li>\n\n\n\n<li>\u66f4\u6362\u67b6\u6784\u7f16\u8bd1\u524d\u5fc5\u987b\u6267\u884c\u3002\u6b64\u64cd\u4f5c\u4f1a\u5220\u9664<code>\/bin<\/code>\u548c<code>\/build_dir<\/code>\u76ee\u5f55\u7684\u4e2d\u7684\u6587\u4ef6(<code>make clean<\/code>)\u4ee5\u53ca<code>\/staging_dir<\/code>\u3001<code>\/toolchain<\/code>\u3001<code>\/tmp<\/code>\u548c<code>\/logs<\/code>\u4e2d\u7684\u6587\u4ef6\u3002<\/li>\n\n\n\n<li>\u6e05\u9664 Open\u00adWrt \u6e90\u7801\u4ee5\u5916\u7684\u6587\u4ef6\uff08\u53ef\u9009\uff09<\/li>\n\n\n\n<li><code>make distclean<\/code><\/li>\n\n\n\n<li>\u9664\u975e\u662f\u505a\u5f00\u53d1\uff0c\u5e76\u6253\u7b97 push \u5230 GitHub \u8fd9\u6837\u7684\u8fdc\u7a0b\u4ed3\u5e93\uff0c\u5426\u5219\u51e0\u4e4e\u7528\u4e0d\u5230\u3002\u6b64\u64cd\u4f5c\u76f8\u5f53\u4e8e<code>make dirclean<\/code>\u5916\u52a0\u5220\u9664<code>\/dl<\/code>\u3001<code>\/feeds<\/code>\u76ee\u5f55\u548c<code>.config<\/code>\u6587\u4ef6\u3002<\/li>\n\n\n\n<li>\u8fd8\u539f Open\u00adWrt \u6e90\u7801\u5230\u521d\u59cb\u72b6\u6001\uff08\u53ef\u9009\uff09<\/li>\n\n\n\n<li><code>git clean -xdf<\/code><\/li>\n\n\n\n<li>\u5982\u679c\u628a\u6e90\u7801\u6539\u574f\u4e86\uff0c\u6216\u8005\u957f\u65f6\u95f4\u6ca1\u6709\u8fdb\u884c\u7f16\u8bd1\u65f6\u4f7f\u7528\u3002<\/li>\n\n\n\n<li>\u6e05\u9664\u4e34\u65f6\u6587\u4ef6<\/li>\n\n\n\n<li><code>rm -rf tmp<\/code><\/li>\n\n\n\n<li>\u5220\u9664\u6267\u884c<code>make menuconfig<\/code>\u540e\u4ea7\u751f\u7684\u4e00\u4e9b\u4e34\u65f6\u6587\u4ef6\uff0c\u5305\u62ec\u4e00\u4e9b\u8f6f\u4ef6\u5305\u7684\u68c0\u7d22\u4fe1\u606f\uff0c\u5220\u9664\u540e\u4f1a\u91cd\u65b0\u52a0\u8f7d<code>package<\/code>\u76ee\u5f55\u4e0b\u7684\u8f6f\u4ef6\u5305\u3002\u82e5\u4e0d\u5220\u9664\u4f1a\u5bfc\u81f4\u4e00\u4e9b\u65b0\u52a0\u5165\u7684\u8f6f\u4ef6\u5305\u4e0d\u663e\u793a\u3002<\/li>\n\n\n\n<li>\u5220\u9664\u7f16\u8bd1\u914d\u7f6e\u6587\u4ef6<\/li>\n\n\n\n<li><code>rm -f .config<\/code><\/li>\n\n\n\n<li>\u5728\u4e0d\u5220\u9664\u7684\u60c5\u51b5\u4e0b\u5982\u679c\u53d6\u6d88\u9009\u62e9\u67d0\u4e9b\u7ec4\u4ef6\u5b83\u7684\u4f9d\u8d56\u7ec4\u4ef6\u4e0d\u4f1a\u81ea\u52a8\u53d6\u6d88\uff0c\u6240\u4ee5\u5bf9\u4e8e\u9700\u8981\u8c03\u6574\u7ec4\u4ef6\u7684\u60c5\u51b5\u4e0b\u5efa\u8bae\u5220\u9664\u3002<\/li>\n<\/ul>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"toc_5\">\u7f16\u8bd1<\/h6>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8c03\u6574 Open\u00adWrt \u7cfb\u7edf\u7ec4\u4ef6<\/li>\n\n\n\n<li><code>make menuconfig<\/code><\/li>\n\n\n\n<li>\u5982\u679c\u4e0d\u6253\u7b97\u8c03\u6574\u7ec4\u4ef6\u5219\u8f93\u5165<code>make defconfig<\/code>\uff0c\u5b83\u4f1a\u68c0\u6d4b\u7f16\u8bd1\u73af\u5883\u5e76\u6839\u636e\u66f4\u65b0\u81ea\u52a8\u8c03\u6574\u7f16\u8bd1\u914d\u7f6e\u6587\u4ef6\u3002<\/li>\n\n\n\n<li>\u9884\u4e0b\u8f7d\u7f16\u8bd1\u6240\u9700\u7684\u8f6f\u4ef6\u5305<\/li>\n\n\n\n<li><code>make download -j8 V=s<\/code><\/li>\n\n\n\n<li>\u68c0\u67e5\u6587\u4ef6\u5b8c\u6574\u6027<\/li>\n\n\n\n<li><code>find dl -size -1024c -exec ls -l {} \\;<\/code><\/li>\n\n\n\n<li>\u6b64\u547d\u4ee4\u53ef\u4ee5\u5217\u51fa\u4e0b\u8f7d\u4e0d\u5b8c\u6574\u7684\u6587\u4ef6\uff08\u6839\u636e\u6211\u591a\u6b21\u7f16\u8bd1\u7684<a rel=\"noreferrer noopener\" href=\"https:\/\/p3terx.com\/archives\/reasons-and-solutions-for-openwrt-compilation-failure.html\" target=\"_blank\">\u7ecf\u9a8c<\/a>\u5f97\u51fa\u5c0f\u4e8e1k\u7684\u6587\u4ef6\u5c5e\u4e8e\u4e0b\u8f7d\u4e0d\u5b8c\u6574\uff09\uff0c\u5982\u679c\u5b58\u5728\u8fd9\u6837\u7684\u6587\u4ef6\u53ef\u4ee5\u4f7f\u7528<\/li>\n\n\n\n<li><code>find dl -size -1024c -exec rm -f {} \\;<\/code><\/li>\n\n\n\n<li>\u547d\u4ee4\u5c06\u5b83\u4eec\u5220\u9664\uff0c\u7136\u540e\u91cd\u65b0\u6267\u884c<code>make download<\/code>\u4e0b\u8f7d\u5e76\u53cd\u590d\u68c0\u67e5\uff0c\u786e\u8ba4\u6240\u6709\u6587\u4ef6\u5b8c\u6574\u53ef\u5927\u5927\u63d0\u9ad8\u7f16\u8bd1\u6210\u529f\u7387\uff0c\u907f\u514d\u6d6a\u8d39\u65f6\u95f4\u3002<\/li>\n\n\n\n<li>\u5f00\u59cb\u7f16\u8bd1<\/li>\n\n\n\n<li><code>make -j$(nproc) || make -j1 || make -j1 V=s<\/code><\/li>\n\n\n\n<li>\u591a\u7ebf\u7a0b\u7f16\u8bd1\u5931\u8d25\u540e\u81ea\u52a8\u8fdb\u5165\u5355\u7ebf\u7a0b\u7f16\u8bd1\uff0c\u5931\u8d25\u5219\u8f93\u51fa\u8be6\u7ec6\u65e5\u5fd7\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6ce8\u610f\uff1a \u6e90\u7801\u5730\u5740\uff1ahttps:\/\/github.com\/coolsnowwolf\/lede&#038;nbsp [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[1],"tags":[5],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-openwrt"],"_links":{"self":[{"href":"https:\/\/www.yyaan.com\/index.php?rest_route=\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yyaan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yyaan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yyaan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yyaan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99"}],"version-history":[{"count":18,"href":"https:\/\/www.yyaan.com\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/www.yyaan.com\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions\/178"}],"wp:attachment":[{"href":"https:\/\/www.yyaan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yyaan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yyaan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}