{"id":494,"date":"2026-04-03T14:12:20","date_gmt":"2026-04-03T06:12:20","guid":{"rendered":"https:\/\/jpa.yesli.tk\/?p=494"},"modified":"2026-04-03T14:12:41","modified_gmt":"2026-04-03T06:12:41","slug":"%e5%b5%8c%e5%85%a5%e5%bc%8flinux%e7%b3%bb%e7%bb%9fu-boot%e7%a7%bb%e6%a4%8d","status":"publish","type":"post","link":"https:\/\/jpa.yesli.tk\/index.php\/2026\/04\/03\/%e5%b5%8c%e5%85%a5%e5%bc%8flinux%e7%b3%bb%e7%bb%9fu-boot%e7%a7%bb%e6%a4%8d\/","title":{"rendered":"\u5d4c\u5165\u5f0fLinux\u7cfb\u7edfu-boot\u79fb\u690d"},"content":{"rendered":"<p dir=\"auto\" data-mpa-powered-by=\"yiban.io\">\u6211\u4eec\u90fd\u77e5\u9053\uff0cPC\u5728\u542f\u52a8\u7684\u65f6\u5019\uff0c\u9996\u5148\u662f\u8fdb\u5165BIOS\uff0c\u518d\u6839\u636eBIOS\u4e2d\u914d\u7f6e\u4fe1\u606f\u5f15\u5bfc\u540e\u7eed\u7684\u542f\u52a8\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6bd4\u5982\u914d\u7f6eWindows\u542f\u52a8\u3002<\/p>\n<p dir=\"auto\">\u800c\u5bf9\u4e8e\u5d4c\u5165\u5f0flinux\u4e2d\uff0c\u5e76\u6ca1\u6709BIOS\uff0c\u8fd9\u65f6\u5019\u5c31\u9700\u8981\u4e00\u79cd\u7c7b\u4f3c\u5f15\u5bfc\u7a0b\u5e8f\u6765\u5904\u7406\u3002\u4e8e\u662f\u5c31\u6709\u4e86BootLoader\u3002<\/p>\n<p dir=\"auto\">BootLoader\u662f\u4e00\u6bb5\u5c0f\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u628a\u5b83\u60f3\u8c61\u6210PC\u673alinux\u4e0a\u7684GRUB\/LILO\u5f15\u5bfc\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u76f4\u63a5\u4eceflash\u6216TF\u5361\u4e2d\u8fd0\u884c\uff0c\u6765\u88c5\u8f7d\u5185\u6838\u3002\u5b83\u53ef\u4ee5\u521d\u59cb\u5316\u786c\u4ef6\u8bbe\u5907\uff0c\u4ece\u800c\u5c06\u7cfb\u7edf\u7684\u8f6f\u786c\u4ef6\u73af\u5883\u5e26\u5230\u4e00\u4e2a\u5408\u9002\u7684\u72b6\u6001\uff0c\u4ee5\u4fbf\u4e3a\u6700\u7ec8\u8c03\u7528\u64cd\u4f5c\u7cfb\u7edf\u505a\u597d\u51c6\u5907\u3002<\/p>\n<p dir=\"auto\">1. \u5d4c\u5165\u5f0f\u5f00\u53d1\u677f\u7684\u542f\u52a8\u8fc7\u7a0b<\/p>\n<p dir=\"auto\">\u4e00\u4e2a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4ece\u8f6f\u4ef6\u89d2\u5ea6\u6765\u770b\u5206\u4e3a\u4e09\u4e2a\u5c42\u6b21\uff1a<\/p>\n<ul class=\"list-paddingleft-1\">\n<li>\n<p dir=\"auto\">\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f<br \/>\n\u5305\u62ec\u56fa\u5316\u5728\u82af\u7247\u4e2d\u7684boot\u7a0b\u5e8f\uff08\u53ef\u9009\uff09\u548cBootLoader\u4e24\u5927\u90e8\u5206\uff0c\u5bf9\u4e8e\u56fa\u5316\u7684boot\u7a0b\u5e8f\u3002\u4e3b\u8981\u662f\u82af\u7247\u901a\u8fc7\u5916\u56f4\u7535\u8def\u8fde\u63a5\u7684\u5b9e\u9645\u60c5\u51b5\u9009\u62e9\u8bfb\u5165\u7a0b\u5e8f\u7684\u4f4d\u7f6e\uff0c\u6bd4\u5982\uff1a\u901a\u8fc7TF\u5361\u6216\u662fSPI\u4ee5\u53ca\u5176\u4ed6\u65b9\u5f0f\u542f\u52a8\uff0c\u81f3\u4e8e\u4f18\u5148\u987a\u5e8f\u8fd9\u5c31\u8981\u5177\u4f53\u770b\u82af\u7247\u7684\u6570\u636e\u624b\u518c\uff0c\u4e2a\u4eba\u6ca1\u505a\u8fc7\u5177\u4f53\u6d4b\u8bd5\u3002<\/p>\n<\/li>\n<li>\n<p dir=\"auto\">linux\u5185\u6838<br \/>\n\u7279\u5b9a\u4e8e\u5d4c\u5165\u5f0f\u5e73\u53f0\u7684\u5b9a\u5236\u5185\u6838<\/p>\n<\/li>\n<li>\n<p dir=\"auto\">\u6587\u4ef6\u7cfb\u7edf<br \/>\n\u5305\u62ec\u4e86\u7cfb\u7edf\u547d\u4ee4\u548c\u5e94\u7528\u7a0b\u5e8f<\/p>\n<\/li>\n<\/ul>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"\" src=\"\/wp-content\/uploads\/replace\/cbfd6658f5567454ff05f8e23039b7da.png\" alt=\"\u56fe\u7247\" width=\"474\" height=\"51\" data-imgfileid=\"100000025\" data-ratio=\"0.10759493670886076\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxQYbtlN6xvl5Y7wONUt1AfEOkibxXJSOXVQHqQpm9ZLR2hrFiclPmTQlA\/640?wx_fmt=png&amp;from=appmsg#imgIndex=0\" data-type=\"png\" data-w=\"474\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"2\" data-before-load-time=\"1775196639402\" data-report-img-idx=\"0\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">BootLoader\u542f\u52a8\u8fc7\u7a0b\u53ef\u5206\u4e3a\u5355\u9636\u6bb5\u548c\u591a\u9636\u6bb5(stage1\u3001stage2),\u5176\u4e2dstage1\u5b8c\u6210\u521d\u59cb\u5316\u786c\u4ef6\uff0c\u5982CPU\u5bc4\u5b58\u5668\u3001\u5185\u5b58\u63a7\u5236\u5668\uff0c\u4e3astage2\u51c6\u5907\u5185\u5b58\u7a7a\u95f4\u3002\u4e00\u822cstage1\u662f\u53ef\u4ee5\u76f4\u63a5\u5728nor flash\u4e2d\u8fd0\u884c\u7684\uff0c\u5e76\u5c06stage2\u590d\u5236\u5230\u5185\u5b58RAM\u4e2d\uff0c\u8bbe\u7f6e\u5806\u6808\uff0c\u7136\u540e\u8df3\u8f6c\u5230stage2(\u4ece\u8fd9\u4e5f\u53ef\u4ee5\u770b\u51fastage2\u662f\u5728RAM\u4e2d\u8fd0\u884c\u7684\uff0c\u4e0estage1\u4e0d\u540c)<\/p>\n<p dir=\"auto\">Boot Parameters\u00a0\u987e\u540d\u601d\u4e49\uff0c\u5c31\u662f\u914d\u7f6e\u4e86\u8981\u542f\u52a8\u5185\u6838\u7684\u53c2\u6570\uff0c\u5305\u542b\u8981\u52a0\u8f7d\u7cfb\u7edf\u5185\u6838\u76f8\u5173\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u8981\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u7684\u4f4d\u7f6e\uff0c\u5b9a\u4f4d\u5230\u6587\u4ef6\u7cfb\u7edf\u7684\u4f4d\u7f6e\uff0c\u76f8\u5173\u8f93\u5165\u8f93\u51fa\u7684\u5448\u73b0\u7b49\u4e00\u7cfb\u5217\u53c2\u6570\u3002<\/p>\n<p dir=\"auto\">kernel\u00a0\u5728\u5b58\u653e\u5728bootloader\u4e4b\u540e\uff0c\u5bf9\u4e8eSoC\u6765\u8bf4\uff0c\u4ee3\u7801\u90fd\u9700\u8981\u5728RAM\u4e2d\u8fd0\u884c\uff0c\u8fd9\u91cc\u4e0eMCU\u4e0d\u4e00\u6837\u7684\u5730\u65b9\u5c31\u662f\u5f15\u5165\u4e86MMU\uff08\u5185\u5b58\u7ba1\u7406\u5355\u5143\uff09\u3002\u5bf9\u4e8eMCU\u800c\u8a00\uff0c\u7531\u4e8e\u5176\u6267\u884c\u901f\u5ea6\u4f4e\uff0c\u56e0\u6b64\u8fd0\u884c\u4ee3\u7801\u90fd\u5728ROM\u4e2d\u76f4\u63a5\u8fd0\u884c\uff0c\u800c\u5bf9\u4e8eFlash\u800c\u8a00\uff0c\u5176\u8bfb\u53d6\u901f\u5ea6\u8fdc\u4e0d\u53caRAM\u7684\u901f\u5ea6\uff0c\u56e0\u6b64\u5bf9\u4e8e\u8fd0\u884c\u901f\u5ea6\u975e\u5e38\u5feb\u7684SoC\u800c\u8a00\uff0c\u6240\u6709\u7684\u4ee3\u7801\u90fd\u9700\u8981\u5728RAM\u4e2d\u8fd0\u884c\u3002\u4f46\u662f\u8fd9\u91cc\u6709\u4e00\u4e2a\u95ee\u9898\uff0cRAM\u6389\u7535\u6570\u636e\u5c06\u4f1a\u4e22\u5931\uff0c\u6545\u4ee3\u7801\u4fdd\u5b58\u4e0d\u53ef\u80fd\u653e\u5728RAM\u4e2d\uff0c\u5f53\u524d\u6240\u6709\u7684\u5d4c\u5165\u5f0f\u8bbe\u5907\u800c\u8a00\uff0c\u4ee3\u7801\u4fdd\u5b58\u90fd\u662f\u653e\u5728ROM\u4e2d\uff0c\u56e0\u6b64\u5728SoC\u4e2d\u8fd0\u884c\u4ee3\u7801\u9700\u8981\u5c06\u4ee3\u7801\u642c\u8fd0\u5230RAM\u4e2d\u7136\u540e\u518d\u6267\u884c\u3002<\/p>\n<p dir=\"auto\">Root Filesystem\u00a0\u7531\u4e8e\u5176\u6267\u884c\u8fc7\u7a0b\u9700\u8981\u5bf9ROM\u8fdb\u884c\u8bfb\u5199\u64cd\u4f5c\uff0c\u56e0\u6b64\u53ef\u4ee5\u4e0d\u7528\u642c\u8fd0\u5230RAM\u4e2d\uff0c\u4f46\u662f\u5b9e\u9645\u8fc7\u7a0b\u4e2d\u5185\u6838\u542f\u52a8\u540e\u4f1a\u4ea7\u751f\u4e00\u4e2a\u865a\u62df\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u8be5\u6587\u4ef6\u7cfb\u7edf\u662f\u6302\u5728\u6839\u6587\u4ef6\u7cfb\u7edf\u7684\u5173\u952e\u6240\u5728\uff0c\u8fd9\u91cc\u4e0d\u8be6\u7ec6\u8bb2\u89e3\u3002\u6574\u4f53\u6765\u8bf4\uff0c\u5927\u81f4\u7684\u8fc7\u7a0b\u4e3a\uff0c\u5d4c\u5165\u5f0f\u8bbe\u5907\u4e0a\u7535\u540e\u5c06\u6267\u884cbootloader\uff0c\u5bf9\u786c\u4ef6\u8fdb\u884c\u786c\u4ef6\u548c\u5806\u6808\u521d\u59cb\u5316\uff0c\u7136\u540e\u642c\u8fd0\u5185\u6838\u5230RAM\u4e2d\u5e76\u542f\u52a8\u5185\u6838\uff0c\u7d27\u63a5\u7740\u6302\u8f7d\u6839\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n<p dir=\"auto\">2. \u73af\u5883\u914d\u7f6e\u4e0e\u53c2\u8003\u9879\u76ee<\/p>\n<p dir=\"auto\">\u7cfb\u7edf\uff1aUbuntu 16<\/p>\n<p dir=\"auto\">\u7f16\u8f91\u5668\uff1aVSCode<\/p>\n<p dir=\"auto\">\u53c2\u8003\u9879\u76ee\uff1aLichee-Pi Nano<\/p>\n<p dir=\"auto\">\u5730\u5740\uff1ahttps:\/\/wiki.sipeed.com\/soft\/Lichee\/zh\/Nano-Doc-Backup\/index.html<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/93d7fd7e934b44dadacc523919bdbbf8.png\" alt=\"\u56fe\u7247\" width=\"417\" height=\"448\" data-imgfileid=\"100000028\" data-ratio=\"1.0743405275779376\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxiamIbzqcrj4kk8ziaCLqWeOdGicJuyk9xibC5xaHwa3iaeeaLxgK9TgBAgQ\/640?wx_fmt=png&amp;from=appmsg#imgIndex=1\" data-type=\"png\" data-w=\"417\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"3\" data-before-load-time=\"1775196666552\" data-report-img-idx=\"1\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">Lichee-Pi Nano<\/p>\n<p dir=\"auto\">\u9700\u8981\u6ce8\u610f\u7684\u662f\u4e00\u5b9a\u8981\u9009\u62e9Nano\u7248\u672c\uff0c\u56e0\u4e3a\u6211\u4eec\u5f00\u53d1\u677f\u4f7f\u7528\u7684\u4e3b\u63a7\u82af\u7247\u548cNano\u7684\u4e3b\u63a7\u662f\u4e00\u81f4\u7684\uff0c\u6240\u4ee5\u540e\u7eed\u6211\u4eec\u8981\u7f16\u8bd1U-boot\uff0c\u5185\u6838\u90fd\u53ef\u4ee5\u53c2\u8003(bai piao)\u8fd9\u91cc\u9762\u7684\u914d\u7f6e\u3002<\/p>\n<p dir=\"auto\">\u4e3b\u63a7\u82af\u7247\uff1aF1c100s\/F1c200s\uff0c100s\u5185\u7f6e32MB DDR1\u5185\u5b58\uff0c200s\u5185\u7f6e64MB DDR1\u5185\u5b58\uff0c200s\u8d35\u4e00\u70b9\uff0c\u4ed6\u4eec\u90fd\u662fQFN88\u5c01\u88c5\u3002<\/p>\n<p dir=\"auto\">ARM926ejs\u5185\u6838\uff0c\u4e3b\u9891\u9ed8\u8ba4408MHz\uff0c\u636e\u4e86\u89e3\u505a\u4ea7\u54c1\u51fa\u8d27\u7684\u4e00\u822c\u5728600M\u5de6\u53f3\u3002<\/p>\n<p dir=\"auto\">\u5e26\u6709100M\u7684SPI\u63a5\u53e32\u4e2a\uff0cSDIO\u63a5\u53e31\u4e2a\uff0cUSB OTG\u63a5\u53e3\uff0c\u8fd8\u6709CSI\u6444\u50cf\u5934\u63a5\u53e3\uff0cLCD RGB\u663e\u793a\u5c4f\u63a5\u53e3\uff0c\u97f3\u9891\u63a5\u53e3\uff0cI2C I2S UART PWM\u7b49\u7b49\u3002<\/p>\n<p dir=\"auto\">\u8fd8\u6709\u5c31\u662f\u4ed6\u4eec\u4e0d\u652f\u6301\u786c\u4ef6\u6d6e\u70b9\uff0c\u6240\u4ee5\u6d6e\u70b9\u8fd0\u7b97\u4f7f\u7528\u8f6f\u6d6e\u70b9\u65b9\u5f0f\u3002<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/78bc2a1dc73308c7dfb32fa5d35f9180.png\" alt=\"\u56fe\u7247\" width=\"1008\" height=\"740\" data-imgfileid=\"100000029\" data-ratio=\"0.7341269841269841\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxSQHs0O5tkAd54O4PtwPSn7SsG9oo1YE8CM2BuOaZyPGia74LeUyKOQg\/640?wx_fmt=png&amp;from=appmsg#imgIndex=2\" data-type=\"png\" data-w=\"1008\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"4\" data-before-load-time=\"1775196668331\" data-report-img-idx=\"2\" data-fail=\"0\" \/><br \/>\nF1c100s\/F1c200s\u82af\u7247\u529f\u80fd<\/p>\n<p dir=\"auto\">3.\u4ea4\u53c9\u7f16\u8bd1\u5668<\/p>\n<p dir=\"auto\">\u6211\u4eec\u901a\u8fc7PC\u7248\u7684Linux\u81ea\u5e26\u7684gcc\u7f16\u8bd1\u7684\u7a0b\u5e8f\u53ea\u80fd\u5728\u5f53\u524d\u7cfb\u7edf\u67b6\u6784\u4e0b\u7684cpu\u67b6\u6784(x86)\u4e0b\u8fd0\u884c\uff0c\u5982\u679c\u6211\u4eec\u60f3\u8981\u7f16\u5199\u7684\u7a0b\u5e8f\u5728\u5d4c\u5165\u5f0fLinux\u4e0b\u8fd0\u884c\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u7528\u5230\u5bf9\u5e94\u7684\u7f16\u8bd1\u5668\u3002<\/p>\n<p dir=\"auto\">\u6211\u4eec\u505a\u7684\u5f00\u53d1\u677f\u4e3b\u63a7\u82af\u7247F1C200S\uff0c\u5185\u6838\u4e3aARM9\uff0c\u5176\u67b6\u6784\u4f7f\u7528\u7684\u662fARMv5\u67b6\u6784\uff0c\u6240\u4ee5\u6211\u4eec\u4e5f\u8981\u9009\u7528\u5bf9\u5e94\u7684\u7f16\u8bd1\u5668\uff0c\u540c\u6837\uff0c\u8fd9\u6837\u7684\u7f16\u8bd1\u5668\u5f88\u591a\uff0c\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528\u6700\u5e38\u7528\u7684arm-linux-gnueabi- \uff0c\u56e0\u4e3a\u4ea4\u53c9\u7f16\u8bd1\u5668F1C200S\u5fc5\u987b\u9ad8\u4e8e6.0\u7248\u672c\uff0c\u8fd9\u91cc\u6211\u4eec\u4f7f\u75287.2\u7248\u672c<\/p>\n<p dir=\"auto\">\u4e0b\u8f7d\u5b8c\u6210\u540e\u89e3\u538b\u6587\u4ef6\uff1a<\/p>\n<pre><code>tar -vxjf gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi.tar.xz\r\n<\/code><\/pre>\n<p dir=\"auto\">\u7136\u540e\u5728\/usr\/local\u76ee\u5f55\u4e0b\u65b0\u5efaarm-linux-gcc\u76ee\u5f55<\/p>\n<pre><code>sudo mkdir \/usr\/local\/arm-linux-gcc\r\n<\/code><\/pre>\n<p dir=\"auto\">\u8fdb\u5165\u89e3\u538b\u76ee\u5f55\u4e0b\uff1a<\/p>\n<pre><code>cd gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi\/\r\n<\/code><\/pre>\n<p dir=\"auto\">\u5c06\u8be5\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u590d\u5236\u5230\u65b0\u5efa\u7684\u76ee\u5f55\u4e0b<\/p>\n<pre><code>sudo cp -rd * \/usr\/local\/arm-linux-gcc\/\r\n<\/code><\/pre>\n<p dir=\"auto\">\u6700\u540e\u9700\u8981\u6dfb\u52a0\u8be5\u5de5\u5177\u94fe\u7684\u73af\u5883\u53d8\u91cf\u4f7f\u5176\u53ef\u4ee5\u5728\u4efb\u4f55\u76ee\u5f55\u4e0b\u6267\u884c\uff0c\u6253\u5f00\/etc\/profile\u6587\u4ef6<\/p>\n<pre><code>sudo nano \/etc\/profile\r\n<\/code><\/pre>\n<p dir=\"auto\">\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<\/p>\n<pre><code>PATH=$PATH:\/usr\/local\/arm-linux-gcc\/bin\r\n<\/code><\/pre>\n<p dir=\"auto\">\u6dfb\u52a0\u5b8c\u6bd5\uff0c\u4f7f\u8def\u5f84\u751f\u6548<\/p>\n<pre><code>source \/etc\/profile\r\n<\/code><\/pre>\n<p dir=\"auto\">\u63a5\u4e0b\u6765\u5728\u7ec8\u7aef\u8f93\u5165\uff1a<\/p>\n<pre><code>arm-linux-\r\n<\/code><\/pre>\n<p dir=\"auto\">\u7136\u540e\u8fde\u6309\u4e24\u6b21Tab\u952e\uff0c\u5982\u56fe\u5728\u8868\u793a\u6210\u529f\uff1a<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/8e6401d47ad143a4f89be41a93dac83c.png\" alt=\"\u56fe\u7247\" width=\"1015\" height=\"384\" data-imgfileid=\"100000026\" data-ratio=\"0.3783251231527094\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxxxqZcA7ruygNU6icQgkuUqy9Xe8CXMm23qOUbe6LzVwoOXQ3ztRCUZA\/640?wx_fmt=png&amp;from=appmsg#imgIndex=3\" data-type=\"png\" data-w=\"1015\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"5\" data-before-load-time=\"1775196694466\" data-report-img-idx=\"3\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u5982\u679c\u6ca1\u6709\u51fa\u73b0\uff0c\u5219\u8fdb\u884c\u4e0b\u9762\u64cd\u4f5c\uff0c\u5b89\u88c5\u5fc5\u8981\u7684\u52a8\u6001\u94fe\u63a5\u5e93<\/p>\n<pre><code>sudo apt-get install lib32ncurses5 lib32z1\r\n<\/code><\/pre>\n<p dir=\"auto\">\u81f3\u6b64\uff0c\u6211\u4eec\u5b8c\u6210\u4e86\u7f16\u8bd1\u5de5\u5177\u7684\u914d\u7f6e\u3002<\/p>\n<p dir=\"auto\">4. \u7f16\u8bd1U-boot<\/p>\n<p dir=\"auto\">\u5f53Arm\u5f00\u53d1\u677f\u4e0a\u7535\u4ee5\u540e\u7b2c\u4e00\u4e2a\u8981\u52a0\u8f7d\u5230\u5185\u5b58\u5e76\u8fd0\u884c\u7684\u7a0b\u5e8f\u5c31\u662fBootLoader\uff0cBootLoader\u7684\u540c\u7c7b\u578b\u7a0b\u5e8f\u5f88\u591a\uff0c\u5982U-boot\u3001X-boot\u3001Rt-Thread\uff0c\u8fd9\u91cc\u6211\u4eec\u4f9d\u7136\u9009\u4e2d\u6700\u5e38\u7528\u7684U-boot\u4f5c\u4e3a\u76ee\u6807(\u56e0\u4e3a\u5176\u4ed6\u7684\u6211\u4e5f\u4e0d\u4f1a\u5440)\uff0c<\/p>\n<p dir=\"auto\">\u6700\u65b0\u7248\u672c\u7684uboot\u51e0\u4e4e\u5305\u542b\u5f53\u524d\u4e3b\u6d41\u7684SoC\u82af\u7247\uff0c\u524d\u9762\u63d0\u5230\u672c\u5f00\u53d1\u677f\u4f7f\u7528\u7684\u82af\u7247\u548clicheePI nano\u76f8\u540c\uff0c\u5927\u90e8\u5206\u786c\u4ef6\u4e5f\u662f\u517c\u5bb9\u7684\uff0c\u4e3a\u4e86\u5feb\u901f\u79fb\u690d\u8be5\u90e8\u5206\uff0c\u8fd9\u91cc\u91c7\u7528licheePI nano\u7684u-boot\u6765\u8fdb\u884c\u79fb\u690d\u3002\u5728\u7ec8\u7aef\u8f93\u5165\u5982\u4e0b\u547d\u4ee4\u514b\u9686u-boot\uff1a<\/p>\n<pre><code>git clone https:\/\/github.com\/Lichee-Pi\/u-boot.git -b nano-v2018.01\r\n<\/code><\/pre>\n<p dir=\"auto\">\u514b\u9686\u5b8c\u6bd5\u6587\u4ef6\u4f1a\u4fdd\u5b58\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\uff0c\u8fdb\u5165\u8be5\u76ee\u5f55\uff0c<\/p>\n<pre><code>cd u-boot\r\n<\/code><\/pre>\n<p dir=\"auto\">\u5728\u8be5\u6587\u4ef6\u5939\u4e0b\u6709\u5f88\u591a\u5206\u652f\uff0c\u6211\u4eec\u53ef\u4ee5\u67e5\u770b\u6240\u6709\u5206\u652f\uff0c\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>git branch -a\r\n<\/code><\/pre>\n<p dir=\"auto\">\u73b0\u5728\u6211\u4eec\u4f7f\u7528\u7684\u662fnano\u5f00\u53d1\u677f\uff0c\u6240\u4ee5\u5c06\u5f53\u524d\u5206\u652f\u5207\u6362\u5230nano\u5206\u652f\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code>git checkout nano-v2018.01u-boot\r\n<\/code><\/pre>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/9ba812de746e4130028b5a3b4a9b451b.png\" alt=\"\u56fe\u7247\" width=\"1041\" height=\"251\" data-imgfileid=\"100000027\" data-ratio=\"0.24111431316042267\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxguxiaHlictVkmnFIDkdOwqNwhmel3iaH6wlS1IcMXkly0FOJTCicZpNG9A\/640?wx_fmt=png&amp;from=appmsg#imgIndex=4\" data-type=\"png\" data-w=\"1041\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"6\" data-before-load-time=\"1775196695155\" data-report-img-idx=\"4\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u5207\u6362\u5230Nano\u5206\u652f<\/p>\n<p dir=\"auto\">\u9ed8\u8ba4\u7684\u6ca1\u6709\u6307\u5b9a\u4ea4\u53c9\u5de5\u5177\u94fe\u548c\u67b6\u6784\uff0c\u56e0\u6b64\u5728\u7f16\u8bd1\u4e4b\u524d\u9700\u8981\u6307\u5b9a\u4ea4\u53c9\u5de5\u5177\u94fe\u548c\u82af\u7247\u67b6\u6784\uff0cu-boot\u7684\u4ea4\u53c9\u7f16\u8bd1\u5668\u5728u-boot \u7684\u6839\u76ee\u5f55\u4e0b\u4e2d\u7684Makefile\u6587\u4ef6\u4e2d\u5b9a\u4e49\u4e86\u3002\u6253\u5f00\u6587\u4ef6\u627e\u5230CROSS_COMPILE\u53d8\u91cf\uff0c\u4fee\u6539\u4e3a\u5982\u4e0b\uff1a<\/p>\n<pre><code>ARCH=arm\r\nCROSS_COMPILE=arm-linux-gnueabi-\r\n<\/code><\/pre>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/84da643b90d7e3d4ab2403ce9253c8d9.png\" alt=\"\u56fe\u7247\" width=\"1433\" height=\"669\" data-imgfileid=\"100000034\" data-ratio=\"0.4668527564549895\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxs8tiawt64kYJlcMnLcwnfxlqLtLX6yCZpnkSjLibZfOHgKeU8lHqRQeg\/640?wx_fmt=png&amp;from=appmsg#imgIndex=5\" data-type=\"png\" data-w=\"1433\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"7\" data-before-load-time=\"1775196695705\" data-report-img-idx=\"5\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u914d\u5236\u4ea4\u53c9\u7f16\u8bd1\u73af\u5883<\/p>\n<p dir=\"auto\">\u8fd9\u6837\u6211\u4eec\u5c31\u80fd\u4f7f\u7528\u6211\u4eec\u6307\u5b9a\u7684\u7f16\u8bd1\u5668\u6765\u7f16\u8bd1u-boot\u4e86\u3002<\/p>\n<p dir=\"auto\">\u5728u-boot\u9879\u76ee\u7684config\u76ee\u5f55\u4e0b\u5b58\u5728\u5bf9\u591a\u79cd\u677f\u5b50\u7684\u914d\u7f6e\u63cf\u8ff0\u6587\u4ef6\uff0c\u7531\u4e8e\u6bcf\u4e2a\u677f\u5b50\u7684\u5916\u8bbe\u4e0d\u540c\uff0c\u56e0\u6b64\u7f16\u8bd1\u4e4b\u524d\u5fc5\u987b\u8981\u5bf9u-boot\u8fdb\u884c\u914d\u7f6e\u3002\u7136\u800c\u914d\u7f6e\u662f\u4e00\u4ef6\u6bd4\u8f83\u7e41\u7410\u7684\u4e8b\u60c5\uff0c\u7279\u522b\u662f\u50cfu-boot\u8fd9\u79cd\u6bd4\u8f83\u590d\u6742\u7684\u9879\u76ee\u800c\u8a00\uff0c\u521d\u5b66\u8005\u51e0\u4e4e\u65e0\u6cd5\u5b8c\u6210\u3002\u5e78\u8fd0\u7684\u662f\u5bf9\u4e8e\u5927\u90e8\u5206\u5f00\u53d1\u677f\u800c\u8a00\uff0cconfig\u76ee\u5f55\u4e0b\u6709\u5176\u914d\u7f6e\u597d\u7684\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6\u3002\u8fdb\u5165config\u76ee\u5f55\u4e2d\uff0c\u7136\u540e\u6267\u884cls\u67e5\u770b\u5f53\u524d\u6240\u6709\u7684\u914d\u7f6e\u6587\u4ef6<\/p>\n<pre><code>cd config\r\nls\r\n<\/code><\/pre>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/6ab435c4776b6f5052a30431d68f9d5d.png\" alt=\"\u56fe\u7247\" width=\"1018\" height=\"625\" data-imgfileid=\"100000035\" data-ratio=\"0.6139489194499018\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxWdx35iaVHj6ZYIarnXcWt2DT9FfRUooStRoC1jdDwjlEjqpB82tvsiaw\/640?wx_fmt=png&amp;from=appmsg#imgIndex=6\" data-type=\"png\" data-w=\"1018\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"8\" data-before-load-time=\"1775196696152\" data-report-img-idx=\"6\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u67e5\u770b\u914d\u5236\u6587\u4ef6<\/p>\n<p dir=\"auto\">\u627e\u5230licheepi_nano_defconfig \u548c licheepi_nano_spiflash_defconfig\uff0c\u524d\u8005\u8868\u793a\u4e3aTF\u5361\u542f\u52a8\uff0c\u540e\u8005\u8868\u793a\u4eceSPI \u8bbe\u5907\u542f\u52a8\uff0c\u56e0\u4e3a\u6211\u4eec\u505a\u7684\u5c0f\u677f\u53ea\u6709\u4eceTF\u5361\u542f\u52a8\uff0c\u6240\u4ee5\u6211\u4eec\u9700\u8981\u4f7f\u7528 licheepi_nano_defconfig \u3002<\/p>\n<p dir=\"auto\">\u73b0\u5728\u56de\u5230\u4e0a\u7ea7\u76ee\u5f55\uff0c\u7136\u540e\u6267\u884c<\/p>\n<pre><code>make licheepi_nano_defconfig\r\ncd ..\r\nmake make licheepi_nano_defconfig\r\n<\/code><\/pre>\n<p dir=\"auto\">\u8fd9\u6837\u6211\u4eec\u628alicheepi_nano_defconfig \u4f5c\u4e3a\u9ed8\u8ba4\u914d\u7f6e\u9879\u3002<\/p>\n<p dir=\"auto\">\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u53ef\u4ee5\u7528\u56fe\u5f62\u754c\u9762\u8fdb\u884c\u914d\u7f6e\u4e86\uff0c\u6267\u884c<\/p>\n<pre><code>make menuconfig\r\n<\/code><\/pre>\n<p dir=\"auto\">\u6b64\u65f6\u51fa\u73b0\u56fe\u5f62\u914d\u7f6e\u9009\u9879\uff0c\u5982\u4e0b\u56fe\u6240\u793a<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/4c6c658785cb6153ef5db4a419a62de9.png\" alt=\"\u56fe\u7247\" width=\"1019\" height=\"631\" data-imgfileid=\"100000033\" data-ratio=\"0.619234543670265\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvx8UyQ1xQTLTkvVb0d8gDq7PMKCiaIEibDeWccAGeyQwEchtE5kEGXXdPQ\/640?wx_fmt=png&amp;from=appmsg#imgIndex=7\" data-type=\"png\" data-w=\"1019\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"9\" data-before-load-time=\"1775196696922\" data-report-img-idx=\"7\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">u-boot Menuconfig\u914d\u5236\uff0c\u6ce8\u610f\u7ea2\u6846\u4e2d\u7684\u914d\u7f6e\uff0c\u6211\u4eec\u540e\u7eed\u8981\u7528\u5230\u3002<\/p>\n<p dir=\"auto\">\u81f3\u6b64\u6211\u4eec\u7684u-boot\u73af\u5883\u914d\u7f6e\u5c31\u5b8c\u6210\u4e86\uff0c\u4f46\u662f\u6211\u4eec\u8fd8\u6709\u4e2a\u95ee\u9898\u8981\u89e3\u51b3\uff1a\u5982\u4f55\u8ba9u-boot\u5f15\u5bfc\u7cfb\u7edf<\/p>\n<p dir=\"auto\">\u6211\u4eec\u5728PC\u7aef\u5b89\u88c5Windows\u7cfb\u7edf\u7684\u65f6\u5019\u5f80\u5f80\u9700\u8981\u9009\u62e9\u542f\u52a8\u987a\u5e8f\uff0c\u6bd4\u5982\u9700\u8981\u4f18\u5148\u901a\u8fc7\u5149\u9a71\u6216u\u76d8\u542f\u52a8\u7b49\u3002<\/p>\n<p dir=\"auto\">\u540c\u6837\u5728u-boot\u4e2d\u4e5f\u9700\u8981\u8fd9\u6837\u7684\u914d\u7f6e\uff0c\u5f53\u7136u-boot\u6bd4PC\u914d\u7f6e\u7a0d\u5fae\u590d\u6742\u4e00\u4e22\u4e22\u3002\u6211\u4eec\u524d\u9762\u63d0\u5230Linux\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7ed3\u6784\u5206\u5e03\u4e2d\u6709\u4e2aBoot Parameters \u90e8\u5206\uff0c\u8fd9\u90e8\u5206\u5c31\u662f\u505a\u5f15\u5bfc\u914d\u7f6e\u7684\uff0c\u90a3\u600e\u4e48\u914d\u7f6e\u5462\uff0c\u603b\u4f53\u6765\u8bf4\u53ef\u4ee5\u5206\u4e3a\u4e24\u90e8\u5206\uff1a<\/p>\n<ul class=\"list-paddingleft-1\">\n<li>\n<p dir=\"auto\">bootcmd\uff0c\u4e3b\u8981\u7528\u4e8e\u63cf\u8ff0\u63a7\u5236Linux\u5185\u6838\u6587\u4ef6\u4ee5\u53ca\u5176\u4ed6\u63cf\u8ff0\u6587\u4ef6\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u4f4d\u7f6e\u4ee5\u53ca\u542f\u52a8Linux\u5185\u6838\u7cfb\u7edf\u7b49<\/p>\n<\/li>\n<li>\n<p dir=\"auto\">bootargs\uff0c\u7528\u4e8e\u914d\u5236\u6587\u4ef6\u7cfb\u7edf\u3001\u4e32\u53e3\u4fe1\u606f\u7b49\u3002<\/p>\n<\/li>\n<\/ul>\n<p dir=\"auto\">bootcmd<\/p>\n<p dir=\"auto\">\u5728\u6700\u5f00\u59cb\u63d0\u5230\u8fc7\uff0c\u5185\u6838\u4e00\u822c\u4e0d\u5728flash\u4e2d\u8fd0\u884c\uff0c\u8fd9\u6837\u5c31\u9700\u8981\u5c06\u5185\u6838\u642c\u8fd0\u5230\u5185\u5b58\u4e2d\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u9700\u8981u-boot\u6765\u5b8c\u6210\u3002\u5bf9\u4e8emmc (TF\u5361)\u800c\u8a00\uff0c\u5728u-boot\u6709\u4e13\u95e8\u7684\u547d\u4ee4load mmc\uff0c\u8be5\u547d\u4ee4\u53ef\u4ee5\u5c06mmc\u4e2d\u7684\u4ee3\u7801\u4eceflash\u642c\u8fd0\u5230\u6307\u5b9a\u7684\u5730\u5740\u5904\u3002<\/p>\n<p dir=\"auto\">\u5f53u-boot\u4e2d\u73af\u5883\u53d8\u91cfbootdelay\u8ba1\u6570\u52300\u65f6\uff0c\u6b64\u65f6uboot\u5c31\u4f1a\u5f00\u59cb\u6267\u884cbootcmd\u4e2d\u7684\u547d\u4ee4\u3002<\/p>\n<p dir=\"auto\">bootdelay\u8fd9\u4e2a\u73af\u5883\u53d8\u91cf\u662f\u4e00\u4e2a\u8ba1\u6570\u5668\uff0c\u5f53u-boot\u4e3b\u4f53\u8fd0\u884c\u5b8c\u6bd5\u540e\uff0c\u6b64\u65f6bootdelay\u8be5\u53d8\u91cf\u7684\u503c\u5c06\u4f1a\u5f00\u59cb\u9012\u51cf\uff0c\u9012\u51cf\u65f6\u95f4\u4e3a1s\uff0c\u5f53\u9012\u51cf\u52300\u65f6\uff0c\u6b64\u65f6u-boot\u5c06\u4f1a\u8df3\u8f6c\u5230bootcmd\u5904\u5f00\u59cb\u6267\u884cbootcmd\u547d\u4ee4\uff0c\uff08\u4f60\u53ef\u4ee5\u7b80\u5355\u7406\u89e3\u4e3aPC\u542f\u52a8\u540e\u6709\u4e00\u4e24\u79d2\u65f6\u95f4\u7b49\u5f85\uff0c\u4f60\u53ef\u4ee5\u53ef\u4ee5\u901a\u8fc7F8\u6216Enter\u952e\u6253\u65ad\u8fdb\u5165Bios\u8bbe\u7f6e\u7684\u8fc7\u7a0b\uff0c\u8fd9\u4e2a\u7b49\u5f85\u65f6\u95f4\u5c31\u7531u-boot\u4e2d\u7684bootdelay\u6765\u63a7\u5236\uff09\u3002<\/p>\n<p dir=\"auto\">\u4e0b\u9762\u6211\u4eec\u9700\u8981\u8bb0\u4f4f\u8fd9\u53e5\u6307\u4ee4\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u5f53\u524d\u5236\u4f5c\u7684\u5f00\u53d1\u677f\u9700\u8981\u7528\u5230\u7684bootcmd\u5168\u90e8\u5185\u5bb9<\/p>\n<pre><code>load mmc 0:1 0x80008000 zImage;load mmc 0:1 0x80c08000 suniv-f1c100s-licheepi-nano.dtb;bootz 0x80008000 - 0x80c08000;\r\n<\/code><\/pre>\n<p dir=\"auto\">\u5982\u679c\u4f60\u9700\u8981\u8be6\u7ec6\u4e86\u89e3\u8fd9\u53e5\u8bdd\u90a3\u5c31\u63a5\u7740\u5f80\u4e0b\u770b\uff0c\u5982\u679c\u4e0d\u9700\u8981\u5219\u53ef\u4ee5\u8df3\u5230 \u4e0b\u9762\u7684u-boot\u53c2\u6570\u914d\u7f6e\u73af\u8282<\/p>\n<p dir=\"auto\">\u5bf9\u4e8e\u4e0a\u9762\u547d\u4ee4\uff0c\u6211\u4eec\u6839\u636e\u5206\u53f7\u62c6\u5206\u4e3a3\u90e8\u5206:<\/p>\n<pre><code>1&gt; load mmc 0:1 0x80008000 zImage;\r\n2&gt; load mmc 0:1 0x80c08000 suniv-f1c100s-licheepi-nano.dtb;\r\n3&gt; bootz 0x80008000 - 0x80c08000;\r\n<\/code><\/pre>\n<p dir=\"auto\">\u5176\u4e2d\u4e24\u4e2a load mmc \u547d\u4ee4\u3001\u4e00\u4e2abootz \u547d\u4ee4\u3002<\/p>\n<p dir=\"auto\">\u5148\u770b\u7b2c\u4e00\u6761\uff1a<\/p>\n<pre><code>load mmc 0:1 0x80008000 zImage\r\n<\/code><\/pre>\n<p dir=\"auto\">load mmc\u6709\u4e09\u4e2a\u53c2\u6570\uff1a\u7b2c\u4e00\u4e2a\u53c2\u6570\u662fmmc(TF\u5361)\u5206\u533a\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u5185\u5b58\u4e2d\u76ee\u6807\u5730\u5740\uff0c\u7b2c\u4e09\u4e2a\u53c2\u6570\u662f\u6e90\u6587\u4ef6\u3002<\/p>\n<p dir=\"auto\">\u5373\u4e0a\u9762\u7684\u547d\u4ee4\u610f\u601d\u662f\u5c06mmc\u76840:1 \u5206\u533a\u4e2d\u7684zImage\u590d\u5236\u5230\u5185\u5b58\u4e2d\u76840x80008000\u5730\u5740\u5904\u3002\u8fd9\u91cc\u7684zimage\u5c31\u662fLinux\u5185\u6838\uff0c\u540e\u7eed\u4f1a\u63d0\u5230\u8be5\u6587\u4ef6\u7f16\u8bd1\uff0c0:1\u8fd9\u4e2a\u53ef\u4ee5\u8fd9\u6837\u7406\u89e30\u8868\u793aTF\u5361(TF\u5361\u5c5e\u4e8emmc\u5b58\u50a8\u5668\u7684\u4e00\u79cd)\uff0c1\u8fd9\u8868\u793aTF\u5361\u7684\u7b2c\u4e00\u4e2a\u5206\u533a(boot\u5206\u533a)\u540e\u9762\u4f1a\u63d0\u5230\u3002<\/p>\n<p dir=\"auto\">\u800c\u5bf9\u4e8e\u5185\u5b58\u4f4d\u7f6e\u00a00x80008000\u00a0\u5730\u5740\u4f4d\u7f6e\uff0c\u5c06\u5176\u7406\u89e3\u4e3a\u9ed8\u8ba4\u503c\u5c31\u884c\u4e86\u3002\u8fd9\u6837\u5b8c\u6210\u4e86zImage\u7684\u52a0\u8f7d\u3002<\/p>\n<p dir=\"auto\">\u4e0b\u9762\u5206\u6790\u7b2c\u4e8c\u6761\u547d\u4ee4\uff1a<\/p>\n<pre><code>load mmc 0:1 0x80c08000 suniv-f1c100s-licheepi-nano.dtb\r\n<\/code><\/pre>\n<p dir=\"auto\">\u6709\u4e86\u4e0a\u9762\u7684\u52a0\u8f7dzImage\u7684\u8bf4\u660e\uff0c\u53ef\u4ee5\u5f88\u8f7b\u677e\u7684\u7406\u89e3\u4e0a\u9762\u7684\u547d\u4ee4\u610f\u601d\u662f\u5c06mmc\u76840:1\u5206\u533a\u4e2d\u7684suniv-f1c100s-licheepi-nano.dtb\u6587\u4ef6\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u76840x80c08000\u5730\u5740\u5904\u3002\u5bf9\u4e8esuniv-f1c100s-licheepi-nano.dtb \u8fd9\u4e2a\u6587\u4ef6\uff0c\u53eb\u505a\u8bbe\u5907\u6811\u6587\u4ef6\uff0c\u7b80\u5355\u6765\u8bf4\u5c31\u662f\u5f53\u524d\u5f00\u53d1\u677f\u4e0a\u9762\u6240\u6709\u5916\u8bbe\u5907\u63cf\u8ff0\u6587\u4ef6\uff0c\u8fd9\u90e8\u5206\u5c06\u4f1a\u5728\u540e\u7eed\u5185\u6838\u7f16\u8bd1\u90e8\u5206\u8fdb\u884c\u8be6\u7ec6\u8bf4\u660e\u3002<\/p>\n<p dir=\"auto\">\u5bf9\u4e8e\u7b2c\u4e09\u6761\u547d\u4ee4\uff1a<\/p>\n<pre><code>bootz 0x80008000 - 0x80c08000\r\n<\/code><\/pre>\n<p dir=\"auto\">\u7684\u610f\u601d\u662f\u544a\u8bc9\u5185\u6838\u955c\u50cf\u7684\u8d77\u59cb\u5730\u5740\u4e3a0x80008000\uff0c\u52a0\u8f7d\u7684\u8bbe\u5907\u6811\u5730\u5740\u4e3a0x80c08000\u3002\u8fd9\u91cc\u662f\u544a\u8bc9cpu\u4ece\u8fd9\u91cc\u5f00\u59cb\u542f\u52a8Linux\uff0c bootz\u547d\u4ee4\u7684\u683c\u5f0f\u662f\uff1abootz\u7a7a\u683c0x80008000\u7a7a\u683c-\u7a7a\u683c0x80c08000,\u6ce8\u610f-\u5de6\u53f3\u6709\u7a7a\u683c\u3002<\/p>\n<p dir=\"auto\">\u9664\u4e86bootz \u547d\u4ee4\u5916\uff0c\u6709\u4e9b\u7cfb\u7edf\u91cc\u9762\u8fd8\u53ef\u80fd\u5b58\u5728\u4e00\u4e2a\u53eb\u505abootm\u547d\u4ee4\uff0c\u8fd9\u662f\u662f\u5bf9\u6ca1\u6709\u4f7f\u7528\u8bbe\u5907\u6811\u5185\u6838\u7684\u955c\u50cf\u542f\u52a8\u547d\u4ee4\uff0c\u65e9\u671f\u7248\u672c\u7684\u5185\u6838\u6ca1\u6709\u5f15\u5165\u8bbe\u5907\u6811\uff0c\u56e0\u6b64\u5bf9\u4e8e\u65e9\u671f\u7684\u5185\u6838\u4e00\u822c\u4f7f\u7528\u7684\u662fbootm\uff0c\u5176\u547d\u4ee4\u683c\u5f0f\u4e3abootm\u5185\u6838\u5730\u5740\uff0c\u6bd4\u5982bootm x0x30008000\uff0c\u610f\u601d\u662f\u4ece0x30008000\u5f00\u59cb\u542f\u52a8\u5185\u6838\uff0c\u542f\u52a8\u5185\u6838\u7684\u8fc7\u7a0b\u5176\u5b9e\u662f\u5c06pc\u6307\u9488\u6307\u5411\u8be5\u5730\u5740\uff0c\u8fd9\u6837\u5904\u7406\u5668\u5c31\u4f1a\u4ece\u8be5\u5730\u5740\u5904\u8fd0\u884c\u4ee3\u7801\u3002<\/p>\n<p dir=\"auto\">\u8fd9\u91cc\u6211\u4eec\u5c31\u5b8c\u6210\u4e86bootcmd\u7684\u8bf4\u660e\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u770b\u53e6\u5916\u4e00\u4e2a\u53c2\u6570\u3002<\/p>\n<p dir=\"auto\">bootargs<\/p>\n<p dir=\"auto\">bootargs\u4e5f\u662fu-boot\u73af\u5883\u53d8\u91cf\u4e2d\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u53d8\u91cf\uff0c\u4e0a\u9762\u5df2\u7ecf\u8bb2\u89e3\u4e86\u5185\u6838\u7684\u542f\u52a8\u53ef\u4ee5\u901a\u8fc7bootcmd\u6765\u5b8c\u6210\uff0c\u90a3\u63a5\u4e0b\u6765\u5185\u6838\u542f\u52a8\u5b8c\u6bd5\u540e\u5fc5\u987b\u6302\u5728\u6839\u6587\u4ef6\u7cfb\u7edf(rootfs)\u3002\u4f46\u662f\u5185\u6838\u5e76\u4e0d\u77e5\u9053\u6839\u6587\u4ef6\u7cfb\u7edf\u7684\u5177\u4f53\u4f4d\u7f6e\uff0c\u6211\u4eec\u5fc5\u987b\u8981\u544a\u8bc9\u6839\u6587\u4ef6\u7684\u4f4d\u7f6e\u540e\u5185\u6838\u624d\u80fd\u5c06\u5176\u6302\u8f7d\uff0c\u8fd9\u65f6\u5c31\u9700\u8981\u6709bootargs\u53d8\u91cf\u3002\u8be5\u53d8\u91cf\u7684\u4f5c\u7528\u662f\u544a\u8bc9\u5185\u6838\u6839\u6587\u4ef6\u7cfb\u7edf\u7684\u4f4d\u7f6e\u548c\u5c5e\u6027\u4ee5\u53ca\u5fc5\u8981\u7684\u914d\u7f6e\uff0c<\/p>\n<p dir=\"auto\">console=ttyS0,115200 panic=5 rootwait root=\/dev\/mmcblk0p2 earlyprintk rw<br \/>\n\u540c\u4e0a\u9762\u5206\u6790\u7684\u65b9\u6cd5\u4e00\u6837\uff0c\u6211\u4eec\u4f9d\u7136\u5c06\u8fd9\u90e8\u5206\u547d\u4ee4\u62c6\u6210\u51e0\u90e8\u5206\u6765\u8bf4\u660e\u3002\u8fd9\u91cc\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u8fd9\u90e8\u5206\u914d\u7f6e\u4fe1\u606f\u662f\u7531u-boot \u76f4\u63a5\u6309\u7167\u53c2\u6570\u5b57\u7b26\u4e32\u65b9\u5f0f\u63d0\u4f9b\u7ed9Linux\u5185\u6838\uff0c\u7136\u540e\u7531Linux\u5185\u6838\u8fdb\u884c\u6267\u884c\u7684\uff0c\u8fd9\u4e5f\u8bf4\u660e\u91cc\u4e3a\u4ec0\u4e48\u683c\u5f0f\u4e0ebootcmd\u914d\u7f6e\u65b9\u5f0f\u4e0d\u4e00\u81f4\u3002<\/p>\n<p dir=\"auto\">**console=ttyS0,115200 **\u8868\u793a\u7ec8\u7aef\u4e3attyS0\u5373\u4e32\u53e30,\u6ce2\u7279\u7387\u4e3a115200\uff1b<\/p>\n<p dir=\"auto\">panic=5\u00a0\u5b57\u9762\u610f\u601d\u662f\u6050\u614c\uff0c\u5373linux\u5185\u6838\u6050\u614c\uff0c\u5176\u5b9e\u5c31\u662flinux\u4e0d\u77e5\u9053\u600e\u4e48\u6267\u884c\u4e86\uff0c\u6b64\u65f6\u5185\u6838\u5c31\u9700\u8981\u505a\u4e00\u4e9b\u76f8\u5173\u7684\u5904\u7406\uff0c\u8fd9\u91cc\u76845\u8868\u793a\u8d85\u65f6\u65f6\u95f4\uff0c\u5f53Linux\u5361\u4f4f5\u79d2\u540e\u4ecd\u672a\u6210\u529f\u5c31\u4f1a\u6267\u884cLinux\u6050\u614c\u5f02\u5e38\u7684\u4e00\u4e9b\u64cd\u4f5c\u3002<\/p>\n<p dir=\"auto\">rootwait\u00a0\u8be5\u53c2\u6570\u662f\u544a\u8bc9\u5185\u6838\u6302\u5728\u6587\u4ef6\u7cfb\u7edf\u4e4b\u524d\u9700\u8981\u5148\u52a0\u8f7d\u76f8\u5173\u9a71\u52a8\uff0c\u8fd9\u6837\u505a\u7684\u76ee\u7684\u662f\u9632\u6b62\u56e0mmc\u9a71\u52a8\u8fd8\u672a\u52a0\u8f7d\u5c31\u5f00\u59cb\u6302\u8f7d\u9a71\u52a8\u800c\u5bfc\u81f4\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u5931\u8d25\uff0c\u6240\u4ee5\u4e00\u822cbootargs\u4e2d\u90fd\u8981\u52a0\u4e0a\u8fd9\u4e2a\u53c2\u6570\u3002<\/p>\n<p dir=\"auto\">root=\/dev\/mmcblk0p2\u00a0\u8868\u793a\u6839\u6587\u4ef6\u7cfb\u7edf\u7684\u4f4d\u7f6e\u5728mmc\u76840:2\u5206\u533a\u5904\uff0c\/dev\u662f\u8bbe\u5907\u6587\u4ef6\u5939\uff0c\u5185\u6838\u5728\u52a0\u8f7dmmc\u4e2d\u7684\u65f6\u5019\u5c31\u4f1a\u5728\u6839\u6587\u4ef6\u7cfb\u7edf\u4e2d\u751f\u6210mmcblk0p2\u8bbe\u5907\u6587\u4ef6\uff0c\u8fd9\u4e2a\u8bbe\u5907\u6587\u4ef6\u5176\u5b9e\u5c31\u662fmmc\u76840:2\u5206\u533a(\u8fd9\u91cc\u5bf9\u5e94TF\u5361\u7684\u7b2c\u4e8c\u4e2a\u5206\u533a\uff1arootfs)\uff0c\u8fd9\u6837\u5185\u6838\u5bf9\u6587\u4ef6\u7cfb\u7edf\u7684\u8bfb\u5199\u64cd\u4f5c\u65b9\u5f0f\u672c\u8d28\u4e0a\u5c31\u662f\u8bfb\u5199\/dev\/mmcblk0p2\u8be5\u8bbe\u5907\u6587\u4ef6\u3002<\/p>\n<p dir=\"auto\">earlyprintk\u00a0\u53c2\u6570\u662f\u6307\u5728\u5185\u6838\u52a0\u8f7d\u7684\u8fc7\u7a0b\u4e2d\u6253\u5370\u8f93\u51fa\u4fe1\u606f\uff0c\u8fd9\u6837\u5185\u6838\u5728\u52a0\u8f7d\u7684\u65f6\u5019\u7ec8\u7aef\u5c31\u4f1a\u8f93\u51fa\u76f8\u5e94\u7684\u542f\u52a8\u4fe1\u606f\u3002rw\u8868\u793a\u6587\u4ef6\u7cfb\u7edf\u7684\u64cd\u4f5c\u5c5e\u6027\uff0c\u6b64\u5904rw\u8868\u793a\u53ef\u8bfb\u53ef\u5199\u3002<\/p>\n<p dir=\"auto\">5.u-boot\u53c2\u6570\u914d\u7f6e<\/p>\n<pre><code>make menuconfig\r\n<\/code><\/pre>\n<p dir=\"auto\">\u9009\u4e2d Enable boot arguments \u6309\u7a7a\u683c\u9009\u4e2d\uff0c\u4e0b\u9762\u4f1a\u663e\u793a\uff1a() Boot arguments<\/p>\n<p dir=\"auto\">\u7136\u540e\u9009\u4e2dBoot arguments ,\u6309\u56de\u8f66\uff0c\u8fdb\u5165\u914d\u7f6e\u7a97\u53e3\uff0c\u63a5\u4e0b\u6765\u4e0a\u9762\u89e3\u91ca\u8fc7\u7684bootargs \u53c2\u6570\u4fe1\u606f\uff1a<\/p>\n<pre><code>console=ttyS0,115200 panic=5 rootwait root=\/dev\/mmcblk0p2 earlyprintk rw\r\n<\/code><\/pre>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/c6df087155fad98cf4bce1821e5e630a.png\" alt=\"\u56fe\u7247\" width=\"960\" height=\"541\" data-imgfileid=\"100000032\" data-ratio=\"0.5635416666666667\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxEfibv0XYP1eIKzh0Mia2VZ1HTBYwBicFFxt39XaPsHOMwmRkwvS3DChZw\/640?wx_fmt=png&amp;from=appmsg#imgIndex=8\" data-type=\"png\" data-w=\"960\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"10\" data-before-load-time=\"1775196699733\" data-report-img-idx=\"8\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u914d\u7f6ebootargs\u4fe1\u606f<\/p>\n<p dir=\"auto\">\u7136\u540e\u6309Tab\u952e\u9009\u4e2d&lt;OK&gt;\uff0c\u4fdd\u5b58\u5e76\u8fdb\u5165\u4e3b\u83dc\u5355\u3002<\/p>\n<p dir=\"auto\">\u540c\u7406\u914d\u7f6e\uff1aEnable a default value for bootcmd\u00a0\u6309\u7a7a\u683c\u9009\u4e2d\uff0c\u4e0b\u9762\u4f1a\u663e\u793a\uff1a() bootcmd value\u00a0\u914d\u7f6e\u9879\uff0c<\/p>\n<p dir=\"auto\">\u9009\u4e2dbootcmd value\u00a0\u8fdb\u5165\u914d\u7f6e\u754c\u9762\uff0c\u8f93\u5165bootcmd\u547d\u4ee4\uff1a<\/p>\n<pre><code>load mmc 0:1 0x80008000 zImage;load mmc 0:1 0x80c08000 suniv-f1c100s-licheepi-nano.dtb;bootz 0x80008000 - 0x80c08000;\r\n<\/code><\/pre>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/a5d6c26c4845b745ce91cc897045bd84.png\" alt=\"\u56fe\u7247\" width=\"874\" height=\"355\" data-imgfileid=\"100000031\" data-ratio=\"0.4061784897025172\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxWQwonXfBgwqJkOAUY5NGTlnhIXG4VicSSQWvy0vI6CeTPKsmucENUVg\/640?wx_fmt=png&amp;from=appmsg#imgIndex=9\" data-type=\"png\" data-w=\"874\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"11\" data-before-load-time=\"1775196700564\" data-report-img-idx=\"9\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u914d\u7f6ebootcmd\u53c2\u6570<\/p>\n<p dir=\"auto\">\u6309Tab\u952e\u9009\u4e2d&lt;OK&gt;\uff0c\u4fdd\u5b58\u5e76\u8fdb\u5165\u4e3b\u83dc\u5355\u3002<\/p>\n<p dir=\"auto\">6.u-boot\u7f16\u8bd1\u4e0e\u70e7\u5f55<\/p>\n<p dir=\"auto\">\u5148\u4fdd\u5b58\u56fe\u5f62\u914d\u7f6e\u754c\u9762\u540e\u63a8\u51fa\u754c\u9762\uff0c\u5728\u7ec8\u7aef\u6267\u884cmake -j4\u5373\u53ef\u5bf9\u6574\u4e2au-boot\u8fdb\u884c\u7f16\u8bd1\u3002<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/df6f0ee49c8e17ea2722cb5d2873d371.png\" alt=\"\u56fe\u7247\" width=\"827\" height=\"213\" data-imgfileid=\"100000037\" data-ratio=\"0.25755743651753327\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxLm87VVamYr1ibAXVaCBMwVxrXVSF2eyRSYh25wdhZjA0KngetJuXP6A\/640?wx_fmt=png&amp;from=appmsg#imgIndex=10\" data-type=\"png\" data-w=\"827\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"12\" data-before-load-time=\"1775196700955\" data-report-img-idx=\"10\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u7f16\u8bd1u-boot<\/p>\n<p dir=\"auto\">make -j4\u540e\u9762\u7684-j4\u8868\u793a4\u4e2a\u6838\u5fc3\u8fdb\u884c\u7f16\u8bd1\uff0c\u82e5\u7535\u8111\u7684\u5904\u7406\u5668\u662f2\u6838\u5fc3\uff0c\u8bf7\u4f7f\u7528make -j2\u8fdb\u884c\u7f16\u8bd1\u3002<\/p>\n<p dir=\"auto\">\u7f16\u8bd1\u5b8c\u6210\u540e\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u751f\u6210u-boot-sunxi-with-spl.bin\u70e7\u5f55\u6587\u4ef6\u3002<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/6582956144bd865b18e136f004dd1308.png\" alt=\"\u56fe\u7247\" width=\"1294\" height=\"561\" data-imgfileid=\"100000039\" data-ratio=\"0.43353941267387947\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxO1oTg8RbF6yvwiazEViaIOvejDfPSdLe9EPdMvecibzHTJC7Q8YLSjoDw\/640?wx_fmt=png&amp;from=appmsg#imgIndex=11\" data-type=\"png\" data-w=\"1294\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"13\" data-before-load-time=\"1775196701069\" data-report-img-idx=\"11\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u6839\u76ee\u5f55\u4e0b\u627e\u5230\u00a0u-boot-sunxi-with-spl.bin\u00a0\u6587\u4ef6<\/p>\n<p dir=\"auto\">\u8be5\u6587\u4ef6\u5c31\u662f\u6211\u4eec\u6700\u7ec8\u8981\u70e7\u5f55\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/p>\n<p dir=\"auto\">\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u4f1a\u6709\u4e00\u4e2a\u9690\u85cf\u7684\u6587\u4ef6.config\uff0c\u8be5\u6587\u4ef6\u662fu-boot\u7f16\u8bd1\u540e\u6839\u636e\u5404\u4e2a\u9009\u9879\u4ea7\u751f\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u8bb0\u5f55\u4e86\u6240\u6709\u914d\u7f6e\u9009\u9879\u7684\u5b8f\u5f00\u5173\uff0c\u7f16\u8bd1\u7684\u65f6\u5019\u662f\u6839\u636e\u6700\u7ec8\u7684.config\u6587\u4ef6\u6765\u8fdb\u884c\u7f16\u8bd1\u7684\uff0c\u5f53\u7136\u7f16\u8bd1\u524d\u662f\u9700\u8981\u6709\u811a\u672c\u89e3\u6790.config\u6587\u4ef6\u7136\u540e\u8fdb\u884c\u76f8\u5e94\u7684\u7f16\u8bd1\u3002<\/p>\n<p dir=\"auto\">\u70e7\u5f55\u5230TF\u5361<\/p>\n<p dir=\"auto\">\u53ea\u8981\u5c06u-boot-sunxi-with-spl.bin\u70e7\u5f55\u5230tf\u5361\u76848k\u504f\u79fb\u5904\u5730\u5740\u5c31\u53ef\u4ee5\u4e86\uff0c\u70e7\u5f55\u6b65\u9aa4\u5982\u4e0b\uff1a\u4f7f\u7528dd\u547d\u4ee4\u8fdb\u884c\u5757\u642c\u79fb\uff1a<\/p>\n<pre><code>sudo dd if=u-boot-sunxi-with-spl.bin of=\/dev\/sdb bs=1024 seek=8\r\n<\/code><\/pre>\n<p dir=\"auto\">\u8be5\u547d\u4ee4\u4e2d\uff1a<\/p>\n<ul class=\"list-paddingleft-1\">\n<li>if \u6587\u4ef6\u540d\uff1a\u8f93\u5165\u6587\u4ef6\u540d\uff0c\u7f3a\u7701\u4e3a\u6807\u51c6\u8f93\u5165\u3002\u5373\u6307\u5b9a\u6e90\u6587\u4ef6\u3002&lt; if=input file &gt;<\/li>\n<li>of \u6587\u4ef6\u540d\uff1a\u8f93\u51fa\u6587\u4ef6\u540d\uff0c\u7f3a\u7701\u4e3a\u6807\u51c6\u8f93\u51fa\u3002\u5373\u6307\u5b9a\u76ee\u7684\u6587\u4ef6\u3002&lt; of=output file &gt;<\/li>\n<li>bs bytes\uff1a\u540c\u65f6\u8bbe\u7f6e\u8bfb\u5165\/\u8f93\u51fa\u7684\u5757\u5927\u5c0f\u4e3abytes\u4e2a\u5b57\u8282\u3002<\/li>\n<li>seek blocks\uff1a\u4ece\u8f93\u51fa\u6587\u4ef6\u5f00\u5934\u8df3\u8fc7blocks\u4e2a\u5757\u540e\u518d\u5f00\u59cb\u590d\u5236\u3002<\/li>\n<\/ul>\n<p dir=\"auto\">\u8fd9\u91cc\u7684\u8f93\u51fa\u6587\u4ef6(of)\u4e3a\u4e3b\u673a\u7535\u8111\u7684\/dev\/sdb\u6587\u4ef6\uff0c\u4e5f\u5c31\u662fTF\u5361\uff0c\u8fd9\u91cc\u4e5f\u4f53\u73b0\u4e86Linux\u4e00\u5207\u7686\u6587\u4ef6\u7684\u601d\u60f3\u3002<\/p>\n<p dir=\"auto\">\/dev\/sdb \u8fd9\u4e2a\u53ef\u4ee5\u7528gparted \u8f6f\u4ef6\u67e5\u770b\uff0c\u8be5\u8f6f\u4ef6\u53ef\u4ee5\u76f4\u63a5\u7528\u547d\u4ee4\u5b89\u88c5\u5373\u53ef\uff1a<\/p>\n<pre><code>sudo apt-get install gparted\r\n<\/code><\/pre>\n<p dir=\"auto\">\u6b64\u65f6\u5728Ubuntu\u4e0b\u9762\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u8f6f\u4ef6\uff1a<\/p>\n<p dir=\"auto\"><img decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/f5e91ae1c6a523620cc3082bcafe9f87.png\" alt=\"\u56fe\u7247\" data-imgfileid=\"100000045\" data-ratio=\"0.5664739884393064\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvx5Ic6pjhrAjWaMbVDQIyEKPTzhT4w8ias6RSx39FIs10ZMzvGiaZoZXEg\/640?wx_fmt=png&amp;from=appmsg#imgIndex=12\" data-type=\"png\" data-w=\"1384\" data-original-style=\"null\" data-index=\"14\" data-before-load-time=\"1775196701853\" data-report-img-idx=\"12\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u5b89\u88c5\u597dGParted\u8f6f\u4ef6<\/p>\n<p dir=\"auto\">\u6253\u5f00\u8f6f\u4ef6<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/de3212947cd70c4f6f4a210bf5b04e66.png\" alt=\"\u56fe\u7247\" width=\"809\" height=\"537\" data-imgfileid=\"100000038\" data-ratio=\"0.6637824474660075\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxZqQO91F72tGr52VBFfq83bnRVicr6S22pdYto4BrGoibYObCYJzwY4tg\/640?wx_fmt=png&amp;from=appmsg#imgIndex=13\" data-type=\"png\" data-w=\"809\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"15\" data-before-load-time=\"1775196702318\" data-report-img-idx=\"13\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">GParted<\/p>\n<p dir=\"auto\">\u5728\u53f3\u4e0a\u89d2\u53ef\u4ee5\u770b\u5230\u4e24\u4e2a\u786c\u76d8\uff0c\/dev\/sda \u4e3a\u672c\u5730\u786c\u76d8\uff0c\/dev\/sdb \u662f\u6211\u4eec\u5c06\u8981\u5199\u6570\u636e\u7684TF(\u5f53\u7136\u8fd9\u53ea\u662f\u58a8\u4e91\u81ea\u5df1\u7684\u914d\u7f6e\u4f7f\u7136\uff0c\u5177\u4f53\u60c5\u51b5\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u800c\u5b9a)\uff0c\u56e0\u6b64\u8fd9\u91cc\u7684of=\/dev\/sdb \u70e7\u5f55\u52308k\u504f\u79fb\u5730\u5740\u5904\u662f\u6307\u7edd\u5bf9\u5730\u5740\uff0c\u8fd9\u4e2a\u7edd\u5bf9\u5730\u5740\u6307\u7684\u662fTF\u5361\u7684\u7269\u7406\u5730\u5740\u3002\u8fd98K\u7684\u503c\u662f\u7531F1C200S \u4e2d\u56fa\u5316\u7684\u542f\u52a8\u4ee3\u7801\u51b3\u5b9a\u7684\uff0c\u6240\u4ee5\u7167\u6284\u5373\u53ef\u3002<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/fcf4ebafc79cba553e9b719a5ee54af8.png\" alt=\"\u56fe\u7247\" width=\"1010\" height=\"118\" data-imgfileid=\"100000036\" data-ratio=\"0.11683168316831684\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxTdhNZbNmiadf9gqeOrp8icGIfPe6CBzNvcWAv3NPO8gblLpB9uicdUsYQ\/640?wx_fmt=png&amp;from=appmsg#imgIndex=14\" data-type=\"png\" data-w=\"1010\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"16\" data-before-load-time=\"1775196704134\" data-report-img-idx=\"14\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u70e7\u5199u-boot<\/p>\n<p dir=\"auto\">\u7136\u540e\u6211\u4eec\u6b63\u5e38\u9000\u51faTF\u5361\uff0c\u7136\u540e\u63d2\u5165\u6211\u4eec\u81ea\u5236\u7684\u5f00\u53d1\u677f\uff0c\u901a\u8fc7USB\u7ebf\u8fde\u63a5\u7535\u8111\uff0c<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/f860f9350385f88d21ae8f39c44163aa.png\" alt=\"\u56fe\u7247\" width=\"749\" height=\"510\" data-imgfileid=\"100000044\" data-ratio=\"0.6809078771695594\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvx984WELUHriaslPEvbVkxpalJ6YZU6TB3dJiaFD8FmS28icic9UHSz3yibZA\/640?wx_fmt=png&amp;from=appmsg#imgIndex=15\" data-type=\"png\" data-w=\"749\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"17\" data-before-load-time=\"1775196704187\" data-report-img-idx=\"15\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u8fde\u63a5\u5f00\u53d1\u677f<\/p>\n<p dir=\"auto\">\u6253\u5f00\u7535\u8111\u4e2d\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u6211\u8fd9\u91cc\u4f7f\u7528Xshell\uff0c<\/p>\n<p dir=\"auto\">\u6253\u5f00Xshell\uff0c\u65b0\u5efa\u8fde\u63a5\uff1a<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/ab75891650a20122989b3a54cd9b2d8e.png\" alt=\"\u56fe\u7247\" width=\"857\" height=\"827\" data-imgfileid=\"100000042\" data-ratio=\"0.9649941656942824\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxiaUqV8TdaHPqgcIsMAUuYmhAL77orzqJSrhVEqchHsuyFTxGhWtia2sw\/640?wx_fmt=png&amp;from=appmsg#imgIndex=16\" data-type=\"png\" data-w=\"857\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"18\" data-before-load-time=\"1775196705020\" data-report-img-idx=\"16\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u914d\u7f6e\u540d\u79f0 \uff0c\u534f\u8bae\u9009\u62e9Serial<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/0f82ce927e5c1a0188893d3e5902823f.png\" alt=\"\u56fe\u7247\" width=\"872\" height=\"627\" data-imgfileid=\"100000040\" data-ratio=\"0.7190366972477065\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxLD6Wx8gnYssjOGohe1fP8wwTIY6DItG5y2XkiciaeAH0OqQYeBxl8Gvw\/640?wx_fmt=png&amp;from=appmsg#imgIndex=17\" data-type=\"png\" data-w=\"872\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"19\" data-before-load-time=\"1775196706566\" data-report-img-idx=\"17\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u914d\u7f6e\u4e32\u53e3<\/p>\n<p dir=\"auto\">\u901a\u8fc7\u4e0b\u62c9\u9009\u4e2dcom\u7aef\u53e3\uff0c\u6ce2\u7279\u7387\u4e3a115200\uff0c\u5176\u4ed6\u9ed8\u8ba4\u5373\u53ef\uff0c\u70b9\u51fb\u786e\u5b9a\uff0c\u7136\u540e\u53cc\u51fb\u4e3b\u754c\u9762\u5de6\u4fa7\u4f1a\u8bdd\u7ba1\u7406\u4e2d\u7684\u521a\u5efa\u7acb\u7684\u4f1a\u8bdd\uff0c\u6b64\u65f6\u8fdb\u5165\u8fde\u63a5\u72b6\u6001\u3002<\/p>\n<p dir=\"auto\">\u56e0\u4e3a\u5728\u4f60\u63d2\u5165USB\u901a\u7535\u7684\u65f6\u5019\u5f00\u53d1\u677f\u5c31\u5df2\u7ecf\u542f\u52a8\u4e86\uff0c\u6240\u4ee5\u5f53\u4f60\u6253\u5f00\u4e32\u53e3\u8fde\u63a5\u7684\u65f6\u5019\u53ef\u80fd\u672a\u5fc5\u4f1a\u770b\u5230\u4fe1\u606f\uff0c\u6240\u4ee5\u6309\u4e00\u4e0b\u91cd\u542f\u952e\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u7684\u8f93\u51fa\u4fe1\u606f\u4e86\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u7684u-boot\uff0c\u6267\u884c\u5230u-bbot\u8ba1\u6570\u5b8c\u6210\u540e\u4f1a\u4ea7\u751f\u9519\u8bef\uff0c\u90a3\u662f\u56e0\u4e3a\u6211\u4eec\u8fd8\u6ca1\u6709\u8fdb\u884c\u7cfb\u7edf\u5185\u6838\u7684\u79fb\u690d\uff0c\u6240\u4ee5\u9ed8\u8ba4\u5c31\u4f1a\u8fdb\u5165u-boot\u547d\u4ee4\u6a21\u5f0f\u3002<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/60f870eaef4a56bf05c812ffd108c444.png\" alt=\"\u56fe\u7247\" width=\"1291\" height=\"735\" data-imgfileid=\"100000041\" data-ratio=\"0.5693261037955074\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxKiaElIHRTrgYsvnSOefB1RHtMKhR8dVia0XNRouZSmTgzYknspDib3Umg\/640?wx_fmt=png&amp;from=appmsg#imgIndex=18\" data-type=\"png\" data-w=\"1291\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"20\" data-before-load-time=\"1775196707117\" data-report-img-idx=\"18\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">\u542f\u52a8\u4fe1\u606f<\/p>\n<p dir=\"auto\">\u8f93\u5165pri\u547d\u4ee4\u6253\u5370\u73af\u5883\u53d8\u91cf\u7684\u6240\u6709\u503c\uff0c\u53ef\u4ee5\u627e\u5230\u5df2\u7ecf\u914d\u7f6e\u7684bootcmd \u548cbootargs<\/p>\n<p dir=\"auto\"><img loading=\"lazy\" decoding=\"async\" class=\"rich_pages wxw-img\" src=\"\/wp-content\/uploads\/replace\/218065471ee3fd2f1f6a2f686e12fa53.png\" alt=\"\u56fe\u7247\" width=\"1409\" height=\"877\" data-imgfileid=\"100000043\" data-ratio=\"0.6224272533711852\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/HkYqdNNS2JtvbibInGWTeRpiaicYjntWnvxIPwJsL20g7fleeiaoAHC8EcRm79Qcib2dWhjvDHUJliajybRJyeuzeEbg\/640?wx_fmt=png&amp;from=appmsg#imgIndex=19\" data-type=\"png\" data-w=\"1409\" data-original-style=\"border-width: 0px;border-style: initial;border-color: initial;vertical-align: middle;display: inline;max-width: 85%;\" data-index=\"21\" data-before-load-time=\"1775196707567\" data-report-img-idx=\"19\" data-fail=\"0\" \/><\/p>\n<p dir=\"auto\">pri\u547d\u4ee4\u7ed3\u679c<\/p>\n<p dir=\"auto\">\u81f3\u6b64\u5b8c\u6210\u4e86u-boot\u79fb\u690d\u7684\u5168\u90e8\u5185\u5bb9\uff0c\u5bf9\u4e8eu-boot\u7684\u79fb\u690d\u65b9\u6cd5\uff0c\u5728\u540e\u7eed\u79fb\u690dLinux\u5185\u6838\u548c\u6587\u4ef6\u7cfb\u7edf\u65f6\u90fd\u4f1a\u7528\u5230\uff0c\u90fd\u662f\u5927\u540c\u5c0f\u5f02\u7684\uff0c\u6240\u4ee5\u6709\u4e86\u672c\u7bc7\u7684\u8bf4\u660e\uff0c\u4e4b\u540e\u64cd\u4f5c\u5c06\u4f1a\u975e\u5e38\u7b80\u5355\u3002<\/p>\n<p dir=\"auto\">\u800c\u5173\u4e8eu-boot\u7684\u5185\u5bb9\u4e8b\u5b9e\u4e0a\u975e\u5e38\u7684\u590d\u6742\u7e41\u7410\uff0c\u6709\u5174\u8da3\u7684\u53ef\u4ee5\u81ea\u884c\u53bb\u4e86\u89e3\u5230\uff0c\u6bd5\u7adf\u4f5c\u4e3a\u4e00\u4e2a\u5c0f\u767d\u7684\u6211\u521d\u8877\u53ea\u662f\u5148\u8ba9\u5c0f\u677f\u5148\u8dd1\u8d77\u6765<\/p>\n<p dir=\"auto\">\u53c2\u8003\u8d44\u6599<br \/>\nLite200 (lishanwen) &#8212;\u00a0https:\/\/lishanwen.cn\/index.php\/2021\/07\/03\/lite200\/<\/p>\n<p dir=\"auto\">\u5168\u5fd7F1C200S F1C100S \u4ecb\u7ecd ( \u8fea\u5361\u9b4f\u66fc\u4f9d\u5947\u541b )\u00a0https:\/\/blog.csdn.net\/tunqimai9331\/article\/details\/95938903<\/p>\n<p dir=\"auto\">\u8354\u679d\u6d3eNano \u5168\u6d41\u7a0b\u6307\u5357 (\u77fd\u901f\u79d1\u6280)\u00a0https:\/\/wiki.sipeed.com\/soft\/Lichee\/zh\/Nano-Doc-Backup\/index.html<\/p>\n<p dir=\"auto\">\u4ee5\u4e0a\u5185\u5bb9\u6765\u81ea WhyCan Forum\u54c7\u9177\u5f00\u53d1\u8005\u793e\u533a<br \/>\n\u5c0f\u767d\u81ea\u5236Linux\u5f00\u53d1\u677f(F1C200s)\u6574\u7406\u7cfb\u5217\uff0c\u6301\u7eed\u66f4\u65b0\u4e2d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u90fd\u77e5\u9053\uff0cPC\u5728\u542f\u52a8\u7684\u65f6\u5019\uff0c\u9996\u5148\u662f\u8fdb\u5165BIOS\uff0c\u518d\u6839\u636eBIOS\u4e2d\u914d\u7f6e\u4fe1\u606f\u5f15\u5bfc\u540e\u7eed\u7684\u542f\u52a8\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6bd4\u5982\u914d\u7f6eWi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":496,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-494","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/posts\/494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/comments?post=494"}],"version-history":[{"count":1,"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/posts\/494\/revisions\/515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/media\/496"}],"wp:attachment":[{"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpa.yesli.tk\/index.php\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}