{"id":119753,"date":"2026-10-30T09:48:31","date_gmt":"2026-10-30T01:48:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/119753.html"},"modified":"2026-10-30T09:48:31","modified_gmt":"2026-10-30T01:48:31","slug":"buildroot-%e9%85%8d%e7%bd%ae%e6%80%8e%e4%b9%88%e5%a4%87%e4%bb%bd%ef%bc%9f%e7%94%a8-defconfig-%e5%9c%a8%e6%96%b0%e7%9b%ae%e5%bd%95%e9%87%8d%e5%bb%ba-arm64-%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/119753.html","title":{"rendered":"Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd\uff1f\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf"},"content":{"rendered":"<h2>Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd&#xff1f;\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf<\/h2>\n<p>\u7cfb\u7edf\u80fd\u542f\u52a8&#xff0c;\u7a0b\u5e8f\u80fd\u8c03\u8bd5&#xff0c;\u81ea\u5b9a\u4e49\u5e94\u7528\u4e5f\u5df2\u7ecf\u4ea4\u7ed9 Buildroot \u81ea\u52a8\u7f16\u8bd1\u548c\u5b89\u88c5\u3002\u63a5\u4e0b\u6765\u8fd8\u6709\u4e00\u4e2a\u95ee\u9898&#xff1a;\u5982\u679c\u4e0d\u7528\u539f\u6765\u7684 output\/&#xff0c;\u8fd9\u4e9b\u6210\u679c\u8fd8\u80fd\u91cd\u65b0\u6784\u5efa\u51fa\u6765\u5417&#xff1f;<\/p>\n<p>\u6267\u884c\u8fc7 make clean \u540e&#xff0c;\u6784\u5efa\u4ea7\u7269\u53ef\u4ee5\u91cd\u65b0\u751f\u6210&#xff1b;\u4f46\u5982\u679c\u914d\u7f6e\u548c\u81ea\u5b9a\u4e49\u6587\u4ef6\u6ca1\u6709\u4fdd\u5b58\u597d&#xff0c;\u4ec5\u9760\u4e00\u4efd\u65e7\u955c\u50cf\u5e76\u4e0d\u80fd\u6062\u590d\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<p>\u8fd9\u4e00\u7bc7&#xff0c;\u628a\u5f53\u524d\u914d\u7f6e\u4fdd\u5b58\u6210\u81ea\u5df1\u7684 defconfig&#xff0c;\u653e\u8fdb\u5df2\u6709\u7684 BR2_EXTERNAL \u76ee\u5f55&#xff0c;\u518d\u7528\u4e00\u4e2a\u65b0\u7684\u8f93\u51fa\u76ee\u5f55\u6784\u5efa\u7cfb\u7edf\u3002\u6700\u540e\u542f\u52a8\u65b0\u955c\u50cf&#xff0c;\u68c0\u67e5\u4e0a\u7bc7\u300a\u544a\u522b\u624b\u52a8\u590d\u5236&#xff1a;\u5728 Buildroot \u4e2d\u6dfb\u52a0\u81ea\u5df1\u7684 ARM64 \u8f6f\u4ef6\u5305\u300b\u4e2d\u7684 debug_demo \u662f\u5426\u4ecd\u7136\u53ef\u7528\u3002<\/p>\n<p>\u5b9e\u9a8c\u9a8c\u8bc1&#xff1a; \u672c\u6587\u6cbf\u7528\u524d\u4e09\u7bc7\u7684\u5b9e\u9a8c\u73af\u5883&#xff0c;\u8bb0\u5f55\u4e86\u4fdd\u5b58\u540e\u7684 defconfig\u3001\u65b0\u8f93\u51fa\u76ee\u5f55\u751f\u6210\u7684\u955c\u50cf\u4e0e ARM64 \u7a0b\u5e8f\u68c0\u67e5\u7ed3\u679c&#xff0c;\u5e76\u5728 QEMU \u4e2d\u542f\u52a8\u65b0\u955c\u50cf&#xff0c;\u786e\u8ba4\u7cfb\u7edf\u67b6\u6784\u4e3a aarch64\u3001debug_demo \u8f93\u51fa v2 \u7ed3\u679c\u4e14\u9000\u51fa\u7801\u4e3a 0\u3002\u6587\u4e2d\u672a\u5355\u72ec\u5c55\u793a\u914d\u7f6e\u52a0\u8f7d\u548c\u5b8c\u6574\u6784\u5efa\u547d\u4ee4\u7684\u8fd4\u56de\u7801&#xff1b;\u9a8c\u8bc1\u4f9d\u636e\u662f\u751f\u6210\u7684\u4ea7\u7269\u53ca\u5176\u5728 QEMU \u4e2d\u7684\u5b9e\u9645\u8fd0\u884c\u7ed3\u679c\u3002<\/p>\n<h3>\u4e00\u3001\u8fd9\u6b21\u8981\u9a8c\u8bc1\u4ec0\u4e48<\/h3>\n<p>\u672c\u6b21\u4e0d\u5220\u9664\u539f\u6765\u7684\u6784\u5efa\u7ed3\u679c&#xff0c;\u4e5f\u4e0d\u5728\u539f\u76ee\u5f55\u6267\u884c make clean\u3002\u6211\u4eec\u8981\u5b8c\u6210&#xff1a;<\/p>\n<p>\u5f53\u524d\u914d\u7f6e<br \/>\n  -&gt; \u4fdd\u5b58\u81ea\u5df1\u7684 defconfig&#xff0c;\u5e76\u4fdd\u7559\u6e90\u7801\u4e0e\u81ea\u5b9a\u4e49\u6587\u4ef6<br \/>\n    -&gt; \u5728\u65b0 O&#061; \u8f93\u51fa\u76ee\u5f55\u52a0\u8f7d\u81ea\u5b9a\u4e49 defconfig<br \/>\n    -&gt; \u91cd\u65b0\u6784\u5efa\u5de5\u5177\u94fe\u3001\u5185\u6838\u548c rootfs<br \/>\n    -&gt; \u7528\u65b0\u955c\u50cf\u542f\u52a8 QEMU&#xff0c;\u8fd0\u884c debug_demo<\/p>\n<p>\u68c0\u67e5\u4e09\u4e2a\u7ed3\u679c&#xff1a;<\/p>\n<li>\u5f53\u524d\u914d\u7f6e\u80fd\u4fdd\u5b58\u4e3a arm64_demo_defconfig&#xff0c;\u5e76\u5728\u65b0\u8f93\u51fa\u76ee\u5f55\u52a0\u8f7d\u3002<\/li>\n<li>\u65b0\u76ee\u5f55\u52a0\u8f7d\u540e&#xff0c;debug-demo \u4ecd\u5904\u4e8e\u542f\u7528\u72b6\u6001&#xff0c;\u4f9d\u8d56\u7684\u6587\u4ef6\u8def\u5f84\u53ef\u7528\u3002<\/li>\n<li>\u4e0d\u590d\u5236\u65e7 output\/host\u3001output\/build \u6216 output\/images&#xff0c;\u65b0\u6784\u5efa\u7684\u7cfb\u7edf\u4ecd\u80fd\u8fd0\u884c\u5e94\u7528\u3002<\/li>\n<p>\u8fd9\u91cc\u8bf4\u7684\u201c\u590d\u73b0\u201d\u662f\u91cd\u65b0\u6784\u5efa\u51fa\u529f\u80fd\u7b26\u5408\u9884\u671f\u7684\u7cfb\u7edf&#xff0c;\u4e0d\u627f\u8bfa\u4e24\u6b21\u751f\u6210\u7684\u955c\u50cf\u9010\u5b57\u8282\u4e00\u81f4\u3002<\/p>\n<h3>\u4e8c\u3001\u51c6\u5907\u73af\u5883&#xff0c;\u5148\u4fdd\u62a4\u5df2\u6709\u6210\u679c<\/h3>\n<table>\n<tr>\u9879\u76ee\u672c\u6587\u4f7f\u7528\u7684\u73af\u5883<\/tr>\n<tbody>\n<tr>\n<td>Ubuntu \u4e3b\u673a<\/td>\n<td>Ubuntu 20.04 x86_64 \u865a\u62df\u673a<\/td>\n<\/tr>\n<tr>\n<td>Buildroot<\/td>\n<td>2025.02.8<\/td>\n<\/tr>\n<tr>\n<td>\u539f\u6e90\u7801\u76ee\u5f55<\/td>\n<td>~\/buildroot-2025.02.8<\/td>\n<\/tr>\n<tr>\n<td>\u539f\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>~\/buildroot-2025.02.8\/.config<\/td>\n<\/tr>\n<tr>\n<td>\u539f\u8f93\u51fa\u76ee\u5f55<\/td>\n<td>~\/buildroot-2025.02.8\/output<\/td>\n<\/tr>\n<tr>\n<td>\u5916\u90e8\u76ee\u5f55<\/td>\n<td>~\/buildroot-external-demo<\/td>\n<\/tr>\n<tr>\n<td>\u5916\u90e8\u76ee\u5f55\u6807\u8bc6<\/td>\n<td>ARM64_DEMO<\/td>\n<\/tr>\n<tr>\n<td>\u65b0\u8f93\u51fa\u76ee\u5f55<\/td>\n<td>~\/buildroot-output-arm64-demo<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u5b9a\u4e49\u914d\u7f6e\u540d<\/td>\n<td>arm64_demo_defconfig<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9ed8\u8ba4\u5728 Ubuntu \u4e3b\u673a\u7ec8\u7aef\u6267\u884c\u547d\u4ee4&#xff0c;\u6587\u4e2d\u7684 Bash \u547d\u4ee4\u4e0d\u9002\u7528\u4e8e Windows PowerShell\u3002\u53ea\u6709\u660e\u786e\u6807\u6ce8\u201cQEMU \u76ee\u6807\u7aef\u201d\u7684\u547d\u4ee4\u624d\u5728\u76ee\u6807\u7cfb\u7edf\u4e2d\u6267\u884c\u3002<\/p>\n<p>\u524d\u63d0\u662f\u5df2\u7ecf\u5b8c\u6210\u4e0a\u7bc7&#xff1a;debug-demo \u5df2\u542f\u7528&#xff0c;\u5916\u90e8\u6e90\u7801\u4e2d\u7684\u7a0b\u5e8f\u80fd\u901a\u8fc7 Buildroot \u8fdb\u5165\u955c\u50cf\u3002\u672c\u6587\u7684\u8f93\u51fa\u793a\u4f8b\u6cbf\u7528\u4e0a\u7bc7\u6700\u540e\u7684 v2 \u6807\u8bb0\u3002<\/p>\n<p>\u5982\u679c QEMU \u6b63\u5728\u8fd0\u884c&#xff0c;\u5148\u5728\u76ee\u6807\u7aef\u6267\u884c poweroff\u3002\u7cfb\u7edf\u5173\u673a\u540e&#xff0c;\u82e5 QEMU \u672a\u9000\u51fa&#xff0c;\u518d\u6309 Ctrl&#043;A&#xff0c;\u677e\u5f00\u540e\u6309 X\u3002<\/p>\n<p>\u5728 Ubuntu \u4e3b\u673a\u5907\u4efd\u539f\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/buildroot-2025.02.8<br \/>\n<span class=\"token function\">cp<\/span> <span class=\"token parameter variable\">-p<\/span> .config <span class=\"token string\">&#034;.config.before-defconfig.<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;%Y%m%d-%H%M%S<span class=\"token variable\">)<\/span><\/span>&#034;<\/span><\/p>\n<p>\u786e\u8ba4\u5916\u90e8\u5305\u548c\u6e90\u7801\u4ecd\u5728&#xff1a;<\/p>\n<p><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> ~\/buildroot-external-demo\/external.desc<br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> ~\/buildroot-external-demo\/package\/debug-demo\/debug-demo.mk<br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> ~\/buildroot-external-demo\/src\/debug-demo\/debug_demo.c<br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token string\">&#039;^BR2_PACKAGE_DEBUG_DEMO&#061;&#039;<\/span> .config<\/p>\n<p>\u9884\u671f\u6700\u540e\u4e00\u6761\u547d\u4ee4\u8f93\u51fa BR2_PACKAGE_DEBUG_DEMO&#061;y\u3002\u82e5\u6587\u4ef6\u7f3a\u5931\u6216\u5305\u672a\u542f\u7528&#xff0c;\u5148\u6309\u4e0a\u7bc7\u7684\u8f6f\u4ef6\u5305\u6b65\u9aa4\u6062\u590d&#xff0c;\u4e0d\u8981\u7528\u9ed8\u8ba4\u914d\u7f6e\u8986\u76d6\u5f53\u524d\u914d\u7f6e\u3002<\/p>\n<p>\u540e\u9762\u7684\u547d\u4ee4\u5047\u8bbe\u53ea\u4f7f\u7528\u8fd9\u4e00\u4e2a\u5916\u90e8\u76ee\u5f55\u3002\u5982\u679c\u5df2\u6709\u5176\u4ed6 BR2_EXTERNAL \u76ee\u5f55&#xff0c;\u5e94\u5728\u6bcf\u6761\u663e\u5f0f\u4f20\u5165\u8be5\u53c2\u6570\u7684\u547d\u4ee4\u4e2d\u4fdd\u7559\u5b8c\u6574\u8def\u5f84\u5217\u8868&#xff0c;\u4e0d\u8981\u53ea\u7559\u4e0b\u793a\u4f8b\u76ee\u5f55\u3002<\/p>\n<h3>\u4e09\u3001\u5148\u5206\u6e05\u914d\u7f6e\u548c\u6587\u4ef6&#xff0c;\u5404\u81ea\u90fd\u8981\u4fdd\u5b58<\/h3>\n<table>\n<tr>\u6587\u4ef6\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>.config<\/td>\n<td>\u5f53\u524d\u6784\u5efa\u6b63\u5728\u4f7f\u7528\u7684\u5b8c\u6574\u914d\u7f6e&#xff0c;\u5305\u542b\u5927\u91cf\u9ed8\u8ba4\u9879\u548c\u4f9d\u8d56\u9879<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u5b9a\u4e49 defconfig<\/td>\n<td>\u7531 savedefconfig \u751f\u6210\u7684\u7cbe\u7b80\u914d\u7f6e&#xff0c;\u7528\u4e8e\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u9009\u62e9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>defconfig \u4e0d\u662f\u628a .config \u6362\u4e2a\u6587\u4ef6\u540d\u3002Buildroot \u4f1a\u6839\u636e\u5f53\u524d\u7248\u672c\u7684 Kconfig \u9ed8\u8ba4\u503c&#xff0c;\u4fdd\u5b58\u6062\u590d\u914d\u7f6e\u6240\u9700\u7684\u975e\u9ed8\u8ba4\u9009\u62e9\u3002<\/p>\n<p>\u56e0\u6b64&#xff0c;\u6709\u4e9b\u5df2\u542f\u7528\u7684\u9ed8\u8ba4\u9009\u9879\u53ef\u80fd\u4e0d\u76f4\u63a5\u51fa\u73b0\u5728 defconfig \u4e2d\u3002\u5224\u65ad\u914d\u7f6e\u662f\u5426\u4fdd\u7559&#xff0c;\u5e94\u52a0\u8f7d\u540e\u68c0\u67e5\u65b0\u7684 .config&#xff0c;\u800c\u4e0d\u662f\u8981\u6c42\u6bcf\u4e00\u4e2a\u7b26\u53f7\u90fd\u51fa\u73b0\u5728\u7cbe\u7b80\u6587\u4ef6\u91cc\u3002<\/p>\n<p>defconfig \u53ea\u4fdd\u5b58\u914d\u7f6e\u9009\u62e9&#xff0c;\u4e0d\u4f1a\u628a\u914d\u7f6e\u5f15\u7528\u7684\u6587\u4ef6\u6253\u5305\u8fdb\u53bb\u3002 \u672c\u7cfb\u5217\u81f3\u5c11\u8981\u4fdd\u7559&#xff1a;<\/p>\n<table>\n<tr>\u5185\u5bb9\u672c\u6587\u5982\u4f55\u5904\u7406<\/tr>\n<tbody>\n<tr>\n<td>Buildroot \u6e90\u7801\u4e0e\u7248\u672c<\/td>\n<td>\u7ee7\u7eed\u4f7f\u7528 2025.02.8&#xff0c;\u4e0d\u540c\u65f6\u5347\u7ea7<\/td>\n<\/tr>\n<tr>\n<td>\u5b8c\u6574 buildroot-external-demo\/<\/td>\n<td>\u4fdd\u7559\u5305\u89c4\u5219\u3001\u5b9e\u9645\u5e94\u7528\u6e90\u7801\u548c\u5373\u5c06\u65b0\u589e\u7684 defconfig<\/td>\n<\/tr>\n<tr>\n<td>\u5df2\u914d\u7f6e\u7684 overlay<\/td>\n<td>\u4fdd\u7559\u76ee\u5f55\u53ca\u5176\u5185\u5bb9&#xff0c;\u672c\u6b21\u4e0d\u8981\u6c42\u8fc1\u79fb<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u914d\u7f6e\u3001\u8865\u4e01\u3001\u811a\u672c<\/td>\n<td>\u82e5\u4f7f\u7528\u8fc7&#xff0c;\u5355\u72ec\u4fdd\u5b58\u5e76\u786e\u8ba4\u5f15\u7528\u8def\u5f84\u53ef\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5148\u5728\u539f Buildroot \u76ee\u5f55\u67e5\u770b overlay \u8bbe\u7f6e&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/buildroot-2025.02.8<br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token string\">&#039;^BR2_ROOTFS_OVERLAY&#061;&#039;<\/span> .config<\/p>\n<p>\u6cbf\u7528\u524d\u6587\u65f6&#xff0c;\u5b83\u53ef\u80fd\u4ecd\u6307\u5411 \/home\/embed\/buildroot-2025.02.8\/rootfs-overlay\u3002\u672c\u7bc7\u53ea\u6362\u8f93\u51fa\u76ee\u5f55&#xff0c;\u4e0d\u79fb\u52a8\u6e90\u7801\u6811&#xff0c;\u56e0\u6b64\u8fd9\u4e2a\u8def\u5f84\u53ef\u4ee5\u4fdd\u7559\u3002 \u786e\u8ba4\u76ee\u5f55\u4ecd\u5728&#xff0c;\u4e14\u6ca1\u6709\u6b64\u524d\u79fb\u8d70\u7684\u65e7 debug_demo \u8986\u76d6\u5305\u4ea7\u7269\u5373\u53ef&#xff1b;\u6ca1\u6709\u914d\u7f6e overlay \u7684\u8bfb\u8005\u65e0\u9700\u65b0\u589e\u3002<\/p>\n<p>\u5982\u679c\u81ea\u884c\u4fee\u6539\u8fc7\u5185\u6838\u6216 BusyBox \u914d\u7f6e&#xff0c;\u5fc5\u987b\u6309\u5bf9\u5e94\u7ec4\u4ef6\u7684\u6d41\u7a0b\u53e6\u884c\u4fdd\u5b58\u3002\u4ec5\u6267\u884c Buildroot \u7684 savedefconfig&#xff0c;\u4e0d\u4f1a\u81ea\u52a8\u4fdd\u5b58\u8fd9\u4e9b\u7ec4\u4ef6\u5728\u6784\u5efa\u76ee\u5f55\u91cc\u7684\u4e34\u65f6\u4fee\u6539\u3002<\/p>\n<p>\u540c\u6837&#xff0c;\u4e0d\u8981\u8ba9\u81ea\u5b9a\u4e49\u914d\u7f6e\u4f9d\u8d56\u65e7 output\/build \u6216 output\/host \u4e0b\u7684\u4e34\u65f6\u4ea7\u7269\u3002\u672c\u7cfb\u5217\u4f7f\u7528\u5185\u90e8\u5de5\u5177\u94fe&#xff0c;\u65b0\u76ee\u5f55\u4f1a\u91cd\u65b0\u6784\u5efa\u5b83\u3002<\/p>\n<h3>\u56db\u3001\u7528 savedefconfig \u4fdd\u5b58\u5f53\u524d\u914d\u7f6e<\/h3>\n<p>\u5728\u5916\u90e8\u76ee\u5f55\u4e2d\u521b\u5efa configs\/&#xff1a;<\/p>\n<p><span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> ~\/buildroot-external-demo\/configs<\/p>\n<p>\u5982\u679c\u5df2\u6709\u540c\u540d arm64_demo_defconfig&#xff0c;\u5148\u5907\u4efd&#xff1b;\u4e0b\u9762\u7684\u4fdd\u5b58\u547d\u4ee4\u4f1a\u8986\u76d6\u5b83\u3002<\/p>\n<p>\u5728\u539f Buildroot \u76ee\u5f55\u6267\u884c&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/buildroot-2025.02.8<br \/>\n<span class=\"token function\">make<\/span> <span class=\"token assign-left variable\">BR2_EXTERNAL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-external-demo&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token assign-left variable\">BR2_DEFCONFIG<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-external-demo\/configs\/arm64_demo_defconfig&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  savedefconfig<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$?<\/span><\/p>\n<p>echo $? \u5fc5\u987b\u7d27\u63a5\u7740\u547d\u4ee4\u6267\u884c\u3002\u8fd4\u56de 0 \u540e&#xff0c;\u518d\u68c0\u67e5&#xff1a;<\/p>\n<p><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> ~\/buildroot-external-demo\/configs\/arm64_demo_defconfig<br \/>\n<span class=\"token function\">cat<\/span> ~\/buildroot-external-demo\/configs\/arm64_demo_defconfig<\/p>\n<p>\u8fd9\u91cc\u7279\u610f\u6307\u5b9a BR2_DEFCONFIG&#xff0c;\u660e\u786e\u544a\u8bc9 Buildroot \u628a\u7cbe\u7b80\u914d\u7f6e\u5199\u5230\u54ea\u91cc\u3002\u4e0d\u8981\u5047\u5b9a\u4e0d\u5e26\u8def\u5f84\u6267\u884c make savedefconfig \u4e00\u5b9a\u5199\u5165\u5f53\u524d\u76ee\u5f55\u7684 defconfig&#xff0c;\u4e5f\u4e0d\u8981\u8bef\u8986\u76d6\u5b98\u65b9\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u4fdd\u5b58\u914d\u7f6e&#xff0c;\u4e0d\u4f1a\u751f\u6210\u65b0\u955c\u50cf\u3002\u4e5f\u4e0d\u8981\u4e3a\u4e86\u4fdd\u5b58\u914d\u7f6e\u91cd\u65b0\u6267\u884c\u5b98\u65b9\u7684 qemu_aarch64_virt_defconfig&#xff0c;\u90a3\u4f1a\u91cd\u65b0\u52a0\u8f7d\u5b98\u65b9\u9ed8\u8ba4\u9009\u62e9\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030014830-6ae3f76e31659.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u56fe\u793a&#xff1a;\u67e5\u770b\u5df2\u4fdd\u5b58\u7684 arm64_demo_defconfig&#xff0c;\u53ef\u89c1 ARM64\u3001\u5185\u6838\u3001rootfs overlay \u548c debug-demo \u7b49\u914d\u7f6e\u9879\u3002<\/p>\n<h3>\u4e94\u3001\u5728\u65b0\u7684\u8f93\u51fa\u76ee\u5f55\u52a0\u8f7d\u914d\u7f6e<\/h3>\n<p>\u5148\u5b9a\u4e49\u65b0\u8f93\u51fa\u76ee\u5f55&#xff0c;\u540e\u7eed\u5728\u540c\u4e00\u4e2a Ubuntu \u7ec8\u7aef\u7ee7\u7eed\u64cd\u4f5c&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">DEMO_OUT<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-output-arm64-demo&#034;<\/span><br \/>\n<span class=\"token builtin class-name\">test<\/span> <span class=\"token operator\">!<\/span> <span class=\"token parameter variable\">-e<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>&#034;<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$?<\/span><\/p>\n<p>\u8fd4\u56de 0 \u8868\u793a\u8be5\u8def\u5f84\u5c1a\u4e0d\u5b58\u5728&#xff0c;\u53ef\u4ee5\u7528\u4e8e\u672c\u6b21\u65b0\u6784\u5efa\u3002\u82e5\u8fd4\u56de\u975e 0&#xff0c;\u4e0d\u8981\u5220\u9664\u5b83&#xff1b;\u8bf7\u68c0\u67e5\u5df2\u6709\u5185\u5bb9\u6216\u6362\u4e00\u4e2a\u672a\u4f7f\u7528\u7684\u76ee\u5f55&#xff0c;\u5e76\u91cd\u65b0\u8bbe\u7f6e DEMO_OUT\u3002<\/p>\n<p>\u4ece Buildroot \u6e90\u7801\u76ee\u5f55\u52a0\u8f7d\u5916\u90e8 defconfig&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/buildroot-2025.02.8<br \/>\n<span class=\"token function\">make<\/span> <span class=\"token assign-left variable\">O<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token assign-left variable\">BR2_EXTERNAL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-external-demo&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  arm64_demo_defconfig<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$?<\/span><\/p>\n<p>\u8fd4\u56de 0 \u540e\u68c0\u67e5\u65b0\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>\/.config&#034;<\/span><br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token string\">&#039;^BR2_PACKAGE_DEBUG_DEMO&#061;&#039;<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>\/.config&#034;<\/span><br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token string\">&#039;^BR2_ROOTFS_OVERLAY&#061;&#039;<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>\/.config&#034;<\/span><\/p>\n<p>\u9884\u671f\u81ea\u5b9a\u4e49\u5305\u4ecd\u4e3a BR2_PACKAGE_DEBUG_DEMO&#061;y&#xff0c;overlay \u8bbe\u7f6e\u4e0e\u4fdd\u5b58\u524d\u4e00\u81f4&#xff0c;\u5f15\u7528\u7684\u76ee\u5f55\u5b9e\u9645\u5b58\u5728\u3002<\/p>\n<p>arm64_demo_defconfig \u80fd\u88ab\u627e\u5230&#xff0c;\u662f\u56e0\u4e3a Buildroot \u4f1a\u5728\u5df2\u52a0\u8f7d\u5916\u90e8\u76ee\u5f55\u7684 configs\/ \u4e0b\u67e5\u627e\u540c\u540d\u914d\u7f6e&#xff0c;\u4e0d\u9700\u8981\u628a\u5b83\u590d\u5236\u8fdb\u5b98\u65b9 configs\/\u3002<\/p>\n<h4>O&#061; \u6539\u53d8\u4e86\u54ea\u4e9b\u4f4d\u7f6e<\/h4>\n<table>\n<tr>\u5185\u5bb9\u524d\u4e09\u7bc7\u9ed8\u8ba4\u6784\u5efa\u672c\u7bc7\u65b0\u6784\u5efa<\/tr>\n<tbody>\n<tr>\n<td>\u5f53\u524d\u914d\u7f6e<\/td>\n<td>Buildroot \u6e90\u7801\u6839\u76ee\u5f55\u7684 .config<\/td>\n<td>$DEMO_OUT\/.config<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u5177\u94fe<\/td>\n<td>output\/host\/<\/td>\n<td>$DEMO_OUT\/host\/<\/td>\n<\/tr>\n<tr>\n<td>\u5305\u6784\u5efa\u76ee\u5f55<\/td>\n<td>output\/build\/<\/td>\n<td>$DEMO_OUT\/build\/<\/td>\n<\/tr>\n<tr>\n<td>\u955c\u50cf<\/td>\n<td>output\/images\/<\/td>\n<td>$DEMO_OUT\/images\/<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u540e\u9762\u7684\u547d\u4ee4\u59cb\u7ec8\u663e\u5f0f\u4f20\u5165 O&#061;&#034;$DEMO_OUT&#034;&#xff0c;\u907f\u514d\u8bef\u64cd\u4f5c\u65e7\u6784\u5efa\u3002\u65b0\u5f00\u7ec8\u7aef\u540e\u8981\u91cd\u65b0\u8bbe\u7f6e\u8fd9\u4e2a\u53d8\u91cf&#xff0c;\u4e0d\u80fd\u8ba9\u5b83\u4e3a\u7a7a\u3002<\/p>\n<h3>\u516d\u3001\u91cd\u65b0\u6784\u5efa&#xff0c;\u4e0d\u590d\u5236\u65e7 output<\/h3>\n<p>\u786e\u8ba4\u65b0\u914d\u7f6e\u6b63\u786e\u540e\u6267\u884c&#xff1a;<\/p>\n<p><span class=\"token function\">make<\/span> <span class=\"token assign-left variable\">O<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token assign-left variable\">BR2_EXTERNAL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-external-demo&#034;<\/span> <span class=\"token parameter variable\">-j2<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$?<\/span><\/p>\n<p>\u65b0\u8f93\u51fa\u76ee\u5f55\u6ca1\u6709\u65e7\u5de5\u5177\u94fe\u548c\u6784\u5efa\u7f13\u5b58&#xff0c;\u6240\u4ee5\u4f1a\u91cd\u65b0\u6784\u5efa\u6240\u9700\u5de5\u5177\u94fe\u3001\u5185\u6838\u548c\u8f6f\u4ef6\u5305&#xff0c;\u8017\u65f6\u63a5\u8fd1\u4e00\u6b21\u5b8c\u6574\u6784\u5efa\u3002\u9884\u5148\u68c0\u67e5 Ubuntu \u865a\u62df\u673a\u7684\u53ef\u7528\u78c1\u76d8\u7a7a\u95f4\u548c\u5185\u5b58&#xff0c;\u4e0d\u8981\u6309\u5355\u5305\u589e\u91cf\u6784\u5efa\u4f30\u7b97\u65f6\u95f4\u3002<\/p>\n<p>\u4e0b\u8f7d\u7f13\u5b58\u4e0e\u6784\u5efa\u4ea7\u7269\u662f\u4e24\u56de\u4e8b\u3002\u672c\u4f8b\u6ca1\u6709\u53e6\u884c\u6307\u5b9a\u4e0b\u8f7d\u76ee\u5f55\u65f6&#xff0c;Buildroot \u9ed8\u8ba4\u4f7f\u7528\u6e90\u7801\u76ee\u5f55\u4e0b\u7684 ~\/buildroot-2025.02.8\/dl\/&#xff1b;\u65b0\u5efa O&#061; \u8f93\u51fa\u76ee\u5f55\u4ecd\u53ef\u590d\u7528\u8fd9\u91cc\u5df2\u6709\u7684\u6e90\u7801\u538b\u7f29\u5305\u3002make clean \u4e0d\u4f1a\u5220\u9664\u8fd9\u4e2a\u4e0b\u8f7d\u7f13\u5b58\u3002\u5982\u679c\u8bbe\u7f6e\u4e86 BR2_DL_DIR \u73af\u5883\u53d8\u91cf&#xff0c;Buildroot \u5219\u4f7f\u7528\u8be5\u53d8\u91cf\u6307\u5b9a\u7684\u4e0b\u8f7d\u76ee\u5f55\u3002<\/p>\n<p>\u590d\u7528 dl\/ \u53ea\u8868\u793a\u53ef\u80fd\u4e0d\u5fc5\u91cd\u65b0\u4e0b\u8f7d\u5df2\u7ecf\u7f13\u5b58\u7684\u6e90\u7801&#xff0c;\u4e0d\u4f1a\u590d\u7528\u65e7\u8f93\u51fa\u76ee\u5f55\u4e2d\u7684\u5de5\u5177\u94fe\u6216\u7f16\u8bd1\u7ed3\u679c&#xff1b;\u7f3a\u5c11\u7684\u6e90\u7801\u4ecd\u53ef\u80fd\u9700\u8981\u8054\u7f51\u4e0b\u8f7d\u3002\u4e0b\u8f7d\u7f13\u5b58\u672c\u8eab\u4e5f\u5360\u7528\u78c1\u76d8\u7a7a\u95f4&#xff0c;\u4e0d\u80fd\u628a\u201c\u590d\u7528\u7f13\u5b58\u201d\u7406\u89e3\u4e3a\u201c\u4e0d\u9700\u8981\u989d\u5916\u78c1\u76d8\u7a7a\u95f4\u201d\u3002<\/p>\n<p>\u4e0d\u8981\u590d\u5236\u65e7 output\/host\u3001output\/build\u3001output\/target \u6216 output\/images \u6765\u8ba9\u5b9e\u9a8c\u201c\u901a\u8fc7\u201d\u3002 \u672c\u6b21\u9a8c\u8bc1\u7684\u662f\u914d\u7f6e\u548c\u8f93\u5165\u6587\u4ef6\u80fd\u5426\u91cd\u65b0\u751f\u6210\u7cfb\u7edf\u3002<\/p>\n<p>\u8fd4\u56de 0 \u540e\u68c0\u67e5&#xff1a;<\/p>\n<p><span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-lh<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>\/images\/Image&#034;<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>\/images\/rootfs.ext2&#034;<\/span><br \/>\n<span class=\"token function\">file<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>\/target\/usr\/bin\/debug_demo&#034;<\/span><\/p>\n<p>\u4e3b\u673a\u7aef\u53ea\u68c0\u67e5\u6587\u4ef6&#xff0c;\u4e0d\u76f4\u63a5\u6267\u884c\u8fd9\u4e2a ARM64 \u7a0b\u5e8f\u3002\u4e0b\u9762\u662f\u672c\u6b21\u65b0\u8f93\u51fa\u76ee\u5f55\u4e2d\u7684\u5b9e\u9645\u68c0\u67e5\u7ed3\u679c&#xff1a;<\/p>\n<p>embed&#064;embedtest:~\/buildroot-2025.02.8$ ls -lh &#034;$DEMO_OUT\/images\/Image&#034; &#034;$DEMO_OUT\/images\/rootfs.ext2&#034;<br \/>\n-rw-r&#8211;r&#8211; 1 embed embed 12M Oct 15 20:36 \/home\/embed\/buildroot-output-arm64-demo\/images\/Image<br \/>\n-rw-r&#8211;r&#8211; 1 embed embed 60M Oct 15 20:37 \/home\/embed\/buildroot-output-arm64-demo\/images\/rootfs.ext2<br \/>\nembed&#064;embedtest:~\/buildroot-2025.02.8$ file &#034;$DEMO_OUT\/target\/usr\/bin\/debug_demo&#034;<br \/>\n\/home\/embed\/buildroot-output-arm64-demo\/target\/usr\/bin\/debug_demo: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter \/lib\/ld-linux-aarch64.so.1, for GNU\/Linux 6.12.0, stripped<\/p>\n<p>ARM aarch64 \u786e\u8ba4\u7a0b\u5e8f\u9762\u5411 ARM64&#xff1b;stripped \u8868\u793a\u76ee\u6807\u6587\u4ef6\u4e2d\u7684\u8c03\u8bd5\u7b26\u53f7\u5df2\u88ab\u5265\u9664&#xff0c;\u4e0d\u4ee3\u8868\u7a0b\u5e8f\u4e0d\u80fd\u8fd0\u884c\u3002\u955c\u50cf\u548c\u5185\u6838\u5927\u5c0f\u4f1a\u968f\u914d\u7f6e\u53d8\u5316&#xff0c;\u4ee5\u4e0a\u5c3a\u5bf8\u53ea\u662f\u672c\u6b21\u8bb0\u5f55&#xff0c;\u4e0d\u662f\u56fa\u5b9a\u8981\u6c42\u3002<\/p>\n<h3>\u4e03\u3001\u542f\u52a8\u65b0\u955c\u50cf&#xff0c;\u9a8c\u8bc1\u914d\u7f6e\u786e\u5b9e\u53ef\u7528<\/h3>\n<p>\u786e\u8ba4\u6ca1\u6709\u4ecd\u5728\u8fd0\u884c\u7684 QEMU \u5360\u7528\u540c\u4e00\u4e2a\u955c\u50cf\u6216\u672c\u673a\u7aef\u53e3 5000&#xff0c;\u5728 Ubuntu \u4e3b\u673a\u6267\u884c&#xff1a;<\/p>\n<p>\/usr\/bin\/qemu-system-aarch64 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-M<\/span> virt <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-cpu<\/span> cortex-a53 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-smp<\/span> <span class=\"token number\">2<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-m<\/span> 1G <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-nographic<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-kernel<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>\/images\/Image&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-append<\/span> <span class=\"token string\">&#034;rootwait root&#061;\/dev\/vda console&#061;ttyAMA0&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-drive<\/span> <span class=\"token assign-left variable\">file<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>\/images\/rootfs.ext2&#034;<\/span>,if<span class=\"token operator\">&#061;<\/span>none,format<span class=\"token operator\">&#061;<\/span>raw,id<span class=\"token operator\">&#061;<\/span>hd0 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-device<\/span> virtio-blk-device,drive<span class=\"token operator\">&#061;<\/span>hd0 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-netdev<\/span> user,id<span class=\"token operator\">&#061;<\/span>net0,hostfwd<span class=\"token operator\">&#061;<\/span>tcp:127.0.0.1:5000-:2345 <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-device<\/span> virtio-net-device,netdev<span class=\"token operator\">&#061;<\/span>net0<\/p>\n<p>\u8fd9\u91cc\u4f7f\u7528\u7684\u662f\u65b0\u76ee\u5f55\u91cc\u7684\u5185\u6838\u548c rootfs&#xff0c;\u4e0d\u662f\u65e7 output\/images\/\u3002\u4e0d\u8981\u540c\u65f6\u6302\u8f7d\u6216\u8ba9\u4e24\u4e2a QEMU \u5199\u5165\u540c\u4e00\u4e2a\u955c\u50cf\u3002<\/p>\n<p>\u8fdb\u5165\u7cfb\u7edf&#xff0c;\u4ee5 root \u767b\u5f55\u540e&#xff0c;\u5728 QEMU \u76ee\u6807\u7aef\u6267\u884c&#xff1a;<\/p>\n<p><span class=\"token function\">uname<\/span> <span class=\"token parameter variable\">-m<\/span><br \/>\n\/usr\/bin\/debug_demo<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$?<\/span><\/p>\n<p>\u5982\u679c\u5916\u90e8\u6e90\u7801\u4fdd\u7559\u4e86 v2 \u8f93\u51fa\u6807\u8bb0&#xff0c;\u9884\u671f\u4f1a\u770b\u5230\u5bf9\u5e94\u7684\u65b0\u7248\u672c\u6587\u672c&#xff1b;\u5982\u679c\u6e90\u7801\u4ecd\u662f\u9996\u6b21\u7248\u672c&#xff0c;\u7a0b\u5e8f\u5219\u8f93\u51fa total &#061; 100\u3002\u5224\u65ad\u6807\u51c6\u662f\u76ee\u6807\u7aef\u8f93\u51fa\u4e0e\u5916\u90e8\u6e90\u7801\u4e00\u81f4&#xff0c;\u4e0d\u8981\u628a v2 \u5f53\u6210\u56fa\u5b9a\u8981\u6c42\u3002<\/p>\n<p>\u82e5 overlay \u6709\u9700\u8981\u9a8c\u8bc1\u7684\u914d\u7f6e\u6587\u4ef6&#xff0c;\u8fd8\u5e94\u68c0\u67e5\u5b83\u5728\u76ee\u6807\u7aef\u7684\u5bf9\u5e94\u8def\u5f84\u4e0e\u5185\u5bb9\u3002\u7a0b\u5e8f\u80fd\u8fd0\u884c\u53ea\u80fd\u9a8c\u8bc1\u5e94\u7528\u8def\u5f84&#xff0c;\u4e0d\u80fd\u8bc1\u660e overlay \u4e2d\u7684\u6240\u6709\u6587\u4ef6\u90fd\u6b63\u786e\u3002<\/p>\n<p>\u672c\u6b21 QEMU \u76ee\u6807\u7aef\u7684\u5b9e\u9645\u8fd0\u884c\u8bb0\u5f55\u5982\u4e0b\u3002\u7ed3\u5408\u4e0a\u9762\u7684\u542f\u52a8\u547d\u4ee4&#xff08;\u5185\u6838\u548c rootfs \u5747\u6765\u81ea $DEMO_OUT\/images\/&#xff09;&#xff0c;\u5b83\u8bc1\u660e\u65b0\u955c\u50cf\u542f\u52a8\u4e86 ARM64 \u7cfb\u7edf&#xff0c;debug_demo \u8f93\u51fa\u4e86 v2 \u7ed3\u679c\u5e76\u4ee5\u72b6\u6001\u7801 0 \u9000\u51fa&#xff1a;<\/p>\n<p># uname -m<br \/>\naarch64<br \/>\n# \/usr\/bin\/debug_demo<br \/>\ndebug-demo package v2: total &#061; 100<br \/>\n# echo $?<br \/>\n0<\/p>\n<p>\u8fd9\u9a8c\u8bc1\u4e86\u5e94\u7528\u5728\u65b0\u955c\u50cf\u4e2d\u7684\u8fd0\u884c\u7ed3\u679c&#xff1b;\u82e5\u8981\u8bc1\u660e overlay \u4e2d\u7684\u5176\u4ed6\u6587\u4ef6\u4e5f\u5df2\u5e26\u5165&#xff0c;\u8fd8\u9700\u9010\u9879\u68c0\u67e5\u5176\u76ee\u6807\u7aef\u8def\u5f84\u548c\u5185\u5bb9\u3002<\/p>\n<h3>\u516b\u3001\u540e\u7eed\u4fee\u6539\u4ecd\u8981\u6307\u5b9a\u540c\u4e00\u4e2a O&#061;<\/h3>\n<p>\u540e\u7eed\u82e5\u4ee5\u65b0\u8f93\u51fa\u76ee\u5f55\u4e3a\u4e3b&#xff0c;\u6253\u5f00\u83dc\u5355\u4e5f\u5fc5\u987b\u6307\u5b9a\u540c\u4e00\u4e2a O&#061;&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/buildroot-2025.02.8<br \/>\n<span class=\"token function\">make<\/span> <span class=\"token assign-left variable\">O<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token assign-left variable\">BR2_EXTERNAL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-external-demo&#034;<\/span> menuconfig<\/p>\n<p>\u4fdd\u5b58\u540e&#xff0c;\u8fd9\u6b21\u4fee\u6539\u7684\u662f $DEMO_OUT\/.config&#xff0c;\u4e0d\u662f\u6e90\u7801\u6839\u76ee\u5f55\u7684\u65e7 .config\u3002<\/p>\n<p>\u786e\u8ba4\u4fee\u6539\u6b63\u786e\u3001\u5907\u4efd\u5df2\u6709 defconfig \u540e&#xff0c;\u518d\u4ece\u8fd9\u4e2a\u65b0\u914d\u7f6e\u4fdd\u5b58&#xff1a;<\/p>\n<p><span class=\"token function\">make<\/span> <span class=\"token assign-left variable\">O<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token assign-left variable\">BR2_EXTERNAL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-external-demo&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token assign-left variable\">BR2_DEFCONFIG<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-external-demo\/configs\/arm64_demo_defconfig&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  savedefconfig<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$?<\/span><\/p>\n<p>\u4fdd\u5b58 defconfig \u4e0d\u4f1a\u66f4\u65b0\u955c\u50cf&#xff1b;\u4ecd\u9700\u5bf9\u540c\u4e00\u4e2a\u8f93\u51fa\u76ee\u5f55\u6267\u884c\u5b8c\u6574 make\u3002\u5982\u679c\u6539\u53d8\u4e86\u67b6\u6784\u3001C \u5e93\u6216\u5de5\u5177\u94fe\u7b49\u914d\u7f6e&#xff0c;\u5e94\u6309 Buildroot \u7684\u91cd\u5efa\u8981\u6c42\u4f7f\u7528\u5e72\u51c0\u6784\u5efa&#xff0c;\u4e0d\u80fd\u4e00\u6982\u4f9d\u8d56\u589e\u91cf\u6784\u5efa\u3002<\/p>\n<p>\u4fee\u6539\u5e94\u7528\u6e90\u7801\u65f6&#xff0c;\u4ecd\u6309\u4e0a\u7bc7\u7684\u8f6f\u4ef6\u5305\u6b65\u9aa4\u64cd\u4f5c&#xff0c;\u5e76\u4e3a\u547d\u4ee4\u52a0\u4e0a\u65b0\u8f93\u51fa\u76ee\u5f55&#xff1a;<\/p>\n<p><span class=\"token function\">make<\/span> <span class=\"token assign-left variable\">O<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token assign-left variable\">BR2_EXTERNAL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-external-demo&#034;<\/span> debug-demo-rebuild <span class=\"token assign-left variable\">V<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$?<\/span><\/p>\n<p>\u8fd4\u56de 0 \u540e&#xff0c;\u518d\u6267\u884c\u7b2c\u516d\u8282\u7684\u5b8c\u6574\u6784\u5efa\u547d\u4ee4\u66f4\u65b0\u955c\u50cf\u3002\u751f\u6210\u955c\u50cf\u524d\u5148\u5173\u95ed\u4f7f\u7528\u8be5\u955c\u50cf\u7684 QEMU\u3002<\/p>\n<h3>\u4e5d\u3001\u53ef\u9009\u68c0\u67e5\u4e0e\u540e\u7eed\u6574\u7406<\/h3>\n<h4>1. \u914d\u7f6e\u56de\u8bfb\u6bd4\u8f83<\/h4>\n<p>\u5982\u679c\u60f3\u8fdb\u4e00\u6b65\u68c0\u67e5\u4fdd\u5b58\u4e0e\u52a0\u8f7d\u662f\u5426\u4e00\u81f4&#xff0c;\u53ef\u4ee5\u5728\u7b2c\u4e94\u8282\u52a0\u8f7d\u914d\u7f6e\u540e\u3001\u5c1a\u672a\u505a\u5176\u4ed6\u914d\u7f6e\u4fee\u6539\u65f6&#xff0c;\u5c06\u65b0\u914d\u7f6e\u7cbe\u7b80\u4fdd\u5b58\u5230\u4e34\u65f6\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> ~\/buildroot-2025.02.8<br \/>\n<span class=\"token function\">make<\/span> <span class=\"token assign-left variable\">O<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token assign-left variable\">BR2_EXTERNAL<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-external-demo&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token assign-left variable\">BR2_DEFCONFIG<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>\/roundtrip_defconfig&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  savedefconfig<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$?<\/span><\/p>\n<p>\u786e\u8ba4\u8fd4\u56de 0 \u540e\u6bd4\u8f83&#xff1a;<\/p>\n<p><span class=\"token function\">diff<\/span> <span class=\"token parameter variable\">-u<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/buildroot-external-demo\/configs\/arm64_demo_defconfig&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token string\">&#034;<span class=\"token variable\">$DEMO_OUT<\/span>\/roundtrip_defconfig&#034;<\/span><br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token variable\">$?<\/span><\/p>\n<p>\u540c\u4e00\u7248\u672c\u548c\u8f93\u5165\u4e0b&#xff0c;\u9884\u671f\u6ca1\u6709\u5dee\u5f02&#xff0c;diff \u8fd4\u56de 0\u3002\u8fd4\u56de 1 \u8868\u793a\u5185\u5bb9\u4e0d\u540c&#xff0c;\u5927\u4e8e 1 \u901a\u5e38\u8868\u793a\u8bfb\u53d6\u6587\u4ef6\u7b49\u9519\u8bef\u3002\u5148\u67e5\u539f\u56e0&#xff0c;\u4e0d\u8981\u4e3a\u4e86\u6d88\u9664\u5dee\u5f02\u76f4\u63a5\u8986\u76d6\u6587\u4ef6\u3002<\/p>\n<p>\u8fd9\u662f\u53ef\u9009\u68c0\u67e5&#xff0c;\u4e0d\u80fd\u66ff\u4ee3\u6784\u5efa\u548c\u542f\u52a8\u9a8c\u8bc1\u3002<\/p>\n<h4>2. \u5c06 overlay \u96c6\u4e2d\u5230\u5916\u90e8\u76ee\u5f55<\/h4>\n<p>\u5f53\u524d\u6d41\u7a0b\u4e0d\u9700\u8981\u8fc1\u79fb overlay\u3002\u540e\u7eed\u82e5\u8981\u8ba9\u81ea\u5b9a\u4e49\u6587\u4ef6\u96c6\u4e2d\u7ba1\u7406&#xff0c;\u53ef\u4ee5\u5c06\u5176\u590d\u5236\u5230\u5916\u90e8\u76ee\u5f55\u7684 board\/arm64-demo\/rootfs-overlay\/&#xff0c;\u786e\u8ba4\u5185\u5bb9\u540e&#xff0c;\u5728\u5bf9\u5e94\u8f93\u51fa\u76ee\u5f55\u7684 menuconfig \u4e2d\u4fee\u6539 Root filesystem overlay directories \u4e3a&#xff1a;<\/p>\n<p>$(BR2_EXTERNAL_ARM64_DEMO_PATH)\/board\/arm64-demo\/rootfs-overlay<\/p>\n<p>\u5728\u83dc\u5355\u4e2d\u539f\u6837\u8f93\u5165&#xff0c;\u4e0d\u52a0\u5916\u5c42\u5f15\u53f7\u3002\u82e5\u4f7f\u7528\u591a\u4e2a overlay&#xff0c;\u5e94\u4fdd\u7559\u5b8c\u6574\u5217\u8868\u3002\u590d\u5236\u524d\u68c0\u67e5\u76ee\u7684\u76ee\u5f55&#xff0c;\u907f\u514d\u8986\u76d6\u6216\u91cd\u590d\u5d4c\u5957&#xff1b;\u539f\u76ee\u5f55\u5148\u4fdd\u7559&#xff0c;\u7b49\u65b0\u914d\u7f6e\u6784\u5efa\u9a8c\u8bc1\u901a\u8fc7\u540e\u518d\u51b3\u5b9a\u662f\u5426\u5220\u9664\u3002<\/p>\n<p>\u4fee\u6539\u540e\u91cd\u65b0\u4fdd\u5b58 defconfig \u5e76\u6784\u5efa\u9a8c\u8bc1&#xff0c;\u4e0d\u8981\u53ea\u79fb\u52a8\u6587\u4ef6\u5374\u4e0d\u66f4\u65b0\u914d\u7f6e\u3002<\/p>\n<h4>3. \u6362\u673a\u5668\u8fd8\u9700\u8981\u4ec0\u4e48<\/h4>\n<p>\u53ef\u4ee5\u7528\u7248\u672c\u63a7\u5236\u7ba1\u7406\u81ea\u5b9a\u4e49\u914d\u7f6e\u548c\u6e90\u7801&#xff0c;\u4f46\u4e0d\u9700\u8981\u628a output\/ \u6574\u4f53\u63d0\u4ea4\u8fdb\u53bb\u3002\u4f7f\u7528\u672c\u5730\u6e90\u7801\u7684\u5305\u5c24\u5176\u8981\u4fdd\u5b58\u5b9e\u9645\u6e90\u7801\u7248\u672c&#xff0c;\u4e0d\u80fd\u53ea\u8bb0\u5f55\u5305\u89c4\u5219\u91cc\u7684 VERSION &#061; 1.0\u3002<\/p>\n<p>\u6362\u673a\u5668\u65f6&#xff0c;\u8fd8\u9700\u8bb0\u5f55 Buildroot \u4e0e\u4e3b\u673a\u5de5\u5177\u7248\u672c\u3001\u6e90\u7801\u83b7\u53d6\u65b9\u5f0f&#xff0c;\u68c0\u67e5 overlay \u7b49\u8def\u5f84\u662f\u5426\u4ecd\u7136\u53ef\u7528\u3002\u672c\u7bc7\u4ec5\u8ba1\u5212\u9a8c\u8bc1\u540c\u4e00\u4e3b\u673a\u4e0a\u7684\u65b0\u8f93\u51fa\u76ee\u5f55\u91cd\u5efa&#xff0c;\u4e0d\u4ee3\u8868\u5b8c\u6210\u8de8\u673a\u5668\u3001\u79bb\u7ebf\u6216\u9010\u5b57\u8282\u53ef\u590d\u73b0\u6784\u5efa\u3002<\/p>\n<p>\u5982\u679c\u516c\u5f00\u5206\u4eab\u5b9e\u9a8c\u6750\u6599&#xff0c;\u53ea\u63d0\u4f9b\u5df2\u68c0\u67e5\u7684\u793a\u4f8b\u6587\u4ef6\u3002\u4e0d\u8981\u6253\u5305\u6574\u4e2a\u5de5\u4f5c\u76ee\u5f55&#xff1b;\u786e\u8ba4\u6ca1\u6709\u51ed\u636e\u3001\u5185\u90e8\u5730\u5740\u6216\u65e0\u6743\u516c\u5f00\u7684\u4ee3\u7801&#xff0c;\u5e76\u6309\u5404\u7ec4\u4ef6\u5b9e\u9645\u8bb8\u53ef\u8bc1\u5904\u7406\u5206\u53d1\u4e49\u52a1\u3002<\/p>\n<h3>\u5341\u3001\u9047\u5230\u95ee\u9898\u5148\u68c0\u67e5\u8fd9\u4e9b<\/h3>\n<h4>1. \u63d0\u793a\u627e\u4e0d\u5230 arm64_demo_defconfig<\/h4>\n<p>\u68c0\u67e5\u5916\u90e8\u76ee\u5f55\u662f\u5426\u5df2\u901a\u8fc7 BR2_EXTERNAL \u52a0\u8f7d&#xff0c;\u4ee5\u53ca\u6587\u4ef6\u662f\u5426\u786e\u5b9e\u4f4d\u4e8e configs\/arm64_demo_defconfig\u3002\u914d\u7f6e\u540d\u4e0e\u6587\u4ef6\u540d\u5fc5\u987b\u4e00\u81f4\u3002<\/p>\n<h4>2. \u4fdd\u5b58\u5b8c\u4e86&#xff0c;\u4fee\u6539\u5374\u6ca1\u6709\u8fdb\u5165 defconfig<\/h4>\n<p>\u5148\u68c0\u67e5\u4fdd\u5b58\u65f6\u662f\u5426\u6307\u5b9a\u4e86\u6b63\u786e\u7684 O&#061;\u3002\u65e7\u6784\u5efa\u4e0e\u65b0\u6784\u5efa\u5404\u6709\u81ea\u5df1\u7684 .config&#xff0c;\u64cd\u4f5c\u5176\u4e2d\u4e00\u4e2a\u4e0d\u4f1a\u81ea\u52a8\u540c\u6b65\u53e6\u4e00\u4e2a\u3002<\/p>\n<p>\u5176\u6b21&#xff0c;\u9ed8\u8ba4\u9879\u53ef\u80fd\u88ab\u7cbe\u7b80\u6389&#xff0c;\u5e94\u52a0\u8f7d\u540e\u68c0\u67e5\u5b8c\u6574\u914d\u7f6e&#xff0c;\u800c\u4e0d\u662f\u624b\u52a8\u5411 defconfig \u585e\u5165\u5168\u90e8\u7b26\u53f7\u3002<\/p>\n<h4>3. \u65b0\u76ee\u5f55\u6784\u5efa\u63d0\u793a overlay \u6216\u5176\u4ed6\u6587\u4ef6\u4e0d\u5b58\u5728<\/h4>\n<p>\u68c0\u67e5\u5b9e\u9645\u914d\u7f6e\u4e2d\u7684\u8def\u5f84\u53ca\u6587\u4ef6\u3002\u786e\u8ba4\u5916\u90e8\u76ee\u5f55\u5df2\u52a0\u8f7d\u3001\u6807\u8bc6\u540d\u4ecd\u4e3a ARM64_DEMO&#xff0c;\u4e14\u6587\u4ef6\u4e0d\u518d\u4f9d\u8d56\u65e7 output\/ \u4e0b\u7684\u4e34\u65f6\u4ea7\u7269\u3002<\/p>\n<h4>4. \u4e3a\u4ec0\u4e48\u91cd\u65b0\u7f16\u8bd1\u5de5\u5177\u94fe&#xff0c;\u4e0d\u80fd\u76f4\u63a5\u7528\u65e7\u7684<\/h4>\n<p>\u65b0\u8f93\u51fa\u76ee\u5f55\u9ed8\u8ba4\u91cd\u65b0\u751f\u6210\u81ea\u5df1\u7684\u6784\u5efa\u4ea7\u7269&#xff0c;\u8fd9\u662f\u672c\u6b21\u9a8c\u8bc1\u7684\u4e00\u90e8\u5206\u3002\u53ef\u590d\u7528\u4e0b\u8f7d\u7f13\u5b58&#xff0c;\u4f46\u4e0d\u8981\u628a\u65e7\u5de5\u5177\u94fe\u76ee\u5f55\u76f4\u63a5\u590d\u5236\u8fc7\u53bb\u3002\u72ec\u7acb SDK \u6216\u5916\u90e8\u5de5\u5177\u94fe\u7684\u4f7f\u7528\u5c5e\u4e8e\u53e6\u4e00\u4e2a\u5de5\u4f5c\u6d41\u7a0b\u3002<\/p>\n<h4>5. make clean \u548c make distclean \u6709\u4ec0\u4e48\u533a\u522b<\/h4>\n<p>Buildroot 2025.02.8 \u4e2d&#xff0c;clean \u4e3b\u8981\u6e05\u7406\u6307\u5b9a\u8f93\u51fa\u76ee\u5f55\u7684\u6784\u5efa\u4ea7\u7269&#xff0c;\u4fdd\u7559\u5f53\u524d\u914d\u7f6e&#xff1b;distclean \u8fd8\u4f1a\u5220\u9664\u914d\u7f6e\u7b49\u6587\u4ef6&#xff0c;\u5e76\u53ef\u80fd\u6e05\u7406\u6e90\u7801\u6811\u5171\u4eab\u7684\u4e0b\u8f7d\u76ee\u5f55\u3002\u4f7f\u7528 O&#061; \u4e0d\u4ee3\u8868\u6240\u6709\u6e05\u7406\u5f71\u54cd\u90fd\u4ec5\u9650\u4e8e\u8be5\u76ee\u5f55\u3002<\/p>\n<p>\u672c\u7bc7\u4e0d\u9700\u8981\u6267\u884c\u5b83\u4eec\u3002\u5c24\u5176\u4e0d\u8981\u4e3a\u4e86\u8bd5\u9a8c\u6e05\u7406\u547d\u4ee4&#xff0c;\u7834\u574f\u4ecd\u8981\u4fdd\u7559\u7684\u65e7\u6784\u5efa\u548c\u4e0b\u8f7d\u7f13\u5b58\u3002<\/p>\n<h3>\u5341\u4e00\u3001\u5c0f\u7ed3<\/h3>\n<p>\u524d\u4e09\u7bc7\u89e3\u51b3\u201c\u7cfb\u7edf\u80fd\u8fd0\u884c\u3001\u7a0b\u5e8f\u80fd\u8c03\u8bd5\u3001\u5e94\u7528\u80fd\u81ea\u52a8\u6784\u5efa\u201d\u3002\u8fd9\u4e00\u7bc7\u518d\u628a\u914d\u7f6e\u548c\u8f93\u5165\u6587\u4ef6\u6574\u7406\u51fa\u6765&#xff1a;<\/p>\n<p>\u4e0d\u4ec5\u4fdd\u5b58\u65e7\u955c\u50cf<br \/>\n    -&gt; \u4fdd\u5b58\u914d\u7f6e\u3001\u6e90\u7801\u4e0e\u81ea\u5b9a\u4e49\u6587\u4ef6<br \/>\n    -&gt; \u7528\u65b0\u8f93\u51fa\u76ee\u5f55\u91cd\u65b0\u6784\u5efa<br \/>\n    -&gt; \u542f\u52a8\u65b0\u955c\u50cf\u9a8c\u8bc1<\/p>\n<p>\u8bb0\u4f4f\u4e09\u4e2a\u52a8\u4f5c&#xff1a;\u7528 savedefconfig \u4fdd\u5b58\u9009\u62e9&#xff0c;\u4fdd\u7559\u914d\u7f6e\u4f9d\u8d56\u7684\u6e90\u7801\u548c\u6587\u4ef6&#xff0c;\u7528\u65b0 O&#061; \u76ee\u5f55\u6784\u5efa\u5e76\u542f\u52a8\u9a8c\u8bc1\u3002 \u53ea\u751f\u6210\u4e00\u4e2a defconfig \u6587\u4ef6&#xff0c;\u8fd8\u4e0d\u7b97\u5b8c\u6210\u6062\u590d\u9a8c\u8bc1\u3002<\/p>\n<p>\u4e0b\u4e00\u7bc7\u53ef\u4ee5\u7ee7\u7eed\u8ba9\u5e94\u7528\u968f\u7cfb\u7edf\u542f\u52a8&#xff0c;\u628a\u201c\u767b\u5f55\u540e\u624b\u52a8\u8fd0\u884c\u201d\u53d8\u6210\u201c\u5f00\u673a\u81ea\u52a8\u6267\u884c\u201d\u3002<\/p>\n<h3>\u53c2\u8003\u8d44\u6599<\/h3>\n<ul>\n<li>Buildroot \u5b98\u65b9\u624b\u518c&#xff1a;\u914d\u7f6e\u4fdd\u5b58\u3001\u5916\u90e8\u76ee\u5f55\u3001\u72ec\u7acb\u8f93\u51fa\u76ee\u5f55\u4e0e\u9879\u76ee\u5b9a\u5236\u3002\u5728\u7ebf\u624b\u518c\u968f\u7248\u672c\u66f4\u65b0&#xff0c;\u5e94\u540c\u65f6\u5bf9\u7167 2025.02.8 \u6e90\u7801\u4e2d\u7684 docs\/manual\/\u3002<\/li>\n<li>Buildroot 2025.02.8 \u9876\u5c42 Makefile&#xff1a;savedefconfig\u3001BR2_DEFCONFIG\u3001O&#061;\u3001\u5916\u90e8\u914d\u7f6e\u67e5\u627e\u4ee5\u53ca\u6e05\u7406\u76ee\u6807\u7684\u5b9e\u73b0\u3002<\/li>\n<\/ul>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd&#xff1f;\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf<br \/>\n\u7cfb\u7edf\u80fd\u542f\u52a8&#xff0c;\u7a0b\u5e8f\u80fd\u8c03\u8bd5&#xff0c;\u81ea\u5b9a\u4e49\u5e94\u7528\u4e5f\u5df2\u7ecf\u4ea4\u7ed9 Buildroot \u81ea\u52a8\u7f16\u8bd1\u548c\u5b89\u88c5\u3002\u63a5\u4e0b\u6765\u8fd8\u6709\u4e00\u4e2a\u95ee\u9898&#xff1a;\u5982\u679c\u4e0d\u7528\u539f\u6765\u7684 output\/&#xff0c;\u8fd9\u4e9b\u6210\u679c\u8fd8\u80fd\u91cd\u65b0\u6784\u5efa\u51fa\u6765\u5417&#xff1f;<br \/>\n\u6267\u884c\u8fc7 make clean \u540e&#xff0c;\u6784\u5efa\u4ea7\u7269\u53ef\u4ee5\u91cd\u65b0\u751f\u6210&#xff1b;\u4f46\u5982\u679c\u914d\u7f6e\u548c\u81ea\u5b9a\u4e49\u6587\u4ef6\u6ca1\u6709\u4fdd\u5b58\u597d&#xff0c;\u4ec5\u9760\u4e00<\/p>\n","protected":false},"author":2,"featured_media":119752,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[622,58,103,87,43],"topic":[],"class_list":["post-119753","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-https","tag-linux","tag-ubuntu","tag-87","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd\uff1f\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\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.wsisp.com\/helps\/119753.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd\uff1f\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd&#xff1f;\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf \u7cfb\u7edf\u80fd\u542f\u52a8&#xff0c;\u7a0b\u5e8f\u80fd\u8c03\u8bd5&#xff0c;\u81ea\u5b9a\u4e49\u5e94\u7528\u4e5f\u5df2\u7ecf\u4ea4\u7ed9 Buildroot \u81ea\u52a8\u7f16\u8bd1\u548c\u5b89\u88c5\u3002\u63a5\u4e0b\u6765\u8fd8\u6709\u4e00\u4e2a\u95ee\u9898&#xff1a;\u5982\u679c\u4e0d\u7528\u539f\u6765\u7684 output\/&#xff0c;\u8fd9\u4e9b\u6210\u679c\u8fd8\u80fd\u91cd\u65b0\u6784\u5efa\u51fa\u6765\u5417&#xff1f; \u6267\u884c\u8fc7 make clean \u540e&#xff0c;\u6784\u5efa\u4ea7\u7269\u53ef\u4ee5\u91cd\u65b0\u751f\u6210&#xff1b;\u4f46\u5982\u679c\u914d\u7f6e\u548c\u81ea\u5b9a\u4e49\u6587\u4ef6\u6ca1\u6709\u4fdd\u5b58\u597d&#xff0c;\u4ec5\u9760\u4e00\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/119753.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-30T01:48:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030014830-6ae3f76e31659.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/119753.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/119753.html\",\"name\":\"Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd\uff1f\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-30T01:48:31+00:00\",\"dateModified\":\"2026-10-30T01:48:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/119753.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/119753.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/119753.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd\uff1f\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd\uff1f\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/119753.html","og_locale":"zh_CN","og_type":"article","og_title":"Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd\uff1f\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd&#xff1f;\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf \u7cfb\u7edf\u80fd\u542f\u52a8&#xff0c;\u7a0b\u5e8f\u80fd\u8c03\u8bd5&#xff0c;\u81ea\u5b9a\u4e49\u5e94\u7528\u4e5f\u5df2\u7ecf\u4ea4\u7ed9 Buildroot \u81ea\u52a8\u7f16\u8bd1\u548c\u5b89\u88c5\u3002\u63a5\u4e0b\u6765\u8fd8\u6709\u4e00\u4e2a\u95ee\u9898&#xff1a;\u5982\u679c\u4e0d\u7528\u539f\u6765\u7684 output\/&#xff0c;\u8fd9\u4e9b\u6210\u679c\u8fd8\u80fd\u91cd\u65b0\u6784\u5efa\u51fa\u6765\u5417&#xff1f; \u6267\u884c\u8fc7 make clean \u540e&#xff0c;\u6784\u5efa\u4ea7\u7269\u53ef\u4ee5\u91cd\u65b0\u751f\u6210&#xff1b;\u4f46\u5982\u679c\u914d\u7f6e\u548c\u81ea\u5b9a\u4e49\u6587\u4ef6\u6ca1\u6709\u4fdd\u5b58\u597d&#xff0c;\u4ec5\u9760\u4e00","og_url":"https:\/\/www.wsisp.com\/helps\/119753.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-30T01:48:31+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030014830-6ae3f76e31659.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/119753.html","url":"https:\/\/www.wsisp.com\/helps\/119753.html","name":"Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd\uff1f\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-30T01:48:31+00:00","dateModified":"2026-10-30T01:48:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/119753.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/119753.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/119753.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Buildroot \u914d\u7f6e\u600e\u4e48\u5907\u4efd\uff1f\u7528 defconfig \u5728\u65b0\u76ee\u5f55\u91cd\u5efa ARM64 \u7cfb\u7edf"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/119753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=119753"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/119753\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/119752"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=119753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=119753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=119753"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=119753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}