{"id":4211,"date":"2025-04-09T04:17:47","date_gmt":"2025-04-08T20:17:47","guid":{"rendered":"https:\/\/10ccc.cc\/?p=4211"},"modified":"2026-01-02T19:16:43","modified_gmt":"2026-01-02T11:16:43","slug":"ios-%e4%b8%ad%ef%bc%8c%e5%88%a9%e7%94%a8-ish-%e8%bf%9b%e8%a1%8c%e5%b5%8c%e5%85%a5%e5%bc%8f%e5%bc%80%e5%8f%91%e7%9a%84%e5%8f%af%e8%a1%8c%e6%80%a7%e6%8e%a2%e7%b4%a2","status":"publish","type":"post","link":"https:\/\/10ccc.cc\/?p=4211","title":{"rendered":"IOS \u4e2d\uff0c\u5229\u7528 ish \u8fdb\u884ci.MX 6ull\u5f00\u53d1\u7684\u53ef\u884c\u6027\u63a2\u7d22"},"content":{"rendered":"<p style=\"text-align: center;\">\u6211\u7528\u4e00\u676f\u5496\u5561\u56e0\uff0c\u4f53\u9a8c\u4e86\u4e00\u6b21\u547d\u5b9a\u7684\u5931\u8d25\u65c5\u7a0b\uff0c\u4f46\u671f\u95f4\u9047\u89c1\u7684\u5854\u5c16\uff0c\u5fc6\u8bb0\u957f\u65b0\u3002<\/p>\n<h1>\u7eed<\/h1>\n<p>\u7ee7\u4e0a\u7bc7\u00a0 \u300a<a href=\"https:\/\/10ccc.cc\/?p=4159\">\u624b\u673a\u4e0a\u901a\u8fc7 iSh \u4f7f\u7528\u7684 Alpine Linux \u73af\u5883\u7684\u5951\u673a\u548c\u65b9\u6cd5<\/a> \u300b\u7684\u63a2\u7d22\uff1b\u53d1\u73b0\uff0cish \u4f3c\u4e4e\u5305\u542b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684 linux \u7cfb\u7edf\u3002\u8fd9\u4e0d\u7981\u8ba9\u6211\u597d\u5947\uff0c\u90a3\uff1a\u5b83\u771f\u7684\u548c PC \u4e0a\u8fd0\u884c\u7684 linux \u7cfb\u7edf\u5b8c\u5168\u4e00\u81f4\u5417\uff1f\u662f\u4e0d\u662f\u5728 PC \u4e0a\u80fd\u505a\u7684\u4e8b\u60c5\uff0c\u4e5f\u80fd\u5728 ish \u4e2d\u5b8c\u6210\u5462\uff1f\u5f53\u7136\uff0c\u8fd9\u91cc\u8bf4\u7684\u80af\u5b9a\u4e0d\u5305\u542b\u9700\u8981\u5927\u91cf\u7b97\u529b\u7684\u4e8b\u60c5\u4e86\u3002<\/p>\n<p>\u4e8e\u662f\uff0c\u7eaf\u7cb9\u4e3a\u4e86\u597d\u73a9\uff0c\u5c31\u60f3\uff0c\u6211\u80fd\u4e0d\u80fd\u7528\u5b83\u6765\u8ba9 imx6ull \u6210\u529f\u8fd0\u884c\uff0c\u70b9\u4eae\u4e3b\u677f\u7684 led ?<\/p>\n<blockquote><p>\u4ece\u5df2\u77e5\u5230\u672a\u77e5\u7684\u63a2\u7d22\u4e2d\uff0c\u201c\u7c7b\u6bd4\u9a8c\u8bc1\u201c\u603b\u662f\u4e00\u9879\u53ef\u9760\u7684\u65b9\u6cd5\u3002<del datetime=\"2025-04-08T16:47:47+00:00\">\u5417\uff1f<\/del><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h1>\u8ba1\u5212<\/h1>\n<p>\u6211\u4eec\u5c1d\u8bd5\u4ec5\u7528 IOS \u5b8c\u6210 led \u4ee3\u7801\u7684\u7f16\u5199\u3001\u7f16\u8bd1\u3001\u70e7\u5f55\u3001\u4e0a\u673a\u70b9\u4eae led\u3002\u5982\u679c\u6574\u4e2a\u8fc7\u7a0b\u90fd\u80fd\u591f\u987a\u5229\u8fdb\u884c\uff0c\u5219\u53ef\u4ee5\u8bf4\u660e\u5d4c\u5165\u5f0f\u7684\u5f00\u53d1\u7ba1\u7ebf\u90fd\u662f\u901a\u7684\u3002\u8fd9\u5728\u5b9e\u9645\u5de5\u4f5c\u4e2d\u53ef\u80fd\u6ca1\u4ec0\u4e48\u610f\u4e49\uff0c\u4f46\u5bf9\u5b66\u4e60\u63a2\u7d22\u800c\u8a00\uff0c\u5374\u7740\u5b9e\u6709\u8da3\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>\u8ba9\u8fc7\u7a0b\u8212\u670d\u4e9b<\/h1>\n<h2>\u8ba9 ish \u80fd\u591f\u8bfb\u53d6\u624b\u673a\u4e0a\u7684\u6587\u4ef6\u5939<\/h2>\n<p>\u9996\u5148\uff0c\u629b\u5f03\u5728 ish \u4e2d\u4f7f\u7528 vim \/ vi \u6765\u7f16\u5199\u3001\u4fee\u6539\u4ee3\u7801\u7684\u5ff5\u5934\uff0c\u4e0d\u7528\u90a3\u4e9b old school\u7684\u4e1c\u897f\uff1b\u6211\u4eec\u7528\u5176\u4ed6\u73b0\u4ee3\u5316\u7684\u7f16\u8f91\u5668\u3002\u4f46\u7531\u4e8e IOS \u6c99\u76d2\u673a\u5236\u7684\u9650\u5236\uff0cApp \u4e4b\u95f4\u662f\u4e0d\u80fd\u4e92\u76f8\u8bfb\u53d6\u5bf9\u65b9\u6587\u4ef6\u5939\u4e0b\u7684\u6587\u4ef6\u7684\uff0c\u4f46\u90fd\u53ef\u4ee5\u8bfb\u53d6\u00a0 \u201c<strong>\u6587\u4ef6<\/strong>\u201d\u8fd9\u4e2a\u201c\u7b2c\u4e09\u65b9\u201d app \u4e2d\u7684\u6587\u4ef6\u5939\u548c\u6587\u4ef6\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u4e2d\u8f6c\u6587\u4ef6\u5939\u6765 \u201c\u7ed5\u8fc7\u201d \u8fd9\u4e2a\u673a\u5236\u3002<\/p>\n<p><em>\u8fd9\u5c31\u50cf\u7531\u4e8e\u7f8e\u56fd\u5bf9\u6211\u4eec\u5f81\u6536\u9ad8\u5173\u7a0e\uff0c\u6211\u4eec\u5c31\u4e0d\u76f4\u63a5\u51fa\u53e3\u5230\u7f8e\u56fd\uff0c\u800c\u662f\u5148\u5c06\u8d27\u7269\u8f6c\u8fd0\u5230\u8d8a\u5357 \/ \u58a8\u897f\u54e5\u7b49\u7b49\u56fd\u5bb6\uff0c\u8d34\u4e0a\u5f53\u5730\u516c\u53f8\u7684\u724c\u5b50\uff0c\u4e2d\u8f6c\u4e00\u4e0b\uff0c\u501f\u6b64\u7ed5\u8fc7\u7f8e\u56fd\u7684\u9ad8\u5173\u7a0e\u3002<\/em><\/p>\n<p>\u6709\u4e86\u8fd9\u4e2a \u201c\u7b2c\u4e09\u65b9\u6587\u4ef6\u5939\u201d \u540e\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5176\u6302\u5728\u5230 ish \u4e2d\uff0c\u8ba9 ish \u80fd\u591f\u8bfb\u5230\u5b83\u91cc\u9762\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u8fd9\u91cc\uff0c\u6211\u4eec\u53ef\u4ee5\u5982\u6b64\u5b9e\u73b0\uff1a<\/p>\n<ul>\n<li>\u5728 ish \u4e2d cd \u5230 \/mnt \u8def\u5f84\u4e0b <code>cd \/mnt<\/code><\/li>\n<li>\u5728 <strong>mnt <\/strong>\u4e2d\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939 <code>mkdir documents<\/code><\/li>\n<li>\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u8fd0\u884c\uff1a<code>mount\u00a0 -t\u00a0 ios . documents<\/code> ,\u00a0 \u6b64\u65f6\uff0c\u7cfb\u7edf\u4f1a\u5f39\u51fa \u9009\u62e9\u5668\uff0c\u9009\u62e9\u4f60\u60f3\u8981\u53ef\u4ee5\u5728 ish \u201c\u770b\u5230\/\u8bbf\u95ee\u201d\u5230\u7684\u6587\u4ef6\u5939\uff0c\u5373\u53ef\u5c06\u6587\u4ef6\u5939\u6302\u5728\u5230 ish \u7684linux\u7cfb\u7edf\u91cc\u9762\uff0c\u65b9\u4fbf\u540e\u7ee7\u7684\u6587\u4ef6\u5171\u4eab\uff1b<\/li>\n<li>\u8fd9\u91cc\u662f\u64cd\u4f5c\u793a\u4f8b\u89c6\u9891\uff1b\u4ece\u89c6\u9891\u4e5f\u53ef\u4ee5\u53d1\u73b0\uff1a\u9664\u4e86\u624b\u673a\u5185\u7684\u6587\u4ef6\u5939\uff0c\u6211\u4eec\u751a\u81f3\u4e5f\u53ef\u4ee5\u5c06U\u76d8\u6302\u5728\u5230linux\u4e2d<div style=\"width: 160px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4211-1\" width=\"160\" height=\"390\" loop preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744134389-mount_folder_in_ish.mp4?_=1\" \/><a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744134389-mount_folder_in_ish.mp4\">https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744134389-mount_folder_in_ish.mp4<\/a><\/video><\/div><\/li>\n<\/ul>\n<p style=\"text-align: left;\">\u4f8b\u5982\u7ecf\u4e0a\u8ff0\u64cd\u4f5c \u6211\u4eec\u5c06<strong>\u624b\u673a<\/strong>\u4e2d\u7684 <strong>LINUX_FILES\u00a0<\/strong>\u901a\u8fc7\u6302\u8f7d\u5728\u5230 <strong>ish<\/strong> \u4e2d\u7684<strong> \/mnt\/documents<\/strong> \u4e0b\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5c06\u7f16\u8f91\u5668\u7f16\u5199\u7684\u6587\u4ef6\u5b58\u5230 <strong>LINUX_FILES <\/strong>\u4e2d\uff0c\u7136\u540e\u518d\u5230 <strong>ish<\/strong> \u4e2d \u5c06\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1\u3002<\/p>\n<figure id=\"attachment_4237\" aria-describedby=\"caption-attachment-4237\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744189717-page_1.png\" alt=\"IOS \u4e2d\uff0c\u5229\u7528 ish \u8fdb\u884ci.MX 6ull\u5f00\u53d1\u7684\u53ef\u884c\u6027\u63a2\u7d22\" title=\"\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4237 size-large\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744189717-page_1-945x1024.png\" alt=\"folder_mounted\" width=\"640\" height=\"694\" srcset=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744189717-page_1-945x1024.png 945w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744189717-page_1-277x300.png 277w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744189717-page_1-768x832.png 768w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744189717-page_1-1417x1536.png 1417w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744189717-page_1-1889x2048.png 1889w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-4237\" class=\"wp-caption-text\">folder_mounted<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h1>\u914d\u7f6eimx6ull\u5f00\u53d1\u5de5\u5177\u94fe<\/h1>\n<p>cmake\u5728\u4e0a\u6587\u4e2d\u5df2\u7ecf\u5b8c\u6210\u5b89\u88c5\uff0c\u90a3\u4e48\u6211\u4eec\u8fd8\u5269\u4e0b Arm\u5de5\u5177\u94fe \u4ee5\u53ca \u70e7\u5f55\u5de5\u5177\u94fe\u3002\u800c\u6211\u4eec\u77e5\u9053\uff0c<strong>ish<\/strong> \u7684 <strong>linux<\/strong> \u7cfb\u7edf\u662f <strong>Alpine Linux\u3002<\/strong>\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u5c1d\u8bd5\u641c\u7d22 alpine linux arm gcc toolchain\uff0c\u975e\u5e38\u5e78\u8fd0\u5730\uff0c\u6211\u4eec\u53d1\u73b0 Alpine Linux \u4f3c\u4e4e\u6709\u652f\u6301\u7684\u5b89\u88c5\u5305\u3002<\/p>\n<figure id=\"attachment_4220\" aria-describedby=\"caption-attachment-4220\" style=\"width: 512px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744136571-Snipaste_2025-04-09_02-22-11.png\" alt=\"IOS \u4e2d\uff0c\u5229\u7528 ish \u8fdb\u884ci.MX 6ull\u5f00\u53d1\u7684\u53ef\u884c\u6027\u63a2\u7d22\" title=\"\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4220\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744136571-Snipaste_2025-04-09_02-22-11-300x222.png\" alt=\"alpine linux arm gcc toolchain\" width=\"512\" height=\"379\" srcset=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744136571-Snipaste_2025-04-09_02-22-11-300x222.png 300w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744136571-Snipaste_2025-04-09_02-22-11-1024x759.png 1024w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744136571-Snipaste_2025-04-09_02-22-11-768x569.png 768w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744136571-Snipaste_2025-04-09_02-22-11-1536x1138.png 1536w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744136571-Snipaste_2025-04-09_02-22-11-2048x1517.png 2048w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><figcaption id=\"caption-attachment-4220\" class=\"wp-caption-text\">alpine linux arm gcc toolchain<\/figcaption><\/figure>\n<h2>\u5b89\u88c5\u4ea4\u53c9\u7f16\u8bd1\u5668 Arm dev toolchain<\/h2>\n<p>\u4e8e\u662f\uff0c\u6211\u4eec\u5230 <strong>ish <\/strong>\u4e2d\u641c\u7d22\u4e00\u4e0b<\/p>\n<p><code>apk search gcc-arm<\/code><\/p>\n<p>\u53d1\u73b0\u786e\u5b9e\u6709\u5bf9\u5e94\u7684 package ,\u4e8e\u662f\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165\u4e0b\u5217\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1b<\/p>\n<p><code>apk add gcc-arm-none-eabi-stage1<\/code><\/p>\n<h2>\u67e5\u770b toolchain \u5b89\u88c5\u5185\u5bb9<\/h2>\n<p>\u7b49\u5f85\u547d\u4ee4\u8fd0\u884c\u5b8c\u6210\uff0c\u6211\u4eec\u67e5\u770b\u4e0b\u5b89\u88c5\u54ea\u4e9b\u5de5\u5177\uff1a<\/p>\n<p><code>ls \/usr\/bin<\/code><\/p>\n<figure id=\"attachment_4221\" aria-describedby=\"caption-attachment-4221\" style=\"width: 256px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744137334-IMG_9797.png\" alt=\"IOS \u4e2d\uff0c\u5229\u7528 ish \u8fdb\u884ci.MX 6ull\u5f00\u53d1\u7684\u53ef\u884c\u6027\u63a2\u7d22\" title=\"\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4221\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744137334-IMG_9797-138x300.png\" alt=\"toolchain_installed\" width=\"256\" height=\"555\" srcset=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744137334-IMG_9797-138x300.png 138w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744137334-IMG_9797-472x1024.png 472w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744137334-IMG_9797-768x1665.png 768w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744137334-IMG_9797-709x1536.png 709w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744137334-IMG_9797-945x2048.png 945w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744137334-IMG_9797.png 1179w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/><\/a><figcaption id=\"caption-attachment-4221\" class=\"wp-caption-text\">toolchain_installed<\/figcaption><\/figure>\n<p>\u6211\u4eec\u53d1\u73b0\u7f16\u8bd1\u5de5\u5177\u3001\u94fe\u63a5\u5de5\u5177\u7b49\u7b49\u90fd\u6210\u529f\u5b89\u88c5\u3002\u90a3\u4e48\u6211\u4eec\u8fdb\u884c\u4e0b\u4e00\u6b65\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5b89\u88c5 imxdownload \u70e7\u5f55\u5de5\u5177<\/h2>\n<p>\u5c06\u4e3b\u677f\u4f9b\u5e94\u5546\u63d0\u4f9b\u7684\u70e7\u5f55\u5de5\u5177\u4e0b\u8f7d\u5230\u4e0a\u6587\u63d0\u5230\u7684 \u201c\u4e2d\u8f6c\u7ad9\u201d <strong>LINUX_FILES <\/strong>\u4e0b\u7684 burn_program \u6587\u4ef6\u5939\u4e2d\uff0c<\/p>\n<p>\u5e76\u8fdb\u884c\u7f16\u8bd1\uff1a<\/p>\n<p><code>gcc imxdownload.\u0441 -o imxdownload -L .\/<\/code><\/p>\n<p>\u6d4b\u8bd5\u8fd0\u884c\uff1a<\/p>\n<p><code>.\/imxdownload<\/code><\/p>\n<p>\u4e3a\u65b9\u4fbf\u540e\u7eed\u64cd\u4f5c\uff0c\u6211\u4eec\u5c06\u7f16\u8bd1\u597d\u7684\u7a0b\u5e8f\u94fe\u63a5\u5230 \/usr\/bin \u4e2d\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u53ea\u8f93\u5165 imxdownload \u8fd0\u884c\u7a0b\u5e8f\uff1b<\/p>\n<figure id=\"attachment_4222\" aria-describedby=\"caption-attachment-4222\" style=\"width: 256px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744138357-Screenshot-2025-04-09-at-02.42.46.jpeg\" alt=\"IOS \u4e2d\uff0c\u5229\u7528 ish \u8fdb\u884ci.MX 6ull\u5f00\u53d1\u7684\u53ef\u884c\u6027\u63a2\u7d22\" title=\"\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4222\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744138357-Screenshot-2025-04-09-at-02.42.46-138x300.jpeg\" alt=\"\u7f16\u8bd1\u70e7\u5f55\u5de5\u5177\" width=\"256\" height=\"555\" srcset=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744138357-Screenshot-2025-04-09-at-02.42.46-138x300.jpeg 138w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744138357-Screenshot-2025-04-09-at-02.42.46-472x1024.jpeg 472w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744138357-Screenshot-2025-04-09-at-02.42.46-768x1665.jpeg 768w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744138357-Screenshot-2025-04-09-at-02.42.46-709x1536.jpeg 709w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744138357-Screenshot-2025-04-09-at-02.42.46-945x2048.jpeg 945w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744138357-Screenshot-2025-04-09-at-02.42.46.jpeg 1179w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/><\/a><figcaption id=\"caption-attachment-4222\" class=\"wp-caption-text\">\u7f16\u8bd1\u70e7\u5f55\u5de5\u5177<\/figcaption><\/figure>\n<blockquote><p>\u770b\u8d77\u6765\uff0c<strong>\u76ee\uff01\u524d\uff01\u4e3a\uff01\u6b62\uff01 \u4e00\uff01\u5207\uff01\u6b63\uff01\u5e38\uff01\u975e\u5e38\u987a\u5229\uff01<\/strong>\u662f\u7684\uff0c\u4e8b\u60c5\u8fdb\u5c55\u7684\u987a\u5229\u7a0b\u5ea6\u51fa\u4e4e\u6211\u7684\u610f\u6599\uff0c\u800c\u6b64\u65f6\u7684\u6211\u8fd8\u4e0d\u77e5\u9053\u6f5c\u4f0f\u5728\u559c\u60a6\u80cc\u540e\u7684\uff0c\u662f\u600e\u6837\u201c\u51f6\u9669\u201d\u7684\u6076\u9b54\u4e0e\u65e0\u5948\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h1>\u7f16\u5199 LED \u706f\u4ee3\u7801\u548c makefile<\/h1>\n<p>\u5728\u4e0a\u9762\u7684\u51c6\u5907\u5de5\u4f5c\u90fd\u5b8c\u6210\u540e\uff0c\u6211\u89c9\u5f97\u53ea\u9700\u8981\u9a8c\u8bc1\u7f16\u8bd1\u548c\u70e7\u5f55\u6b65\u9aa4\u53ef\u4ee5\u8bc1\u660e\u624b\u673a\u4e5f\u662f\u53ef\u4ee5\u201c\u6781\u5177\u751f\u4ea7\u529b\u201d\uff0c\u800c\u4e14\u4e0d\u53ea\u662f\u89c6\u9891\u535a\u4e3b\u4eec\u559c\u7231\u7684\u201c\u526a\u8f91\u6e32\u67d3\u89c6\u9891\u201d\u5f0f\u7684\u751f\u4ea7\u529b\u3002\u4e8e\u662f\uff0c\u6211\u5c06\u4e4b\u524d\u5199\u597d\u7684<strong> LED \u70b9\u706f\u7a0b\u5e8f<\/strong>\u548c <strong>makefile<\/strong> \u4fdd\u5b58\u5230<strong> \/mnt\/documents<\/strong> \u4e2d\uff0c\u7136\u540e\u8fdb\u884c\u7f16\u8bd1\uff0c\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u9700\u8981\u5bf9<strong> makefile <\/strong>\u8fdb\u884c\u4fee\u6539, \u6839\u636e <strong>\/usr\/bin<\/strong> \u4e2d\u5df2\u5b89\u88c5\u7684 <strong>arm toolchain \u540d\u79f0<\/strong>\u4fee\u6539\u547d\u4ee4\uff1a<\/p>\n<figure id=\"attachment_4223\" aria-describedby=\"caption-attachment-4223\" style=\"width: 512px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744139867-Snipaste_2025-04-09_03-16-47.png\" alt=\"IOS \u4e2d\uff0c\u5229\u7528 ish \u8fdb\u884ci.MX 6ull\u5f00\u53d1\u7684\u53ef\u884c\u6027\u63a2\u7d22\" title=\"\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4223\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744139867-Snipaste_2025-04-09_03-16-47-300x106.png\" alt=\"Makefile\" width=\"512\" height=\"181\" srcset=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744139867-Snipaste_2025-04-09_03-16-47-300x106.png 300w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744139867-Snipaste_2025-04-09_03-16-47-768x271.png 768w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744139867-Snipaste_2025-04-09_03-16-47.png 866w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><figcaption id=\"caption-attachment-4223\" class=\"wp-caption-text\">Makefile<\/figcaption><\/figure>\n<p>\u8fd9\u91cc\uff0c<strong>burn<\/strong> \u7684\u90e8\u5206\u4e0d\u662f\u5fc5\u987b\u7684\uff0c\u4f46\u6211\u6dfb\u52a0\u5230\u6b64\u5904\u662f\u4e3a\u4e86\u540e\u7eed\u64cd\u4f5c\u7684\u8fde\u7eed\u6027\u548c\u4e00\u81f4\u6027\uff0c\u907f\u514d\u5728\u540c\u7684\u6587\u4ef6\u5939\u4e2d\u6765\u56de\u5207\u6362\u3002\u540c\u65f6\uff0c\u4e0a\u6587\u4e2d\uff0c\u6211\u4eec\u8fdb\u884c\u6587\u4ef6\u5939\u6302\u8f7d\u7684\u65f6\u5019\uff0c\u89c6\u9891\u662f\u4ee5 U\u76d8\u8def\u5f84\u4e3a\u4f8b\u5b50\u7684\uff0c\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u5176\u5199\u5728 makefile \u4e2d\u7684 burn \u90e8\u5206\uff0c \u610f\u601d\u662f\u901a\u8fc7 imxdownload \u7a0b\u5e8f\uff0c\u5c06 \u7f16\u8bd1\u597d\u7684 led.bin \u7a0b\u5e8f \u70e7\u5f55 \u5230 U\u76d8\uff08\/mnt\/USB-A\uff09\u3002<\/p>\n<h3>\u7f16\u8bd1<\/h3>\n<p><code>make<\/code><\/p>\n<p>\u8fd0\u884c\u6210\u529f<\/p>\n<figure id=\"attachment_4225\" aria-describedby=\"caption-attachment-4225\" style=\"width: 256px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744140736-IMG_9798.png\" alt=\"IOS \u4e2d\uff0c\u5229\u7528 ish \u8fdb\u884ci.MX 6ull\u5f00\u53d1\u7684\u53ef\u884c\u6027\u63a2\u7d22\" title=\"\" data-rel=\"lightbox-image-5\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4225\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744140736-IMG_9798-138x300.png\" alt=\"makefile\u7f16\u8bd1\" width=\"256\" height=\"555\" srcset=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744140736-IMG_9798-138x300.png 138w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744140736-IMG_9798-472x1024.png 472w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744140736-IMG_9798-768x1665.png 768w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744140736-IMG_9798-709x1536.png 709w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744140736-IMG_9798-945x2048.png 945w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744140736-IMG_9798.png 1179w\" sizes=\"auto, (max-width: 256px) 100vw, 256px\" \/><\/a><figcaption id=\"caption-attachment-4225\" class=\"wp-caption-text\">makefile\u7f16\u8bd1<\/figcaption><\/figure>\n<p>\u6b64\u65f6\uff0c\u6211\u4eec\u5c06U\u76d8\u8fde\u63a5\u4e0a\u624b\u673a\u540e\u8fd0\u884c\u547d\u4ee4\u8fdb\u884c\u70e7\u5f55\uff1a<\/p>\n<p><code>make burn<\/code><\/p>\n<p>\u8fd0\u884c\u5931\u8d25\uff1a<\/p>\n<figure id=\"attachment_4226\" aria-describedby=\"caption-attachment-4226\" style=\"width: 225px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4226\" src=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744141278-IMG_9897-138x300.png\" alt=\"make\u70e7\u5f55\" width=\"225\" height=\"488\" srcset=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744141278-IMG_9897-138x300.png 138w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744141278-IMG_9897-472x1024.png 472w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744141278-IMG_9897-768x1665.png 768w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744141278-IMG_9897-709x1536.png 709w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744141278-IMG_9897-945x2048.png 945w, https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744141278-IMG_9897.png 1179w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><figcaption id=\"caption-attachment-4226\" class=\"wp-caption-text\">make\u70e7\u5f55<\/figcaption><\/figure>\n<p>\u8fd9\u91cc\u7684\u539f\u56e0\u662f imxdownload.c \u4e2d\u6784\u5efa\u70e7\u5f55\u547d\u4ee4\u4e2d\u7528\u5230\u7684 dd \u547d\u4ee4\u5728 alpine linux \u4e2d iflag \/ oflag \u5e76\u6ca1\u6709\u652f\u6301 dsync \u53c2\u6570<\/p>\n<div class=\"dm-code-snippet dark no-background no-background-mobile dm-normal-version\" style=\"background-color:#abb8c3;\" snippet-height=\"\">\n\t\t\t<div class=\"control-language\">\n                <div class=\"dm-buttons\">\n                    <div class=\"dm-buttons-left\">\n                        <div class=\"dm-button-snippet red-button\"><\/div>\n                        <div class=\"dm-button-snippet orange-button\"><\/div>\n                        <div class=\"dm-button-snippet green-button\"><\/div>\n                    <\/div>\n                    <div class=\"dm-buttons-right\">\n                        <a id=\"dm-copy-raw-code\">\n                        <span class=\"dm-copy-text\">Copy Code<\/span>\n                        <span class=\"dm-copy-confirmed\" style=\"display:none\">Copied<\/span>\n                        <span class=\"dm-error-message\" style=\"display:none\">Use a different Browser<\/span><\/a>\n                    <\/div>\n                <\/div>\n                <pre class=\"no-line-numbers\"><code id=\"dm-code-raw\" class=\"no-wrap language-shell\"><\/p>\n<pre class=\"dm-pre-admin-side\">\/* 143\u884c \u6784\u5efa\u70e7\u5199\u7684shell\u547d\u4ee4 *\/\r\ncmdbuf = malloc(SHELLCMD_LEN);\r\nsprintf(cmdbuf, \"sudo dd iflag=dsync oflag=dsync if=load.imx of=%s bs=512 seek=2\",argv[2]);\r\nprintf(\"Download load.imx to %s\u00a0 ......\\r\\n\", argv[2]);<\/pre>\n<p><\/code><\/pre>\n\t\t\t<\/div>\n        <\/div>\n<h1>\u4e00\u6b21\u6ce8\u5b9a\u4e0d\u6210\u529f\u7684\u5c1d\u8bd5<\/h1>\n<p>\u540e\u6765\uff0c\u901a\u8fc7\u4fee\u6539 <strong>dsync<\/strong> \u53c2\u6570\u4e3a <strong>aplpine linux <\/strong>\u652f\u6301\u7684 <strong>direct<\/strong> \u540e\u7684 <strong>imxdownload.c<\/strong> \u5c06\u91cd\u65b0\u7f16\u8bd1\u540e\uff0c\u6210\u529f\u5c06\u7a0b\u5e8f\u70e7\u5f55\u5230U\u76d8\u4e2d\u3002\u4f46\u662f\uff0c\u8fd9\u6837\u70e7\u5f55\u7684\u6587\u4ef6\uff0c\u771f\u7684\u80fd\u8ba9 led \u70b9\u4eae\u5417\uff1f\u7ea6\u6478\u662f\u4e0d\u884c\u7684\u3002<\/p>\n<p>\u56e0\u4e3a\uff0c\u5728\u5904\u7406 dsync \u53c2\u6570\u9519\u8bef\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6839\u636e deepseek\/chatgpt \u7684\u56de\u7b54\u4ee5\u53ca\u67e5\u9605\u7684\u8d44\u6599\u8868\u660e\uff1a<\/p>\n<ol>\n<li>\u6302\u8f7d\u8def\u5f84\uff08\u5982<strong>\/mnt\/USB-A<\/strong>\uff09\u901a\u5e38\u6307\u6587\u4ef6\u7cfb\u7edf\uff0c\u800c\u70e7\u5f55\u9700\u76f4\u63a5\u64cd\u4f5c\u5757\u8bbe\u5907\uff08\u5982<strong>\/dev\/sdd<\/strong>\uff09;<\/li>\n<li>dsync \u7684\u4f5c\u7528\u662f\u5f3a\u5236\u6bcf\u6b21\u8bfb\u5199\u64cd\u4f5c\u76f4\u63a5\u5199\u5165\u7269\u7406\u8bbe\u5907\uff0c<strong>\u7ed5\u8fc7\u7cfb\u7edf\u7f13\u5b58<\/strong>\uff0c\u786e\u4fdd\u6570\u636e\u7acb\u5373\u6301\u4e45\u5316\u3002\u6539\u6210 direct \u540e\uff0c\u6570\u636e\u53ef\u80fd\u6682\u5b58\u4e8e\u7f13\u5b58\uff0c\u672a\u7acb\u5373\u5199\u5165\u8bbe\u5907\uff0c\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u6216\u70e7\u5f55\u4e0d\u5b8c\u6574(<a href=\"https:\/\/unix.stackexchange.com\/questions\/508701\/dd-command-oflag-direct-and-sync-flags\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\" >ref<\/a>);<\/li>\n<\/ol>\n<p>\u540e\u6765\uff0c\u6211\u8fdb\u5165 ish \u7684\u5b98\u65b9 discord \u7fa4\uff1b\u786e\u5b9a\u4e86ish \u65e0\u6cd5\u76f4\u63a5\u5c06U\u76d8\u81ea\u52a8\u6302\u8f7d\u5230<strong> \/dev<\/strong> \uff0c\u4e5f\u6ca1\u6709\u76f8\u5173\u7684\u5f00\u53d1\u8ba1\u5212\u3002\u8fd9\u4f3c\u4e4e\u4e5f\u610f\u5473\u7740\uff0c\u6211\u4eec\u7684\u63a2\u7d22\u4e4b\u65c5\u5c31\u53ea\u80fd\u5c31\u6b64\u6b62\u6b65\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5c3d\u7ba1\u5982\u6b64\uff0c\u6211\u4eec\u8fd8\u662f\u987a\u5229\u5730\u8d70\u5b8c\u4e86\u8fd9\u6b21\u65c5\u9014\u7684\u7edd\u5927\u90e8\u5206\u8def\u7a0b\u3002<\/p>\n<p>\u81f3\u6b64\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>\u9644\u5f55<\/h1>\n<p>\u70e7\u5f55\u5de5\u5177\u6e90\u7801\uff1a<a class=\"download\" href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1743795799-imxdownload.zip\" rel=\"external\"\r\ntarget=\"_blank\" title=\"\u4e0b\u8f7d\u5730\u5740\">\r\n<span><i class=\"fa-solid fa-download\"><\/i>Download<\/span><\/a><\/p>\n<p>LED\u706f\u6e90\u7801\uff1a<a class=\"download\" href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1743795797-01_led.zip\" rel=\"external\"\r\ntarget=\"_blank\" title=\"\u4e0b\u8f7d\u5730\u5740\">\r\n<span><i class=\"fa-solid fa-download\"><\/i>Download<\/span><\/a><\/p>\n<p>\u4fee\u6539\u540e\u7684Makefile: <a class=\"download\" href=\"https:\/\/10ccc.cc\/wp-content\/uploads\/2025\/04\/1744140135-Makefile.zip\" rel=\"external\"\r\ntarget=\"_blank\" title=\"\u4e0b\u8f7d\u5730\u5740\">\r\n<span><i class=\"fa-solid fa-download\"><\/i>Download<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u7528\u4e00\u676f\u5496\u5561\u56e0\uff0c\u4f53\u9a8c\u4e86\u4e00\u6b21\u547d\u5b9a\u7684\u5931\u8d25\u65c5\u7a0b\uff0c\u4f46\u671f\u95f4\u9047\u89c1\u7684\u5854\u5c16\uff0c\u5fc6\u8bb0\u957f\u65b0\u3002 \u7eed \u7ee7\u4e0a\u7bc7\u00a0 \u300a\u624b\u673a\u4e0a\u901a\u8fc7 iSh \u4f7f\u7528\u7684 Alpine  &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4215,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[120,84,82],"tags":[141,142,139,131,132,140],"class_list":["post-4211","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app","category-funny","category-82","tag-arm","tag-arm-gcc-toolchain","tag-imx6ull","tag-ish","tag-ish-shell","tag-140"],"_links":{"self":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts\/4211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4211"}],"version-history":[{"count":17,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts\/4211\/revisions"}],"predecessor-version":[{"id":4489,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/posts\/4211\/revisions\/4489"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=\/wp\/v2\/media\/4215"}],"wp:attachment":[{"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/10ccc.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}