{"id":301,"date":"2021-04-08T22:39:06","date_gmt":"2021-04-08T14:39:06","guid":{"rendered":"https:\/\/iyatt.com:8888\/?p=301"},"modified":"2024-05-05T14:19:48","modified_gmt":"2024-05-05T06:19:48","slug":"%e7%bc%96%e8%af%91openwrt","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=301","title":{"rendered":"\u7f16\u8bd1OpenWRT"},"content":{"rendered":"\n<p>\u6211\u4e0d\u662f\u5199\u5165\u95e8\u6559\u7a0b\uff0c\u53ea\u662f\u8bb0\u5f55\u57fa\u672c\u7f16\u8bd1\u64cd\u4f5c<\/p>\n\n\n\n<p>1.\u51c6\u5907Linux\u7cfb\u7edf(\u793a\u4f8b\u7528Ubuntu 20.04)\u548c\u68af\u5b50\u3002\u6ce8\u610f\u5168\u7a0b\u4e0d\u8981\u4f7f\u7528root\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>2.\u5b89\u88c5\u4f9d\u8d56<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 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 curl swig rsync<\/pre>\n\n\n\n<p>3.\u4ecegithub\u83b7\u53d6\u6e90\u7801: https:\/\/github.com\/openwrt\/openwrt (\u793a\u4f8b\u65f6,\u6700\u65b0 21.098)<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git clone https:\/\/github.com\/openwrt\/openwrt.git --depth=1<\/pre>\n\n\n\n<p>4.\u8fdb\u5165git\u4e0b\u6765\u7684\u6e90\u7801\u6587\u4ef6\u5939\u5185\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u66f4\u65b0\u8f6f\u4ef6\u5305\u7d22\u5f15\n.\/scripts\/feeds update -a<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u5b89\u88c5\u8f6f\u4ef6\u5305\u5230package\/feeds\/\n.\/scripts\/feeds install -a<\/pre>\n\n\n\n<p>5. (\u53ef\u9009) \u4e2a\u6027\u5316<\/p>\n\n\n\n<p>(1) \u4fee\u6539\u4e3b\u673a\u540d\u548c\u7f51\u5173    <span class=\"has-inline-color has-vivid-red-color\">package\/base-files\/files\/bin\/config_generate<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"733\" height=\"493\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-221350.png\" alt=\"\" class=\"wp-image-306 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-221350.png 733w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-221350-300x202.png 300w\" data-sizes=\"(max-width: 733px) 100vw, 733px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 733px; --smush-placeholder-aspect-ratio: 733\/493;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"728\" height=\"503\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/05\/\u5c4f\u5e55\u622a\u56fe-2021-05-08-073347.png\" alt=\"\" class=\"wp-image-798 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/05\/\u5c4f\u5e55\u622a\u56fe-2021-05-08-073347.png 728w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/05\/\u5c4f\u5e55\u622a\u56fe-2021-05-08-073347-300x207.png 300w\" data-sizes=\"(max-width: 728px) 100vw, 728px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 728px; --smush-placeholder-aspect-ratio: 728\/503;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"750\" height=\"486\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-221625.png\" alt=\"\" class=\"wp-image-307 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-221625.png 750w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-221625-300x194.png 300w\" data-sizes=\"(max-width: 750px) 100vw, 750px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 750px; --smush-placeholder-aspect-ratio: 750\/486;\" \/><\/figure>\n\n\n\n<p>(2) \u8bbe\u7f6eWiFI\u540d\u548c\u5bc6\u7801    <span class=\"has-inline-color has-vivid-red-color\">package\/kernel\/mac80211\/files\/lib\/wifi\/mac80211.sh<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"774\" height=\"484\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-221907.png\" alt=\"\" class=\"wp-image-308 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-221907.png 774w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-221907-300x188.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-221907-768x480.png 768w\" data-sizes=\"(max-width: 774px) 100vw, 774px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 774px; --smush-placeholder-aspect-ratio: 774\/484;\" \/><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u8bbe\u7f6e\u5bc6\u7801\nset wireless.default_radio${devidx}.key=<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"822\" height=\"504\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-222322.png\" alt=\"\" class=\"wp-image-309 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-222322.png 822w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-222322-300x184.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-222322-768x471.png 768w\" data-sizes=\"(max-width: 822px) 100vw, 822px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 822px; --smush-placeholder-aspect-ratio: 822\/504;\" \/><\/figure>\n\n\n\n<p>(3) \u4fee\u6539ssh\u767b\u5f55\u6b22\u8fce\u4fe1\u606f    <span class=\"has-inline-color has-vivid-red-color\">package\/base-files\/files\/etc\/banner<\/span><\/p>\n\n\n\n<p>(4) \u5982\u679c\u60f3\u5728\u56fa\u4ef6\u4e2d\u9884\u7f6e\u6587\u4ef6,\u53ef\u4ee5\u5728\u6e90\u7801\u6839\u76ee\u5f55\u521b\u5efa\u6587\u4ef6\u5939 <span class=\"has-inline-color has-vivid-red-color\">files<\/span> , \u5728\u91cc\u9762\u653e\u8981\u9884\u7f6e\u7684\u6587\u4ef6,\u6bd4\u5982:<\/p>\n\n\n\n<p>\u2460 \u653e\u4e00\u4e2a\u6587\u4ef6 demo.txt ,\u5219\u9884\u7f6e\u5230 \/demo.txt<\/p>\n\n\n\n<p>\u2461 \u653e\u4e00\u4e2a\u6587\u4ef6 \/root\/demo.txt , \u5219\u5728 \/root \u4e0b\u9884\u7f6e demo.txt \u6587\u4ef6<\/p>\n\n\n\n<p>&#8230;&#8230;<\/p>\n\n\n\n<p>6.\u914d\u7f6e\u7f16\u8bd1\u4fe1\u606f (\u57fa\u7840\u914d\u7f6e &#8211; \u57fa\u4e8enewifi3-d2)<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">make menuconfig<\/pre>\n\n\n\n<p>CPU\u67b6\u6784\u548c\u8def\u7531\u5668\u578b\u53f7\u4fe1\u606f<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"816\" height=\"475\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-223145.png\" alt=\"\" class=\"wp-image-310 lazyload\" data-srcset=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-223145.png 816w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-223145-300x175.png 300w, https:\/\/blog.iyatt.com\/wp-content\/uploads\/2021\/04\/\u5c4f\u5e55\u622a\u56fe-2021-04-08-223145-768x447.png 768w\" data-sizes=\"(max-width: 816px) 100vw, 816px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 816px; --smush-placeholder-aspect-ratio: 816\/475;\" \/><\/figure>\n\n\n\n<p>LuCI-&gt;Collections-&gt;luci \u542f\u7528UI\u7ba1\u7406\u9875\u9762<\/p>\n\n\n\n<p>LuCi-&gt;Modules-&gt;Translations-&gt;Chinese Simplified (zh_Hans) (NEW)   \u8bbe\u7f6e\u7b80\u4f53\u4e2d\u6587<\/p>\n\n\n\n<p>7.\u7f16\u8bd1<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">make -j$(nproc) download V=cs<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">make -j$(nproc) V=cs<\/pre>\n\n\n\n<p>\u7f16\u8bd1\u5b8c\u6210\u540e,\u56fa\u4ef6\u5728\u6e90\u7801\u76ee\u5f55 <span class=\"has-inline-color has-vivid-red-color\">bin\/targets\/<\/span> \u4e0b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4e0d\u662f\u5199\u5165\u95e8\u6559\u7a0b\uff0c\u53ea\u662f\u8bb0\u5f55\u57fa\u672c\u7f16\u8bd1\u64cd\u4f5c 1.\u51c6\u5907Linux\u7cfb\u7edf(\u793a\u4f8b\u7528Ubuntu 20.04)\u548c\u68af\u5b50\u3002\u6ce8\u610f\u5168 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[1,597],"tags":[],"class_list":["post-301","post","type-post","status-publish","format-standard","hentry","category-all","category-597"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=301"}],"version-history":[{"count":0,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/301\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}