{"id":1499,"date":"2024-06-23T10:25:01","date_gmt":"2024-06-23T02:25:01","guid":{"rendered":"https:\/\/blog.ttwow.top\/?p=1499"},"modified":"2026-06-19T17:56:27","modified_gmt":"2026-06-19T09:56:27","slug":"%e6%af%94%e7%89%b9%e9%ad%94%e7%9b%92%ef%bc%88%e7%a7%81%e5%ae%b6%e4%ba%91%ef%bc%89%e5%ae%89%e8%a3%85armbian","status":"publish","type":"post","link":"https:\/\/blog.ttwow.top\/?p=1499","title":{"rendered":"\u6bd4\u7279\u9b54\u76d2(\u79c1\u5bb6\u4e91)\u5b89\u88c5armbian\u548ccasaos"},"content":{"rendered":"<h2>\u5b89\u88c5<\/h2>\n<h3>1.\u5b89\u88c5atv6<\/h3>\n<p>\u5b89\u88c5\u5207\u6362\u5361\u8f7d\u7cfb\u7edf<br \/>\n\u9009\u62e9\u65b0\u53f8\u673a<br \/>\n\u51fa\u73b0\u5f39\u7a97\u7533\u8bf7root\u6743\u9650\uff0c\u9009\u62e9\u6c38\u4e45\u6388\u6743\u3002\u76d2\u5b50\u4f1a\u81ea\u52a8\u91cd\u542f\uff0c\u8fdb\u5165u\u76d8\u4e0a\u7684ubuntu\u7cfb\u7edf<\/p>\n<h3>2.\u5b89\u88c5armbian5.7<\/h3>\n<p>\u7528rufus\u4e4b\u7c7b\u8f6f\u4ef6\u5237\u5165Armbian_5.77_Aml-s905_Ubuntu_bionic_default_5.0.2_20190401.img\u8fd9\u4e2a\u955c\u50cf\u3002<br \/>\nu\u76d8\u955c\u50cf\u5199\u597d\u4ee5\u540e\uff0c\u7528disk genuis\u6216\u8005\u5176\u5b83\u652f\u6301\u7684\u8f6f\u4ef6\u8bbf\u95eeu\u76d8\u4e0a\u7684\u6587\u4ef6\uff0c\u4fee\u6539boot\u76ee\u5f55\u4e0b\u7684uEnv.ini\u6587\u4ef6\uff0c\u4fee\u6539\u5176\u4e2d\u5185\u5bb9\uff0c\u5c06dtb\/meson-gxl-s905x-khadas-vim.dtb\u6539\u6210dtb\/meson-gxl-s905x-p212.dtb\uff0c\u4fdd\u5b58\u9000\u51fa<\/p>\n<p>\u628a\u5207\u6362\u5361\u8f7d\u7cfb\u7edfV1.0.apk\u548carmbian\u5b98\u65b9\u4e0b\u8f7d\u7684Armbian_24.2.1_Khadas-vim1_bookworm_current_6.6.16_minimal.img\u955c\u50cf\u6587\u4ef6\u590d\u5236\u5230u\u76d8\u91cc\u3002<\/p>\n<h3>3.\u5b89\u88c5Armbian_24<\/h3>\n<p><code>dd if=\/mnt\/Armbian_24.2.1_Khadas-vim1_bookworm_current_6.6.16_minimal.img of=\/dev\/mmcblk1<\/code><\/p>\n<h2>\u6302\u8f7d\u78c1\u76d8<\/h2>\n<p>\u6302\u8f7dU\u76d8\u6216\u8005\u79fb\u52a8\u786c\u76d8<\/p>\n<pre><code class=\"language-shell\">root@CumeBox2:~# mkdir \/mnt\/sda1\nroot@CumeBox2:~# lsblk\nNAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT\nsda            8:0    0  14.9G  0 disk \nmmcblk0      179:0    0   7.3G  0 disk \n\u2514\u2500mmcblk0p1  179:1    0   7.1G  0 part \/\nmmcblk0boot0 179:32   0     4M  1 disk \nmmcblk0boot1 179:64   0     4M  1 disk \nzram0        252:0    0 479.9M  0 disk [SWAP]\nzram1        252:1    0    50M  0 disk \/var\/log\nroot@CumeBox2:~# blkid \/dev\/sda\n\/dev\/sda: PTUUID=&quot;cb9b2129&quot; PTTYPE=&quot;dos&quot;\nroot@CumeBox2:~# mkfs.ext4 \/dev\/sda #\u683c\u5f0f\u5316\u786c\u76d8EXT4\nmke2fs 1.45.5 (07-Jan-2020)\nFound a dos partition table in \/dev\/sda\nProceed anyway? (y,N) y\n\u2026\u2026\u2026\u2026\nroot@CumeBox2:~# file -s \/dev\/sda\n\/dev\/sda: Linux rev 1.0 ext4 filesystem data, UUID=79fae205-4f2e-403c-94a7-a2bb6dd5d394 (extents) (64bit) (large files) (huge files)\nroot@CumeBox2:~# mount \/dev\/sda \/mnt\/sda1\nroot@CumeBox2:~# blkid \/dev\/sda\n\/dev\/sda: UUID=&quot;79fae205-4f2e-403c-94a7-a2bb6dd5d394&quot; TYPE=&quot;ext4&quot;\nroot@CumeBox2:~# nano \/etc\/fstab<\/code><\/pre>\n<p>\u589e\u52a0\u4e00\u884c\u4ee3\u7801<\/p>\n<pre><code class=\"language-shell\">UUID=79fae205-4f2e-403c-94a7-a2bb6dd5d394 \/mnt\/sda1 ext4 defaults 0 0<\/code><\/pre>\n<p>\/dev\/sda: UUID=&quot;95a5ecc0-0c02-418b-84f3-11b23ec672af&quot; BLOCK_SIZE=&quot;4096&quot; TYPE=&quot;ext4&quot;<\/p>\n<p>\u7136\u540e\u91cd\u542f\u4e0b<\/p>\n<h2>\u5378\u8f7d\u78c1\u76d8<\/h2>\n<p>\u5378\u8f7d\u5df2\u6302\u8f7d\u7684\u786c\u76d8\u6216\u5206\u533a\uff0c\u4f7f\u7528umount\u547d\u4ee4\uff0c\u5e76\u6307\u5b9a\u6302\u8f7d\u70b9\u6216\u8bbe\u5907\u540d\u79f0\uff1a<br \/>\n<code>umount [\u6302\u8f7d\u70b9\u6216\u8bbe\u5907\u540d\u79f0]<\/code><br \/>\n\u4f8b\u5982\uff0c\u5378\u8f7d\u4e4b\u524d\u6302\u8f7d\u7684\/mnt\/mydisk\uff1a<br \/>\n<code>sudo umount \/mnt\/mydisk<\/code><br \/>\n\u5982\u679c\u8bbe\u5907\u6b63\u5728\u88ab\u4f7f\u7528\uff0c\u53ef\u80fd\u9700\u8981\u5f3a\u5236\u5378\u8f7d\uff0c\u4f46\u8fd9\u6837\u505a\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002\u4f7f\u7528-f\u9009\u9879\u8fdb\u884c\u5f3a\u5236\u5378\u8f7d\uff1a<br \/>\n<code>sudo umount -f \/mnt\/mydisk<\/code><br \/>\n\u6ce8\u610f\uff1a\u5c3d\u91cf\u907f\u514d\u5f3a\u5236\u5378\u8f7d\uff0c\u9664\u975e\u786e\u8ba4\u6ca1\u6709\u5176\u4ed6\u8fdb\u7a0b\u5728\u4f7f\u7528\u8be5\u8bbe\u5907\u4e0a\u7684\u6587\u4ef6\u3002<\/p>\n<h2>\u6ce8\u610f \u6bd4\u7279\u7c73\u76d2\u60f3\u8981\u5c4f\u5e55\u663e\u793a\u548c\u98ce\u6247\u8f6c\u52a8\u73b0\u9636\u6bb5\u53ea\u80fd\u5b89\u88c5Armbian_21.08.1_Ubuntu_CumeBox2_5.10.602<\/h2>\n<h3>\u98ce\u6247\u8bbe\u7f6e<\/h3>\n<p>sj_temp<\/p>\n<pre><code class=\"language-shell\">#!\/bin\/bash\nsj_temp_pid=&quot;$(cat \/var\/run\/sj_temp.pid 2&gt;\/dev\/null)&quot;\nget_name=&quot;$(cat \/proc\/$sj_temp_pid\/comm 2&gt;\/dev\/null)&quot;\n[ &quot;$get_name&quot; = &quot;${0##*\\\/}&quot; ]&amp;&amp;{\necho &quot;\u811a\u672c\u5df2\u7ecf\u6267\u884c\uff0c\u8bf7\u52ff\u91cd\u590d\u6267\u884c\u2026\u2026&quot;\nexit 0\n}\n[ -r \/sys\/class\/hwmon\/hwmon0\/temp1_input ]&amp;&amp;tempfile=&quot;\/sys\/class\/hwmon\/hwmon0\/temp1_input&quot;\n[ -r \/sys\/class\/thermal\/thermal_zone0\/temp ]&amp;&amp;tempfile=&quot;\/sys\/class\/thermal\/thermal_zone0\/temp&quot;\n[ -L \/sys\/class\/gpio\/gpiochip501 ]&amp;&amp;gpio_id=504||gpio_id=148\n{\necho &quot;$BASHPID&quot; &gt;\/var\/run\/sj_temp.pid\n[ &quot;$(cat \/sys\/class\/thermal\/cooling_device1\/type)&quot; = &quot;gpio-fan&quot; ]&amp;&amp;statusfile=&quot;\/sys\/class\/thermal\/cooling_device1\/cur_state&quot;||{\nstatusfile=&quot;\/sys\/class\/gpio\/gpio$gpio_id\/value&quot;\necho &quot;$gpio_id&quot; &gt;\/sys\/class\/gpio\/export \necho &quot;out&quot; &gt;\/sys\/class\/gpio\/gpio$gpio_id\/direction\necho &quot;0&quot; &gt;\/sys\/class\/gpio\/gpio$gpio_id\/value\n}\nwhile :\ndo\ncpu_temp=$(cat $tempfile)\nf_status=$(cat $statusfile)\n[ &quot;$cpu_temp&quot; -ge &quot;60000&quot; -a &quot;$f_status&quot; = &quot;0&quot; ]&amp;&amp;echo &quot;1&quot; &gt;$statusfile\n[ &quot;$cpu_temp&quot; -lt &quot;50000&quot; -a &quot;$f_status&quot; = &quot;1&quot; ]&amp;&amp;echo &quot;0&quot; &gt;$statusfile\nsleep 10\ndone\n} &gt;\/dev\/null 2&gt;&amp;1 &amp;\n<\/code><\/pre>\n<p>\u6b64\u811a\u672c\u5728Ubuntu\/EmuELEC \u4e0a\u9762\u6d4b\u8bd5\u901a\u8fc7\uff0c\u5176\u4ed6\u7cfb\u7edf\u914c\u60c5\u4fee\u6539\uff01<br \/>\n1.\u5c06sj_temp\u6587\u4ef6\u590d\u5236\u5230\/bin\/\u76ee\u5f55\u4e0b\u9762<br \/>\n2.\u7ed9sj_temp\u6587\u4ef6\u6267\u884c\u6743\u9650:chmod +x \/bin\/sj_temp<br \/>\n3.\u5f00\u673a\u81ea\u52a8\u8fd0\u884c\uff0c\u81ea\u5df1\u5728\/etc\/rc.local\u91cc\u9762\u7684\u201cexit 0\u201d\u7684\u4e0a\u4e00\u884c\u52a0\u5165\u201csj_temp\u201d\u5373\u53ef\u3002<\/p>\n<p>\u7acb\u5373\u6267\u884c \u76f4\u63a5\u5728\u7ec8\u7aef\u8f93\u5165 sj_temp \u5373\u53ef\u6267\u884c<\/p>\n<p>\u6d4b\u8bd5 \u63d0\u4f9b\u4e2acpu\u538b\u529b\u6d4b\u8bd5\uff0c\u80fd\u8ba9\u79c1\u5bb6cpu\u6ee1\u8f7d<br \/>\nfor i in <code>seq 1 4<\/code>; do dd if=\/dev\/zero of=\/dev\/null &amp; done<\/p>\n<p>\u7ed3\u675f\u65b9\u6cd5 \u6267\u884c&quot;killall dd&quot;\u5373\u53ef<\/p>\n<h2>\u5907\u4efd<\/h2>\n<p><code>dd bs=1M count=2000 if=\/dev\/mmcblk1 of=\/mnt\/ws1608-backup.img<\/code><br \/>\nbs\u7528\u6765\u8bbe\u5b9a\u6bcf\u6b21\u8bfb\u5199\u7684\u6570\u636e\u91cf\uff0c\u8bfb\u53d6\u6307\u5b9a\u6570\u636e\u91cf\u4e3a\u4e00\u4e2a\u5757\uff08block\uff09\u5230\u7f13\u5b58\uff0c\u7136\u540e\u4ece\u7f13\u5b58\u628a\u6307\u5b9a\u7684\u6570\u636e\u91cf\u5199\u5230\u5907\u4efd\u76d8\u3002\u65e0\u8bba\u662fu\u76d8\u3001hdd\u8fd8\u662fssd\uff0c\u4e00\u822c\u5927\u6587\u4ef6\u7684\u8fde\u7eed\u8bfb\u5199\u901f\u5ea6\u90fd\u662f\u8fdc\u8fdc\u9ad8\u4e8e\u5c0f\u6587\u4ef6\u7684\u968f\u673a\u8bfb\u5199\uff0c\u6240\u4ee5\u8fd9\u4e2a\u503c\u53ef\u4ee5\u8bbe\u7f6e\u7684\u5927\u4e00\u4e9b\u3002\u4f46\u4e5f\u8981\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\uff0c\u6bd4\u5982\u5c0f\u6587\u4ef6\u7279\u522b\u591a\u65f6\uff0c\u53ef\u4ee5\u5206\u5f00\u8bbe\u5b9a\u8bfb\u7684\u6570\u636e\u91cf\uff08ibs\uff09\u548c\u5199\u7684\u6570\u636e\u91cf\uff08obs\uff09\uff0c\u66f4\u597d\u7684\u4f18\u5316\u901f\u5ea6\u3002<\/p>\n<p>count\u7528\u6765\u8bbe\u5b9a\u8bfb\u53d6\u591a\u5c11\u4e2a\u5757\uff08block\uff09\u4ee5\u540e\u505c\u6b62\u8bfb\u53d6\u3002\u5982\u679c\u8fd9\u4e2a\u503c\u7559\u7a7a\uff0c\u9ed8\u8ba4\u5168\u76d8\u514b\u9686\uff0c\u4e5f\u5c31\u610f\u5473\u7740\u539f\u76d820G\uff0c\u751f\u6210\u7684\u955c\u50cf\u4e5f\u662f20G\uff0c\u539f\u76d8\u5982\u679c200G\uff0c\u955c\u50cf\u5c31\u662f200G\uff0c\u6240\u8c131:1\u590d\u5236\u3002\u4f46\u5b9e\u9645\u5176\u5b9e\u53ea\u9700\u8981\u514b\u9686\u6570\u636e\u5c31\u53ef\u4ee5\u4e86\uff0c\u6ca1\u6709\u4f7f\u7528\u7684\u7a7a\u767d\u7a7a\u95f4\u4e0d\u9700\u8981\u5199\u5230\u955c\u50cf\u91cc\uff0c\u6bd4\u5982200G\u7684\u76d8\uff0c\u5b9e\u9645\u53ea\u4f7f\u7528\u4e868GB\uff0c\u5047\u5b9abs=1M\uff0c\u8ba1\u7b97\u4ee5\u540e\u53ef\u5f97count\u5e94\u8be5\u662f8192\uff0c\u8003\u8651\u5230\u7a7a\u95f4\u5197\u4f59\uff0c\u53ef\u4ee5\u8bbe\u5b9acount=9000\uff0c\u90a3\u751f\u6210\u7684\u955c\u50cf\u6587\u4ef6\u5c31\u662f9000M\uff0c\u4e0d\u4f1a\u51fa\u73b0\u65e0\u610f\u4e49\u7684\u7a7a\u767d\u7a7a\u95f4\u5360\u7528\u955c\u50cf\u4f53\u79ef\u3002<\/p>\n<p>\u53e6\u5916\u8fd8\u53ef\u4ee5\u6574\u5408xz\u3001gzip\u4e4b\u7c7b\u7684\u538b\u7f29\u547d\u4ee4\uff0c\u628a\u955c\u50cf\u751f\u6210\u4e3a\u538b\u7f29\u5305\uff0c\u51cf\u5c11\u955c\u50cf\u6587\u4ef6\u7684\u4f53\u79ef\u3002\u4f46\u8981\u6ce8\u610f\uff0c\u538b\u7f29\u9700\u8981cpu\u7b97\u529b\u6027\u80fd\u7684\u652f\u6301\uff0c\u5982\u679ccpu\u6027\u80fd\u5b71\u5f31\uff08\u6bd4\u5982\u6211\u7684ws1508\uff09\uff0c\u4f7f\u7528xz\u547d\u4ee4\u4ee5\u540e\u4f1a\u7206\u70b8\u5f0f\u7684\u589e\u52a0dd\u5236\u4f5c\u955c\u50cf\u7684\u65f6\u95f4\u3002\u6240\u4ee5cpu\u6027\u80fd\u5f31\u7684\u5c31\u4e0d\u7528\u8003\u8651\u6574\u5408xz\u547d\u4ee4\u3002<\/p>\n<p>xz\u547d\u4ee4\u53ef\u4ee5\u901a\u8fc7-T\u589e\u52a0\u7ebf\u7a0b\u6570\uff0c\u9ed8\u8ba4\u662f1\u3002<\/p>\n<h2>\u5b89\u88c5casaos<\/h2>\n<p><code>curl -fsSL https:\/\/get.casaos.io | sudo bash<\/code><\/p>\n<h3>\u53c2\u8003\u8d44\u6599<\/h3>\n<p><a href=\"https:\/\/ruohai.wang\/202404\/cumebox2-install-armbian\/\">https:\/\/ruohai.wang\/202404\/cumebox2-install-armbian\/<\/a><br \/>\n<a href=\"https:\/\/ruohai.wang\/202307\/linux-use-dd-to-clone-disk\/\">https:\/\/ruohai.wang\/202307\/linux-use-dd-to-clone-disk\/<\/a><br \/>\n<a href=\"https:\/\/www.bilibili.com\/read\/cv34060030\/?jump_opus=1\">https:\/\/www.bilibili.com\/read\/cv34060030\/?jump_opus=1<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5 1.\u5b89\u88c5atv6 \u5b89\u88c5\u5207\u6362\u5361\u8f7d\u7cfb\u7edf \u9009\u62e9\u65b0\u53f8\u673a \u51fa\u73b0\u5f39\u7a97\u7533\u8bf7root\u6743\u9650\uff0c\u9009\u62e9\u6c38\u4e45\u6388\u6743\u3002\u76d2\u5b50\u4f1a\u81ea\u52a8\u91cd\u542f\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[136],"tags":[150],"class_list":["post-1499","post","type-post","status-publish","format-standard","hentry","category-notes-misc","tag-armbian"],"_links":{"self":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1499"}],"version-history":[{"count":15,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1499\/revisions"}],"predecessor-version":[{"id":1539,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1499\/revisions\/1539"}],"wp:attachment":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}