{"@attributes":{"version":"2.0"},"channel":{"title":"Ratizux","description":"\u5199\u535a\u5ba2\u662f\u79cd\u53db\u9006\u65b9\u5f0f\u3002<br\/>\u4f7f\u7528 CC BY-SA 4.0\n","link":"https:\/\/ratizux.github.io\/","pubDate":"Mon, 28 Sep 2026 01:12:18 +0000","lastBuildDate":"Mon, 28 Sep 2026 01:12:18 +0000","generator":"Jekyll v3.10.0","item":[{"title":"\u7ea2\u7c73 Note 4X (mido) + Ubuntu 26.04","description":"<p>\u7fa4\u53cb\u4e00\u76f4\u8bf4\u8981\u62ff\u65e7\u624b\u673a\u4ee3\u66ff\u5f00\u53d1\u677f\u88c5\u667a\u80fd\u5c0f\u8f66\u4e0a\u3002\u76f4\u63a5\u7ed9\u4e0d\u7528\u7684\u7ea2\u7c73 Note 4X \u5237\u4e0a\u7ed9\u4ed6\u597d\u4e86\u3002<\/p>\n\n<h1 id=\"\u51c6\u5907\">\u51c6\u5907<\/h1>\n\n<p>\u7ea2\u7c73 Note 4X \u539f\u7248\u7cfb\u7edf\u57fa\u672c\u4e0a\u7b26\u5408\u4e00\u822c Android \u624b\u673a\u7684\u5f15\u5bfc\u65b9\u5f0f\uff0c\u5185\u6838\u4ec0\u4e48\u7684\u548c initramfs \u5c01\u88c5\u4e00\u4e0b\u653e boot \u5206\u533a\u91cc\uff0c\u7531\u524d\u4e00\u7ea7\u5f15\u5bfc\u7a0b\u5e8f\u542f\u52a8\u3002\u5982\u679c\u4e0d\u52a8\u524d\u4e00\u7ea7\u5f15\u5bfc\u7a0b\u5e8f\uff0c\u7ed9 Ubuntu \u7684\u5185\u6838\u548c initramfs \u6309\u7167 Android Boot Image \u7684\u683c\u5f0f\u653e\u5230 boot \u5206\u533a\u91cc\u6309\u7406\u8bf4\u5c31\u884c\u4e86\uff0c\u4e0d\u8fc7\u5728\u5c4f\u5e55\u9762\u677f\u578b\u53f7\u8bc6\u522b\u4e4b\u7c7b\u7684\u7ec6\u8282\u4e0a\u591a\u5c11\u4f1a\u51fa\u95ee\u9898\u3002\u6211\u5012\u662f\u4e0d\u77e5\u9053\u4e0b\u6e38\u5185\u6838\u662f\u600e\u4e48\u505a\u7684\uff0c\u636e\u8bf4\u65b9\u6cd5\u6bd4\u8f83\u626d\u66f2\u3002postmarketOS \u7684\u65b9\u6cd5\u662f\u5728 boot \u5206\u533a\u7684\u4f4d\u7f6e\u88c5\u4e2a lk2nd\uff0c\u7531 lk2nd \u518d\u62c9\u8d77\u5185\u6838\uff0c\u5728\u62c9\u8d77\u5185\u6838\u4e4b\u524d\u5b83\u4f1a\u4ece\u524d\u4e00\u7ea7\u5f15\u5bfc\u7a0b\u5e8f\u90a3\u91cc\u83b7\u53d6\u9762\u677f\u578b\u53f7\uff0c\u518d\u6539 Device Tree \u91cc\u5bf9\u5e94\u8282\u70b9\u52a0\u5165\u6b63\u786e\u7684\u9762\u677f compatible \u4fe1\u606f\uff0c\u5185\u6838\u8fd9\u5757\u5c31\u4e0d\u7528\u8003\u8651\u9762\u677f\u8bc6\u522b\u7684\u4e8b\u4e86\u3002<\/p>\n\n<p>\u5185\u6838\u548c initramfs \u8fd8\u8981\u6709\u5730\u65b9\u653e\u3002lk2nd \u652f\u6301\u7684\u4f4d\u7f6e\u633a\u7075\u6d3b\u7684\uff0c\u6211\u559c\u6b22\u653e boot \u5206\u533a\u91cc lk2nd \u540e\u9762\uff0c\u4ece boot \u5206\u533a\u9996\u504f\u79fb 512K \u7684\u4f4d\u7f6e\uff0c\u548c postmarketOS \u7684\u505a\u6cd5\u4e00\u6837\u3002\u5728\u90a3\u91cc\u5f00\u4e2a MBR \u5206\u533a\u8868\uff0c\u65b0\u5efa\u4e2a ext2 \u5206\u533a\uff0c\u7ed9\u5185\u6838\u3001initramfs \u548c Device Tree \u653e\u91cc\u9762\uff0c\u5199\u597d\u914d\u7f6e\u6587\u4ef6\u5c31\u80fd\u7528\u4e86\u3002<\/p>\n\n<p>userdata \u548c system \u7b97\u662f\u7ea2\u7c73 Note 4X \u8fd9\u6837\u7684\u624b\u673a\u4e0a\u5bb9\u91cf\u524d\u4e24\u5927\u7684\u5206\u533a\uff0c\u76f4\u63a5\u7ed9 Ubuntu \u7cfb\u7edf\u5206\u533a\u653e userdata \u91cc\u5c31\u633a\u597d\u7684\u3002\u60f3\u7ed9 system \u5229\u7528\u4e0a\u4e5f\u884c\uff0c\u4f46\u662f\u4e24\u4e2a\u5206\u533a\u7ec4\u5408\u5f53\u7136\u8981\u9ebb\u70e6\u4e00\u70b9\uff0c\u6211\u89c9\u5f97\u4e00\u822c\u4e5f\u4e0d\u4f1a\u7f3a\u90a3\u51e0 G \u7a7a\u95f4\u3002<\/p>\n\n<p>\u603b\u7ed3\u4e0b\u6765\u5b9e\u9645\u8981\u505a\u7684\u4e0d\u5916\u4e4e\u5c31\u662f\u628a userdata \u5206\u533a\u6539\u6210 Ubuntu \u7684\u7cfb\u7edf\u5206\u533a\uff0c\u7ed9 boot \u5206\u533a\u6362\u6210 lk2nd+MBR+ext2 \u7684\u7ed3\u6784\u3002<\/p>\n\n<h1 id=\"\u7f16\u8bd1\u5185\u6838\">\u7f16\u8bd1\u5185\u6838<\/h1>\n\n<p>\u5728\u5ea7\u5404\u4f4d\u90fd\u5728\u672c\u79d1\u8ba1\u7ec4\u8bfe\u4e0a\u7f16\u8bd1\u8fc7\u5185\u6838\u3002\u5728\u8fd9\u79cd\u624b\u673a\u4e0a\u88c5\u73b0\u4ee3\u53d1\u884c\u7248\u5f53\u7136\u8981\u81ea\u5df1\u7f16\u8bd1\u5185\u6838\uff0c\u514d\u5f97\u6709\u4ec0\u4e48\u9700\u8981\u7684\u5185\u6838\u529f\u80fd\u6ca1\u5f00\uff0c\u6216\u8005\u4ec0\u4e48\u9a71\u52a8\u8d70\u7684\u662f Android HAL \u4e4b\u7c7b\u7684\u60c5\u51b5\u3002\u7ea2\u7c73 Note 4X \u8fd9\u4e48\u77e5\u540d\u7684\u673a\u5668\uff0c\u8fd9\u5757\u7684\u4f5c\u4e1a\u663e\u7136\u5df2\u7ecf\u6709\u4eba\u5e2e\u6211\u4eec\u5199\u8fc7\u4e86\u3002postmarketOS \u5728\u673a\u578b\u9002\u914d\u8fd9\u5757\u505a\u633a\u5e72\u51c0\u7684\uff0c\u5185\u6838 config \u548c early modules \u90fd\u653e\u6e90\u7801\u5e93\u91cc\u4e86\uff0c\u6284\u8d77\u6765\u50cf\u547c\u5438\u4e00\u6837\u7b80\u5355\u3002<\/p>\n\n<p>postmarketOS \u7684\u5185\u6838\u6253\u6210\u4e86\u8f6f\u4ef6\u5305\uff0c\u4ece <a href=\"https:\/\/gitlab.postmarketos.org\/postmarketOS\/pmaports\/-\/blob\/main\/device\/community\/linux-postmarketos-qcom-msm8953\/APKBUILD\">APKBUILD<\/a> \u91cc\u76f4\u63a5\u627e\u5230\u5185\u6838\u6e90\u7801\u7528\u7684\u4ed3\u5e93\u548c\u7248\u672c\uff0c\u518d\u7ed9 <a href=\"https:\/\/gitlab.postmarketos.org\/postmarketOS\/pmaports\/-\/blob\/main\/device\/community\/linux-postmarketos-qcom-msm8953\/config-postmarketos-qcom-msm8953.aarch64\">config<\/a> \u62c9\u4e0b\u6765\u91cd\u547d\u540d\u4e3a\u5185\u6838\u6e90\u7801\u4e0b <code class=\"language-plaintext highlighter-rouge\">.config<\/code> \u6587\u4ef6\u3002<\/p>\n\n<p>\u6211\u624b\u91cc\u8fd9\u53f0\u6362\u8fc7\u6db2\u6676\u9762\u677f\uff0c\u73b0\u5728\u88c5\u7684\u662f\u6742\u724c\u9762\u677f\uff0c\u517c\u5bb9\u539f\u7248 <code class=\"language-plaintext highlighter-rouge\">nt35532<\/code> \u9a71\u52a8\uff0c\u76f4\u63a5\u7528\u7684\u8bdd\u5c4f\u5e55\u4f1a\u53d1\u84dd\u6ca1\u6cd5\u6b63\u5e38\u5de5\u4f5c\uff0c\u8981\u5728\u9762\u677f\u521d\u59cb\u5316\u4e4b\u524d sleep \u4e2a 50 \u6beb\u79d2\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>diff --git a\/linux-6.12.0-r0\/drivers\/gpu\/drm\/panel\/msm8953-generated\/panel-xiaomi-nt35532.c b\/linux-6.12.0-r0\/drivers\/gpu\/drm\/panel\/msm8953-generated\/panel-xiaomi-nt35532.c\nindex fb2fa8b..398ef8c 100644\n--- a\/linux-6.12.0-r0\/drivers\/gpu\/drm\/panel\/msm8953-generated\/panel-xiaomi-nt35532.c\n+++ b\/linux-6.12.0-r0\/drivers\/gpu\/drm\/panel\/msm8953-generated\/panel-xiaomi-nt35532.c\n@@ -102,6 +102,8 @@ static int nt35532_prepare(struct drm_panel *panel)\n \t}\n\n \tnt35532_reset(ctx);\n+\tmsleep(50);\n+\tpr_info(\"Wait for 50ms after reset\");\n\n \tret = nt35532_on(ctx);\n \tif (ret &lt; 0) {\n<\/code><\/pre><\/div><\/div>\n\n<p><code class=\"language-plaintext highlighter-rouge\">.config<\/code> \u88c5\u597d\uff0c\u51c6\u5907\u5f00\u59cb\u7f16\u8bd1\u3002\u6211\u7535\u8111\u662f x86 \u7684\uff0c\u6240\u4ee5\u9700\u8981\u518d\u8c03\u4e00\u4e0b\u4ea4\u53c9\u6784\u5efa\u7684\u8bbe\u7f6e\u3002<code class=\"language-plaintext highlighter-rouge\">CROSS_COMPILE<\/code> \u7684\u5b57\u6bb5\u6839\u636e\u4f60\u53d1\u884c\u7248\u63d0\u4f9b\u7684\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u94fe\u540d\u5b57\u6765\u5b9a\uff0c\u5982\u679c\u4f60\u53d1\u884c\u7248\u6ca1\u63d0\u4f9b\u7684\u8bdd\u5927\u6982\u8981\u81ea\u5df1\u6253\u4e00\u4e2a\u7f16\u8bd1\u5668\uff0c\u4e0d\u8fc7\u5728\u5ea7\u5404\u4f4d\u5e94\u8be5\u4e5f\u90fd\u4f1a\u3002\u6211\u6bd4\u8f83\u559c\u6b22\u518d\u7ed9\u63d0\u793a\u7b26\u524d\u9762\u52a0\u4e2a\u524d\u7f00\uff0c\u514d\u5f97\u5fd8\u8bb0\u81ea\u5df1\u52a8\u4e86\u4ec0\u4e48\u3002<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>export PS1=\"(cross compile) ${PS1}\"\nexport ARCH=arm64\nexport CROSS_COMPILE=aarch64-suse-linux-\n<\/code><\/pre><\/div><\/div>\n\n<p><code class=\"language-plaintext highlighter-rouge\">make olddefconfig<\/code> \u4e00\u4e0b\uff0c\u76f4\u63a5 <code class=\"language-plaintext highlighter-rouge\">make -j&lt;\u5e76\u884c\u4efb\u52a1\u6570&gt;<\/code>\uff0c\u4e4b\u540e\u7b49\u7740\u5c31\u884c\u4e86\u3002<\/p>\n\n<p>\u7f16\u8bd1\u597d\u4e4b\u540e\u5185\u6838\u4f1a\u51fa\u73b0\u5728 <code class=\"language-plaintext highlighter-rouge\">arch\/arm64\/boot\/Image.gz<\/code> \u4e0b\u3002<\/p>\n\n<h1 id=\"\u914d\u7f6e-rootfs\">\u914d\u7f6e rootfs<\/h1>\n\n<p>\u5148\u88c5\u4e00\u4e2a\u901a\u7528\u7684 Ubuntu \u7cfb\u7edf\uff0c\u518d\u5f80\u91cc\u9762\u585e\u4e0e\u5e73\u53f0\u76f8\u5173\u7684\u6587\u4ef6\u3002<\/p>\n\n<p>\u76f4\u63a5\u62c9 Ubuntu \u7ed9\u7684 rootfs \u955c\u50cf\uff0c\u89e3\u538b\u3002\u6211\u5f53\u65f6\u6d4b\u8bd5\u7684\u65f6\u5019 Ubuntu \u8fd8\u6ca1\u51fa 26.04 \u6b63\u5f0f\u7248\uff0c\u6240\u4ee5\u662f\u4ece 24.04 \u5347\u4e0a\u53bb\u7684\u3002<\/p>\n\n<p>\u4e3a\u4ec0\u4e48\u4e0d\u7528 <code class=\"language-plaintext highlighter-rouge\">debootstrap<\/code> \u2026\u2026 <code class=\"language-plaintext highlighter-rouge\">debootstrap<\/code> \u64cd\u4f5c\u770b\u8d77\u6765\u633a\u7b80\u5355\u7684\uff0c\u5b9e\u9645\u4e0d\u6bd4 rpm \u7cfb\u6216\u8005 Arch \u7cfb\u53d1\u884c\u7248\u7701\u5fc3\u591a\u5c11\uff0c\u6709\u65f6\u5019\u672c\u5730\u811a\u672c\u7248\u672c\u4e0d\u5bf9\u5c31\u6ca1\u6cd5\u751f\u6210\u60f3\u8981\u7684\u7248\u672c\u7684 rootfs\uff0c\u800c\u4e14\u4e00\u5806 Perl \u811a\u672c\u770b\u90fd\u770b\u4e0d\u61c2\uff0c\u51fa\u4e86 bug \u90fd\u6ca1\u6cd5\u81ea\u5df1\u4fee\u3002<\/p>\n\n<p>\u5982\u679c\u4f60\u7535\u8111\u914d\u4e86 <code class=\"language-plaintext highlighter-rouge\">qemu-binfmt<\/code>\uff0c\u5e94\u8be5\u80fd\u76f4\u63a5 chroot \u8fdb\u914d\u7f6e\u597d\u7684 rootfs\uff0c\u5185\u6838\u4f1a\u81ea\u5df1\u627e\u6b63\u786e\u7684 <code class=\"language-plaintext highlighter-rouge\">qemu<\/code> \u6a21\u62df\u6267\u884c\u91cc\u9762\u7684\u7a0b\u5e8f\u3002\u53cd\u6b63\u4e5f\u5c31\u6539\u6539\u914d\u7f6e\u6587\u4ef6\u751f\u6210\u4e2a initramfs\uff0c\u5bf9\u6027\u80fd\u6ca1\u8981\u6c42\u3002<\/p>\n\n<p>\u5148\u6539\u6539\u57fa\u672c\u914d\u7f6e\u6587\u4ef6\u7ed9 <code class=\"language-plaintext highlighter-rouge\">\/etc\/fstab<\/code> \u52a0\u4e00\u884c\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>\/dev\/mmcblk0p49 \/ ext4 defaults 0 0\n<\/code><\/pre><\/div><\/div>\n\n<p>\u4e4b\u540e\u8bbe\u7f6e\u4e2a root \u5bc6\u7801\uff0c\u5f00\u59cb\u88c5\u5e73\u53f0\u76f8\u5173\u7684\u5185\u5bb9\u3002\u4e3a\u4ec0\u4e48\u4e0d\u4e00\u6b65\u5230\u4f4d\u7ed9\u684c\u9762\u73af\u5883\u88c5\u4e0a\u2026\u2026\u955c\u50cf\u592a\u5927\u4e86\u4e0d\u597d\u5237\uff0c\u800c\u4e14\u6709\u4e9b 3D \u52a0\u901f\u9700\u8981\u7684\u56fa\u4ef6\u73b0\u5728\u62ff\u4e0d\u5230\uff0c\u786c\u5f00 Display Manager \u7684\u8bdd\u53ef\u80fd\u4f1a\u7ed9\u8f93\u5165\u8bbe\u5907\u9501\u6b7b\uff0c\u5f88\u9ebb\u70e6\u3002<\/p>\n\n<p>\u5e73\u53f0\u76f8\u5173\u7684\u6587\u4ef6\u5dee\u4e0d\u591a\u5c31\u662f\u5185\u6838\u6a21\u5757\u548c\u56fa\u4ef6\uff0c\u8981\u5728\u8fd0\u884c\u65f6\u52a0\u8f7d\u5f53\u7136\u5c31\u8981\u653e rootfs \u91cc\u4e86\u3002\u56de\u5230\u4e4b\u524d\u5185\u6838\u6e90\u7801\u7684\u6839\u76ee\u5f55\u4e0b\u88c5\u6a21\u5757\uff0c<code class=\"language-plaintext highlighter-rouge\">make modules_install INSTALL_MOD_PATH=&lt;\u76ee\u5f55&gt;<\/code>\uff0c\u6bd4\u5982\u4f60\u76f4\u63a5\u88c5 rootfs \u91cc\u7684\u8bdd\u90a3\u5e94\u8be5\u662f <code class=\"language-plaintext highlighter-rouge\">make modules_install INSTALL_MOD_PATH=&lt;rootfs\u6240\u5728\u76ee\u5f55&gt;\/usr\/lib\/modules\/<\/code>\u3002<\/p>\n\n<p>\u4e4b\u540e\u88c5\u4e0b\u90e8\u5206\u56fa\u4ef6\u548c\u5173\u952e\u7684\u5305\uff0c\u518d\u51c6\u5907\u751f\u6210 initramfs\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>apt install initramfs-tools linux-firmware systemd network-manager\n<\/code><\/pre><\/div><\/div>\n\n<p>\u56fa\u4ef6\u597d\u591a\u662f\u5728\u5916\u56f4\u8bbe\u5907\u4e0a\u8dd1\u7684\u7a0b\u5e8f\uff0c\u4e5f\u6709\u4e00\u4e9b\u662f\u914d\u7f6e\u6587\u4ef6\u6216\u8005\u65e0\u7ebf\u6a21\u5757\u7684\u6821\u51c6\u6587\u4ef6\u5565\u7684\u3002<code class=\"language-plaintext highlighter-rouge\">linux-firmware<\/code> \u6e90\u91cc\u53ea\u6709\u4e00\u4e9b\u516c\u5f00\u7684\u56fa\u4ef6\uff0c\u8fd8\u6709\u4e9b\u8981\u5728\u624b\u673a\u4e0a\u522b\u7684\u5206\u533a\u91cc\u63d0\u53d6\uff0c\u4e0d\u8fc7\u53ea\u7528 <code class=\"language-plaintext highlighter-rouge\">linux-firmware<\/code> \u7684\u8bdd\u5bf9\u4e8e\u70b9\u4eae\u5c4f\u5e55\u8fdb Linux console \u5df2\u7ecf\u8db3\u591f\u4e86\u3002<\/p>\n\n<p>\u88c5\u5b8c\u4e4b\u540e\u6539 <code class=\"language-plaintext highlighter-rouge\">\/etc\/initramfs-tools<\/code>\uff0c\u9009\u4e00\u4e0b\u955c\u50cf\u7684\u538b\u7f29\u6a21\u5f0f\uff0c\u6211\u6bd4\u8f83\u559c\u6b22 <code class=\"language-plaintext highlighter-rouge\">zstd<\/code>\u3002\u6a21\u5757\u52a0\u8f7d\u9879\u4e3a <code class=\"language-plaintext highlighter-rouge\">list<\/code>\uff0c\u5177\u4f53<a href=\"https:\/\/gitlab.postmarketos.org\/postmarketOS\/pmaports\/-\/blob\/main\/device\/community\/device-qcom-msm8953\/modules-initfs\">\u5217\u8868\u5185\u5bb9<\/a> postmarketOS \u4e5f\u7ed9\u4e86\uff0c\u76f4\u63a5\u6284\u3002\u8bdd\u8bf4 lk2nd \u8981\u6c42 initramfs \u5927\u5c0f\u4e0d\u80fd\u8d85\u8fc716M\u2026\u2026\u5947\u602a\u7684\u89c4\u5b9a\u3002\u5982\u679c\u6253\u51fa\u6765\u7684\u955c\u50cf\u592a\u5927\uff0c\u52a0\u5927\u4e00\u4e0b\u538b\u7f29\u6bd4\u5427\u3002<\/p>\n\n<p>\u505a\u4e2a ext4 \u955c\u50cf\uff0c\u5dee\u4e0d\u591a\u5c31\u662f <code class=\"language-plaintext highlighter-rouge\">fallocate<\/code> \u4e2a\u5927\u70b9\u7684\u6587\u4ef6\uff0c\u5728\u4e0a\u9762\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\u3002\u7ed9 rootfs \u91cc\u7684\u6587\u4ef6\u590d\u5236\u5230\u91cc\u9762\u5907\u7528\u3002<\/p>\n\n<h1 id=\"\u914d\u7f6e\u5f15\u5bfc\u7a0b\u5e8f\">\u914d\u7f6e\u5f15\u5bfc\u7a0b\u5e8f<\/h1>\n\n<p>\u6309\u7167\u524d\u9762\u63d0\u5230\u7684 boot \u5206\u533a\u7ed3\u6784\uff0c\u88c5 lk2nd \u548c\u542f\u52a8\u9700\u8981\u7684\u6587\u4ef6\u3002<\/p>\n\n<p>\u65e2\u7136\u8981\u505a\u4e00\u4e2a\u524d 512K \u662f lk2nd\uff0c\u540e\u9762\u653e MBR \u5206\u533a\u8868\u548c ext2 \u5206\u533a\u7684\u7ed3\u6784\uff0c\u542c\u8d77\u6765\u662f\u8981\u624b\u52a8\u6253\u4e00\u4e2a\u8fd9\u6837\u7684\u955c\u50cf\uff0c\u8fd8\u662f\u6709\u70b9\u9ebb\u70e6\u7684\u3002\u4e0d\u8fc7\u5b9e\u9645\u64cd\u4f5c\u7684\u65f6\u5019\u53ef\u4ee5\u5148\u7ed9 lk2nd \u5237\u4e0a\uff0clk2nd \u6709 fastboot \u534f\u8bae\uff0c\u7528\u7535\u8111 fastboot flash boot \u7684\u65f6\u5019\u4f1a\u81ea\u52a8\u5c06\u955c\u50cf\u5199\u5230\u504f\u79fb 512K \u7684\u4f4d\u7f6e\uff0c\u8fd9\u6837\u76f4\u63a5\u7ed9 lk2nd \u63d0\u4f9b\u4e00\u4e2a MBR+ext2 \u7684\u955c\u50cf\u5c31\u884c\u4e86\uff0c\u5237\u5b8c\u81ea\u7136\u4f1a\u5f62\u6210 lk2nd+MBR+ext2 \u7684\u7ed3\u6784\u3002<\/p>\n\n<p>\u663e\u7136\u8fd9\u4e2a\u64cd\u4f5c\u53ea\u662f lk2nd \u7684 fastboot \u529f\u80fd\u5728\u5b9e\u73b0\u7684\u65f6\u5019\u7279\u6b8a\u5904\u7406\u4e86\u4e00\u4e0b\u5237 boot \u5206\u533a\u65f6\u7684\u884c\u4e3a\uff0c\u6b63\u5e38\u7528\u539f\u5382 fastboot \u8fd8\u6709\u5728\u5185\u6838\u91cc\u8bfb boot \u5206\u533a\u65f6\u90fd\u662f\u4e0d\u5b58\u5728\u7684\uff0c\u6240\u4ee5\u5728 Linux \u4e0b\u5347\u7ea7 initramfs \u4ec0\u4e48\u7684\u90fd\u8fd8\u662f\u8981\u8001\u8001\u5b9e\u5b9e\u6302\u4e2a\u504f\u79fb 512K \u7684\u56de\u73af\u8bbe\u5907\u3002<\/p>\n\n<p>\u5728\u5ea7\u5404\u4f4d\u90fd\u4f1a\u7528 fastboot\u3002\u5148\u8fdb\u539f\u5382 fastboot\uff0c\u7ed9 lk2nd \u5237\u5230 boot \u5206\u533a\u3002\u5b8c\u4e8b\u4e4b\u540e\u53ef\u4ee5\u8fdb lk2nd \u7684\u754c\u9762\u786e\u8ba4\u4e00\u4e0b\u80fd\u4e0d\u80fd\u7528\uff0c\u518d\u51c6\u5907\u540e\u9762\u7684\u955c\u50cf\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>parted &lt;\u6587\u4ef6&gt;\n<\/code><\/pre><\/div><\/div>\n\n<p>\u8fdb parted \u4ea4\u4e92\u754c\u9762\u4e4b\u540e\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>mktable msdos\nmkpart primary ext2 2048s 100%\nset 1 esp on\nset 1 boot on\n<\/code><\/pre><\/div><\/div>\n\n<p>\u5b8c\u4e8b\u4e4b\u540e\u6302\u8f7d\u4e00\u4e0b ext2 \u5206\u533a\uff0c\u4e0d\u60f3\u624b\u7b97\u5206\u533a\u504f\u79fb\u91cf\u7684\u8bdd\u6302\u4e2a\u56de\u73af\u8bbe\u5907\u5e76\u5f00\u4e0b\u5206\u533a\u8868\u63a2\u6d4b\uff0c\u7f51\u4e0a\u90fd\u6709\u6587\u6863\u3002<\/p>\n\n<p>\u628a\u9700\u8981\u7684\u6587\u4ef6\u585e\u5230 ext2 \u5206\u533a\u91cc\uff1a\u5185\u6838\u6784\u5efa\u76ee\u5f55\u4e0b <code class=\"language-plaintext highlighter-rouge\">arch\/arm64\/boot\/dts\/qcom\/msm8953-xiaomi-mido.dts<\/code> \u653e <code class=\"language-plaintext highlighter-rouge\">dtbs\/<\/code> \u4e0b\u9762\uff1b\u518d\u7ed9 <code class=\"language-plaintext highlighter-rouge\">Image.gz<\/code> \u548c\u751f\u6210\u7684 initramfs \u653e\u65b9\u4fbf\u7684\u4f4d\u7f6e\u4e0a\uff0c\u6211\u8fd9\u91cc\u76f4\u63a5\u653e\u6839\u76ee\u5f55\u3002<\/p>\n\n<p>\u5199\u4e00\u4e0b <code class=\"language-plaintext highlighter-rouge\">\/extlinux\/extlinux.conf<\/code>\uff0c\u5185\u6838\/initramfs\/device tree \u7684\u8def\u5f84\u6309\u7167\u81ea\u5df1\u5b9e\u9645\u6587\u4ef6\u540d\u6765\u6539\u3002<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>default Ubuntu\n\nlabel Ubuntu\n    linux \/Image.gz\n    initrd \/initrd.img-6.17.7-msm8953\n    fdtdir \/dtbs\n    append root=\/dev\/mmcblk0p49 init=\/usr\/lib\/systemd\/systemd\n<\/code><\/pre><\/div><\/div>\n\n<p>\u8fdb lk2nd\uff0c\u7528 fastboot \u7ed9\u8fd9\u4e2a\u955c\u50cf\u5237\u5230 boot \u5206\u533a\u91cc\u3002<\/p>\n\n<h1 id=\"\u5b89\u88c5\u7cfb\u7edf\u5206\u533a\">\u5b89\u88c5\u7cfb\u7edf\u5206\u533a<\/h1>\n\n<p>\u524d\u9762\u914d\u597d\u7684 Ubuntu \u955c\u50cf\uff0c\u5237 userdata \u5206\u533a\u91cc\u3002<\/p>\n\n<h1 id=\"\u5f00\u673a\u5b89\u88c5\u56fa\u4ef6\">\u5f00\u673a\uff0c\u5b89\u88c5\u56fa\u4ef6<\/h1>\n\n<p><code class=\"language-plaintext highlighter-rouge\">linux-firmware<\/code> \u91cc\u6ca1\u6709\u7684\u56fa\u4ef6\u5728\u51e0\u4e2a\u5355\u72ec\u7684\u5206\u533a\u91cc\u3002postmarketOS \u90a3\u8fb9\u6709\u4e2a\u5c0f\u811a\u672c\u4f1a\u6302\u8f7d\u8fd9\u4e9b\u5206\u533a\u65b9\u4fbf\u62ff\u56fa\u4ef6\uff0c\u4e0d\u8fc7\u6211\u4eec\u76f4\u63a5\u7ed9\u56fa\u4ef6\u590d\u5236\u5230\u7cfb\u7edf\u5206\u533a\u91cc\u4e5f\u4e00\u6837\u3002<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>\/dev\/mmcblk0p1:\nwcnss.* venus.* adsp.* -&gt; \/lib\/firmware\/\n<\/code><\/pre><\/div><\/div>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>\/dev\/mmcblk0p26:\nWCNSS_qcom_wlan_nv.bin -&gt; \/lib\/firmware\/wlan\/prima\/\n<\/code><\/pre><\/div><\/div>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>\/dev\/mmcblk0p48:\na506_zap.* -&gt; \/lib\/firmware\/qcom\/msm8953\/xiaomi\/mido\/\na530_pm4.fw -&gt; \/lib\/firmware\/qcom\/\n<\/code><\/pre><\/div><\/div>\n\n<p>\u5b8c\u4e86\u4e4b\u540e\u53ef\u80fd\u8981\u91cd\u65b0 modprobe \u4e00\u4e0b <code class=\"language-plaintext highlighter-rouge\">qcom_wcnss_pil<\/code>\u3002<\/p>\n\n<h1 id=\"\u5728-ubuntu-\u4e0b\u8bbf\u95ee-boot-\u5206\u533a\">\u5728 Ubuntu \u4e0b\u8bbf\u95ee boot \u5206\u533a<\/h1>\n\n<p>\u5982\u679c\u4f60\u8981\u5728 Ubuntu \u4e0b\u66f4\u65b0 initramfs \u7684\u8bdd\u2026\u2026\u8fd8\u662f\u5f97\u6302\u8f7d boot \u5206\u533a\u3002<\/p>\n\n<p>\u522b\u5fd8\u4e86\u6211\u4eec boot \u5206\u533a\u91cc\u9762\u8fd8\u6709\u4e2a\u5206\u533a\u8868\uff0c\u8fd8\u504f\u79fb\u4e86 512K\u3002\u624b\u7b97 ext2 \u5206\u533a\u7684\u4f4d\u7f6e\u592a\u9ebb\u70e6\u4e86\uff0c\u76f4\u63a5\u6307\u5b9a\u504f\u79fb\u91cf\u521b\u5efa loop \u8bbe\u5907\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>losetup -f -P -o 524288 \/dev\/mmcblk0p21\n<\/code><\/pre><\/div><\/div>\n\n<p>\u4e4b\u540e <code class=\"language-plaintext highlighter-rouge\">lsblk<\/code> \u5e94\u8be5\u5c31\u80fd\u770b\u5230\u63a2\u6d4b\u5230\u7684\u5206\u533a\uff0c\u76f4\u63a5\u6302\u8f7d\u5c31\u80fd\u7528\u4e86\u3002<\/p>\n\n<h1 id=\"\u76f8\u673a\">\u76f8\u673a<\/h1>\n\n<p>\u7ea2\u7c73 Note 4X \u7684\u76f8\u673a\u662f\u8d70 I2C \u603b\u7ebf\u63a7\u5236\uff0c\u7528 CSI \u4f20\u8f93\u5185\u5bb9\u3002postmarketOS Wiki \u4e0a\u5217\u4e86\u652f\u6301\u7684\u4f20\u611f\u5668\uff0c\u62ff <code class=\"language-plaintext highlighter-rouge\">i2cdetect<\/code> \u626b\u4e00\u4e0b\u2026\u2026\u6839\u636e\u5730\u5740\u5224\u65ad\u6211\u4eec\u7684\u673a\u5668\u7528\u7684\u4f20\u611f\u5668\u6ca1\u6709\u652f\u6301\uff0c\u7b97\u4e86\u3002<\/p>\n\n<h1 id=\"\u4f7f\u7528\">\u4f7f\u7528<\/h1>\n\n<p>\u88c5\u4e2a\u559c\u6b22\u7684\u684c\u9762\uff0c\u968f\u4fbf\u641e\u4e2a GNOME \u5565\u7684\uff0c\u53cd\u6b63\u8fd9\u53f0\u673a\u5668\u4e5f\u4e0d\u662f\u6211\u7528\u3002\u9001\u7fa4\u53cb\u4e4b\u524d\u53ef\u4ee5\u5148\u62ff Box86 \u8dd1\u4e2a Wine \u73a9\u73a9\uff0c<\/p>\n\n<p>\u5148\u524d\u8fd8\u8dd1\u4e86\u4e2a\u300a\u690d\u7269\u5927\u6218\u50f5\u5c3895\u300b\uff0c\u53ef\u60dc wined3d \u5728 freedreno \u4e0a\u591a\u5c11\u6709\u70b9\u95ee\u9898\uff0c\u6539 .drirc \u5047\u88c5\u6210\u522b\u7684\u5236\u9020\u5546\u4e5f\u6ca1\u6709\u4ec0\u4e48\u6548\u679c\u3002\u9a81\u9f99 625 \u7684 freedreno \u4e0d\u652f\u6301 turnip\uff08Vulkan \u90e8\u5206\u7684\u9a71\u52a8\uff09\uff0c\u9042\u4f5c\u7f62\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/mido-ubuntu\/gdm.webp\" alt=\"Xiaomi mido showing GDM\" \/><\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/mido-ubuntu\/gnome.webp\" alt=\"Xiaomi mido showing GNOME desktop\" \/><\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/mido-ubuntu\/wine.webp\" alt=\"Xiaomi mido showing wine\" \/><\/p>\n","pubDate":"Tue, 21 Apr 2026 00:00:00 +0000","link":"https:\/\/ratizux.github.io\/2026\/04\/21\/1.html","guid":"https:\/\/ratizux.github.io\/2026\/04\/21\/1.html"},{"title":"\u5fb7\u751f R-911 \u6536\u97f3\u673a\u62c6\u89e3\u53ca\u66f4\u6362\u5929\u7ebf","description":"<p>\u8d85\u8fc7\u4e00\u5e74\u6ca1\u66f4\u65b0\u535a\u5ba2\u4e86\u3002\u6709\u4e9b\u662f\u56e0\u4e3a\u60f3\u628a\u76f8\u5173\u6280\u672f\u5b8c\u5168\u641e\u660e\u767d\u518d\u5199\uff0c\u8fd8\u6709\u4e9b\u662f\u56e0\u4e3a\u9893\u5e9f\u3002\u50cf\u8fd9\u7bc7\u91cc\u7684\u6536\u97f3\u673a\u5176\u5b9e\u4eca\u5e74\u4e8c\u6708\u5c31\u4fee\u597d\u4e86\uff0c\u535a\u5ba2\u62d6\u5230\u4e86\u73b0\u5728\u3002<\/p>\n\n<p>R-911 \u7b97\u662f\u6bd4\u8f83\u7ecf\u5178\u7684\u6536\u97f3\u673a\uff0c\u81f3\u5c11\u6211\u5f88\u5c0f\u7684\u65f6\u5019\u5c31\u6709\u5728\u751f\u4ea7\u3002\u6536\u97f3\u673a\u4e0a\u6ca1\u6709\u5c4f\u5e55\uff0c\u6807\u8bc6\u9891\u7387\u7528\u7684\u662f\u4e00\u5757\u91d1\u5c5e\u677f\uff0c\u677f\u4e0a\u6709\u6839\u60ac\u6d6e\u7684\u7ec6\u91d1\u5c5e\u68d2\u4f1a\u548c\u8c03\u9891\u65cb\u94ae\u8054\u52a8\uff0c\u4ece\u91d1\u5c5e\u68d2\u7684\u4f4d\u7f6e\u5c31\u80fd\u5224\u65ad\u51fa\u5f53\u524d\u9891\u7387\uff0c\u6574\u4e2a\u7ed3\u6784\u7528\u900f\u660e\u7684\u5851\u6599\u5c01\u88c5\u5728\u5c0f\u7a97\u91cc\uff0c\u770b\u8d77\u6765\u751a\u662f\u7cbe\u81f4\u3002\u5c0f\u7a97\u4e0b\u9762\u6709\u4e2a\u62e8\u52a8\u5f00\u5173\uff0c\u53ef\u4ee5\u9009\u62e9\u8c03\u9891\/\u4e2d\u6ce2\/\u77ed\u6ce2\u6a21\u5f0f\uff0c\u7406\u8bba\u4e0a\u53ef\u4ee5\u542c\u5230\u4e00\u4e9b\u6b63\u5e38\u60c5\u51b5\u4e0b\u8ba4\u77e5\u91cc\u4e0d\u5e94\u5f53\u5b58\u5728\u7684\u7535\u53f0\uff0c\u4e0d\u8fc7\u6211\u624b\u4e0a\u8fd9\u53f0\u7684\u5f00\u5173\u6709\u70b9\u6545\u969c\uff0c\u53ea\u6709\u63a8\u5230\u6700\u5de6\u8fb9\u8c03\u9891\u7684\u65f6\u5019\u63a5\u89e6\u624d\u80fd\u7a33\u5b9a\u3002\u5f53\u7136\u4e5f\u65e0\u6240\u8c13\uff0c\u60f3\u542c\u4e0d\u540c\u9891\u7387\u7684\u8bdd\u501f\u540c\u5b66\u7684\u624b\u6301\u7535\u53f0\u5c31\u597d\u4e86\u3002<\/p>\n\n<p>\u6536\u97f3\u673a\u53f3\u4e0a\u89d2\u6709\u4e24\u9897LED\uff0c\u7eff\u7684\u90a3\u9897\u5728\u9891\u7387\u5bf9\u4e0a\u7684\u60c5\u51b5\u4e0b\u4f1a\u4eae\u8d77\u6765\uff0c\u6839\u636e\u9891\u7387\u4e0e\u6b63\u786e\u9891\u7387\u7684\u5dee\u503c\u5b83\u7684\u4eae\u5ea6\u8fd8\u4f1a\u6709\u53d8\u5316\uff0c\u4e0d\u77e5\u9053\u662f\u4ec0\u4e48\u539f\u7406\u3002<\/p>\n\n<p>\u6211\u624b\u4e0a\u7684\u8fd9\u53f0\uff0c\u5c0f\u65f6\u5019\u73a9\u800d\u7684\u65f6\u5019\u5929\u7ebf\u7ed9\u78b0\u65ad\u4e86\u3002\u8fd9\u6536\u97f3\u673a\u6027\u80fd\u4e0d\u9519\uff0c\u6ca1\u6709\u5929\u7ebf\u4e5f\u80fd\u6536\u5230\u5f88\u591a\u8fd1\u5904\u7684\u7535\u53f0\uff0c\u4f46\u662f\u6362\u6839\u65b0\u7684\u5929\u7ebf\u603b\u6bd4\u6ca1\u6709\u5f3a\u3002<\/p>\n\n<p>\u5148\u628a\u6536\u97f3\u673a\u5916\u58f3\u6253\u5f00\u3002\u8fd9\u6536\u97f3\u673a\u5185\u90e8\u7528\u4e86\u597d\u51e0\u79cd\u87ba\u4e1d\uff0c\u62c6\u7684\u65f6\u5019\u8bb0\u5f97\u62cd\u7167\u8bb0\u5f55\u6bcf\u79cd\u87ba\u4e1d\u5bf9\u5e94\u7684\u5b54\u3002<\/p>\n\n<p>\u628a\u540e\u9762\u677f\u4e0a\u7684\u87ba\u4e1d\u53d6\u4e0b\u6765\uff0c\u518d\u62c6\u4e2d\u6846\u3002\u540e\u9762\u677f\u4e0a\u6ca1\u6709\u5143\u4ef6\uff0c\u5927\u90e8\u5206\u5143\u4ef6\u90fd\u56fa\u5b9a\u5728\u4e2d\u6846\u4e0a\uff0c\u8fd8\u5269\u4e0b\u4e00\u4e2a\u5587\u53ed\u5728\u524d\u9762\u677f\u4e0a\u3002\u8fd9\u65f6\u5019\u5c31\u53ef\u4ee5\u628a\u62e8\u52a8\u5f00\u5173\u7684\u5916\u58f3\u548c\u663e\u793a\u9891\u7387\u7684\u91d1\u5c5e\u677f\u53d6\u4e0b\u6765\u4e86\u3002\u91d1\u5c5e\u677f\u4e0b\u9762\u5c31\u662f\u7275\u5f15\u7ec6\u91d1\u5c5e\u6761\u7684\u673a\u6784\u548c\u4e00\u6392\u7535\u4f4d\u5668\uff0c\u5e94\u8be5\u662f\u8c03\u6536\u97f3\u673a\u6a21\u62df\u7535\u8def\u7279\u6027\u7528\u7684\u3002\u611f\u89c9\u7a0d\u5fae\u52a8\u4e00\u4e0b\u7535\u4f4d\u5668\u5c31\u8981\u91cd\u65b0\u8c03\u5f88\u4e45\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/1.webp\" alt=\"1\" \/><\/p>\n\n<p>\u5982\u679c\u628a\u62e8\u52a8\u5f00\u5173\u7684\u5916\u58f3\u653e\u4e0a\u53bb\uff0c\u5927\u6982\u8fd9\u6837\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/2.webp\" alt=\"2\" \/><\/p>\n\n<p>\u524d\u9762\u677f\u8fde\u5587\u53ed\u7684\u5bfc\u7ebf\u592a\u77ed\u6709\u70b9\u788d\u4e8b\uff0c\u5148\u7528\u70d9\u94c1\u7194\u5316\u65ad\u5f00\u710a\u70b9\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/3.webp\" alt=\"3\" \/><\/p>\n\n<p>\u53e6\u5916\u8981\u628a\u4e3b\u677f\u4ece\u4e2d\u6846\u4e0a\u53d6\u4e0b\u6765\uff0c\u5c31\u8981\u677e\u5f00\u7275\u5f15\u7ec6\u91d1\u5c5e\u68d2\u7528\u7684\u68c9\u7ebf\u3002\u53d6\u4e0b\u7ec6\u91d1\u5c5e\u6761\uff0c\u5f85\u4f1a\u518d\u88c5\u56de\u53bb\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/4.webp\" alt=\"4\" \/><\/p>\n\n<p>\u68c9\u7ebf\u662f\u4e2a\u8fde\u7740\u5f39\u7c27\u94a9\u5b50\u7684\u73af\uff0c\u94a9\u5b50\u5f00\u53e3\u671d\u4e0b\u94a9\u4f4f\u4e3b\u677f\u4e0a\u7684\u8c03\u9891\u7535\u4f4d\u5668\uff0c\u7ed5\u4e00\u531d\uff1b\u5728\u8c03\u9891\u65cb\u94ae\u4e0a\u5219\u662f\u7ed5\u4e24\u531d\uff0c\u5f85\u4f1a\u7a7f\u56de\u53bb\u7684\u65f6\u5019\u8981\u6309\u531d\u6570\u6765\u3002\u53e6\u5916\u6309\u9006\u65f6\u9488\u65b9\u5411\u7684\u8bdd\uff0c\u5728\u8c03\u9891\u7535\u4f4d\u5668\u4e0a\u8981\u5f80\u4e0a\u7ed5\uff0c\u5728\u8c03\u9891\u65cb\u94ae\u4e0a\u662f\u5f80\u4e0b\u7ed5\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/5.webp\" alt=\"5\" \/><\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/6.webp\" alt=\"6\" \/><\/p>\n\n<p>\u65e2\u7136\u62c6\u4e86\uff0c\u5148\u770b\u4e0b\u4e3b\u677f\u4e0a\u6709\u5565\u5427\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/7.webp\" alt=\"7\" \/><\/p>\n\n<p>\u98de\u7ebf\uff0c\u4e0b\u9762\u8fd8\u6709\u7247\u8d34\u7eb8\uff0c\u5e94\u8be5\u662f\u4e3a\u4e86\u9632\u6b62\u548c\u4e0b\u9762\u7684\u710a\u70b9\u63a5\u89e6\u77ed\u8def\u3002\u8d34\u7eb8\u65e9\u5c31\u4e25\u91cd\u8001\u5316\u4e86\uff0c\u76f4\u63a5\u6362\u6210\u7535\u5de5\u80f6\u5e26\u3002\u6709\u8fd9\u4e48\u591a\u98de\u7ebf\u4f30\u8ba1\u662f\u56e0\u4e3a\u7528\u4e86\u5355\u5c42\u677f\uff0c\u770b\u8fd9\u710a\u70b9\u4e0a\u7684\u677e\u9999\u75d5\u8ff9\u80af\u5b9a\u662f\u4eba\u5de5\u710a\u7684\uff0c\u5174\u8bb8\u98de\u4e24\u6761\u7ebf\u80fd\u6bd4\u7528\u53cc\u5c42\u677f\u7701\u4e0d\u5c11\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/8.webp\" alt=\"8\" \/><\/p>\n\n<p>\u4e3b\u677f\u4e0a\u57fa\u672c\u90fd\u662f\u76f4\u63d2\u5143\u4ef6\uff0c\u4e0d\u8fc7\u7adf\u7136\u6709\u4e00\u4e2a\u8d34\u7247\u7684\u96c6\u6210\u5757\uff0c\u8fd8\u6709\u4e24\u4e2a\u710a\u4e00\u8d77\u7684\u8d34\u7247\u9676\u74f7\u7535\u5bb9\uff0c\u770b\u8d77\u6765\u710a\u7740\u5c31\u5f88\u7d2f\u7684\u6837\u5b50\u3002\u96c6\u6210\u5757\u4e0a\u7684\u5b57\u2026\u2026\u5fd8\u8bb0\u62cd\u4e86<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/9.webp\" alt=\"9\" \/><\/p>\n\n<p>\u5f00\u59cb\u710a\u5929\u7ebf\u3002\u8fd9\u5f20\u56fe\u5de6\u4e0a\u89d2\uff0c\u6216\u8005\u6536\u97f3\u673a\u6b63\u9762\u5de6\u4e0a\u89d2\u6709\u201cANT\u201d\u4e1d\u5370\u7684\u5c31\u662f\u5929\u7ebf\u4f4d\u7f6e\u3002\u968f\u4fbf\u627e\u4e00\u6839\u6298\u53e0\u5929\u7ebf\uff0c\u5b8c\u5168\u62c9\u5f00\uff0c\u628a\u4e3b\u677f\u4e0a\u7684\u5929\u7ebf\u5bfc\u7ebf\u5f2f\u6210\u87ba\u65cb\u5f62\uff0c\u585e\u5929\u7ebf\u7a7a\u8154\u91cc\uff0c\u5f80\u91cc\u52a0\u9521\u3002\u5982\u679c\u7535\u70d9\u94c1\u529f\u7387\u4e0d\u591f\u7684\u8bdd\u53ef\u4ee5\u7528\u6253\u706b\u673a\u7a0d\u5fae\u70e7\u4e00\u4e0b\uff0c\u5c0f\u5fc3\u70eb\u624b\u3002<\/p>\n\n<p>\u5b8c\u4e8b\u4e86\u518d\u628a\u4e3b\u677f\u88c5\u56de\u4e2d\u6846\uff0c\u518d\u88c5\u68c9\u7ebf\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/10.webp\" alt=\"10\" \/><\/p>\n\n<p>\u5982\u679c\u89c9\u5f97\u68c9\u7ebf\u4e0d\u592a\u597d\u6263\uff0c\u53ef\u4ee5\u50cf\u8fd9\u6837\u5148\u628a\u7ec6\u91d1\u5c5e\u68d2\u88c5\u4e0a\uff0c\u8ba9\u68c9\u7ebf\u7a7f\u8fc7\u56db\u5468\u7684\u673a\u6784\uff0c\u677e\u57ae\u5730\u642d\u5728\u4e2d\u95f4\u8c03\u9891\u7535\u4f4d\u5668\u4e0a\uff0c\u518d\u6309\u4f4f\u5e76\u65cb\u8f6c\u8c03\u9891\u65cb\u94ae\u8ba9\u68c9\u7ebf\u6536\u7d27\u5c31\u597d\u4e86\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/11.webp\" alt=\"11\" \/><\/p>\n\n<p>\u4e4b\u540e\u5148\u5b89\u88c5\u62e8\u52a8\u5f00\u5173\u5916\u58f3\uff0c\u518d\u5b89\u88c5\u91d1\u5c5e\u677f\u9891\u7387\u8868\u3002\u7ec6\u91d1\u5c5e\u68d2\u6709\u53ef\u80fd\u548c\u771f\u5b9e\u9891\u7387\u4e0d\u592a\u80fd\u5bf9\u9f50\u2026\u2026\u6ca1\u4ec0\u4e48\u597d\u529e\u6cd5\uff0c\u6309\u4f4f\u8c03\u9891\u65cb\u94ae\u4f7f\u52b2\u62fd\u4e00\u4e0b\u7ec6\u91d1\u5c5e\u68d2\u4e0e\u68c9\u7ebf\u7684\u8fde\u63a5\u5904\u597d\u4e86\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/12.webp\" alt=\"12\" \/><\/p>\n\n<p>\u91d1\u5c5e\u677f\u9891\u7387\u8868\u8fb9\u7f18\u4f1a\u88ab\u524d\u9762\u677f\u76d6\u4f4f\u7684\u5730\u65b9\u5199\u7740\u201c2003.7.10\u201d\uff0c\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u4ec0\u4e48\u51fa\u5382\u65e5\u671f\u3002<\/p>\n\n<p>\u88c5\u4e0a\u540e\u9762\u677f\u4e4b\u524d\u53ef\u4ee5\u5148\u7528\u80f6\u56fa\u5b9a\u4e00\u4e0b\u5929\u7ebf\u3002\u539f\u7248\u5929\u7ebf\u662f\u80fd\u65cb\u8f6c\u7684\uff0c\u6298\u5230\u6700\u77ed\u4e4b\u540e\u53ef\u4ee5\u5f80\u53f3\u8f6c\u4e00\u4e0b\u653e\u5012\u6536\u8d77\u6765\u3002\u6211\u8fd9\u6839\u6362\u4e0a\u53bb\u7684\u4e0d\u884c\uff0c\u4e0d\u8fc7\u6574\u4f53\u89c2\u611f\u4e0d\u592a\u5dee\u5c31\u662f\u4e86\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/radio\/13.webp\" alt=\"13\" \/><\/p>\n\n<p>\u5f88\u591a\u4e8b\u60c5\u5fd8\u8bb0\u4e4b\u540e\u5e76\u4e0d\u662f\u5b8c\u5168\u4ece\u5927\u8111\u4e2d\u62b9\u9664\u4e86\uff0c\u53ea\u662f\u4e0d\u4f1a\u81ea\u53d1\u88ab\u60f3\u8d77\uff0c\u9700\u8981\u70b9\u5951\u673a\u7f62\u4e86\u3002\u8fd9\u53f0\u6536\u97f3\u673a\u662f\u6211\u5916\u7956\u6bcd\u9000\u4f11\u524d\uff0c\u6211\u5728\u5979\u5355\u4f4d\u73a9\u800d\u65f6\u5979\u7684\u4e00\u4f4d\u540c\u4e8b\u9001\u6211\u7684\u3002\u90a3\u65f6\u5019\u6211\u597d\u50cf\u8fd8\u633a\u8ba8\u559c\u7684\uff0c\u6216\u8005\u81f3\u5c11\u6210\u5e74\u4eba\u90fd\u89c9\u5f97\u6211\u806a\u660e\u3002\u8be5\u8bf4\u65e9\u719f\u5c31\u610f\u5473\u7740\u65e9\u8870\u5417\uff0c\u4f46\u662f\u73b0\u5728\u6211\u5fc3\u667a\u4e5f\u6ca1\u6210\u719f\u8d77\u6765\u3002<\/p>\n\n<p>\u73b0\u5728\u5fb7\u751f\u8fd8\u5728\u9020\u8fd9\u4e2a\u578b\u53f7\u7684\u6536\u97f3\u673a\uff0c\u5916\u89c2\u770b\u4e0a\u53bb\u5b8c\u5168\u4e00\u6837\uff0c\u4e0d\u8fc7\u5185\u90e8\u4f30\u8ba1\u5df2\u7ecf\u5c0f\u578b\u5316\u4e86\u5427\uff0c\u7528\u73b0\u5728\u96c6\u6210\u5ea6\u9ad8\u7684\u65b9\u6848\u5e94\u8be5\u80fd\u7701\u4e0d\u5c11\u6210\u672c\u3002\u5df2\u7ecf\u56de\u4e0d\u53bb\u4e86\u554a\u3002<\/p>\n","pubDate":"Wed, 24 Sep 2025 00:00:00 +0000","link":"https:\/\/ratizux.github.io\/2025\/09\/24\/1.html","guid":"https:\/\/ratizux.github.io\/2025\/09\/24\/1.html"},{"title":"AOSCC 2024 \u6e38\u8bb0","description":"<p>\u4eca\u5e74 AOSCC \u5728\u5409\u6797\u5927\u5b66\u3002\u5f88\u8fdc\uff0c\u4e0d\u8fc7\u7ed9\u9879\u76ee\u6254\u6389\u8dd1\u53bb\u73a9\u5c31\u5f88\u523a\u6fc0\uff0c\u7b97\u662f\u7ed9\u81ea\u5df1\u653e\u5047\u4e86\u3002<\/p>\n\n<h1 id=\"day--1\">Day -1<\/h1>\n\n<p>\u6536\u62fe\u4e9b\u4e71\u4e03\u516b\u7cdf\u7684\u7535\u5b50\u4ea7\u54c1\uff0c\u53bb\u673a\u573a\u3002\u4e0a\u6b21\u5750\u98de\u673a\u90fd\u662f\u4e94\u5c81\u7684\u65f6\u5019\u4e86\uff0c\u73b0\u5728\u5b8c\u5168\u4e0d\u77e5\u9053\u8981\u8d70\u4ec0\u4e48\u6d41\u7a0b\uff0c\u6240\u4ee5\u53bb\u627e 7e \u4e34\u573a\u6307\u5bfc\u2026\u2026\u8bdd\u8bf4\u4ed6\u7adf\u7136\u4e0d\u53bb\uff0c\u5012\u662f\u5e26\u4e86\u70b9\u7535\u5b50\u8bbe\u5907\u73a9\u4e86\u597d\u4e45\uff0c\u8fd8\u62ff\u4e86\u96f6\u98df\u2026\u2026\u5f88\u597d\u5403\u3002<\/p>\n\n<p>\u8427\u5c71\u673a\u573a\u9020\u5f97\u7279\u522b\u5bb9\u6613\u8ba9\u4eba\u8ff7\u8def\uff0c\u5076\u6570\u5947\u6570\u5165\u53e3\u7adf\u7136\u5728\u4e0d\u540c\u697c\u5c42\uff0c\u4e0d\u77e5\u9053\u5f53\u65f6\u8bbe\u8ba1\u7684\u4eba\u5728\u60f3\u4ec0\u4e48\u3002\u6302\u4e2a\u63d0\u793a\u8bed\u6307\u5f15\u4e00\u4e0b\u4e5f\u597d\u554a\uff0c\u53d7\u4e0d\u4e86\u3002<\/p>\n\n<p>\u767b\u673a\u4e4b\u524d\u7f13\u5b58\u4e86\u70b9\u300a\u7a7a\u4e2d\u6d69\u52ab\u300b\uff0c\u8d77\u98de\u4e4b\u540e\u53d1\u73b0\u5b8c\u5168\u770b\u4e0d\u4e86\uff0c\u5f15\u64ce\u58f0\u592a\u5435\u6211\u5565\u4e5f\u542c\u4e0d\u89c1\uff0c\u8fd8\u662f\u770b\u4e66\u7761\u89c9\u4f1a\u597d\u4e00\u70b9\u3002\u8bdd\u8bf4\u624b\u673a\u652f\u6301\u6c14\u538b\u4f20\u611f\u5668\u7684\u540c\u5b66\u53ef\u4ee5\u8bb0\u5f55\u4e00\u4e0b\u8d77\u98de\u964d\u843d\u65f6\u7684\u673a\u8231\u6c14\u538b\uff0c\u633a\u597d\u73a9\u7684\u3002<\/p>\n\n<p>\u4e3a\u4e86\u7701\u4e09\u767e\u5757\u94b1\u4e70\u4e86\u8d85\u957f\u8f6c\u673a\u7684\u7968\uff0c\u51cc\u6668\u5148\u5230\u70df\u53f0\u3002<\/p>\n\n<h1 id=\"day-0\">Day 0<\/h1>\n\n<p>\u70df\u53f0\u5f88\u504f\uff0c\u6216\u8005\u8bf4\u662f\u5f88\u4e0d\u53d1\u8fbe\uff0c\u8def\u8fb9\u5c0f\u5356\u90e8\u91cc\u90fd\u80fd\u89c1\u5230\u6211\u5c0f\u5b66\u95e8\u53e3\u90a3\u79cd\u4e94\u6bdb\u94b1\u4e00\u888b\u7684\u51b0\u68cd\uff0c\u5c0f\u4f5c\u574a\u4ea7\u54c1\u2026\u2026\u52a0\u4e0a\u8fd9\u91cc\u65b9\u8a00\u548c\u6211\u8001\u5bb6\u7684\u6709\u70b9\u50cf\uff0c\u7a81\u7136\u6709\u70b9\u604d\u60da\u3002\u597d\u5403\u7684\u5012\u662f\u4e0d\u7f3a\uff0c\u673a\u573a\u79bb\u6d77\u5cb8\u7ebf\u5c31\u5341\u51e0\u516c\u91cc\uff0c\u5468\u56f4\u7684\u70e7\u70e4\u5e97\u80fd\u5403\u5230\u7684\u70e4\u9c7f\u9c7c\u4ec0\u4e48\u7684\u6bd4\u5185\u5730\u5927\u5f97\u591a\uff0c\u53c8\u65b0\u9c9c\uff0c\u8bf4\u662f\u6211\u5403\u8fc7\u7684\u6700\u597d\u5403\u7684\u70e7\u70e4\u4e5f\u6beb\u4e0d\u5938\u5f20\u3002\u5982\u679c\u6709\u540c\u5b66\u4e5f\u5728\u90a3\u91cc\u8f6c\u673a\u7684\u8bdd\u5f88\u63a8\u8350\u53bb\u8bd5\u8bd5\u3002<\/p>\n\n<p>\u665a\u4e0a\u843d\u5730\u957f\u6625\uff0c\u548c\u6d45\u8001\u5e08\u548c\u795e\u7ecf\u5143\u8001\u5e08\u62fc\u623f\u3002\u6d45\u8001\u5e08 \u00b7 \u7279\u522b \u00b7 \u53d7\u6b22\u8fce\uff0c\u597d\u51e0\u4e2a\u4eba\u62a2\u7740\u8981\u8d5b\u535a\u5408\u5f71\uff0c\u5f53\u665a\u623f\u95f4\u76f4\u63a5\u53d8\u6210 AOSCC \u5206\u4f1a\u573a\uff08\u7b11\uff09\uff0c7e \u9001\u7684\u96f6\u98df\u8fd8\u88ab\u767d\u5ad6\u4e0d\u5c11\uff0c\u80fd\u770b\u51fa\u6765\u5927\u5bb6\u90fd\u5f88\u559c\u6b22\u3002\u4eca\u5e74\u5e94\u8be5\u662f BearChild \u548c\u51b0\u732b\u7b2c\u4e00\u6b21\u6765\uff0c\u4e24\u4f4d\u90fd\u5f88\u5065\u8c08\uff0c\u8bf4\u5b9e\u8bdd\u6709\u70b9\u7fa1\u6155\u3002<\/p>\n\n<p>\u8fd9\u65f6\u5019\u5df2\u7ecf\u80fd\u5728\u5927\u5385\u91cc\u9886\u5e06\u5e03\u5305\u548c\u8d34\u7eb8\u4e86\uff0c\u4eca\u5e74\u8fd8\u591a\u4e86\u4e9a\u514b\u529b\u6302\u4ef6\u548c\u5370\u540d\u5b57\u7684\u80f8\u724c\uff0c\u6709\u4e86\u80f8\u724c\u7fa4\u53cb\u4e4b\u95f4\u4e92\u76f8\u6355\u6349\u5c31\u65b9\u4fbf\u6781\u4e86\uff0c\u80fd\u770b\u51fa\u6765\u793e\u533a\u8fd9\u8fb9\u5f88\u7528\u5fc3\u3002<\/p>\n\n<p>\uff08\u8981\u662f\u6709\u7fa4\u53cb\u5077\u5077\u4ea4\u6362\u4e00\u4e0b\u80f8\u724c\u2026\u2026\u611f\u89c9\u5e94\u8be5\u4f1a\u5f88\u6709\u8da3\uff09<\/p>\n\n<h1 id=\"day-1\">Day 1<\/h1>\n\n<p>\u4e0a\u5348\u7684\u5185\u5bb9\u4e0d\u662f\u7279\u522b\u6709\u8da3\uff0c\u6211\u5168\u7a0b\u5728\u65c1\u8fb9\u73a9\u840c\u72fc\u5237\u4e86 postmarketOS \u7684 Lenovo IdeaPad Duet Chromebook\u2026\u2026\u540d\u5b57\u597d\u957f\uff0c\u558a\u5b83\u4ee3\u53f7 krane \u597d\u4e86\u3002\u673a\u5668\u642d\u8f7d\u7684\u662f MT8183\uff0c\u6027\u80fd\u504f\u4e0b\uff0c\u4e0d\u8fc7\u7adf\u7136\u80fd\u4e0a\u4e3b\u7ebf\u5185\u6838\uff0c\u8fd9\u4e8b\u653e\u5230\u8054\u53d1\u79d1\u4e0a\u5c31\u611f\u89c9\u6709\u70b9\u795e\u5947\u3002Mali Bifrost GPU \u6709\u5f00\u6e90\u7684 Panfrost \u9a71\u52a8\uff0c\u7528\u8d77\u6765\u4e00\u822c\u822c\uff0c\u62ff\u6765\u8dd1\u7248\u672c\u4e0d\u8d85 1.16.5 \u7684 Minecraft \u52c9\u5f3a\u80fd\u8fbe\u5230 60 \u5e27\u3002Panfrost \u53ea\u652f\u6301\u5230 OpenGL 3.1\uff0c\u8dd1\u66f4\u9ad8\u7248\u672c\u7684 Minecraft \u4f1a\u62a5 GLSL \u7248\u672c\u4e0d\u591f\uff0c\u5f3a\u5236\u8986\u76d6\u7248\u672c\u53f7\u7684\u8bdd\u80fd\u8fd0\u884c\u4f46\u975e\u5e38\u5361\u2026\u2026\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u3002<\/p>\n\n<p>\u4eca\u5e74\u5c55\u53f0\u4e0a\u4e5f\u6709\u597d\u591a\u7a00\u5947\u53e4\u602a\u7684\u8bbe\u5907\uff0c\u4e0d\u8fc7\u7ad9\u5c55\u53f0\u65c1\u8fb9\u679c\u7136\u8fd8\u662f\u6ca1\u6709\u73a9\u7fa4\u53cb\u5e26\u7684\u673a\u5668\u8212\u670d\u3002<\/p>\n\n<p>\u901b\u901b\u98df\u5802\uff0c\u641e\u70b9\u5403\u7684\u3002\u5409\u6797\u5927\u5b66\u7684\u98df\u5802\u7adf\u7136\u6709\u7535\u52a8\u6276\u68af\uff0c\u5546\u4e1a\u533a\u5473\u9053\u5341\u8db3\uff0c\u5728\u57fa\u7840\u8bbe\u65bd\u4e0a\u7b80\u76f4\u662f\u5bf9\u6211\u672b\u6d41\u672c\u79d1\u7684\u5b8c\u5168\u78be\u538b\uff0c\u8c01\u4e0d\u60f3\u81ea\u5df1\u5b66\u6821\u98df\u5802\u91cc\u6709\u5bb6\u6c49\u5821\u738b\u5462\u3002<\/p>\n\n<p>\u4e2d\u5348\u8bf4\u8981\u505c\u7535\uff0c\u6c49\u5821\u738b\u6ca1\u5403\u6210\uff0c\u4e70\u4e86\u70b9\u5377\u997c\u548c\u5173\u4e1c\u716e\uff0c\u8fd8\u6709\u4e5d\u5757\u4e5d\u4e00\u676f\u80fd\u559d\u5230\u4e0d\u7701\u4eba\u4e8b\u7684\u6c14\u6ce1\u6c34\uff0c\u6781\u5ea6\u8212\u9002\u3002\u5403\u5b8c\u53d1\u73b0\u6839\u672c\u6ca1\u505c\u7535\uff0c\u5408\u7740\u662f\u5728\u6574\u6211\u5462\u3002<\/p>\n\n<p>\u4e0b\u5348 BearChild \u62bd\u5230\u4e86\u4e00\u53f0 LicheePi Book 4A\uff0c\u7fa1\u6155\u4e4b\u4f59\u8dd1\u8fc7\u53bb\u770b\u770b\u5f00\u7bb1\u3002\u5b83\u7684\u786c\u4ef6\u5dee\u4e0d\u591a\u5c31\u662f\u5757 LicheePi 4A \u52a0\u4e0a\u70b9\u5916\u8bbe\u548c\u7535\u6c60\uff0c\u952e\u76d8\u548c\u89e6\u63a7\u677f\u624b\u611f\u602a\u602a\u7684\uff0c\u6298\u817e\u4e00\u665a\u4e0a\u58f3\u5b50\u5de6\u534a\u8fb9\u597d\u50cf\u90fd\u88ab\u70ed\u9f13\u5305\u4e86\uff0c\u5587\u53ed\u5b8c\u5168\u7834\u9523\u97f3\u8d28\u3002\u505a\u5de5\u5f53\u7136\u4e0d\u662f\u91cd\u70b9\uff0c\u4f46\u662f\u5b98\u65b9\u5e97\u5356\u4e24\u5343\uff0c\u548c Pinebook Pro \u6bd4\u8d77\u6765\u6beb\u65e0\u80dc\u7b97\u554a\u3002<\/p>\n\n<p>\u6893\u7476\u3001\u795e\u7ecf\u5143\u548c\u6d45\u8001\u5e08\u597d\u50cf\u7279\u522b\u804a\u5f97\u6765\uff0c\u51e0\u4f4d\u9664\u4e86\u6280\u672f\u4e4b\u5916\u8fd8\u4f1a\u8bf4\u8bf4\u4eb2\u5bc6\u5173\u7cfb\uff1a\u63a5\u7eb3\u3001\u966a\u4f34\u3001\u53cc\u65b9\u611f\u60c5\u7684\u503e\u6ce8\u3002\u8981\u662f\u8fd9\u4e2a\u8bdd\u9898\u8fd8\u80fd\u548c\u6211\u6709\u4e00\u70b9\u5173\u7cfb\uff0c\u90a3\u5c31\u771f\u7684\u592a\u597d\u4e86\u5450\u3002<\/p>\n\n<p>\u2026\u2026\u53ef\u60dc\u6211\u53ea\u80fd\u7a0d\u5fae\u5e0c\u671b\u4e00\u4e0b\uff0c\u81ea\u5df1\u80fd\u4ece\u8fc7\u53bb\u7684\u521b\u4f24\u4e2d\u75ca\u6108\uff0c\u4e4b\u7c7b\u7684\uff0c\u5927\u6982\u3002<\/p>\n\n<p>\u665a\u4e0a\u623f\u95f4\u53c8\u662f AOSCC \u5206 C\uff0c\u7fa4\u53cb\u76f4\u63a5\u5f00\u6d4b LicheePi Book \u7684 glmark2\uff0c\u53c8\u5728\u4e0a\u9762\u7528 TCG \u8dd1 WinXP\uff08\u53cd\u6b63\u90fd\u662f Deepin \u561b\uff0cRISC-V \u8dd1\u4e00\u4e0b\u5f88\u5408\u7406\uff09\uff0c\u73b0\u573a\u6d4b RVV \u7a0b\u5e8f\u4ec0\u4e48\u7684\uff0c\u4fe1\u521b\u6d53\u5ea6\u6ea2\u51fa\u3002\u6d4b\u5b8c\u53d1\u73b0\u673a\u5668 GPU \u6ca1\u5f00\u6e90\u9a71\u52a8\uff0c\u95ed\u6e90\u7684\u53ea\u7ed9\u4e86 GLES \u652f\u6301\uff0c\u6253\u7b97\u641e\u641e gl4es\u3002<\/p>\n\n<p>TH1520 \u7684\u6027\u80fd\u2026\u2026\u611f\u89c9\u6bd4 JH7110 \u597d\u591a\u4e86\uff0c\u591c\u91cc\u60f3\u8fd0\u884c\u4e2a Minecraft\uff0c\u53ef\u60dc\u542f\u52a8\u5668\u52a0\u8f7d\u7684 LWJGL \u67b6\u6784\u4e00\u76f4\u4e0d\u5bf9\u3002<\/p>\n\n<h1 id=\"day-2\">Day 2<\/h1>\n\n<p>\u7389\u7c73\u72d0\u72f8\u8dd1\u6389\u4e86\u2026\u2026<\/p>\n\n<p>\u4e0a\u5348\u6709\u5f00\u53d1\u8005\u8bb2 Box86\/Box64 \u7684\u5b9e\u73b0\u539f\u7406\u2026\u2026\u5f88\u60f3\u542c\uff0c\u4e0d\u8fc7\u542c\u4e0d\u61c2\u554a\uff0c\u597d\u96be\u3002\u4e4b\u540e\u5370\u8c61\u6bd4\u8f83\u6df1\u7684\u5c31\u662f\u67d0\u8bb2\u8005\u7684\u201c\u591a\u60f3\u591a\u770b\u5c11\u52a8\u624b\u201d\u2026\u2026\u6df1\u6709\u611f\u89e6\uff0c\u6211\u8ba4\u771f\u8bfb\u8fc7\u7684\u4f18\u79c0\u4ee3\u7801\u592a\u5c11\u4e86\uff0c\u597d\u591a\u65f6\u5019\u90fd\u662f\u5728\u778e\u5012\u817e\uff0c\u7528\u4e00\u4e0b\u51fd\u6570\u5e93\u6216\u8005\u9ad8\u7ea7\u7279\u6027\u5374\u5f04\u5de7\u6210\u62d9\u4e5f\u5e38\u6709\u3002<\/p>\n\n<p>\u8bae\u7a0b\u7684\u95f4\u9699\u5c31\u8dd1\u5230 BearChild \u90a3\u7ee7\u7eed\u6298\u817e\u4e86\u4e0b Minecraft\uff0cLWJGL \u7b97\u662f\u80fd\u52a0\u8f7d\u4e86\uff0c\u4f46\u6e38\u620f\u6b7b\u6d3b\u4e0d\u5403 gl4es\uff1b\u8bd5\u4e0b\u8f6c\u800c\u7528 virpipe \u4e5f\u6ca1\u7528\uff0c\u4e0d\u77e5\u9053\u662f\u4e0d\u662f RevyOS \u6ca1\u5f00\u8fd9\u529f\u80fd\uff0c\u4e5f\u8bb8\u8fd8\u5f97\u81ea\u5df1\u7f16\u8bd1 Mesa\u2026\u2026\u70e6\u6b7b\u4e86\u3002\u6211\u65e0\u80fd\u72c2\u6012\uff0cBearChild \u60f3\u7740\u8dd1\u4e2a\u670d\u52a1\u5668\u7b97\u4e86\uff0c\u6027\u80fd\u5012\u662f\u610f\u5916\u5730\u8fd8\u51d1\u5408\uff0c\u4e0a PaperMC \u52c9\u5f3a\u80fd\u6ee1\u8db3\u51e0\u4eba\u8054\u673a\u3002LicheePi Book \u98ce\u6247\u6709\u4e09\u6321\uff0c\u9ed8\u8ba4\u914d\u7f6e\u597d\u4e0d\u79ef\u6781\uff0c\u679c\u65ad\u6539 Device Tree \u8ba9\u98ce\u6247\u5f00\u59cb\u52a0\u901f\u7684\u6e29\u5ea6\u70b9\u4f4e\u4e00\u70b9\u3002\u4e09\u6321\u98ce\u6247\u679c\u7136\u8fd8\u662f\u592a\u5c11\u4e86\uff0c\u4e0d\u77e5\u9053\u80fd\u4e0d\u80fd\u52a0\uff0c\u4e0d\u8fc7\u6211\u4e0d\u719f\u6089\u8fd9\u65b9\u9762\uff0c\u6ca1\u6562\u4e71\u52a8\u3002<\/p>\n\n<p>\u53ef\u60dc\u4e0d\u4f1a\u5206\u8eab\u672f\u554a\uff0c\u840c\u72fc\u7684 krane \u6211\u6bd5\u7adf\u8fd8\u6ca1\u73a9\u591f\u3002\u4e5f\u6709\u70b9\u540e\u6094\u6ca1\u7ed9\u81ea\u5df1\u7684 PocketCHIP \u548c Switch \u5e26\u6765\uff0c\u4e0d\u7136\u8ba9\u7fa4\u53cb\u73b0\u573a\u6307\u5bfc\u542f\u52a8\u4e3b\u7ebf\u5185\u6838\u60f3\u5fc5\u5341\u5206\u6709\u8da3\u3002<\/p>\n\n<p>\u8bdd\u8bf4\u7fa4\u53cb\u7684\u8bbe\u5907\u73a9\u7740\u90fd\u597d\u65b0\u9c9c\uff0c\u6211\u80fd\u73a9\u5230\u6df1\u591c\u2026\u2026\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u56e0\u4e3a\u81ea\u5df1\u7684\u65e9\u5c31\u73a9\u817b\u4e86\u3002\u4e5f\u8bb8\u4ee5\u540e\u6709\u673a\u4f1a\u53ef\u4ee5\u591a\u641e\u70b9\u4e92\u76f8\u73a9\u7075\u8f66\u8bbe\u5907\u7684\u6d3b\u52a8\uff0c\u80af\u5b9a\u6bd4\u4e00\u76f4\u81ea\u5df1\u4e00\u4e2a\u4eba\u6413\u6b22\u4e50\u5f97\u591a\u3002\u8981\u662f HZLUG \u7684\u4eba\u80fd\u591a\u4e00\u70b9\u5c31\u597d\u4e86\u3002<\/p>\n\n<h1 id=\"day-3\">Day 3<\/h1>\n\n<p>\u80fd\u6709\u7fa4\u53cb\u8fd9\u79cd\u9634\u95f4\u4f5c\u606f\u7684\u4e5f\u662f\u6ca1\u8c01\u4e86\u3002\u8bdd\u8bf4\u6211\u5f53\u65f6\u5c31\u8be5\u7ed9\u6d45\u8001\u5e08\u548c\u95f9\u949f\u6597\u667a\u6597\u52c7\u7684\u573a\u9762\u5f55\u4e0b\u6765\uff1a<\/p>\n\n<p>\uff08\u95f9\u949f\u54cd\u8d77\uff09<\/p>\n\n<p>\u6d45\uff1a\u201c\u2026\u2026\u201d<\/p>\n\n<p>\u6d45\uff1a\uff08\u5173\u6389\u95f9\u949f\uff09<\/p>\n\n<p>\uff08\u51e0\u5206\u949f\u540e\uff0c\u95f9\u949f\u518d\u6b21\u54cd\u8d77\uff09<\/p>\n\n<p>\u6d45\uff1a\u201c\u2026\u2026\u55ef\uff1f\u201d<\/p>\n\n<p>\u6d45\uff1a\uff08\u5173\u6389\u95f9\u949f\uff09<\/p>\n\n<p>\uff08\u91cd\u590d\uff09<\/p>\n\n<p>\u4e2d\u5348\u6ca1\u5565\u4e8b\u5e72\uff0c\u627e Elaina \u5728\u6821\u56ed\u91cc\u8f6c\u4e86\u8f6c\u3002\u5927\u8349\u576a\u3001\u5927\u56fe\u4e66\u9986\u3001\u9ad8\u7aef\u98df\u5802\uff0c\u8981\u6211\u5b66\u6821\u6709\u8fd9\u4e9b\u7684\u8bdd\u505a\u68a6\u90fd\u80fd\u7b11\u9192\u597d\u5427\u3002\u8981\u662f\u6211\u521d\u4e2d\u5c31\u53c2\u89c2\u8fc7\u8fd9\u79cd\u9ad8\u7b49\u5b66\u5e9c\uff0c\u80af\u5b9a\u4e0d\u4f1a\u6709\u4e4b\u524d\u4e0a\u5b66\u90a3\u79cd\u6f2b\u4e0d\u7ecf\u5fc3\u7684\u6001\u5ea6\u3002<\/p>\n\n<p>\u8d70\u4e4b\u524d\u53bb\u9ad8\u7aef\u98df\u5802\u5403\u4e2a\u9971\uff0c\u518d\u70b9\u4e00\u676f\u8d85\u5927\u676f\u6c14\u6ce1\u6c34\uff0c\u53c8\u5fc3\u6ee1\uff0c\u53c8\u610f\u8db3\u3002<\/p>\n\n<p>\u822a\u73ed\u4e0a\u6ca1\u5565\u6709\u610f\u601d\u7684\u4e1c\u897f\uff0c\u4e0d\u8fc7\u53a6\u822a\u7684\u98de\u673a\u9910\u610f\u5916\u7684\u5f88\u597d\u5403\uff0c\u7092\u996d\u597d\u9999\uff0c\u996e\u6599\u5c0f\u96f6\u98df\u4e5f\u4e0d\u7f3a\u3002\u76f8\u6bd4\u5c71\u822a\u7684\u4e24\u9762\u5305\u5939\u2026\u2026\u9e21\u6392\uff0c\u4e0d\u77e5\u9053\u9ad8\u5230\u54ea\u91cc\u53bb\u4e86\u3002<\/p>\n\n<p>\u660e\u5e74\u591a\u62c9\u4e24\u4f4d\u7fa4\u53cb\u53bb AOSCC\uff01<\/p>\n\n<h1 id=\"\u5173\u4e8e\u5199\u535a\u5ba2\">\u5173\u4e8e\u5199\u535a\u5ba2<\/h1>\n\n<p>\u5176\u5b9e\u672c\u6765\u4e0d\u60f3\u8fd9\u4e24\u5929\u5199\u6e38\u8bb0\uff0c\u53ea\u662f\u60f3\u5230\u535a\u5ba2\u597d\u4e45\u6ca1\u66f4\u4e86\uff0c\u540c\u65f6\u5bb3\u6015\u81ea\u5df1\u5fd8\u8bb0 AOSCC \u4e0a\u53d1\u751f\u7684\u597d\u591a\u4e8b\u60c5\uff0c\u5c31\u5199\u4e86\u3002<\/p>\n\n<p>\u8bdd\u8bf4\u4e4b\u524d\u6709\u7fa4\u53cb\u6279\u8bc4\u8bf4\u8c01\u7684\u535a\u6587\u7ed3\u6784\u6563\u4e71\u3002\u6211\u60f3\u8981\u662f\u8fd8\u5f97\u63d0\u70bc\u4e2a\u4e2d\u5fc3\u601d\u60f3\u51fa\u6765\uff0c\u90a3\u5e72\u8106\u5927\u5bb6\u90fd\u4e0d\u8981\u5199\u535a\u5ba2\u4e86\uff0c\u53c2\u52a0\u5b8c AOSCC \u90fd\u53bb\u6574\u7bc7\u5b66\u672f\u62a5\u544a\u51fa\u6765\uff0c\u5199\u4e0d\u51fa\u6765\u4e0d\u51c6\u6bd5\u4e1a\u3002<\/p>\n\n<p>\u8981\u662f\u5199\u535a\u5ba2\u8fd8\u5f97\u50cf\u54f2\u5b66\u5bb6\u5199\u6563\u6587\u4e00\u6837\uff0c\u6211\u80af\u5b9a\u4e0d\u4f1a\u89c9\u5f97\u662f\u79cd\u53db\u9006\u65b9\u5f0f\u3002<\/p>\n\n<h1 id=\"\u5173\u4e8e-aoscc\">\u5173\u4e8e AOSCC<\/h1>\n\n<p>\u4e4b\u524d\u51b0\u732b\u7a81\u7136\u8bf4\u4e86\u4e00\u53e5\u2026\u2026\u611f\u89c9\u597d\u591a\u5927\u4f6c\u5728\u4f1a\u573a\u90fd\u5728\u505a\u81ea\u5df1\u7684\u4e8b\uff0c\u53ea\u6709\u81ea\u5df1\u8bd5\u56fe\u4ece\u4f1a\u8bae\u4e0a\u7684\u5185\u5bb9\u4e2d\u83b7\u53d6\u4fe1\u606f\u3002\u5176\u5b9e\u53bb\u5e74\u548c\u5976\u51b0\u4e00\u8d77\u7684\u65f6\u5019\u4e5f\u662f\u8fd9\u4e48\u60f3\u7684\uff0c\u5927\u90e8\u5206\u7fa4\u53cb\u6765\u7740\u90fd\u662f\u4e3a\u4e86\u627e\u4e2a\u9762\u57fa\u7684\u673a\u4f1a\u3002\u4e0d\u77e5\u9053\u4e3b\u529e\u65b9\u90a3\u8fb9\u4f1a\u600e\u4e48\u60f3\uff0c\u4e0d\u8fc7\u6211\u89c9\u5f97\u6ca1\u4ec0\u4e48\u4e0d\u597d\u7684\u3002<\/p>\n\n<h1 id=\"\u5173\u4e8e\u65b0\u67b6\u6784\">\u5173\u4e8e\u65b0\u67b6\u6784<\/h1>\n\n<p>\u8001 MIPS \u5df2\u7ecf\u6ca1\u4eba\u7231\u4e86\uff0c\u4e5f\u8bb8\u3002RISC-V \u548c LoongArch \u4e0d\u77e5\u9053\u54ea\u8fb9\u7684\u7231\u597d\u8005\u591a\u4e00\u70b9\u3002<\/p>\n\n<p>\u9664\u4e86\u4fe1\u521b\u4e4b\u5916\uff0c\u597d\u50cf\u6ca1\u4eba\u4f1a\u63d0\u8d77\u684c\u9762\u7aef RISC-V\u2026\u2026\u4e0d\u77e5\u9053\u8fd9\u6837\u597d\u4e0d\u597d\u3002<\/p>\n\n<h1 id=\"\u5173\u4e8e\u4eb2\u5bc6\u5173\u7cfb\">\u5173\u4e8e\u4eb2\u5bc6\u5173\u7cfb<\/h1>\n\n<p>Heart break. Have a KitKat<\/p>\n","pubDate":"Sun, 21 Jul 2024 00:00:00 +0000","link":"https:\/\/ratizux.github.io\/2024\/07\/21\/1.html","guid":"https:\/\/ratizux.github.io\/2024\/07\/21\/1.html"},{"title":"\u8de8\u8d8a\u7a7a\u95f4\u7684\u5b58\u50a8\u5757\u8bbe\u5907","description":"<p>Linux \u6709\u4e2a\u53eb Network Block Device\uff08NBD\uff09\u7684\u529f\u80fd\uff0c\u4e5f\u5c31\u662f\u628a\u4e00\u4e2a\u8fdc\u7a0b\u4f4d\u7f6e\u6302\u8f7d\u6210\u5757\u8bbe\u5907\u3002NBD \u9700\u8981\u4e24\u90e8\u5206\uff0c\u670d\u52a1\u7aef\u7528\u6765\u63d0\u4f9b\u5b58\u50a8\u7a7a\u95f4\uff0c\u5ba2\u6237\u7aef\u628a\u670d\u52a1\u7aef\u63d0\u4f9b\u7684\u5b58\u50a8\u7a7a\u95f4\u62bd\u8c61\u6210\u5757\u8bbe\u5907\uff0c\u4e24\u7aef\u4e4b\u95f4\u901a\u8fc7\u7f51\u7edc\u901a\u4fe1\u3002\u56e0\u4e3a\u662f\u5757\u8bbe\u5907\uff0c\u6240\u4ee5\u53ef\u4ee5\u5f53\u666e\u901a\u5b58\u50a8\u76d8\u7528\uff0c\u4ece\u4efb\u610f\u4f4d\u7f6e\u8bfb\u5199\u6570\u636e\u3002\u8fd9\u6837\u5b83\u5c31\u80fd\u62ff\u6765\u505a\u4e00\u4e9b\u5f88\u9177\u7684\u4e8b\u60c5\uff0c\u6bd4\u5982\u5728\u4e0a\u9762\u5f00\u4e2a swap\u3002<\/p>\n\n<p>NBD \u7684\u5c42\u6b21\u6bd4 NFS \u4f4e\u4e00\u7ea7\uff0cNFS \u670d\u52a1\u5668\u662f\u628a\u6587\u4ef6\u7cfb\u7edf\uff0c\u5ba2\u6237\u7aef\u4e0d\u7528\u8003\u8651\u670d\u52a1\u5668\u5e95\u5c42\u7528\u7684\u662f\u4ec0\u4e48\u6587\u4ef6\u7cfb\u7edf\uff1bNBD \u53ea\u8d1f\u8d23\u63d0\u4f9b\u7a7a\u95f4\uff0c\u8981\u662f\u60f3\u5b58\u6587\u4ef6\uff0c\u8981\u5728 NBD \u8bbe\u5907\u4e0a\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\uff0c\u5ba2\u6237\u7aef\u7684\u5185\u6838\u8981\u6302\u8f7d\u5b83\u3002<\/p>\n\n<p>\u8fd9\u6837\u60f3\u7684\u8bdd NBD \u548c NFS \u7684\u4f7f\u7528\u573a\u666f\u5dee\u522b\u8fd8\u86ee\u5927\u7684\uff0c\u81f3\u5c11\u4e0d\u4f1a\u6709\u4eba\u62ff NBD \u6765\u5171\u4eab\u6587\u4ef6\u5427\u3002<\/p>\n\n<h1 id=\"\u5b89\u88c5\">\u5b89\u88c5<\/h1>\n\n<p>NBD \u5ba2\u6237\u7aef\u7684\u4e3b\u8981\u90e8\u5206\u662f\u5728\u5185\u6838\u91cc\u7684\u3002\u53d1\u884c\u7248\u5982\u679c\u63d0\u4f9b\u4e86 NBD \u5ba2\u6237\u7aef\u7684\u6a21\u5757\uff0c\u76f4\u63a5 <code class=\"language-plaintext highlighter-rouge\">modprobe nbd<\/code> \u5c31\u597d\u4e86\u3002\u6211\u8fd9\u91cc\u9ed8\u8ba4\u4f1a\u521b\u5efa 16 \u4e2a\u5757\u8bbe\u5907\uff0c\u5728 GNOME Disks \u91cc\u770b\u7740\u5341\u5206\u559c\u611f\uff0c\u89c9\u5f97\u592a\u75af\u725b\u75c5\u4e86\u7684\u8bdd\u8bbe\u5b9a <code class=\"language-plaintext highlighter-rouge\">nbds_max=1<\/code> \u5c31\u597d\u4e86\u3002\u5408\u8d77\u6765\u662f <code class=\"language-plaintext highlighter-rouge\">modprobe nbd nbds_max=1<\/code>\u3002<\/p>\n\n<p>Milk-V Duo Buildroot SDK \u5185\u6838\u9ed8\u8ba4\u914d\u7f6e\u662f\u4e0d\u5f00 NBD \u7684\u3002\u6253\u5f00\u4e5f\u5f88\u7b80\u5355\uff0cmenuconfig \u91cc\u627e\u5230 Device Drivers -&gt; Block Devices -&gt; Network block device\uff0c\u540c\u65f6\u4e5f\u542f\u7528 NBD \u5ba2\u6237\u7aef\u7684\u7528\u6237\u7a7a\u95f4\u7684\u8f6f\u4ef6\u5305\uff0c\u7f16\u8bd1\u5373\u53ef\u3002<\/p>\n\n<p>\u670d\u52a1\u7aef\u5c31\u5f88\u968f\u610f\u4e86\uff0c\u53ea\u8981\u80fd\u63d0\u4f9b\u5b58\u50a8\u3001\u76d1\u542c\u7f51\u7edc\u7aef\u53e3\u5c31\u884c\uff0c\u4e0d\u9700\u8981\u7279\u6743\uff0c\u66f4\u4e0d\u9700\u8981\u4f9d\u8d56\u5185\u6838\u529f\u80fd\uff0c\u6240\u4ee5\u5728\u624b\u673a\u4e0a\u4e5f\u80fd\u968f\u4fbf\u5f00\uff0c\u6bd4\u7528 usb_gadget \u63d0\u4f9b\u5b58\u50a8\u5bf9\u624b\u673a\u7684\u8981\u6c42\u4f4e\u591a\u4e86\u3002\u5e38\u89c1\u7684\u670d\u52a1\u7aef\u6709 <code class=\"language-plaintext highlighter-rouge\">nbd-server<\/code> \u548c <code class=\"language-plaintext highlighter-rouge\">nbdkit<\/code> \u4e4b\u7c7b\u7684\uff0c\u76f4\u63a5\u7528\u5305\u7ba1\u7406\u5668\u88c5\u3002<\/p>\n\n<h1 id=\"\u4f7f\u7528\">\u4f7f\u7528<\/h1>\n\n<p>\u53ea\u8981\u8bbe\u7f6e\u597d\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u5c31\u884c\u4e86\u3002<\/p>\n\n<p>\u6bd4\u5982\u7528 <code class=\"language-plaintext highlighter-rouge\">nbd-server<\/code> \u5f00\u4e00\u4e2a NBD \u670d\u52a1\u7aef\uff0c\u6307\u5b9a\u4e00\u4e2a\u5757\u8bbe\u5907\uff08\u6bd4\u5982<code class=\"language-plaintext highlighter-rouge\">\/dev\/sdX<\/code>,<code class=\"language-plaintext highlighter-rouge\">\/dev\/mmcblk0p0<\/code>\u8fd9\u6837\u7684\u7269\u7406\u8bbe\u5907\uff0c\u6216\u8005<code class=\"language-plaintext highlighter-rouge\">\/dev\/zram0<\/code>\u3002\u4f60\u8981\u662f\u60f3\u7684\u8bdd\u8fd8\u53ef\u4ee5\u662f\u53e6\u4e00\u4e2a NBD \u8bbe\u5907\uff09\u6216\u666e\u901a\u6587\u4ef6\uff08\u6362\u4e2a\u8bf4\u6cd5\u5c31\u662f raw \u683c\u5f0f\u7684\u865a\u62df\u76d8\uff09\uff1a<\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">nbd-server -d [\u7aef\u53e3] [\u6587\u4ef6]<\/code><\/p>\n\n<p>\u4e5f\u53ef\u4ee5\u7528 <code class=\"language-plaintext highlighter-rouge\">nbdkit<\/code>\uff0c\u5c31\u4e0d\u518d\u5c40\u9650\u4e8e\u6587\u4ef6\u4e86\uff1a<\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">nbdkit -f -p [\u7aef\u53e3] &lt;\u6a21\u5757&gt; &lt;\u53c2\u6570&gt;<\/code><\/p>\n\n<p>\u6bd4\u5982 <code class=\"language-plaintext highlighter-rouge\">nbdkit -f -p 9909 memory 4G<\/code>\uff0c\u4f1a\u5f00\u4e00\u4e2a\u628a\u6570\u636e\u653e\u5185\u5b58\uff08\u5806\uff0cHeap\uff09\u4e0a\u7684\u670d\u52a1\u7aef<\/p>\n\n<p>\u8bbe\u7f6e\u597d\u670d\u52a1\u7aef\u4e4b\u540e\u7528\u5ba2\u6237\u7aef\u8fde\u63a5\u5373\u53ef\uff0c\u4ecd\u7136\u7528 <code class=\"language-plaintext highlighter-rouge\">nbd-server<\/code> \u6216\u8005 <code class=\"language-plaintext highlighter-rouge\">nbdkit<\/code>\u3002\u8fd9\u91cc\u76f4\u63a5\u8c03\u7528\u7684\u5ba2\u6237\u7aef\u662f\u7528\u6237\u7a7a\u95f4\u91cc\u7684\u5de5\u5177\uff0c\u5b9e\u9645\u7528\u5904\u53ea\u662f\u548c\u5185\u6838\u6253\u4ea4\u9053\u7f62\u4e86\uff0c\u6240\u4ee5\u7528\u54ea\u4e2a\u90fd\u4e00\u6837\uff0c\u4e5f\u4e0d\u9700\u8981\u548c\u670d\u52a1\u7aef\u7684\u8f6f\u4ef6\u4e00\u81f4\u3002<\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">sudo nbd-client [\u4e3b\u673a] [\u7aef\u53e3] \/dev\/nbdX<\/code><\/p>\n\n<p>\u6216\u8005<\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">sudo nbd-client -d \/dev\/nbdX<\/code><\/p>\n\n<p>\u8bbe\u7f6e\u5b8c\u6210\u4e4b\u540e\u5b83\u5c31\u662f\u4e00\u4e2a\u4e0e\u8fdc\u7a0b\u4e3b\u673a\u76f8\u8fde\u7684\u5757\u8bbe\u5907\uff0c\u7269\u7406\u5b58\u50a8\u8bbe\u5907\u7684\u57fa\u672c\u529f\u80fd\u5b83\u90fd\u6709\u3002<\/p>\n\n<p>\u670d\u52a1\u7aef\u7531\u4e8e\u67d0\u79cd\u539f\u56e0\u548c\u5ba2\u6237\u7aef\u65ad\u5f00\u7684\u60c5\u51b5\u4e0b\u4f1a\u600e\u4e48\u6837\uff1f\u7b54\u6848\u662f\u5185\u6838\u4f1a\u62a5 <code class=\"language-plaintext highlighter-rouge\">I\/O error<\/code>\uff0c\u548c\u786c\u76d8\u7a81\u7136\u574f\u6389\u7684\u611f\u89c9\u5dee\u4e0d\u591a\u3002\u7528\u7684\u65f6\u5019\u8bb0\u5f97\u627e\u4e2a\u8fde\u63a5\u8d28\u91cf\u597d\u7684\u73af\u5883\u3002<\/p>\n\n<h1 id=\"\u6ee5\u7528\">\u6ee5\u7528<\/h1>\n\n<p>Milk-V Duo \u539f\u7248\u53ea\u6709 64M \u5185\u5b58\uff0c\u7528\u8d77\u6765\u5341\u5206\u4e0d\u723d\uff0c\u4e0d\u5982\u5728 NBD \u4e0a\u5f00\u4e2a swap\u3002\u6446\u8131\u4e86\u5185\u5b58\u4e0d\u8db3\u7684\u70e6\u607c\uff0c\u5c31\u53ef\u4ee5\u62ff\u5b83\u5e72\u4e00\u4e9b\u66f4\u9177\u7684\u4e8b\uff0c\u6bd4\u5982\u8dd1\u4e2a Minecraft \u670d\u52a1\u5668\uff1a<\/p>\n\n<video controls=\"\" style=\"width:100%\">\n<source src=\"https:\/\/ratizux.github.io\/res\/cuberite-milkv-duo\/output-preset3-crf47-24.webm\" type=\"video\/webm\" \/>\nmilk-v-duo-running-cuberite\n<\/video>\n\n<p>\uff08\u770b\u4e0b tmux \u53f3\u4e0b\u89d2\u7684\u65e5\u671f\uff0c\u662f 2023 \u5e74 11 \u6708\u3002\u6211\u662f\u771f\u80fd\u5495\u554a\u2026\u2026\uff09<\/p>\n\n<p>\u8fd9\u91cc\u7528\u7684\u662f <a href=\"https:\/\/cuberite.org\">Cuberite<\/a>\uff0c\u662f\u4e00\u4e2a C++ \u5199\u7684 Minecraft \u670d\u52a1\u5668\uff0c\u4e0e\u539f\u7248\u670d\u52a1\u5668\u65e0\u5173\uff0c\u6027\u80fd\u6bd4\u539f\u7248\u8981\u597d\u5f88\u591a\u3002\u6211\u8fd8\u662f\u6ca1\u80fd\u5728\u5b83\u4e0a\u9762\u8dd1\u8d77\u539f\u7248\u670d\u52a1\u5668\u2026\u2026<\/p>\n\n<p>Cuberite \u662f\u5728 <a href=\"https:\/\/github.com\/revyos\">RevyOS<\/a> \u4e0a\u7f16\u8bd1\u7684\uff0c\u6211\u5728 openSUSE Tumbleweed \u4e0a\u7f16\u8bd1\u7684\u4ea7\u7269\u4e0d\u77e5\u600e\u4e48\u5c31\u662f\u4f1a Segfault\u3002<\/p>\n\n<p>\u8bdd\u8bf4\u4ece\u8fd9\u91cc\u53ef\u4ee5\u770b\u5230 Cuberite \u5728\u8fd9\u4e2a\u8bbe\u7f6e\u4e0b\u5185\u5b58\u5360\u7528\u6ca1\u6709\u8d85\u8fc7 256M\uff0c\u6240\u4ee5\u5018\u82e5\u4f60\u6070\u597d\u6709\u5757 256M \u7248\u672c\u7684 Milk-V Duo\uff0c\u5927\u6982\u53ef\u4ee5\u5728\u4e0a\u9762\u8bd5\u4e0b\u76f4\u63a5\u8fd0\u884c Cuberite\uff1f\u6027\u80fd\u5e94\u8be5\u4f1a\u597d\u5f97\u591a\u3002<\/p>\n\n<p>\u7528 NBD \u5f00 swap\uff0c\u65e0\u8bba\u4ece\u54ea\u4e2a\u5c42\u9762\u5206\u6790\uff0c\u6027\u80fd\u90fd\u4f1a\u6bd4\u76f4\u63a5\u8bbf\u95ee\u5185\u5b58\u5dee\u5f97\u591a\uff08htop \u91cc\u663e\u793a\u7684\u5f88\u9ad8\u7684 IO wait \u6bd4\u4f8b\u4e5f\u8bc1\u5b9e\u4e86\u8fd9\u4e00\u70b9\uff09\u3002\u8bbf\u95ee swap \u4e0a\u7684\u6570\u636e\u65f6\uff0c\u8981\u5148\u628a\u90a3\u90e8\u5206\u6570\u636e\u4f20\u8f93\u5230\u5185\u5b58\u91cc\uff0c\u4e4b\u540e\u5f88\u53ef\u80fd\u53c8\u4f1a\u628a\u4e00\u90e8\u5206\u6682\u65f6\u4e0d\u7528\u7684\u5185\u5b58\u653e\u5230 swap \u4e0a\uff08\u56e0\u4e3a\u8fd9\u91cc\u603b\u5185\u5b58\u592a\u5c0f\u4e86\uff09\uff0c\u6574\u4e2a\u8fc7\u7a0b\u90fd\u662f\u8f6f\u4ef6\u63a7\u5236\u7684\uff0c\u540c\u65f6\u7f51\u7edc\u7684\u6027\u80fd\u901a\u5e38\u4e5f\u6ca1\u5185\u5b58\u4e0e CPU \u901a\u4fe1\u7684\u90a3\u6761\u603b\u7ebf\u597d\uff0c\u6240\u4ee5\u7528 NBD \u5f00 swap \u65e0\u8bba\u8bbf\u95ee\u5ef6\u8fdf\u8fd8\u662f\u901f\u7387\u90fd\u8fdc\u8fdc\u4e0d\u5982\u771f\u5b9e\u5185\u5b58\u3002\u4e0d\u8fc7\u81f3\u5c11\u6027\u80fd\u6bd4\u5f00\u5728 SD \u5361\u4e0a\u597d\u591a\u4e86\u3002<\/p>\n\n<p>\u8fd9\u91cc\u6211\u6ca1\u628a swap \u653e SD \u5361\u4e0a\uff0c\u4e5f\u662f\u56e0\u4e3a SD \u5361\u53d7\u4e0d\u4e86\u8fd9\u4e2a\u5199\u5165\u91cf\u3002\u6b63\u5e38\u60c5\u51b5\u4e0b\u628a swap \u5f00\u5728\u786c\u76d8\u4e0a\uff0c\u662f\u4e3a\u4e86\u8ba9\u5185\u5b58\u91cc\u4e00\u4e9b\u57fa\u672c\u4e0d\u8bbf\u95ee\u7684\u6570\u636e\uff08\u6bd4\u5982\u7a0b\u5e8f\u5f00\u8d77\u6765\u4e4b\u540e\u5c31\u5f80\u5185\u5b58\u91cc\u52a0\u8f7d\u4e86\u4ec0\u4e48\u6570\u636e\uff0c\u4f46\u662f\u4ece\u59cb\u81f3\u7ec8\u6ca1\u6709\u7528\u8fc7\uff09\u653e\u5230\u5916\u90e8\u5b58\u50a8\u4e0a\uff0c\u8ba9\u5185\u5b58\u5e72\u5b83\u8be5\u5e72\u7684\u4e8b\uff08\u5b58\u653e\u9700\u8981\u5927\u91cf\u5feb\u901f\u968f\u673a\u8bfb\u5199\u7684\u5185\u5bb9\uff09\u3002\u6211\u4eec\u7684\u60c5\u51b5\u662f\u5185\u5b58\u548c swap \u91cc\u90fd\u662f\u9700\u8981\u5feb\u901f\u5927\u91cf\u968f\u673a\u8bfb\u5199\u7684\u5185\u5bb9\uff0c\u53ea\u662f\u5185\u5b58\u771f\u7684\u653e\u4e0d\u4e0b\u7f62\u4e86\u3002<\/p>\n","pubDate":"Wed, 01 May 2024 00:00:00 +0000","link":"https:\/\/ratizux.github.io\/2024\/05\/01\/1.html","guid":"https:\/\/ratizux.github.io\/2024\/05\/01\/1.html"},{"title":"\u5d4c\u5165\u5f0f Linux \u4e0e\u5e76\u4e0d\u524d\u6cbf\u7684\u524d\u6cbf\u6280\u672f","description":"<p>\u5b9e\u5728\u60f3\u4e0d\u51fa\u6807\u9898\u4e86\uff0c\u8fd9\u6b21\u5c31\u539f\u8c05\u6211\u5427\u3002<\/p>\n\n<p>\u6691\u5047\u591a\u63a5\u89e6\u4e86\u4e9b\u5d4c\u5165\u5f0f\u8bbe\u5907\uff0c\u52a0\u4e0a AOSCC 2023 \u4e0a\u5404\u8def\u795e\u4ed9\u5e26\u6765\u7684\u673a\u5668\uff0c\u5df2\u7ecf\u53ef\u4ee5\u8bf4\u662f\u8ba9\u6211\u5927\u5f00\u773c\u754c\u4e86\u3002\u534a\u5e74\u524d\u786e\u5b9e\u5b8c\u5168\u60f3\u4e0d\u5230\u81ea\u5df1\u8fd8\u4f1a\u91cd\u65b0\u53bb\u78b0\u8fd9\u9b3c\u4e1c\u897f\u2026\u2026<\/p>\n\n<p>\u6211\u624b\u91cc\u80fd\u7528\u5d4c\u5165\u5f0f Linux \u7684\u5d4c\u5165\u5f0f\u8bbe\u5907\u591a\u534a\u8fd8\u662f\u4e9b\u6709\u4e00\u5b9a\u8ba1\u7b97\u5c5e\u6027\u3001\u548c\u5355\u7247\u673a\u5f00\u53d1\u677f\u6bd4\u66f4\u63a5\u8fd1\u4e00\u822c PC \u7684\u673a\u5668\u3002C51 \u6216\u8005 STM32 \u4e4b\u7c7b\u504f\u5de5\u4e1a\u63a7\u5236\u7684\u4e1c\u897f\u6211\u662f\u5b8c\u5168\u73a9\u4e0d\u61c2\u7684\u3002<\/p>\n\n<p>\u672c\u6765\u6253\u7b97\u4e5d\u6708\u4e4b\u524d\u5199\u5b8c\u4e0a\u4f20\u7684\uff0c\u7ed3\u679c\u5f00\u5b66\u540e\u5c31\u5fd9\u5f97\u8981\u547d\u3002\u604d\u60da\u4e4b\u95f4,\u4eff\u4f5b\u770b\u5230\u2026\u2026\u7b97\u4e86\uff0c\u8fd9\u4e2a\u5f15\u7528\u518d\u62ff\u6765\u7528\u5c31\u65e0\u804a\u4e86\u3002\u603b\u4e4b\u5f88\u96be\u62bd\u51fa\u65f6\u95f4\u6df1\u5165\u4e86\u89e3\u4e0b\u8fd9\u4e9b\u786c\u4ef6\u3002<\/p>\n\n<h1 id=\"\u786c\u4ef6\">\u786c\u4ef6<\/h1>\n\n<h4 id=\"raspberry-pi-4b\">Raspberry Pi 4B<\/h4>\n\n<p>\u6811\u8393\u6d3e\u7684\u77e5\u540d\u5ea6\u4e4b\u9ad8\uff0c\u5728\u5d4c\u5165\u5f0f\u9886\u57df\u4e4b\u5916\u4e5f\u80fd\u770b\u51fa\u6765\u3002RPi 4B \u642d\u8f7d BCM2711\uff0c28nm\uff0c\u7a0d\u7a0d\u8d85\u4e2a\u9891\u5c31\u5f88\u70eb\u3002\u624b\u4e0a\u7684\u8bbe\u5907\u662f\u5b66\u6821\u5b9e\u9a8c\u5ba4\u8d22\u4ea7\uff0c\u6240\u4ee5\u4e5f\u4e0d\u597d\u7ed9\u5b83\u539f\u6709\u7684\u6563\u70ed\u5668\u62c6\u6389\u7c98\u4e2a\u65b0\u7684\u4e0a\u53bb\uff0c\u5c31\u7a0d\u5fae\u6539\u4e86\u4e0b\u539f\u6709\u7684\u53ef\u62c6\u5378\u7684\u6563\u70ed\u5668\uff0c\u4e0b\u9762\u4f1a\u5177\u4f53\u8bb2\u3002<\/p>\n\n<p>\u8fd9\u5bb6\u4f19 CPU \u6027\u80fd\u4e00\u822c\u822c\uff0cGPU \u6027\u80fd\u5f88\u5f31\uff0c\u5e26\u8d77 Minecraft \u6765\u6bd4\u8f83\u8270\u96be\uff0c\u5404\u65b9\u9762\u786c\u4ef6\u90fd\u7ed9\u4e0d\u4e86\u4eba\u60ca\u559c\u3002\u597d\u5728\u6811\u8393\u6d3e\u57fa\u91d1\u4f1a\u6bd4\u8f83\u91cd\u89c6\u793e\u533a\u5efa\u8bbe\uff0c\u8d44\u6599\u4e5f\u597d\u627e\uff0c\u7528\u8d77\u6765\u4e0d\u6298\u817e\uff0c\u65b0\u7684 Raspberry Pi OS 12 \u5728\u9a71\u52a8\u4e0a\u63d0\u5347\u4e5f\u6bd4\u8f83\u660e\u663e\u3002\u8bdd\u8bf4 RPi \u8fd8\u6709 <a href=\"https:\/\/github.com\/pftf\/RPi4\">EFI \u56fa\u4ef6<\/a>\uff0c\u4e0d\u8fc7\u6211\u8fd8\u6ca1\u8bd5\u3002<\/p>\n\n<p>\u6211\u5728\u6811\u8393\u6d3e\u4e0a\u7528\u7684\u662f Raspberry Pi OS\uff0c\u4e3b\u8981\u8fd8\u662f\u56e0\u4e3a\u5176\u4ed6\u53d1\u884c\u7248\u8868\u73b0\u4e0d\u662f\u7279\u522b\u597d\u3002<\/p>\n\n<h4 id=\"x96-max-plus-v51\">X96 Max Plus V5.1<\/h4>\n\n<p>\u4e00\u53f0\u7535\u89c6\u76d2\u5b50\uff0c\u4ef7\u503c\u5728\u4e8e\u80fd\u8fd0\u884c<a href=\"https:\/\/github.com\/ophub\/amlogic-s9xxx-armbian\">\u7b2c\u4e09\u65b9 Armbian<\/a> \u4e4b\u7c7b\u7684\u53d1\u884c\u7248\u3002<\/p>\n\n<p>\u4e8c\u767e\u5757\u94b1\u7684\u8bbe\u5907\u80fd\u6709\u4e3b\u7ebf\u5185\u6838\u548c\u7206\u6740\u6811\u8393\u6d3e\u7684 CPU \u6027\u80fd\uff0c\u8fd8\u5e26 NPU\uff08\u867d\u7136\u6211\u4e0d\u4f1a\u7528\uff09\uff0c\u8bf4\u5b9e\u8bdd\u5df2\u7ecf\u5f88\u96be\u5f97\u4e86\u3002\u7f3a\u70b9\u662f\u6587\u6863\u51e0\u4e4e\u6ca1\u6709\uff0c\u505a\u5de5\u6bd4\u6811\u8393\u6d3e\u5dee\uff08\u8fd9\u5f53\u7136\u5e76\u4e0d\u662f\u5728\u8bf4\u6811\u8393\u6d3e\u7684\u505a\u5de5\u597d\uff09\uff0c\u7f51\u5361\u4e4b\u7c7b\u5916\u56f4\u8bbe\u5907\u6709\u65f6\u5019\u4f1a\u51fa\u95ee\u9898\u3002\u5b83\u7684\u539f\u5382\u7cfb\u7edf\u7279\u522b\u96be\u7528\uff0c\u5355\u7eaf\u5f53\u7535\u89c6\u76d2\u5b50\u7684\u8bdd\u6211\u80af\u5b9a\u4e0d\u613f\u610f\u82b1\u4e8c\u767e\u5757\u94b1\u4e70\u5b83\u3002<\/p>\n\n<p>\u76d2\u5b50\u642d\u8f7d 12nm \u7684 AmLogic s905x3\uff0cCPU \u6709\u8d1f\u8f7d\u4e5f\u6bd4\u8f83\u51c9\u5feb\uff0c\u7528 GPU \u5c31\u6bd4\u8f83\u5bb9\u6613\u8fc7\u70ed\u4e86\u3002\u6700\u597d\u628a\u539f\u5382\u7684\u6563\u70ed\u62c6\u6389\uff0c\u6362\u4e2a\u597d\u7684\u4e0a\u53bb\u3002<\/p>\n\n<p>s905x3 CPU \u6027\u80fd\u51e0\u4e4e\u662f RPi 4B \u7684\u4e24\u500d\uff0cGPU \u4e5f\u5f3a\u4e00\u70b9\uff08\u4e0d\u8fc7\u4f3c\u4e4e\u5728\u65b0\u9a71\u52a8\u4e0a\u88ab RPi 4B \u538b\u4e0b\u53bb\u4e86\uff09\uff0c\u8fd0\u884c KDE \u4f1a\u660e\u663e\u6bd4 RPi 4B \u987a\u6ed1\uff0c\u53ef\u60dc\u56fe\u5f62\u6709\u6982\u7387\u51fa\u73b0\u548c\u6211 PinePhone \u4e00\u6837<a href=\"https:\/\/gitlab.com\/postmarketOS\/pmaports\/-\/issues\/805\">\u4e0d\u7a33\u5b9a\u7684\u60c5\u51b5<\/a>\uff0c\u4e0d\u77e5\u9053\u662f\u4e0d\u662f Mali \u7cfb\u5217 GPU \u7684\u901a\u75c5\u3002<\/p>\n\n<p>\u7535\u89c6\u76d2\u5b50\u540c\u4e00\u578b\u53f7\u5e38\u6709\u4e0d\u540c\u7248\u672c\uff0c\u5b89\u88c5\u7cfb\u7edf\u8981\u9ebb\u70e6\u5f97\u591a\uff0c\u6211\u5efa\u8bae\u4f60\u76f4\u63a5\u628a\u58f3\u5b50\u6253\u5f00\uff08\u53cd\u6b63\u4e5f\u522b\u82db\u6c42\u80fd\u5728\u5927\u9646\u4eab\u53d7\u5916\u8d38\u76d2\u5b50\u7684\u552e\u540e\uff09\uff0c\u5bf9\u7740\u4e3b\u677f\u4e0a\u7684\u4e1d\u5370\u548c\u82af\u7247\u578b\u53f7\u627e\u627e\u6709\u6ca1\u6709\u4eba\u9002\u914d\u7b2c\u4e09\u65b9 Armbian\u3002\u6709\u7684\u8bdd\uff0c\u4e0b\u8f7d\u7cfb\u7edf\u955c\u50cf\uff0c\u5199\u5165\u5b58\u50a8\u76d8\u3002\u8fd9\u65f6\u5019\u5148\u522b\u63d2\u76d8\u4e0a\u7535\uff0c\u5148\u5728\u7535\u8111\u4e0a\u6302\u8f7d\u5b58\u50a8\u76d8\uff0c\u6309\u7167\u8bf4\u660e\u8bbe\u5b9a\u6b63\u786e\u7684 <a href=\"https:\/\/elinux.org\/Device_Tree_Reference#FDT_format\">DTB<\/a>\uff0c\u9009\u62e9\u5408\u9002\u7684 U-boot\uff0c\u4e4b\u540e\u518d\u628a\u5b58\u50a8\u76d8\u63d2\u76d2\u5b50\u4e0a\uff0c\u6309\u4f4f\u76d2\u5b50\u91cc\u9690\u85cf\u7684\u3001\u5141\u8bb8\u76d2\u5b50\u4ece\u5916\u63a5\u5b58\u50a8\u76d8\u542f\u52a8\u7684\u6309\u94ae\uff0c\u63d2\u7535\u3002\u4ee5\u540e\u542f\u52a8\u5c31\u4e0d\u9700\u8981\u518d\u6309\u90a3\u4e2a\u9690\u85cf\u7684\u6309\u94ae\u4e86\u3002<\/p>\n\n<p>\u8fd9\u673a\u5668\u9ed8\u8ba4\u4ece eMMC \u542f\u52a8\uff0c\u6240\u4ee5\u5982\u679c\u628a eMMC \u4e0a\u7684\u5f15\u5bfc\u7a0b\u5e8f\u641e\u574f\u4e86\uff0c\u5c31\u7b97\u6709\u5236\u4f5c\u597d\u7684\u542f\u52a8\u76d8\u4e5f\u6ca1\u6cd5\u6b63\u5e38\u542f\u52a8\u3002\u6211\u5acc U \u76d8\u6162\u5c31\u628a\u7cfb\u7edf\u8986\u76d6\u5230 eMMC \u4e0a\uff0c\u7816\u4e86\u3002\u6211\u624b\u4e0a\u8fd9\u53f0\u4ece SD \u5361\u542f\u52a8\u5c31\u603b\u662f\u4f1a\u6709\u95ee\u9898\uff0ceMMC \u4e0e SD \u540c\u6e90\uff0c\u6240\u4ee5\u7cfb\u7edf\u5728 eMMC \u4e0a\u4e0d\u6b63\u5e38\u4e5f\u8bf4\u5f97\u901a\u3002\u5f15\u5bfc\u7a0b\u5e8f\u574f\u4e86\uff0c\u8981\u7528\u954a\u5b50\u77ed\u63a5\u4e3b\u677f\u4e0a\u7684\u4e00\u5bf9\u89e6\u70b9\uff0c\u7528\u4e00\u6839 USB-A \u516c\u5bf9\u516c\u7ebf\u4ece\u76d2\u5b50\u7684 USB 3.0 \u53e3\u8fde\u63a5\u7535\u8111\uff0c\u7528 AmLogic \u63d0\u4f9b\u7684\u5de5\u5177\u6765\u6062\u590d\u3002<\/p>\n\n<p>\u6211\u7684\u76d2\u5b50 eMMC \u4e0a\u88c5\u4e86 SlimBox\uff0c\u7b2c\u4e09\u65b9 Armbian \u5c31\u7528 U \u76d8\u6765\u542f\u52a8\u4e86\u3002\u6211\u7528\u7684 Armbian \u9ed8\u8ba4\u7ed9 CPU \u9891\u7387\u8d85\u5230\u4e86 2.2 GHZ\u3002<\/p>\n\n<h4 id=\"visionfive-2\">Visionfive 2<\/h4>\n\n<p>\u73b0\u5728\u786e\u5b9e\u4e0d\u662f\u5165\u624b RISC-V \u7684\u597d\u65f6\u5019\u3002Visionfive 2 \u7528\u4e86\u4e00\u9897 JH7110\uff0c\u4e0d\u652f\u6301 RVV (RISC-V Vector Extension)\uff0c\u4e0d\u652f\u6301\u786c\u4ef6\u865a\u62df\u5316\uff0c\u6ca1\u6709 NPU\u3002\u5236\u7a0b\u6211\u6ca1\u67e5\u5230\uff0c\u4e3b\u89c2\u611f\u89c9\u82af\u7247\u6bd4 RPi 4B \u7684\u51c9\u4e00\u70b9\u3002<\/p>\n\n<p>RVV \u548c x86\/ARM \u4e0a SIMD \u5b9e\u9645\u89e3\u51b3\u7684\u95ee\u9898\u5dee\u4e0d\u591a\uff0c\u6ca1 RVV \u5c31\u6709\u70b9\u7c7b\u4f3c\u4e8e\u7528\u6ca1 AVX \uff08\u6216\u8005\u6781\u7aef\u70b9\uff0cSSE MMX \u90fd\u6ca1\u6709\uff09\u7684 x86\u7535\u8111\uff0c\u57fa\u672c\u8981\u548c\u591a\u5a92\u4f53\u3001\u6e38\u620f\u3001\u79d1\u5b66\u8ba1\u7b97 say goodbye~ \u4e86\uff1b\u786c\u4ef6\u865a\u62df\u5316\u6682\u65f6\u4e0d\u7b97\u521a\u9700\uff0c\u4e0d\u8fc7\u6ca1\u6709\u5b83\u7684\u786e\u662f\u5c11\u4e86\u5f88\u591a\u4e50\u8da3\u3002<\/p>\n\n<p>\u6211\u521a\u5f00\u5b8c\u7bb1\u5c31\u88ab Revy \u5168\u8eab\u4e0a\u4e0b\u5410\u69fd\u4e86\u4e00\u904d\uff0c\u8fd9\u624d\u77e5\u9053 LicheePi 4A \u7684 TH1520 \u6027\u4ef7\u6bd4\u8981\u9ad8\u5f97\u591a\uff0c\u652f\u6301 RV 0.7.1\uff0c\u8fd8\u5e26 NPU\uff0c\u4e0d\u8fc7\u6211\u60f3\u7b49\u540c\u65f6\u6709 RVV 1.0 \u4ee5\u4e0a\u548c\u786c\u4ef6\u865a\u62df\u5316\u7684\u82af\u7247\u591a\u8d77\u6765\u518d\u4e70\u65b0\u673a\u5668\u3002<\/p>\n\n<p>\u5f53\u7136 Visionfive 2 \u5f53\u5b9e\u9a8c\u6750\u6599\u4ee5\u53ca\u62ff\u6765\u5c55\u793a\u7684\u6548\u679c\u5e94\u8be5\u8bf4\u5f97\u8fc7\u53bb\uff0c\u4e0d\u81f3\u4e8e\u5403\u7070\uff0c\u53ea\u662f\u4e03\u767e\u591a\u5757\u7684\u5b9e\u9a8c\u6750\u6599\u7684\u786e\u592a\u8d35\u4e86\u3002<\/p>\n\n<p>JH7110 \u7684 PowerVR GPU \u52a8\u753b\u5f88\u987a\u6ed1\uff0c\u4e0d\u8fc7 Visionfive 2 \u7684 HDMI \u517c\u5bb9\u6027\u5927\u7ea6\u4e0d\u592a\u597d\uff0c\u6211\u7528 HDMI-DVI \u8f6c\u6362\u5668\u548c HDMI \u91c7\u96c6\u5361\u90fd\u6ca1\u53cd\u5e94\uff0c\u63d2 HDMI-VGA \u8f6c\u6362\u5668\u4e0a\u624d\u4eae\u8d77\u6765\u3002<\/p>\n\n<p>Visionfive 2 \u5b98\u65b9\u63d0\u4f9b\u7684\u7cfb\u7edf\u662f Debian Sid\uff0c\u5176\u4e2d\u4ed6\u4eec\u4e3b\u8981\u6539\u52a8\u7684\u662f Mesa\u2026\u2026\u603b\u4e4b\u5f88\u4e0d\u7a33\u5b9a\u5c31\u662f\u4e86\u3002<\/p>\n\n<h4 id=\"milk-v-duo\">Milk-V Duo<\/h4>\n\n<p>\u8fd9\u73a9\u610f\u5728\u8fd9\u51e0\u4e2a\u91cc\u7b97\u6bd4\u8f83\u7279\u6b8a\uff0c\u5b83\u662f\u5757\u6838\u5fc3\u677f\uff0c\u6709\u70b9\u50cf\u6811\u8393\u6d3e Pico\uff0c\u62ff\u51fa\u53bb\u522b\u4eba\u53ef\u80fd\u4f1a\u4ee5\u4e3a\u662f STM32 \u90a3\u79cd\u5355\u7247\u673a\u3002<\/p>\n\n<p>\u62ff\u5230 Duo \u5f53\u7136\u4e5f\u662f\u4e00\u5206\u94b1\u6ca1\u82b1\uff08\u7b11\uff09\uff0c\u793e\u56e2\u7684\u4e94\u5757\u91cc\u8fd8\u6709\u4e24\u5757\u90fd\u6ca1\u62c6\u5c01\u3002Duo \u4e3b\u677f\u4e0a\u53ea\u6709\u4e00\u9897\u82af\u7247\uff08CV1800B\uff0c\u5b83\u7684 SoC\uff09\uff0c\u5927\u6982\u662f\u628a\u5185\u5b58\u4e4b\u7c7b\u7684\u4e5f\u96c6\u6210\u5728\u4e00\u8d77\u4e86\u3002\u82af\u7247\u662f 7mm*7mm\uff0c\u548c\u5e38\u89c1\u7684 8 \u811a SPI \u95ea\u5b58\u5dee\u4e0d\u591a\u5927\uff0c\u5b8c\u5168\u6ca1\u6cd5\u88c5\u6563\u70ed\u5668\uff0c\u4e0d\u8fc7\u673a\u5668\u529f\u8017\u8db3\u591f\u4f4e\uff0c\u6240\u4ee5\u6ca1\u5173\u7cfb\u3002<\/p>\n\n<p>Duo \u7684\u4e00\u4e2a\u6838\u5fc3\u662f 1GHz\uff0c\u53e6\u4e00\u4e2a\u662f 700MHz\uff0cLinux \u4e0b\u4f4e\u9891\u7684\u90a3\u4e2a\u6838\u5fc3\u597d\u50cf\u7528\u4e0d\u4e86\u3002\u6587\u6863\u8bf4\u4f4e\u9891\u7684\u90a3\u9897\u53ea\u80fd\u7528\u6765\u8dd1 RTOS\uff0c\u53c8\u8bf4 Linux \u548c RTOS \u53ef\u4ee5\u540c\u65f6\u8fd0\u884c\uff0c\u6211\u4e0d\u77e5\u9053\u662f\u4ec0\u4e48\u539f\u7406\u3002\u6211\u79bb\u4e86 Linux \u5c31\u4ec0\u4e48\u4e5f\u4e0d\u4f1a\uff0c\u5c31\u628a\u5b83\u5f53\u5355\u6838\u6765\u7528\u4e86\u3002\u8fd9\u6838\u5fc3\u6709 RVV 0.7.1\uff0c\u8fd9\u4e0b\u66f4\u663e\u5f97\u82b1\u4e03\u767e\u591a\u5757\u4e70 Visionfive 2 \u7684\u6211\u662f\u5728\u81ea\u53d6\u5176\u8fb1\u4e86\u3002Duo \u8fd8\u6709\u4e2a TPU\uff08\u4e0d\u77e5\u9053\u548c s905x3 \u4e0a\u7684 NPU \u6709\u4ec0\u4e48\u533a\u522b\uff09\uff0c\u6211\u4e00\u6837\u4e0d\u4f1a\u7528\u3002<\/p>\n\n<p>Duo \u6709 64M \u5185\u5b58\uff08\u4e0d\u9519\uff0c\u6bd4\u6211\u90a3\u53f0 armv4l \u5f3a\uff09\uff0c\u9ed8\u8ba4\u7cfb\u7edf\u955c\u50cf\u91cc\u8981\u7559\u4e00\u534a\u5185\u5b58\u7ed9\u591a\u5a92\u4f53\u5904\u7406\uff0c\u5982\u679c\u4e0d\u9700\u8981\u76f8\u5173\u529f\u80fd\u7684\u8bdd\uff0c\u53ef\u4ee5\u6539 <a href=\"https:\/\/github.com\/milkv-duo\/duo-buildroot-sdk\">Duo Buildroot SDK<\/a> \u91cc\u7684\u53c2\u6570\u628a\u8fd9\u90e8\u5206\u5185\u5b58\u8981\u56de\u53bb\u3002\u8fd9\u4e48\u5c0f\u7684\u5185\u5b58\u4e5f\u6ca1\u4ec0\u4e48\u8fd0\u884c\u5e26\u5305\u7ba1\u7406\u5668\u7684\u4e3b\u6d41\u53d1\u884c\u7248\u7684\u53ef\u80fd\uff0c\u88c5\u8f6f\u4ef6\u5c31\u4ece Buildroot \u91cc\u9009\u5427\uff0c\u81ea\u5df1\u7f16\u8bd1\u4e5f\u884c\u3002\u5165\u95e8\u8981\u5148\u5b66\u4f1a Buildroot\uff0c\u8fd9\u4e2a\u786e\u5b9e\u8ba9\u5b83\u663e\u5f97\u6bd4\u522b\u7684\u5f00\u53d1\u677f\u66f4\u96be\u4e0a\u624b\uff0c\u518d\u52a0\u4e0a\u6587\u6863\u7684<a href=\"https:\/\/ratizux.github.io\/2023\/10\/26\/1.html\">\u5404\u79cd\u95ee\u9898<\/a>\u2026\u2026\u6709\u5382\u5546\u4f1a\u7ed9\u6211\u90a3\u672b\u6d41\u672c\u79d1\u4f9b\u5e94\u5f00\u53d1\u677f\u4e5f\u5c31\u8bf4\u5f97\u901a\u4e86\u3002<\/p>\n\n<h1 id=\"\u6563\u70ed\">\u6563\u70ed<\/h1>\n\n<p>\u5b66\u6821\u7684 RPi 4B \u548c\u6211\u7684 Visionfive 2 \u90fd\u6709\u914d\u4e3b\u52a8\u6563\u70ed\u5668\uff1a\u4e00\u4e2a\u98ce\u6247\uff0c\u5bf9\u7740\u91d1\u5c5e\u9ccd\u7247\u5439\u3002\u8fd9\u79cd\u6563\u70ed\u5668\u672c\u8eab\u5e94\u8be5\u80fd\u8f7b\u677e\u538b\u4f4f\u5f00\u53d1\u677f\u7684\u53d1\u70ed\uff0c\u4f46\u6563\u70ed\u5668\u662f\u7528\u4e00\u7247\u5bfc\u70ed\u7845\u80f6\u548c SoC \u8d34\u5728\u4e00\u8d77\u7684\uff0c\u8fd9\u6837\u538b\u529b\u5168\u5728\u5bfc\u70ed\u6027\u80fd\u4e0a\u4e86\u3002\u6211\u4ee5\u4e3a\u4f1a\u6709\u4eba\u7ed9\u8fd9\u4e9b\u5f00\u53d1\u677f\u8bbe\u8ba1\u5e26\u5f39\u7c27\u3001\u76f4\u63a5\u6d82\u7845\u8102\u6765\u7528\u7684\u6563\u70ed\u5668\uff0c\u54ea\u77e5\u6ca1\u6709\uff0c\u53ea\u80fd\u81ea\u5df1\u89e3\u51b3\u5bfc\u70ed\u95ee\u9898\u4e86\u3002<\/p>\n\n<p>\u8981\u662f\u76f4\u63a5\u628a\u539a\u539a\u4e00\u7247\u5bfc\u70ed\u7845\u80f6\u6362\u6210\u6d82\u4e0a\u7845\u8102\u7684\u91d1\u5c5e\u7247\uff0c\u641e\u4e0d\u597d\u6563\u70ed\u5668\u7684\u5f39\u529b\u4f1a\u628a\u5f00\u53d1\u677f\u538b\u574f\u3002\u6211\u4e70\u4e86\u4e00\u7ec4\u4e0d\u540c\u539a\u5ea6\u7684\u94dc\u7247\uff0c\u9009\u62e9\u539a\u5ea6\u7565\u5c0f\u4e8e\u6563\u70ed\u5668\u4e0e SoC \u95f4\u8ddd\u7684\u4e00\u7247\uff0c\u5728\u6563\u70ed\u5668\u4e0a\u6d82\u4e0a\u5bfc\u70ed\u7845\u80f6\uff0cSoC \u4e0a\u6d82\u7845\u8102\uff0c\u4e4b\u540e\u538b\u5728\u4e00\u8d77\u3002\u5bfc\u70ed\u7845\u80f6\u9ecf\u5ea6\u6bd4\u8f83\u9ad8\uff0c\u521a\u6d82\u4e0a\u65f6\u4f1a\u9876\u7740\u94dc\u7247\u51f8\u51fa\u6765\uff0c\u8ba9\u7845\u8102-\u94dc\u7247-\u5bfc\u70ed\u7845\u80f6\u7684\u539a\u5ea6\u7565\u5927\u4e8e\u6563\u70ed\u5668\u4e0e SoC \u7684\u95f4\u8ddd\uff0c\u4e4b\u540e\u5bfc\u70ed\u7845\u80f6\u4e00\u5c42\u53d7\u538b\u53d8\u6241\uff0c\u5c31\u80fd\u4fdd\u8bc1\u6563\u70ed\u5668\u4e0e SoC \u95f4\u521a\u597d\u88ab\u5bfc\u70ed\u7845\u80f6\u548c\u7845\u8102\u7d27\u5bc6\u586b\u5145\u4e86\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/gel.webp\" alt=\"gel\" \/><\/p>\n\n<p>\u8fd9\u662f\u7528\u5bfc\u70ed\u7845\u80f6\u7c98\u5728\u6563\u70ed\u5668\u4e0a\u7684\u94dc\u7247\u3002\u56e0\u4e3a\u4e00\u5f00\u59cb\u6d82\u5f97\u6709\u70b9\u591a\uff0c\u6240\u4ee5\u522e\u6389\u4e86\u4e00\u70b9\uff0c\u514d\u5f97\u591a\u4f59\u7684\u90e8\u5206\u88ab\u6324\u51fa\u6765\u7c98\u5230 SoC \u4e0a\u62ff\u4e0d\u6389\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/grease.webp\" alt=\"grease\" \/><\/p>\n\n<p>\u6d82\u4e0a\u7845\u8102\u538b\u5b9e\u540e\u7a0d\u5fae\u62ac\u8d77\u4e00\u70b9\uff0c\u5927\u6982\u5c31\u662f\u8fd9\u6837\u3002<\/p>\n\n<h1 id=\"\u63a7\u5236\u8bbe\u5907\">\u63a7\u5236\u8bbe\u5907<\/h1>\n\n<p>RPi 4B\u3001X96 Max Plus \u548c Visionfive 2 \u8fd9\u6837\u5e26 HDMI\u3001USB \u53e3\u7684\u8bbe\u5907\u53ef\u4ee5\u76f4\u63a5\u63d2\u952e\u76d8\u9f20\u6807\u663e\u793a\u5668\u64cd\u4f5c\u3002\u5982\u679c\u9700\u8981\u9ad8\u901f\u8fde\u63a5\uff0c\u6211\u6709\u65f6\u5019\u4e5f\u76f4\u63a5\u7528\u4ee5\u592a\u7f51\u7ebf\u8fde\u63a5\u5f00\u53d1\u677f\uff1aNetworkManager \u6709\u4e2a\u4e00\u952e\u5728\u7b14\u8bb0\u672c\u4e0a\u542f\u52a8\u4e2a DHCP \u670d\u52a1\u5668\uff0c\u628a\u7b14\u8bb0\u672c\u5f53\u6210\u8def\u7531\u5668\u7684\u529f\u80fd\uff0c\u6bd4\u624b\u52a8\u8bbe\u7f6e DHCP \u65b9\u4fbf\u4e86\u4e0d\u5c11\u3002\u8fd9\u4e2a\u529f\u80fd\u5728\u4fee\u7535\u8111\u7684\u65f6\u5019\u4e5f\u5f88\u597d\u7528\uff0c\u53ea\u662f\u6709\u65f6\u5019\u4f1a\u4e0d\u505c\u65ad\u7ebf\u91cd\u8fde\uff0c\u4e0d\u77e5\u9053\u662f\u786c\u4ef6\u8fd8\u662f\u8f6f\u4ef6\u6709\u95ee\u9898\u3002<\/p>\n\n<p>Milk-V Duo \u5c31\u4e0d\u80fd\u76f4\u63a5\u63d2\u663e\u793a\u5668\u4e86\uff0c\u5b98\u65b9\u63a8\u8350\u7684\u505a\u6cd5\u662f\u76f4\u63a5\u7528 USB \u7ebf\u8fde\u63a5\u7535\u8111\uff0c\u5f00\u53d1\u677f\u9ed8\u8ba4\u4f1a\u901a\u8fc7 <code class=\"language-plaintext highlighter-rouge\">usb_gadget<\/code> \u7684 RNDIS \u529f\u80fd\u628a\u81ea\u5df1\u6a21\u62df\u6210\u4e00\u5f20\u7f51\u5361\uff0c\u8fd9\u6837\u5c31\u80fd\u5728\u7535\u8111\u4e0a ssh \u767b\u5f55\u5f00\u53d1\u677f\u4e86\u3002openSUSE Leap 15.5 \u67d0\u6b21\u66f4\u65b0\u4e4b\u540e\u9ed8\u8ba4\u4e0d\u52a0\u8f7d <code class=\"language-plaintext highlighter-rouge\">rndis_host<\/code> \u6a21\u5757\u4e86\uff08\u6539\u4e4b\u524d\u4e5f\u4e0d\u548c\u6211\u8bf4\u4e00\u58f0\uff0c\u6211\u8fd8\u4ee5\u4e3a\u5f00\u53d1\u677f\u574f\u4e86\uff09\uff0c\u5e94\u8be5\u548c Linux \u79fb\u9664 RNDIS \u7684\u8ba1\u5212\u6709\u5173\uff0c\u7528\u7684\u65f6\u5019\u624b\u52a8\u52a0\u8f7d\u4e00\u4e0b\u6a21\u5757\u5c31\u597d\u4e86\u3002<\/p>\n\n<p>\u5f53\u7136\u8fd9\u91cc\u9664\u4e86 X96 Max Plus \u5916\uff0c\u8fde\u63a5 UART \u4e5f\u90fd\u6bd4\u8f83\u5bb9\u6613\uff0c\u53ea\u662f\u6211\u5e73\u65f6\u4e0d\u60f3\u62d6\u8fd9\u4e48\u591a\u786c\u4ef6\u3002\u8fde\u63a5 UART \u65f6\u6211\u7528\u7684\u662f PuTTY\u3002<\/p>\n\n<h1 id=\"\u7cfb\u7edf\u5f15\u5bfc\">\u7cfb\u7edf\u5f15\u5bfc<\/h1>\n\n<p>\u6211\u5e76\u4e0d\u662f\u5f88\u61c2\u8ba1\u7b97\u673a\u7684\u5e95\u5c42\u539f\u7406\uff0c\u53ea\u80fd\u6309\u7167\u5bf9 x86 \u7cfb\u7edf\u7684\u8ba4\u77e5\u7a0d\u5fae\u7406\u89e3\u4e00\u4e0b\u8fd9\u51e0\u5757\u5f00\u53d1\u677f\u7684\u5f15\u5bfc\u8fc7\u7a0b\u3002\u6211\u624b\u91cc\u7684\u5f00\u53d1\u677f\u90fd\u53ef\u4ee5\u7528 U-boot\uff0c\u7cfb\u7edf\u542f\u52a8\u7684\u65f6\u5019\u7531\u67d0\u79cd\u66f4\u5e95\u5c42\u7684\u7a0b\u5e8f\u52a0\u8f7d U-boot\uff0c\u4e4b\u540e U-boot \u641c\u7d22\u5b58\u50a8\u76d8\uff0c\u627e\u5230\u3001\u52a0\u8f7d Linux\uff0c\u5b8c\u6210\u542f\u52a8\uff1bU-boot \u8fd8\u80fd\u5f53 EFI \u56fa\u4ef6\u6765\u7740\uff0c\u6240\u4ee5 U-boot \u81f3\u5c11\u540c\u65f6\u6709\u6211\u7684 x86 \u7535\u8111\u4e0a UEFI BIOS\u3001GRUB(x86) \u4e24\u5c42\u5f15\u5bfc\u7a0b\u5e8f\u7684\u5730\u4f4d\u3002<\/p>\n\n<p>\u8bdd\u8bf4 RPi 4 \u4e0a openSUSE \u662f\u7531 U-boot \u52a0\u8f7d GRUB\uff0cGRUB \u518d\u52a0\u8f7d Linux \u6765\u5f15\u5bfc\u7684\uff0c\u611f\u89c9\u5f88\u662f\u795e\u5947\u3002<\/p>\n\n<p>Buildroot \u548c\u4e3b\u6d41\u53d1\u884c\u7248\u90fd\u7ed9\u5f15\u5bfc\u7a0b\u5e8f\u7684\u914d\u7f6e\u5c01\u88c5\u597d\u4e86\uff0c\u4e00\u822c\u60c5\u51b5\u4e0b\u4e0d\u7528\u592a\u5173\u5fc3\u5f15\u5bfc\u95ee\u9898\uff0c\u6211\u4e5f\u5c31\u4e0d\u73ed\u95e8\u5f04\u65a7\u4e86\u3002<\/p>\n\n<h1 id=\"gpu-\u7684-3d-\u52a0\u901f\u4e0e\u901a\u7528\u8ba1\u7b97\">GPU \u7684 3D \u52a0\u901f\u4e0e\u901a\u7528\u8ba1\u7b97<\/h1>\n\n<p>\u6211\u5e76\u4e0d\u6253\u7b97\u65e5\u5e38\u7528\u8fd9\u4e9b\u5f00\u53d1\u677f\u6253\u6e38\u620f\uff0c\u6240\u4ee5\u8fd8\u662f\u66f4\u5173\u5fc3\u901a\u7528\u8ba1\u7b97\u7684\u80fd\u529b\uff0c\u81f3\u4e8e 3D \u52a0\u901f\u7684\u90e8\u5206\u7b80\u5355\u7528 <code class=\"language-plaintext highlighter-rouge\">glmark2<\/code> \u6d4b\u8bd5\u4e0b\u5c31\u662f\u4e86\u3002<\/p>\n\n<p>RPi 4B\u3001X96 Max Plus \u548c Visionfive 2 \u7406\u8bba\u4e0a\u90fd\u80fd\u652f\u6301 Vulkan Compute\uff0c\u7406\u8bba\u4e0a\u80fd\u641e GPGPU\uff0c\u5b9e\u9645\u6548\u679c\u5c31\u8bf4\u4e0d\u5b9a\u4e86\u3002\u5173\u4e8e\u5bf9\u6027\u80fd\u8981\u6c42\u9ad8\u7684\u901a\u7528\u8ba1\u7b97\uff0c\u6211\u5bf9\u673a\u5668\u5b66\u4e60\u7684\u7406\u89e3\u7a0b\u5ea6\u53ea\u8fbe\u5230\u4e86\u80fd\u770b\u61c2\u513f\u7ae5\u79d1\u666e\u8bfb\u7269\u7684\u6c34\u5e73\uff0c\u5176\u4ed6\u9886\u57df\u4e5f\u4e00\u6982\u4e0d\u4f1a\uff0c\u53ea\u80fd\u8dd1\u8dd1\u57fa\u51c6\u6d4b\u8bd5\u3002\u817e\u8baf\u6709\u4e2a\u53eb <a href=\"https:\/\/github.com\/Tencent\/ncnn\">NCNN<\/a> \u7684\u673a\u5668\u5b66\u4e60\u6846\u67b6\uff0c\u5bf9 SIMD\u3001RVV \u548c Vulkan Compute \u7684\u652f\u6301\u90fd\u6709\uff0c\u5c31\u62ff\u5b83\u81ea\u5e26\u7684\u5de5\u5177\u6765\u6d4b\u8bd5\u597d\u4e86\u3002<\/p>\n\n<h4 id=\"rpi-4b\">RPi 4B<\/h4>\n\n<p>RPi 4B \u5728 Raspberry Pi OS 12 \u4e0a\u7684 vc4\/v3d \u9a71\u52a8\u8868\u73b0\u4e0d\u9519\uff0c\u56fe\u5f62 API \u539f\u5148\u652f\u6301\u7684\u7248\u672c\u4e0d\u9ad8\uff0c\u73b0\u5728\u5df2\u7ecf\u80fd\u68c0\u6d4b\u5230 OpenGL 3.1\/GLES 3.1\/Vulkan 1.3 \u4e86\uff0c\u53ef\u60dc\u5b83 GPU \u6027\u80fd\u592a\u4f4e\uff0c\u4e0a Vulkan Compute \u8fd8\u8981\u6bd4 CPU \u6162\u5f97\u591a\u2026\u2026\u5173\u4e8e Vulkan \u6e32\u67d3\uff0c\u6211\u8bd5\u7740\u7528 Zink \u8fd0\u884c\u4e0b glmark2\uff0c\u753b\u9762\u662f\u5361\u4f4f\u7684\uff1bvkcube \u5012\u662f\u80fd\u6b63\u5e38\u663e\u793a\u3002\u4e0d\u52a0\u8f7d Zink\uff0cglmark2\uff08Wayland\uff09\u6709 780 \u5206\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/rpi4b-vkcube.webp\" alt=\"rpi4b-vkcube\" \/><\/p>\n\n<p>vc4\/v3d \u7528\u6237\u7a7a\u95f4\u9a71\u52a8\u662f\u5f00\u6e90\u7684\uff0c\u4f46\u7528 openSUSE \u542f\u52a8\u5c31\u6ca1\u6cd5\u6b63\u5e38\u786c\u4ef6\u52a0\u901f\uff0c\u5728 Raspberry Pi OS \u4e0a\u542f\u52a8 openSUSE \u5bb9\u5668\uff08\u628a <code class=\"language-plaintext highlighter-rouge\">\/dev\/dri<\/code> \u901a\u8fdb\u5bb9\u5668\uff09\u5374\u6ca1\u95ee\u9898\uff0c\u4e0d\u77e5\u9053\u662f openSUSE \u6ca1\u914d\u597d\uff0c\u8fd8\u662f\u539f\u5382\u7cfb\u7edf\u4e0a\u5b58\u5728\u4e00\u4e9b\u95ed\u6e90\u7684\u5185\u6838\u9a71\u52a8\u3002<\/p>\n\n<p>\u5173\u4e8e\u5185\u6838\u9a71\u52a8\u548c\u7528\u6237\u7a7a\u95f4\u9a71\u52a8\uff0c\u611f\u5174\u8da3\u7684\u540c\u5b66\u53bb\u770b\u770b Linux DRI \u5c31\u662f\u4e86\u2026\u2026\u53cd\u6b63\u6211\u4e5f\u5b8c\u5168\u4e0d\u61c2\uff0c\u53ea\u662f<a href=\"https:\/\/media.defcon.org\/DEF%20CON%2025\/DEF%20CON%2025%20presentations\/DEF%20CON%2025%20-%20Ilja-van-Sprundel-BSD-Kern-Vulns-UPDATED.pdf\">\u5916\u754c\u7684\u8bc4\u4ef7\uff08\u89c1\u7b2c 53 \u9875\uff09<\/a>\u4f3c\u4e4e\u5e76\u4e0d\u662f\u5f88\u9ad8\u3002\u7528 N \u5361\u7684\u65f6\u5019\u80fd\u5728\u5bbf\u4e3b\u673a\u4e0a\u53ea\u88c5\u5f00\u6e90\u5185\u6838\u9a71\u52a8\uff0c\u800c\u5728\u5bb9\u5668\u91cc\u88c5\u95ed\u6e90\u7528\u6237\u7a7a\u95f4\u9a71\u52a8\u7684\u8bdd\u786e\u5b9e\u8981\u65b9\u4fbf\u4e00\u70b9\uff0c\u4f46\u662f\u88c5\u4e2a Flatpak \u8981\u540c\u65f6\u88c5\u4e24\u4e2a\u663e\u5361\u9a71\u52a8\u3001\u7528 VirGL \u56fe\u5f62\u6027\u80fd\u4f1a\u53d7\u5185\u6838-\u7528\u6237\u6001\u95f4\u591a\u6b21\u8f6c\u6362\u800c\u6253\u9aa8\u6298\u7684\u95ee\u9898\u4e5f\u5341\u5206\u68d8\u624b\u2026\u2026\u8dd1\u9898\u4e86\u3002<\/p>\n\n<p>Vulkan Compute \u5f53\u7136\u5c31\u7528 NCNN \u6d4b\u4e86\uff0c\u540c\u65f6\u4e5f\u6d4b\u4e0b\u7528 CPU \u8fd0\u7b97\u7684\u6027\u80fd\u3002\u6211\u7f16\u8bd1 NCNN \u7684\u65f6\u5019\u7ed9 CMake \u52a0\u4e86 <code class=\"language-plaintext highlighter-rouge\">-DCMAKE_BUILD_TYPE=Release<\/code>\u3002NCNN \u57fa\u51c6\u6d4b\u8bd5\u7528\u7684\u6a21\u578b\u53c2\u6570\u5728\u6e90\u4ee3\u7801\u8def\u5f84\u4e0b\uff0c\u8981\u5728\u8fd9\u4e2a\u8def\u5f84\u4e0b <code class=\"language-plaintext highlighter-rouge\">benchncnn<\/code> \u7a0b\u5e8f\u624d\u80fd\u627e\u5230\u53c2\u6570\u6587\u4ef6\u2026\u2026<code class=\"language-plaintext highlighter-rouge\">benchncnn<\/code> \u8f93\u51fa\u7684\u7ed3\u679c\u662f\u65f6\u95f4\uff0c\u6240\u4ee5\u8d8a\u5c0f\u8d8a\u597d\u3002<\/p>\n\n<p>\u6d4b\u8bd5\u5b8c\u53d1\u73b0 Vulkan Compute \u771f\u53d8\u6210\u786c\u4ef6\u51cf\u901f\u4e86\u2026\u2026<\/p>\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"text-align: center\">Model<\/th>\n      <th style=\"text-align: center\">Vulkan<\/th>\n      <th style=\"text-align: center\">CPU<\/th>\n      <th style=\"text-align: center\">Ratio<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td style=\"text-align: center\">squeezenet<\/td>\n      <td style=\"text-align: center\">298.37<\/td>\n      <td style=\"text-align: center\">46.76<\/td>\n      <td style=\"text-align: center\">15.67%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">squeezenet_int8<\/td>\n      <td style=\"text-align: center\">43.36<\/td>\n      <td style=\"text-align: center\">40.27<\/td>\n      <td style=\"text-align: center\">92.87%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet<\/td>\n      <td style=\"text-align: center\">371.72<\/td>\n      <td style=\"text-align: center\">63.96<\/td>\n      <td style=\"text-align: center\">17.21%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_int8<\/td>\n      <td style=\"text-align: center\">37.41<\/td>\n      <td style=\"text-align: center\">35.29<\/td>\n      <td style=\"text-align: center\">94.33%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_v2<\/td>\n      <td style=\"text-align: center\">273.21<\/td>\n      <td style=\"text-align: center\">61.78<\/td>\n      <td style=\"text-align: center\">22.61%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_v3<\/td>\n      <td style=\"text-align: center\">266.29<\/td>\n      <td style=\"text-align: center\">46.65<\/td>\n      <td style=\"text-align: center\">17.52%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">shufflenet<\/td>\n      <td style=\"text-align: center\">171.36<\/td>\n      <td style=\"text-align: center\">33.83<\/td>\n      <td style=\"text-align: center\">19.74%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">shufflenet_v2<\/td>\n      <td style=\"text-align: center\">226.22<\/td>\n      <td style=\"text-align: center\">24.15<\/td>\n      <td style=\"text-align: center\">10.68%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mnasnet<\/td>\n      <td style=\"text-align: center\">274.26<\/td>\n      <td style=\"text-align: center\">51.98<\/td>\n      <td style=\"text-align: center\">18.95%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">proxylessnasnet<\/td>\n      <td style=\"text-align: center\">286.06<\/td>\n      <td style=\"text-align: center\">54.81<\/td>\n      <td style=\"text-align: center\">19.16%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">efficientnet_b0<\/td>\n      <td style=\"text-align: center\">483.66<\/td>\n      <td style=\"text-align: center\">77.36<\/td>\n      <td style=\"text-align: center\">15.99%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">efficientnetv2_b0<\/td>\n      <td style=\"text-align: center\">720.6<\/td>\n      <td style=\"text-align: center\">82.9<\/td>\n      <td style=\"text-align: center\">11.50%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">regnety_400m<\/td>\n      <td style=\"text-align: center\">343.93<\/td>\n      <td style=\"text-align: center\">73.59<\/td>\n      <td style=\"text-align: center\">21.40%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">blazeface<\/td>\n      <td style=\"text-align: center\">82.57<\/td>\n      <td style=\"text-align: center\">8.79<\/td>\n      <td style=\"text-align: center\">10.65%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">googlenet<\/td>\n      <td style=\"text-align: center\">794.13<\/td>\n      <td style=\"text-align: center\">126.45<\/td>\n      <td style=\"text-align: center\">15.92%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">googlenet_int8<\/td>\n      <td style=\"text-align: center\">103.21<\/td>\n      <td style=\"text-align: center\">99.97<\/td>\n      <td style=\"text-align: center\">96.86%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">resnet18<\/td>\n      <td style=\"text-align: center\">854.74<\/td>\n      <td style=\"text-align: center\">126.29<\/td>\n      <td style=\"text-align: center\">14.78%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">resnet18_int8<\/td>\n      <td style=\"text-align: center\">81.53<\/td>\n      <td style=\"text-align: center\">75.65<\/td>\n      <td style=\"text-align: center\">92.79%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">alexnet<\/td>\n      <td style=\"text-align: center\">482.72<\/td>\n      <td style=\"text-align: center\">82.27<\/td>\n      <td style=\"text-align: center\">17.04%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">vgg16<\/td>\n      <td style=\"text-align: center\">4529.85<\/td>\n      <td style=\"text-align: center\">571.87<\/td>\n      <td style=\"text-align: center\">12.62%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">vgg16_int8<\/td>\n      <td style=\"text-align: center\">400.62<\/td>\n      <td style=\"text-align: center\">395.42<\/td>\n      <td style=\"text-align: center\">98.70%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">resnet50<\/td>\n      <td style=\"text-align: center\">1961.75<\/td>\n      <td style=\"text-align: center\">280.65<\/td>\n      <td style=\"text-align: center\">14.31%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">resnet50_int8<\/td>\n      <td style=\"text-align: center\">213.19<\/td>\n      <td style=\"text-align: center\">199.2<\/td>\n      <td style=\"text-align: center\">93.44%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">squeezenet_ssd<\/td>\n      <td style=\"text-align: center\">1136.81<\/td>\n      <td style=\"text-align: center\">129.67<\/td>\n      <td style=\"text-align: center\">11.41%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">squeezenet_ssd_int8<\/td>\n      <td style=\"text-align: center\">106.2<\/td>\n      <td style=\"text-align: center\">97.81<\/td>\n      <td style=\"text-align: center\">92.10%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_ssd<\/td>\n      <td style=\"text-align: center\">915.37<\/td>\n      <td style=\"text-align: center\">126.24<\/td>\n      <td style=\"text-align: center\">13.79%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_ssd_int8<\/td>\n      <td style=\"text-align: center\">75.44<\/td>\n      <td style=\"text-align: center\">73.2<\/td>\n      <td style=\"text-align: center\">97.03%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_yolo<\/td>\n      <td style=\"text-align: center\">1826.17<\/td>\n      <td style=\"text-align: center\">286.25<\/td>\n      <td style=\"text-align: center\">15.67%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenetv2_yolov3<\/td>\n      <td style=\"text-align: center\">893.05<\/td>\n      <td style=\"text-align: center\">191.85<\/td>\n      <td style=\"text-align: center\">21.48%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">yolov4-tiny<\/td>\n      <td style=\"text-align: center\">1654.64<\/td>\n      <td style=\"text-align: center\">218.29<\/td>\n      <td style=\"text-align: center\">13.19%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">nanodet_m<\/td>\n      <td style=\"text-align: center\">523.85<\/td>\n      <td style=\"text-align: center\">71.37<\/td>\n      <td style=\"text-align: center\">13.62%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">yolo-fastest-1.1<\/td>\n      <td style=\"text-align: center\">235.75<\/td>\n      <td style=\"text-align: center\">45.21<\/td>\n      <td style=\"text-align: center\">19.18%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">yolo-fastestv2<\/td>\n      <td style=\"text-align: center\">209.61<\/td>\n      <td style=\"text-align: center\">36.18<\/td>\n      <td style=\"text-align: center\">17.26%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">vision_transformer<\/td>\n      <td style=\"text-align: center\">45802.37<\/td>\n      <td style=\"text-align: center\">2547.61<\/td>\n      <td style=\"text-align: center\">5.56%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">FastestDet<\/td>\n      <td style=\"text-align: center\">215.75<\/td>\n      <td style=\"text-align: center\">36.24<\/td>\n      <td style=\"text-align: center\">16.80%<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n<h4 id=\"x96-max-plus\">X96 Max Plus<\/h4>\n\n<p>s905x3 \u7528\u7684 Bifrost GPU \u6709 Panfrost OpenGL\/GLES \u5f00\u6e90\u9a71\u52a8\u3002\u5982\u679c RPi 4B \u7528 Raspberry Pi OS 11 \u7684\u8bdd\uff0cs905x3 \u4e0a\u7684 OpenGL \u7248\u672c\u8981\u6bd4 RPi 4B \u4e0a\u7684\u9ad8\u4e00\u4e9b\uff0c\u6027\u80fd\u4e5f\u7a0d\u597d\uff1bRPi 4B \u6362\u6210 Raspberry Pi OS 12 \uff0cs905x3 \u7684 glmark2 \u5206\u6570\u7adf\u7136\u5c31\u88ab\u538b\u4e0b\u53bb\u4e86\uff0c\u4e0d\u8fc7\u4e3b\u89c2\u4e0a\u8fd8\u662f s905x3 \u7684\u89c6\u89c9\u6548\u679c\u66f4\u987a\u6ed1\u4e00\u70b9\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/s905x3-glmark2.webp\" alt=\"s905x3-glmark2-wayland\" \/><\/p>\n\n<p>glmark2\uff08Wayland\uff09\u5f97\u4e86 526 \u5206\u3002\u622a\u56fe\u662f\u4e3a\u4e86\u770b\u89c6\u89c9\u6548\u679c\uff0c\u6211\u5728\u5b9e\u9645\u8dd1\u5206\u7684\u65f6\u5019\u6ca1\u6709\u4e71\u52a8\u673a\u5668\u3002<\/p>\n\n<p>\u9700\u8981 Vulkan \u5c31\u5f97\u7528 PanVk\uff0c\u76ee\u524d\u7248\u672c\u7684 Armbian \u6ca1\u63d0\u4f9b\uff0c\u8981\u81ea\u5df1\u7f16\u8bd1 Mesa\u3002NCNN \u4e3b\u8981\u4f5c\u8005\u4e5f\u6709\u5173\u4e8e\u8fd9\u7684<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/480270449\">\u6559\u7a0b<\/a>\u3002\u6211\u5728\u7f16\u8bd1\u5b8c\u8bbe\u597d <code class=\"language-plaintext highlighter-rouge\">VK_ICD_FILENAMES<\/code> \u548c <code class=\"language-plaintext highlighter-rouge\">PAN_I_WANT_A_BROKEN_VULKAN_DRIVER<\/code> \u4e4b\u540e\uff0c\u7f16\u8bd1 NCNN \u4e4b\u524d\u8fd8\u8bd5\u4e86\u4e0b <code class=\"language-plaintext highlighter-rouge\">vulkaninfo<\/code> \u548c <code class=\"language-plaintext highlighter-rouge\">vkcube<\/code>\uff0c\u7ed3\u679c <code class=\"language-plaintext highlighter-rouge\">vkcube<\/code> \u8bf4\u68c0\u6d4b\u4e0d\u5230 <code class=\"language-plaintext highlighter-rouge\">VK_KHR_surface<\/code>\uff0c\u663e\u793a\u4e0d\u51fa\u753b\u9762\uff1b<code class=\"language-plaintext highlighter-rouge\">vulkaninfo<\/code> \u5012\u662f\u80fd\u68c0\u6d4b\u5230 Vulkan 1.0 \u4e86\u3002\u603b\u4e4b\u786c\u4ef6\u52a0\u901f\u652f\u6301\u6bd4 RPi 4B \u4e0a\u5dee\u5f97\u591a\uff0c\u4e0d\u8fc7 NCNN \u5bf9 Vulkan \u7684\u7248\u672c\u8981\u6c42\u4e0d\u9ad8\uff0c\u6240\u4ee5\u4e5f\u6ca1\u5927\u95ee\u9898\u3002<\/p>\n\n<p>\u4e4b\u540e\u5206\u522b\u7528 CPU \u548c GPU(Vulkan Compute) \u8fd0\u884c\u4e0b NCNN \u57fa\u51c6\u6d4b\u8bd5\uff0c\u540c\u6837\u4e5f\u662f\u7528 <code class=\"language-plaintext highlighter-rouge\">-DCMAKE_BUILD_TYPE=Release<\/code> \u7f16\u8bd1\uff0c\u7528 Vulkan Compute \u7684\u65f6\u5019\u7ed9 <code class=\"language-plaintext highlighter-rouge\">benchmark\/benchmark.cpp<\/code> \u505a\u4e86\u548c\u6559\u7a0b\u91cc\u540c\u6837\u7684\u6539\u52a8\uff1b\u7528 CPU \u65f6\u6ca1\u6539\u3002<\/p>\n\n<p>\u4e4b\u540e\u53d1\u73b0\u7528 Vulkan Compute \u6bd4 CPU \u8fd8\u6162\u7684\u73b0\u8c61\u6bd4\u5728 RPi 4B \u4e0a\u8fd8\u8981\u660e\u663e\u2026\u2026<\/p>\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"text-align: center\">Model<\/th>\n      <th style=\"text-align: center\">Vulkan<\/th>\n      <th style=\"text-align: center\">CPU<\/th>\n      <th style=\"text-align: center\">Ratio<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td style=\"text-align: center\">squeezenet<\/td>\n      <td style=\"text-align: center\">294.09<\/td>\n      <td style=\"text-align: center\">20.79<\/td>\n      <td style=\"text-align: center\">7.07%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">squeezenet_int8<\/td>\n      <td style=\"text-align: center\">28.21<\/td>\n      <td style=\"text-align: center\">20.45<\/td>\n      <td style=\"text-align: center\">72.49%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet<\/td>\n      <td style=\"text-align: center\">286.56<\/td>\n      <td style=\"text-align: center\">26.93<\/td>\n      <td style=\"text-align: center\">9.40%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_int8<\/td>\n      <td style=\"text-align: center\">33.79<\/td>\n      <td style=\"text-align: center\">23.47<\/td>\n      <td style=\"text-align: center\">69.46%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_v2<\/td>\n      <td style=\"text-align: center\">199.89<\/td>\n      <td style=\"text-align: center\">27<\/td>\n      <td style=\"text-align: center\">13.51%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_v3<\/td>\n      <td style=\"text-align: center\">471.68<\/td>\n      <td style=\"text-align: center\">21.55<\/td>\n      <td style=\"text-align: center\">4.57%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">shufflenet<\/td>\n      <td style=\"text-align: center\">161.8<\/td>\n      <td style=\"text-align: center\">17.56<\/td>\n      <td style=\"text-align: center\">10.85%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">shufflenet_v2<\/td>\n      <td style=\"text-align: center\">143.47<\/td>\n      <td style=\"text-align: center\">14.66<\/td>\n      <td style=\"text-align: center\">10.22%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mnasnet<\/td>\n      <td style=\"text-align: center\">201.17<\/td>\n      <td style=\"text-align: center\">23.24<\/td>\n      <td style=\"text-align: center\">11.55%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">proxylessnasnet<\/td>\n      <td style=\"text-align: center\">220.43<\/td>\n      <td style=\"text-align: center\">27.5<\/td>\n      <td style=\"text-align: center\">12.48%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">efficientnet_b0<\/td>\n      <td style=\"text-align: center\">304.8<\/td>\n      <td style=\"text-align: center\">34.59<\/td>\n      <td style=\"text-align: center\">11.35%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">efficientnetv2_b0<\/td>\n      <td style=\"text-align: center\">607.84<\/td>\n      <td style=\"text-align: center\">42.48<\/td>\n      <td style=\"text-align: center\">6.99%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">regnety_400m<\/td>\n      <td style=\"text-align: center\">257.59<\/td>\n      <td style=\"text-align: center\">35.87<\/td>\n      <td style=\"text-align: center\">13.93%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">blazeface<\/td>\n      <td style=\"text-align: center\">43.3<\/td>\n      <td style=\"text-align: center\">5.39<\/td>\n      <td style=\"text-align: center\">12.45%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">googlenet<\/td>\n      <td style=\"text-align: center\">1215.24<\/td>\n      <td style=\"text-align: center\">69.09<\/td>\n      <td style=\"text-align: center\">5.69%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">googlenet_int8<\/td>\n      <td style=\"text-align: center\">79.82<\/td>\n      <td style=\"text-align: center\">66.21<\/td>\n      <td style=\"text-align: center\">82.95%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">resnet18<\/td>\n      <td style=\"text-align: center\">1591.02<\/td>\n      <td style=\"text-align: center\">55.16<\/td>\n      <td style=\"text-align: center\">3.47%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">resnet18_int8<\/td>\n      <td style=\"text-align: center\">52.33<\/td>\n      <td style=\"text-align: center\">47.55<\/td>\n      <td style=\"text-align: center\">90.87%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">alexnet<\/td>\n      <td style=\"text-align: center\">609.33<\/td>\n      <td style=\"text-align: center\">48.83<\/td>\n      <td style=\"text-align: center\">8.01%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">vgg16<\/td>\n      <td style=\"text-align: center\">7785.7<\/td>\n      <td style=\"text-align: center\">303.21<\/td>\n      <td style=\"text-align: center\">3.89%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">vgg16_int8<\/td>\n      <td style=\"text-align: center\">368.11<\/td>\n      <td style=\"text-align: center\">343.21<\/td>\n      <td style=\"text-align: center\">93.24%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">resnet50<\/td>\n      <td style=\"text-align: center\">2744.06<\/td>\n      <td style=\"text-align: center\">124.75<\/td>\n      <td style=\"text-align: center\">4.55%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">resnet50_int8<\/td>\n      <td style=\"text-align: center\">145.53<\/td>\n      <td style=\"text-align: center\">111.35<\/td>\n      <td style=\"text-align: center\">76.51%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">squeezenet_ssd<\/td>\n      <td style=\"text-align: center\">1163.9<\/td>\n      <td style=\"text-align: center\">67.84<\/td>\n      <td style=\"text-align: center\">5.83%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">squeezenet_ssd_int8<\/td>\n      <td style=\"text-align: center\">74.34<\/td>\n      <td style=\"text-align: center\">64.68<\/td>\n      <td style=\"text-align: center\">87.01%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_ssd<\/td>\n      <td style=\"text-align: center\">603.74<\/td>\n      <td style=\"text-align: center\">62.19<\/td>\n      <td style=\"text-align: center\">10.30%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_ssd_int8<\/td>\n      <td style=\"text-align: center\">59.77<\/td>\n      <td style=\"text-align: center\">49.38<\/td>\n      <td style=\"text-align: center\">82.62%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenet_yolo<\/td>\n      <td style=\"text-align: center\">1291.76<\/td>\n      <td style=\"text-align: center\">136.28<\/td>\n      <td style=\"text-align: center\">10.55%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">mobilenetv2_yolov3<\/td>\n      <td style=\"text-align: center\">648.86<\/td>\n      <td style=\"text-align: center\">89.2<\/td>\n      <td style=\"text-align: center\">13.75%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">yolov4-tiny<\/td>\n      <td style=\"text-align: center\">2914.02<\/td>\n      <td style=\"text-align: center\">118.35<\/td>\n      <td style=\"text-align: center\">4.06%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">nanodet_m<\/td>\n      <td style=\"text-align: center\">313.59<\/td>\n      <td style=\"text-align: center\">43.58<\/td>\n      <td style=\"text-align: center\">13.90%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">yolo-fastest-1.1<\/td>\n      <td style=\"text-align: center\">130.84<\/td>\n      <td style=\"text-align: center\">21.55<\/td>\n      <td style=\"text-align: center\">16.47%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">yolo-fastestv2<\/td>\n      <td style=\"text-align: center\">119<\/td>\n      <td style=\"text-align: center\">18<\/td>\n      <td style=\"text-align: center\">15.13%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">vision_transformer<\/td>\n      <td style=\"text-align: center\">31808.15<\/td>\n      <td style=\"text-align: center\">2220.99<\/td>\n      <td style=\"text-align: center\">6.98%<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">FastestDet<\/td>\n      <td style=\"text-align: center\">139.44<\/td>\n      <td style=\"text-align: center\">17.76<\/td>\n      <td style=\"text-align: center\">12.74%<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n<p>\u7b97\u4e86\uff0c\u6211\u5c31\u5f53\u5b83\u6ca1 Vulkan\u2026\u2026<\/p>\n\n<p>\u8bdd\u8bf4\u4e4b\u524d\u6709\u7fa4\u53cb\u5148\u662f\u597d\u5947 PanVk \u4e3a\u4ec0\u4e48\u6ca1\u6cd5\u6b63\u5e38\u6e32\u67d3\u5374\u80fd\u505a Vulkan Compute\uff0c\u968f\u4e4b\u53c8\u67e5\u4e86\u4e0b Khronos \u5b98\u7f51\uff0c\u8bf4\u610f\u601d\u5927\u6982\u662f <a href=\"https:\/\/www.khronos.org\/blog\/getting-started-with-vulkan-compute-acceleration\">Vulkan Compute \u662f Vulkan \u7684\u4e00\u7b49\u516c\u6c11<\/a>\u5427\u3002<\/p>\n\n<h4 id=\"visionfive-2-1\">Visionfive 2<\/h4>\n\n<p>Visionfive 2 \u4e0a\u9a71\u52a8\u663e\u793a\u662f pvr\uff0c\u5e94\u5f53\u662f\u95ed\u6e90\u9a71\u52a8\u3002\u603b\u4e4b\u56fe\u5f62\u6027\u80fd\u5f88\u5f3a\uff0c\u4f46\u662f\u53ea\u7ed9 GLES\uff0c\u4e5f\u7528\u4e0d\u4e86 Vulkan\u3002<\/p>\n\n<p>\u7f3a OpenGL \u7684\u95ee\u9898\u672c\u6765\u53ef\u4ee5\u7528 gl4es \u89e3\u51b3\uff0c\u4f46\u6211\u7684\u673a\u5668\u4e0a gl4es \u603b\u662f Segfault\uff0c\u660e\u660e\u793e\u533a\u7684\u4eba\u548c gl4es \u539f\u4f5c\u8005\u90fd\u66fe\u7ecf\u5728\u8fd9\u5f00\u53d1\u677f\u4e0a<a href=\"https:\/\/github.com\/ptitSeb\/gl4es\/issues\/420\">\u6b63\u5e38\u8dd1\u8d77\u6765<\/a>\u8fc7\u7684\u3002\u8003\u8651\u5230\u73b0\u5728\u5f88\u96be\u6709\u65f6\u95f4\u6301\u7eed\u8ddf\u8fdb\uff0c\u5c31\u6ca1\u53bb\u5f00 Issue\u2026\u2026\u4e0d\u77e5\u9053\u7b49 Vulkan \u652f\u6301\u540e\u76f4\u63a5\u53bb\u7528 Zink \u4f1a\u4e0d\u4f1a\u73b0\u5b9e\u4e00\u70b9\u3002<\/p>\n\n<p>\u81f3\u4e8e\u6d4b\u8bd5 NCNN\u2026\u2026\u6ca1\u610f\u4e49\uff0c\u771f\u7684\u3002<\/p>\n\n<h1 id=\"user-mode-linux\">User-Mode Linux<\/h1>\n\n<p>\u6ca1\u6709\u7684\u4e0d\u5b58\u5728\u7684\u3002\u73b0\u5728\u6ca1\u6709\u8fd9\u79cd\u9002\u914d\u3002<\/p>\n\n<h1 id=\"qemu\">QEMU<\/h1>\n\n<h4 id=\"kvm\">KVM<\/h4>\n\n<p>ARM \u4e0a\u8fd0\u884c QEMU\/KVM \u5e76\u6ca1\u6709\u592a\u590d\u6742\uff0c\u53ea\u662f\u5404\u5927\u53d1\u884c\u7248\u7684\u6587\u6863\u592a\u5c11\uff0c\u52a0\u4e0a QEMU \u8fd0\u884c ARM \u865a\u62df\u673a\u9ed8\u8ba4\u4e0d\u7ed9\u952e\u76d8\u9f20\u6807\u663e\u793a\u5668\uff0c\u521d\u6b21\u4e0a\u624b\u4f1a\u8ba9\u4eba\u6709\u70b9\u7d27\u5f20\uff0c<del>\u6709\u79cd\u201c\u4eba\u751f\u5730\u4e0d\u719f\u201d\u7684\u523a\u6fc0\u611f<\/del>\u3002openSUSE \u4e0a\u6709\u90e8\u5206<a href=\"https:\/\/en.opensuse.org\/openSUSE:AArch64\">\u9875\u9762<\/a>\u7b80\u5355\u4ecb\u7ecd\u4e86\u4e0b\u7cfb\u7edf\u5728 ARM \u4e0a\u7684\u7528\u6cd5\uff0c\u9875\u9762\u6574\u4f53\u6709\u70b9\u8001\uff0c\u4e0d\u8fc7\u6ca1\u5173\u7cfb\u3002<\/p>\n\n<p>RPi 4B \u548c X96 Max Plus \u90fd\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c QEMU\/KVM \u865a\u62df\u673a\u3002RISC-V \u4e0a\u2026\u2026\u5148\u524d\u63d0\u8fc7 Visionfive 2 \u4e0d\u652f\u6301\u786c\u4ef6\u865a\u62df\u5316\uff0c\u6211\u8fd9\u8fb9\u8bd5\u4e0d\u4e86\u3002<\/p>\n\n<p>\u5b89\u88c5 QEMU\uff0c<code class=\"language-plaintext highlighter-rouge\">qemu-system-aarch64<\/code> \u6307\u5b9a <code class=\"language-plaintext highlighter-rouge\">-accel kvm<\/code>\uff0c<code class=\"language-plaintext highlighter-rouge\">-machine<\/code> \u6211\u76f4\u63a5\u9009\u4e86 <code class=\"language-plaintext highlighter-rouge\">virt<\/code>\uff0c<code class=\"language-plaintext highlighter-rouge\">-cpu<\/code> \u6211\u603b\u662f <code class=\"language-plaintext highlighter-rouge\">host<\/code>\uff0c\u60f3\u5f00\u591a\u6838\u5c31 <code class=\"language-plaintext highlighter-rouge\">-smp cores=[\u6570\u5b57]<\/code>\uff08\u4e0d\u542b\u65b9\u62ec\u53f7\uff09\u3002\u60f3\u8981\u952e\u76d8\u9f20\u6807\u663e\u793a\u5668\u5c31\u624b\u52a8\u6307\u660e <code class=\"language-plaintext highlighter-rouge\">-device qemu-xhci<\/code>\uff08\u6ca1\u9519\u9ed8\u8ba4\u8fde USB \u90fd\u4e0d\u7ed9\uff09\u3001<code class=\"language-plaintext highlighter-rouge\">-device usb-kbd<\/code>\u3001<code class=\"language-plaintext highlighter-rouge\">-device usb-tablet<\/code> \u548c <code class=\"language-plaintext highlighter-rouge\">-device virtio-gpu-pci<\/code>\u3002\u4e0d\u7528\u952e\u76d8\u9f20\u6807\u663e\u793a\u5668\u4e5f\u6ca1\u5173\u7cfb\uff0c\u7cfb\u7edf\u542f\u52a8\u4e4b\u540e\u76f4\u63a5\u7528\u4e32\u884c\u7ec8\u7aef\u4e5f\u884c\u3002<\/p>\n\n<p>\u60f3\u8981\u50cf PC \u4e00\u6837\u80fd\u63d2\u5b89\u88c5\u76d8\u3001\u80fd\u7528\u952e\u76d8\u8c03\u8bbe\u7f6e\u7684\u4f53\u9a8c\uff0c\u5c31\u7528 <code class=\"language-plaintext highlighter-rouge\">-bios [\u4f4d\u7f6e]<\/code> \u52a0\u8f7d\u4e2a UEFI \u56fa\u4ef6\uff0c\u8fd9\u91cc\u662f TianoCore EDK 2\u3002\u5173\u4e8e\u56fa\u4ef6\u7684\u4f4d\u7f6e\uff0copenSUSE \u4e0a\u5728 <code class=\"language-plaintext highlighter-rouge\">\/usr\/share\/qemu\/aavmf-aarch64-code.bin<\/code>\uff0cDebian \u7cfb\u4e0a\u591a\u5728 <code class=\"language-plaintext highlighter-rouge\">\/usr\/share\/qemu-efi-aarch64\/QEMU_EFI.fd<\/code> \u4e0b\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/s905x3-neofetch.webp\" alt=\"s905x3-kvm\" \/><\/p>\n\n<p>\u8fdb EDK 2\uff0c\u6309 F12 \u5c31\u662f\u5f88\u719f\u6089\u7684\u754c\u9762\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/s905x3-kvm-edk2.webp\" alt=\"kvm-edk2\" \/><\/p>\n\n<p>\u60f3\u73a9 U-boot \u4e5f\u53ef\u4ee5\u81ea\u5df1\u7f16\u8bd1\u4e00\u4e2a\uff0c\u540c\u6837\u7528 <code class=\"language-plaintext highlighter-rouge\">-bios [\u4f4d\u7f6e]<\/code> \u52a0\u8f7d\u5b83\u3002U-boot \u9ed8\u8ba4\u8981\u4ece\u4e32\u884c\u7ec8\u7aef\u8fdb\u884c\u8c03\u8bd5\uff0c\u628a QEMU \u89c6\u56fe\u5207\u6362\u5230 <code class=\"language-plaintext highlighter-rouge\">serial0<\/code> \u5c31\u53ef\u4ee5\u63a7\u5236\u5b83\u4e86\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/s905x3-kvm-uboot.webp\" alt=\"kvm-uboot\" \/><\/p>\n\n<p>\u5982\u679c\u60f3\u5728\u865a\u62df\u673a\u91cc\u88c5\u7684\u53d1\u884c\u7248\u63d0\u4f9b\u4e86 ARM UEFI \u955c\u50cf\uff0c\u90a3\u4e48\u76f4\u63a5\u7528 <code class=\"language-plaintext highlighter-rouge\">-cdrom [\u4f4d\u7f6e]<\/code> \u52a0\u8f7d\u5b89\u88c5\u76d8\u5c31\u597d\u4e86\u3002\u865a\u62df\u786c\u76d8\u5f80\u5f80\u53ef\u4ee5\u76f4\u63a5\u7528 VirtIO\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u4f60\u8981\u88c5\u7684\u53d1\u884c\u7248\u652f\u6301\u60c5\u51b5\u3002U-boot \u548c EDK 2 \u90fd\u53ef\u4ee5\u542f\u52a8 UEFI \u542f\u52a8\u955c\u50cf\u2026\u2026\u76f8\u8f83\u4e8e\u540c Device Tree \u6597\u667a\u6597\u52c7\uff0c\u7528 UEFI+ACPI \u786e\u5b9e\u8981\u8f7b\u677e\u6109\u5feb\u5f97\u591a\u3002<\/p>\n\n<p>EDK 2 \u52a0\u8f7d openSUSE LiveCD \u5c31\u4f1a\u8fdb openSUSE LiveCD \u4e0a<del>\u62b9\u8336\u5473\u9053\u7684<\/del>\u5f88\u6f02\u4eae\u7684 GRUB\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/s905x3-opensuse-edk2.webp\" alt=\"opensuse-edk2\" \/><\/p>\n\n<p>U-boot \u52a0\u8f7d\u5c31\u8981\u8fdb\u4e32\u884c\u7ec8\u7aef\u64cd\u4f5c\u542f\u52a8\u83dc\u5355\u4e86\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/s905x3-opensuse-uboot.webp\" alt=\"opensuse-uboot\" \/><\/p>\n\n<p>\u5f53\u7136\u8fd9\u4e24\u79cd\u90fd\u8fd8\u662f EFI \u542f\u52a8\uff0c\u4ece kmsg \u91cc\u80fd\u770b\u5230\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/opensuse-efi-by-edk2.webp\" alt=\"opensuse-efi-by-edk2\" \/><\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/opensuse-efi-by-uboot.webp\" alt=\"opensuse-efi-by-uboot\" \/><\/p>\n\n<p>\u4f60\u8981\u662f\u6070\u597d\u6709\u4e2a Ventoy \u76d8\uff0c\u4e5f\u53ef\u4ee5\u8bd5\u4e00\u4e0b\u4ece\u5b83\u4e0a\u9762\u542f\u52a8\uff08\u7b11\uff09\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/ventoy.webp\" alt=\"kvm-ventoy\" \/><\/p>\n\n<p>\u6709\u65f6\u5019 Debian \u7cfb\u53d1\u884c\u7248\u8981\u88c5 <code class=\"language-plaintext highlighter-rouge\">qemu-system-x86<\/code> \u624d\u80af\u5b89\u88c5 VirtIO \u76f8\u5173\u6587\u4ef6\u3002\u6709\u79cd\u62c6\u5305\u90fd\u4e0d\u4f1a\u62c6\u7684\u611f\u89c9\u2026\u2026<\/p>\n\n<p>\u8bdd\u8bf4 ARM \u4e0a\u8dd1 KVM \u5e72\u561b\u2026\u2026\u653e CI \u4e0a\u62ff\u6765\u6d4b\u8bd5\u5b9e\u9a8c\u54c1\u7684\u7cfb\u7edf\u5e94\u8be5\u5f88\u6709\u7528\u5427\u3002\u4e0d\u8fc7\u8fd9\u662f\u501f\u53e3\uff0c\u6211\u6839\u672c\u73a9\u4e0d\u61c2 CI\u3002<\/p>\n\n<h4 id=\"\u5d4c\u5957\u865a\u62df\u5316\">\u5d4c\u5957\u865a\u62df\u5316<\/h4>\n\n<p>\u6ca1\u6709\u7684\u4e0d\u5b58\u5728\u7684\u3002\u641c\u4e00\u4e0b ARM \u7684\u5d4c\u5957\u865a\u62df\u5316\uff0c\u7b2c\u4e00\u9875\u51fa\u6765\u7684\u8d85\u8fc7\u4e00\u534a\u662f\u8bba\u6587\u3002<\/p>\n\n<p>x86 \u4e0a\u5d4c\u5957\u865a\u62df\u5316\u5c31\u663e\u5f97\u8f7b\u677e\u81ea\u5982\uff0c\u4e0d\u77e5\u9053\u662f\u4ec0\u4e48\u539f\u7406\u3002<\/p>\n\n<h4 id=\"tcg\">TCG<\/h4>\n\n<p>\u4f60\u82e5\u662f\u80fd\u5fcd\u53d7 QEMU\/TCG \u7684\u4f4e\u6027\u80fd\uff0c\u4e5f\u53ef\u4ee5\u5728\u666e\u901a x86 PC \u4e0a\u6a21\u62df ARM \u8bbe\u5907\uff0c\u53ea\u8981\u628a <code class=\"language-plaintext highlighter-rouge\">-accel<\/code> \u7684 <code class=\"language-plaintext highlighter-rouge\">kvm<\/code> \u6539\u6210 <code class=\"language-plaintext highlighter-rouge\">tcg<\/code> \u5c31\u884c\u4e86\uff0c\u8fd8\u53ef\u4ee5\u6307\u5b9a\u4e2a\u591a\u7ebf\u7a0b\uff0c\u5408\u8d77\u6765\u662f <code class=\"language-plaintext highlighter-rouge\">-accel tcg,thread=multi<\/code>\u3002\u7528 TCG \u7684\u8bdd\u5c31\u4e0d\u80fd\u9009 <code class=\"language-plaintext highlighter-rouge\">-cpu host<\/code> \u4e86\uff0c\u6211\u4e00\u822c\u9009 <code class=\"language-plaintext highlighter-rouge\">max<\/code> \u6216\u8005 <code class=\"language-plaintext highlighter-rouge\">cortex-a53<\/code>\u3002<\/p>\n\n<p>\u6a21\u62df RISC-V \u4e5f\u5dee\u4e0d\u591a\uff0c\u53ea\u662f\u6ca1\u6709\u5f88\u591a\u53d1\u884c\u7248\u63d0\u4f9b\u73b0\u6210\u7684\u955c\u50cf\uff0c\u73b0\u6210\u7684\u6587\u6863\u4e5f\u66f4\u5c11\u2026\u2026<\/p>\n\n<h1 id=\"buildroot\">Buildroot<\/h1>\n\n<p>Buildroot \u662f\u4e00\u7ec4\u7ed9\u5d4c\u5165\u5f0f\u8bbe\u5907\u5b9a\u5236\u7cfb\u7edf\u7684\u5de5\u5177\uff0cMilk-V Duo \u5b98\u65b9\u53ea\u652f\u6301\u7528 Buildroot \u6784\u5efa Linux\uff0c\u5176\u4ed6\u5f00\u53d1\u677f\u7528\u4e86 Buildroot \u5b9a\u5236\u7cfb\u7edf\u4e5f\u4f1a\u65b9\u4fbf\u4e00\u70b9\uff0c\u6240\u4ee5\u5b66\u4f1a\u8fd9\u4e2a\u8fd8\u662f\u5f88\u91cd\u8981\u7684\u3002<\/p>\n\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u5148\u83b7\u53d6 Buildroot \u5de5\u5177\uff0c\u4e4b\u540e\u6309\u6587\u6863\u914d\u7f6e\u6784\u5efa\u9009\u9879\uff0c\u4e4b\u540e\u7b49\u7740\u60f3\u8981\u7684\u955c\u50cf\u6784\u5efa\u51fa\u6765\u5c31\u53ef\u4ee5\u4e86\u3002Buildroot <code class=\"language-plaintext highlighter-rouge\">menuconfig<\/code> \u4e0b\u80fd\u5b9a\u5236\u7684\u5185\u6838\u9009\u9879\u5f88\u5c11\uff0c\u5b9e\u5728\u9700\u8981\u6539\u7684\u8bdd\u8981\u81ea\u5df1\u5bfc\u5165\u6539\u597d\u7684\u914d\u7f6e\uff1b\u9009\u9879\u95f4\u5e38\u6709\u4e92\u65a5\u6216\u8005\u4f9d\u8d56\u5173\u7cfb\uff0c\u6240\u4ee5\u5f88\u53ef\u80fd\u8981\u6765\u56de\u7ffb\u83dc\u5355\u4fee\u6539\u8bbe\u7f6e\uff1bBuildroot \u4f1a\u68c0\u67e5\u7684\u4e1c\u897f\u76f8\u5bf9\u8f83\u5c11\uff0c\u68c0\u67e5\u914d\u7f6e\u662f\u5426\u6b63\u786e\u6700\u597d\u8fd8\u662f\u81ea\u5df1\u591a\u770b\u4e24\u773c\u3002<\/p>\n\n<p>\u6539\u5b8c Buildroot \u914d\u7f6e\u540e\u6709\u65f6\u5f97\u505a\u4e00\u6b21\u5b8c\u6574\u7684\u7f16\u8bd1\uff0c\u8981\u662f\u6bd4\u8f83\u52e4\u52b3\uff0c\u4e00\u5929\u591a\u7f16\u8bd1\u51e0\u6b21\u7684\u8bdd\u786c\u76d8\u8bf4\u4e0d\u5b9a\u4e24\u5e74\u5c31\u5199\u574f\u4e86\uff0c\u6211\u89c6\u60c5\u51b5\u4f1a\u7ed9 Buildroot <code class=\"language-plaintext highlighter-rouge\">output<\/code> \u76ee\u5f55\u6302\u8f7d\u5230 tmpfs \u4e0a\u3002\u7f16\u8bd1\u7528\u7684\u673a\u5668\u5c3d\u91cf\u81f3\u5c11\u6709 16GiB \u5185\u5b58\u5427\u3002<\/p>\n\n<p>\u7ed9 Duo \u7f16\u8bd1\u7684\u8bdd\uff0c\u4e0b\u8f7d Duo Buildroot SDK\uff0c\u8fdb\u5165 buildroot \u76ee\u5f55\uff0c\u9009\u62e9 Milk-V Duo \u7684\u9ed8\u8ba4\u914d\u7f6e\uff08<code class=\"language-plaintext highlighter-rouge\">make milkv_duo_musl_riscv64_defconfig<\/code>\uff09\uff0c\u6309\u7167\u9700\u8981 menuconfig\uff0c\u4e4b\u540e <code class=\"language-plaintext highlighter-rouge\">.config<\/code> \u4f3c\u4e4e\u4f1a\u88ab Duo \u7684\u6784\u5efa\u811a\u672c\u8986\u76d6\u2026\u2026\u6211\u76f4\u63a5\u628a <code class=\"language-plaintext highlighter-rouge\">configs\/milkv_duo_musl_riscv64_defconfig<\/code> \u7528\u751f\u6210\u7684 <code class=\"language-plaintext highlighter-rouge\">.config<\/code> \u8986\u76d6\u4e86\u3002\u5f88\u66b4\u529b\uff0c\u4f46\u662f\u786e\u5b9e\u6709\u6548\u679c\u3002<\/p>\n\n<p>\u6539\u5185\u6838\u914d\u7f6e\u7684\u8bdd\uff0c\u56de\u5230 SDK \u76ee\u5f55\uff0c\u7ed9 <code class=\"language-plaintext highlighter-rouge\">build\/milkvsetup.sh<\/code> \u7684 <code class=\"language-plaintext highlighter-rouge\">build_all()<\/code> \u91cc\u52a0\u4e0a <code class=\"language-plaintext highlighter-rouge\">menuconfig_kernel<\/code>\uff0c\u542f\u52a8\u7f16\u8bd1\u811a\u672c\u4e4b\u540e\u7b49\u5f85 menuconfig \u754c\u9762\u51fa\u73b0\u5c31\u662f\u4e86\u3002\u5927\u6982\u4e5f\u53ef\u4ee5\u624b\u52a8\u9009\u62e9 <code class=\"language-plaintext highlighter-rouge\">.config<\/code>\uff0c\u4f46\u6211\u6ca1\u627e\u5230\u76f8\u5173\u6587\u6863\u3002\u6211\u60f3\u7528 Bubblewrap\uff0c\u6240\u4ee5<del>\u5728\u7a0b\u5e8f\u70b8\u4e86\u51e0\u6b21\u4e4b\u540e<\/del>\u627e\u5230\u5e76\u542f\u7528\u4e86 <code class=\"language-plaintext highlighter-rouge\">Control Group support<\/code>\u3001<code class=\"language-plaintext highlighter-rouge\">Namespaces support<\/code>\u3001<code class=\"language-plaintext highlighter-rouge\">Enable signalfd() system call<\/code> \u548c OverlayFS\u3002\u5982\u679c\u5bf9 cgroup\u3001namespace \u76f8\u5173\u914d\u7f6e\u6709\u7591\u95ee\uff0c\u53ef\u4ee5\u53bb\u770b <a href=\"https:\/\/github.com\/moby\/moby\/blob\/master\/contrib\/check-config.sh\">check-config.sh<\/a>\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/duo-bubblewrap.webp\" alt=\"duo-bubblewrap\" \/><\/p>\n\n<p>\u4e4b\u540e\u53d1\u73b0 lxc-images \u91cc\u6ca1\u6709 RISC-V \u5bb9\u5668\u955c\u50cf\uff0c<del>\u6ca1\u6cd5\u5077\uff08\u4e0d\u662f\uff09\u73b0\u6210\u955c\u50cf\u6765\u7528\uff0c<\/del>\u8981\u81ea\u5df1 bootstrap \u4e00\u4e2a\u3002\u786e\u4fdd\u7535\u8111\u4e0a\u6b63\u786e\u914d\u7f6e\u4e86 qemu-user \u548c qemu-binfmt\uff0c\u7136\u540e\u627e\u4e2a\u5e72\u51c0\u7684\u76ee\u5f55\uff0c<code class=\"language-plaintext highlighter-rouge\">debootstrap --arch=riscv64 sid rootfs https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian<\/code>\u3002\u7528 Sid \u662f\u56e0\u4e3a\u7a33\u5b9a\u7248\u91cc\u8fd8\u6ca1\u6709 RISC-V \u652f\u6301\u3002<\/p>\n\n<p>\u5bb9\u5668\u91cc APT \u4e0d\u77e5\u600e\u4e48\u5728\u8fde\u63a5\u7f51\u7edc\u65f6\u4f1a\u6709 Illegal Instruction\uff0c\u5c31\u4f20\u4e86\u4e2a neofetch \u5305\u7528 dpkg \u88c5\u4e86\u4e00\u4e0b\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/embedded-linux\/duo-debian-neofetch.webp\" alt=\"duo-debian-neofetch\" \/><\/p>\n\n<h1 id=\"rvv\">RVV<\/h1>\n\n<p>\u611f\u8c22 Revy \u548c Robin Lu \u7684\u6307\u5bfc\u3002<\/p>\n\n<p>\u7b80\u5355\u73a9\u4e00\u4e0b Duo \u4e0a\u7684 RISC-V Vector Extension\u3002\u5173\u4e8e RVV \u548c x86\/ARM SIMD \u7684\u533a\u522b\uff0c\u8fd9\u91cc\u8fd8\u4e0d\u9700\u8981\u8fc7\u5ea6\u5173\u6ce8\uff0c\u611f\u5174\u8da3\u7684\u8bdd\u53ef\u4ee5\u53bb\u8bfb\u4e9b<a href=\"https:\/\/medium.com\/swlh\/risc-v-vector-instructions-vs-arm-and-x86-simd-8c9b17963a31\">\u79d1\u666e\u6587\u7ae0<\/a>\u3002<\/p>\n\n<p>\u5982\u679c\u6709\u4e00\u7ec4\u6570\u636e\u9700\u8981\u540c\u65f6\u8fdb\u884c\u540c\u4e00\u7c7b\u578b\u7684\u8fd0\u7b97\uff0c\u6bd4\u5982\u505a\u77e9\u9635\u4e58\u6cd5\u7684\u65f6\u5019\uff08\u5982\u679c\u8fd8\u6ca1\u5b66\u7ebf\u6027\u4ee3\u6570\uff0c\u6211\u6bd4\u8f83\u63a8\u8350\u770b\u4e00\u4e0b <em>Linear Algebra Done Right<\/em> \uff09\uff0c\u8981\u9891\u7e41\u505a\u4e24\u7ec4\u6570\u636e\u4e2d\uff0c\u4e00\u7ec4\u91cc\u7684\u6bcf\u4e2a\u6570\u90fd\u4e58\u4ee5\u53e6\u4e00\u7ec4\u4e2d\u4e00\u4e2a\u6570\u7684\u64cd\u4f5c\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e0b\u7528 Vector Extension \u76f8\u6bd4\u4e0d\u7528\u4f1a\u5feb\u4e00\u70b9\u3002<\/p>\n\n<p>\u7528 RVV \u7684\u65b9\u6cd5\u6709\u51e0\u79cd\uff0c\u53ef\u4ee5\u624b\u5199\u6c47\u7f16\uff0c\u6216\u8005\u7528 Intrinsic\uff0c\u4e5f\u53ef\u4ee5\u8ba9\u7f16\u8bd1\u5668\u6839\u636e\u7a0b\u5e8f\u7684\u8bed\u4e49\u81ea\u52a8\u5411\u91cf\u5316\u3002\u624b\u5199\u6c47\u7f16\u6bd4\u8f83\u6050\u6016\uff1bRVV Intrinsic \u662f\u4e00\u7cfb\u5217\u5305\u88c5\u597d\u7684\u6c47\u7f16\u51fd\u6570\uff0c\u53ef\u4ee5\u5728\u66f4\u9ad8\u7ea7\u7684\u8bed\u8a00\u4e2d\u5b89\u5168\u5730\u4f7f\u7528\uff0c\u7528\u8d77\u6765\u5c31\u53cb\u597d\u4e00\u70b9\u4e86\u3002<\/p>\n\n<p>\u505a\u8ba1\u7b97\u7684\u65f6\u5019\uff0c\u8981\u5148\u4ece\u5185\u5b58\u4e2d\u53d6\u51fa\u4e00\u4e9b\u8981\u64cd\u4f5c\u7684\u6570\uff0c\u653e\u5230\u5411\u91cf\u5bc4\u5b58\u5668\u91cc\uff0c\u4e4b\u540e\u7528\u6307\u4ee4\u8fdb\u884c\u7b97\u672f\u8fd0\u7b97\uff0c\u518d\u4ece\u5411\u91cf\u5bc4\u5b58\u5668\u4e2d\u53d6\u51fa\u7ed3\u679c\uff0c\u653e\u56de\u5185\u5b58\uff0c\u91cd\u590d\u2026\u2026<\/p>\n\n<p>\u5148\u7528 Intrinsic \u6765\u4e2a\u5411\u91cf\u52a0\u6cd5\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>#include &lt;riscv_vector.h&gt;\n\nvoid rvv_float32_add(const float *a,const float *b,float *ans,size_t length)\n{\n\t\/\/\u5148\u8bf4\u597d\uff0c\u6211\u4eec\u628a a+b \u5199\u5230 ans \u91cc\u3002length \u662f\u5411\u91cf\u7684\u7ef4\u6570\n\t\/\/\u4e0d\u76f4\u63a5\u628a\u8fd0\u7b97\u7ed3\u679c\u5199\u56de a \u6216\u8005 b \u91cc\u662f\u4e3a\u4e86\u65b9\u4fbf\u68c0\u67e5\u8fd0\u7b97\u7684\u6b63\u786e\u6027\n\tsize_t vl;\/\/\u5bc4\u5b58\u5668\u7684\u7a7a\u95f4\u662f\u5341\u5206\u6709\u9650\u7684\uff0c\u6211\u4eec\u4e00\u6b21\u53ea\u64cd\u4f5c vl \u4e2a\u5143\u7d20\n\tvfloat32m1_t va,vb;\/\/\u8bbe\u7f6e\u4e24\u4e2a\u5411\u91cf\u5bc4\u5b58\u5668\uff0c\u7528\u6765\u5b58\u653e\u4e00\u8f6e\u64cd\u4f5c\u7684\u51e0\u4e2a\u5143\u7d20\n\t\/\/\u5143\u7d20\u7c7b\u578b\u662f\u5355\u7cbe\u5ea6\uff0832\u4f4d\uff09\u6d6e\u70b9\u6570\uff0cLMUL \u4e3a 1\n\t\/\/LMUL \u662f\u6307\u4e00\u7ec4\u5411\u91cf\u5bc4\u5b58\u5668\u7684\u5927\u5c0f\uff0c\u8c03\u5927 LMUL \u53ef\u4ee5\u8ba9\u51e0\u4e2a\u5411\u91cf\u5bc4\u5b58\u5668\u7ec4\u6210\u4e00\u7ec4\uff0c\u53ef\u4ee5\u5c11\u8fdb\u884c\u51e0\u8f6e\u5faa\u73af\n\tfor(;length&gt;0;length-=vl)\/\/length \u4e3a 0\uff0c\u5c31\u8bf4\u660e\u5df2\u7ecf\u628a\u5411\u91cf\u7684\u6240\u6709\u7ef4\u90fd\u7b97\u5b8c\u4e86\n\t{\n\t\tvl=vsetvl_e32m1(length);\/\/\u53d6\u5f97\u8fd9\u6b21\u8981\u64cd\u4f5c\u591a\u5c11\u4e2a\u5143\u7d20\n\t\tva=vle32_v_f32m1(a,vl);\/\/\u4ece a \u4e2d\u52a0\u8f7d vl \u4e2a\u5143\u7d20\uff0c\u5b58\u5230 va \u91cc\n\t\t\/\/\u53ef\u4ee5\u770b\u51fa\uff0c\u5143\u7d20\u5fc5\u987b\u662f\u7d27\u6328\u5728\u4e00\u8d77\u7684\n\t\tvb=vle32_v_f32m1(b,vl);\/\/\u4ece b \u4e2d\u52a0\u8f7d\uff0c\u5b58\u5230 vb \u91cc\n\t\tva=vfadd_vv_f32m1(va,vb,vl);\/\/va \u4e0e vb \u76f8\u52a0\uff0c\u7ed3\u679c\u5199\u5230 va \u91cc\n\t\t\/\/\u5373 va[i]=va[i]+vb[i]\n\t\tvse32_v_f32m1(ans,va,vl);\/\/\u4ece va \u4e2d\u8bfb\u53d6\u8fd0\u7b97\u7ed3\u679c\uff0c\u5b58\u5230 ans \u91cc\n\t\ta+=vl;\/\/\u8bbe\u7f6e\u504f\u79fb\u91cf\uff0c\u4e3a\u4e0b\u4e00\u8f6e\u5faa\u73af\u4f5c\u51c6\u5907\n\t\tb+=vl;\n\t\tans+=vl;\n\t}\n}\n<\/code><\/pre><\/div><\/div>\n\n<p>\u4e4b\u540e\u5199\u4e2a\u4e3b\u51fd\u6570\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570\uff0c\u7528 <a href=\"https:\/\/github.com\/milkv-duo\/duo-app-sdk\">Duo APP SDK<\/a> \u91cc\u7684\u5de5\u5177\u94fe\u7f16\u8bd1\u4e00\u4e0b\uff1a<\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">path-to-duo-app-sdk\/riscv64-linux-musl-x86_64\/bin\/riscv64-unknown-linux-musl-gcc -o vadd vadd.c -mcpu=c906fdv -march=rv64imafdcv0p7xthead -mcmodel=medany -mabi=lp64d<\/code><\/p>\n\n<p>\u7f16\u8bd1\u5f00\u5173\u662f\u6211\u4ece <code class=\"language-plaintext highlighter-rouge\">duo-examples<\/code> \u91cc\u6284\u7684\u3002\u7f16\u8bd1\u5b8c sftp \u4e0a\u4f20\u5230 Duo\uff0c\u8fd0\u884c\u4e00\u4e0b\u770b\u770b\u7ed3\u679c\u3002<\/p>\n\n<p>\u73b0\u5728\u6211\u4eec\u5df2\u7ecf\u5b66\u4f1a\u600e\u4e48\u7528 RVV \u52a0\u901f\u5411\u91cf\u52a0\u6cd5\u4e86\uff0c\u518d\u6765\u770b\u4e00\u4e0b\u77e9\u9635\u4e58\u6cd5\u3002\u8ba1\u7b97\u77e9\u9635 a \u00d7 b \u7684\u8bdd\uff0c\u5f97\u5230\u7684\u7ed3\u679c\u4e2d\u7b2c <code class=\"language-plaintext highlighter-rouge\">[i][j]<\/code> \u9879\u5c31\u662f <code class=\"language-plaintext highlighter-rouge\">a[i][0]*b[0][j] + a[i][1]*b[1][j] + ... + a[i][n]*b[n][j]<\/code>\uff0c\u5176\u4e2d <code class=\"language-plaintext highlighter-rouge\">a[i][0]...a[i][n]<\/code> \u5728\u5185\u5b58\u4e2d\u662f\u8fde\u7eed\u7684\uff0c<code class=\"language-plaintext highlighter-rouge\">b[0][j]...b[n][j]<\/code> \u5f7c\u6b64\u4e4b\u95f4\u5374\u8981\u9694\u4e00\u6bb5\uff0c\u4e0d\u5229\u4e8e\u6211\u4eec\u4ece\u5185\u5b58\u4e2d\u53d6\u6570\uff0c\u6240\u4ee5\u5148\u7ed9 b \u8f6c\u7f6e\u4e00\u4e0b\uff0c\u8bb0\u4e3a bt\uff0c\u539f\u672c\u7684\u8868\u8fbe\u5f0f\u5c31\u53d8\u6210\u4e86 <code class=\"language-plaintext highlighter-rouge\">a[i][0]*bt[j][0] + a[i][1]*bt[j][1] + ... + a[i][n]*bt[j][n]<\/code>\u3002<\/p>\n\n<p>\u5148\u7528\u6807\u91cf\u8fd0\u7b97\u5b9e\u73b0\u4e00\u4e2a\u3002<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>void matrix_mtpl(float **a,float **bt,float **ans,int m,int n,int o)\n{\n\t\/\/a * b\uff0cbt \u662f b \u7684\u8f6c\u7f6e\u3002a \u662f m*n \u77e9\u9635\uff0cb \u662f n*o\n\tfor(int i=0;i&lt;m;i++)\n\t{\n\t\tfor(int j=0;j&lt;o;j++)\n\t\t{\n\t\t\tans[i][j]=0;\n\t\t\tfor(int k=0;k&lt;n;k++) ans[i][j]+=a[i][k]*bt[j][k];\n\t\t}\n\t}\n}\n<\/code><\/pre><\/div><\/div>\n\n<p>\u4e4b\u540e\u5bf9\u7740\u6539\u6210\u7528 RVV\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>void rvv_matrix_mtpl(float **a,float **bt,float **ans,int m,int n,int o)\n{\n\tsize_t vl;\/\/\u548c\u4e0a\u9762\u7684 vl \u542b\u4e49\u4e00\u81f4\n\tsize_t vlmax=vsetvlmax_e32m1();\/\/vl \u6700\u5927\u53ef\u80fd\u7684\u503c\uff0c\u76f8\u5f53\u4e8e\u4e0b\u9762\u7528\u5230\u7684\u5411\u91cf\u5bc4\u5b58\u5668\u91cc\uff0c\u6700\u591a\u5b58\u50a8\u7684\u5143\u7d20\u4e2a\u6570\n\tvfloat32m1_t vzero,vans;\n\tvzero=vfmv_v_f_f32m1(0.0,vlmax);\/\/\u8bbe\u7f6e\u4e00\u4e2a\u5168 0.0 \u586b\u5145\u7684\u5411\u91cf\u5bc4\u5b58\u5668\uff0c\u4e0b\u9762\u6709\u7528\n\tfor(int i=0;i&lt;m;i++)\n\t{\n\t\tfor(int j=0;j&lt;o;j++)\n\t\t{\n\t\t\tvans=vzero;\/\/vans \u5b58\u50a8 a[i][0]*bt[j][0]..a[i][n]*bt[j][n] \u7684\u548c\n\t\t\t\/\/\u8ba1\u7b97\u5f00\u59cb\u524d\u5c06 vans \u7f6e\u96f6\n\t\t\tfloat *pa=a[i],*pbt=bt[j];\/\/\u6307\u9488\u6307\u5411\u5c06\u8981\u88ab\u8ba1\u7b97\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\n\t\t\t\/\/\u521d\u59cb\u72b6\u6001 pa \u6307\u5411 a[i][0]\uff0cpbt \u6307\u5411 bt[j][0]\n\t\t\tfor(size_t length=n;length&gt;0;length-=vl)\n\t\t\t{\n\t\t\t\tvfloat32m1_t va,vb;\n\t\t\t\tvl=vsetvl_e32m1(length);\/\/\u540c\u6837\u662f\u4e00\u6b21\u5904\u7406 vl \u4e2a\u5143\u7d20\n\t\t\t\tif(vl&lt;vlmax)\n\t\t\t\t{\n\t\t\t\t\tva=vzero;\/\/\u7ed9 va \u7f6e\u96f6\n\t\t\t\t\tvb=vzero;\n\t\t\t\t}\n\t\t\t\tva=vle32_v_f32m1(pa,vl);\/\/va \u5b58\u50a8 a[i][x],a[i][x+1],...\n\t\t\t\tvb=vle32_v_f32m1(pbt,vl);\/\/vb \u5b58\u50a8 bt[j][x],bt[j][x+1],...\n\t\t\t\t\/\/\u5982\u679c vl &lt; vlmax\uff0c\u5269\u4e0b\u7684\u6ca1\u88ab\u8bbe\u5b9a\u7684\u90e8\u5206\u662f 0\n\t\t\t\t\/\/\u6700\u65b0 rvv-intrinsic-doc\/examples \u662f\u6ca1\u6709\u7ed9 va vb \u7f6e\u96f6\u8fd9\u4e00\u6b65\u7684\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u65b0\u7248 vfmacc_vv \u7684\u884c\u4e3a\u4e0d\u592a\u4e00\u6837\n\t\t\t\tvans=vfmacc_vv_f32m1(vans,va,vb,vlmax);\/\/\u5411\u91cf\u4e58\u52a0\u7684\u64cd\u4f5c\n\t\t\t\t\/\/\u6b64\u5904 va \u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u5206\u522b\u4e0e vb \u4e2d\u540c\u4e00\u4e0b\u6807\u7684\u5143\u7d20\u76f8\u4e58\n\t\t\t\t\/\/\u5f97\u5230\u7684\u5411\u91cf\u518d\u4e0e vans \u76f8\u52a0\uff0c\u5373 vans[i]=vans[i]+va[i]*vb[i]\n\t\t\t\t\/\/\u5982\u679c\u5199\u6210 Octave \u8bed\u6cd5\uff0c\u662f vans=vans+va*vb\n\t\t\t\t\/\/\u5982\u679cvl=4\uff0c\u53ef\u4ee5\u770b\u51fa vans[0] \u6700\u7ec8\u4f1a\u7b49\u4e8e a[i][0]*bt[j][0] + a[i][4]*bt[j][4] + ...\n\t\t\t\t\/\/\n\t\t\t\t\/\/\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u6700\u65b0 rvv-intrinsic-doc\/examples \u91cc vfmacc_vv \u6700\u540e\u4e00\u4e2a\u53c2\u6570\u662f vl\uff08\u800c\u4e0d\u662fvlmax\uff09\n\t\t\t\t\/\/\u6211\u8fd9\u91cc\u5982\u679c\u8bbe\u6210 vl\uff0c\u4e14 vl &lt; vlmax \u7684\u8bdd\uff0cvans \u540e\u4e00\u90e8\u5206\u7684\u6570\u636e\uff08vans[vl,vl+1,...]\uff09\u4f3c\u4e4e\u4f1a\u4e22\u5931\n\t\t\t\t\/\/\u6240\u4ee5\u628a\u64cd\u4f5c\u5143\u7d20\u6570\u6539\u6210\u4e86 vlmax\u3002\u524d\u9762\u7684 va vb \u7f6e\u96f6\u662f\u4e3a\u4e86\u4fdd\u8bc1 va,vb \u7684 [vl,vl+1,...] \u662f 0\n\n\t\t\t\tpa+=vl;\/\/\u8bbe\u7f6e\u504f\u79fb\u91cf\n\t\t\t\tpbt+=vl;\n\t\t\t}\n\t\t\tvfloat32m1_t vsum;\n\t\t\tvsum=vfredusum_vs_f32m1_f32m1(vsum,vans,vzero,vlmax);\/\/\u6c42\u5411\u91cfvans\u4e2d\u5404\u4e2a\u5143\u7d20\u7684\u548c\uff08\u5f97\u5230\u6807\u91cf\uff09\uff0c\n\t\t\t\/\/\u518d\u4e0evzero[0]\uff08\u6807\u91cf\uff0c\u8fd9\u91cc\u662f0\uff09\u76f8\u52a0\uff0c\u5199\u5165vsum[0]\n\t\t\t\/\/\u76f8\u5f53\u4e8e\u662f vsum[0]=vzero[0]+vans[0]+vans[1]+...\n\t\t\t\/\/\u8fd9\u5c31\u5f97\u5230 a[i][0]*bt[j][0] + a[i][1]*bt[j][1] + ... \u7684\u548c\n\t\t\t\/\/\n\t\t\t\/\/vfredusum_vs \u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u6211\u4e5f\u4e0d\u77e5\u9053\u662f\u4ec0\u4e48\u610f\u601d\uff0c\u5b9e\u9645\u4e0a\u597d\u50cf\u586b\u4ec0\u4e48\u90fd\u4e0d\u5f71\u54cd\u8fd0\u7b97\n\t\t\t\/\/\u6700\u65b0 RVV Intrinsic \u91cc\u662f\u6ca1\u6709\u7b2c\u4e00\u4e2a\u53c2\u6570\u7684\n\t\t\t\/\/\u6709\u4e9b\u4ee3\u7801\u5728\u7b2c\u4e00\u4e2a\u53c2\u6570\u5904\u5199\u5373\u5c06\u88ab\u8986\u76d6\u7684\u5bc4\u5b58\u5668\uff0c\u6240\u4ee5\u6211\u4e5f\u8fd9\u4e48\u5199\u4e86\n\t\t\tans[i][j]=vfmv_f_s_f32m1_f32(vsum);\/\/\u53d6\u51fa vsum[0]\uff0c\u5199\u5165\u5185\u5b58\n\t\t}\n\t}\n}\n<\/code><\/pre><\/div><\/div>\n\n<p>\u5199\u5b8c\u4e4b\u540e\u8fd8\u53ef\u4ee5\u6bd4\u8f83\u4e0b\u7528 RVV Intrinsic \u4e0e\u6807\u91cf\u8fd0\u7b97\u7684\u8017\u65f6\uff0c\u6211\u628a\u5b9e\u9a8c\u7528\u7684<a href=\"https:\/\/github.com\/Ratizux\/rvv-experiments\">\u4ee3\u7801<\/a>\u653e Github \u4e0a\u4e86\u3002<\/p>\n\n<p>Duo \u7684\u5de5\u5177\u94fe\u81ea\u52a8\u5411\u91cf\u5316\u6548\u679c\u4e0d\u597d\uff0cNCNN \u7528\u7684 Intrinsic \u7248\u672c\u770b\u6837\u5b50\u548c Duo \u5de5\u5177\u94fe\u4e0d\u517c\u5bb9\uff0c\u6240\u4ee5\u90fd\u4e0d\u6d4b\u4e86\u3002<\/p>\n\n<p>\u5199 RVV 0.7.1 \u7684\u4f53\u9a8c\u4e0d\u4f73\uff0c\u5982\u679c\u6709\u540c\u5b66\u60f3\u4e0a\u624b\u4f46\u5b66\u6821\u4e0d\u63d0\u4f9b\u514d\u8d39\u5f00\u53d1\u677f\u7684\u8bdd\u2026\u2026\u5c31\u518d\u7b49\u4e00\u4e24\u5e74\u5427\u3002<\/p>\n\n<h1 id=\"\u9898\u5916\u8bdd\">\u9898\u5916\u8bdd<\/h1>\n\n<p>\u5d4c\u5165\u5f0f\u786e\u5b9e\u662f\u5751\u3002\u7b97\u6cd5\u4e0d\u662f\uff0c\u7b97\u6cd5\u662f\u6df1\u6e0a\u3002\u8fd9\u4e48\u60f3\u7684\u8bdd\uff0c\u201c\u5751\u201d\u5927\u62b5\u662f\u4e00\u79cd\u8d5e\u7f8e\u3002<\/p>\n\n<p>\u73a9\u5d4c\u5165\u5f0f Linux \u548c\u73a9 Minecraft \u6709\u4e00\u70b9\u7c7b\u4f3c\uff0c\u5c31\u662f\u4e0d\u60f3\u73a9\u7684\u65f6\u5019\u78b0\u90fd\u4e0d\u60f3\u78b0\uff0c\u4f46\u73a9\u4e0a\u5c31\u6709\u70b9\u5bb9\u6613\u4e0a\u763e\u3002<\/p>\n\n<p>\u8ba1\u7b97\u673a\u884c\u4e1a\u7684\u53d1\u5c55\u53f2\uff0c\u5c31\u662f\u4e00\u4ee3\u53c8\u4e00\u4ee3\u4ece\u4e1a\u8005\u88ab\u6dd8\u6c70\u7684\u5386\u53f2\u3002\u6211\u73b0\u5728\u5b66\u7684\u5f88\u591a\u4e1c\u897f\u4e94\u5e74\u4e4b\u540e\u5168\u90e8\u4f5c\u5e9f\u4e5f\u662f\u5b8c\u5168\u6709\u53ef\u80fd\u7684\u5427\u3002<\/p>\n\n<p>\u4e0d\u5199\u4e86\uff0c\u6211\u8981\u53bb\u5199\u7ebf\u6027\u4ee3\u6570\u4f5c\u4e1a\u4e86\u3002<\/p>\n","pubDate":"Sat, 04 Nov 2023 00:00:00 +0000","link":"https:\/\/ratizux.github.io\/2023\/11\/04\/1.html","guid":"https:\/\/ratizux.github.io\/2023\/11\/04\/1.html"},{"title":"\u201c\u5b83\u521a\u624d\u8fd8\u662f\u5e73\u8861\u7684\u201d","description":"<p>\u4e4b\u524d\u4e00\u76f4\u5728\u5410\u69fd\u5b66\u6821\u7684\u6570\u636e\u7ed3\u6784\u4e0e\u7b97\u6cd5\u8bfe\u592a\u6c34\u4e86\uff0c\u7ed3\u679c\u9a6c\u4e0a\u5c31\u88ab AVL \u6811\u6253\u4e86\u4e00\u987f\u3002<\/p>\n\n<p>\u6211\u4e2d\u5b66\u5c31\u6ca1\u600e\u4e48\u542c\u6811\u5f62\u6570\u636e\u7ed3\u6784\uff0c\u56de\u6765\u5c31\u53ea\u80fd\u6d6a\u8d39\u51e0\u5230\u5341\u51e0\u4e2a\u5c0f\u65f6\u7ffb\u8d44\u6599\u2026\u2026<\/p>\n\n<h1 id=\"\u8282\u70b9\u9ad8\u5ea6\u53d8\u5316\u7684\u89c4\u5f8b\">\u8282\u70b9\u9ad8\u5ea6\u53d8\u5316\u7684\u89c4\u5f8b<\/h1>\n\n<p>\u5982\u679c\u4e00\u4e2a\u8282\u70b9\u7684\u9ad8\u5ea6\u53d8\u5316\u4e86\u4e00\u4e2a\u5355\u4f4d\uff0c\u5c31\u53ef\u80fd\u4f1a\u8ba9\u7236\u8282\u70b9\u9ad8\u5ea6\u540c\u6837\u53d8\u5316\u3002\uff08\u5e9f\u8bdd\uff09<\/p>\n\n<p>\u5982\u679c\u7236\u8282\u70b9\u7684\u9ad8\u5ea6\u53d8\u5316\u4e86\uff0c\u5c31\u5173\u4e8e\u7236\u8282\u70b9\u4e5f\u8003\u8651\u4e00\u4e0b\u9ad8\u5ea6\u7684\u53d8\u5316\u3002\u5982\u679c\u7236\u8282\u70b9\u7684\u9ad8\u5ea6\u6ca1\u53d8\uff0c\u5c31\u518d\u4e5f\u6ca1\u6709\u522b\u7684\u8282\u70b9\u4f1a\u6539\u53d8\u9ad8\u5ea6\u4e86\u3002\uff08\u5e9f\u8bdd\uff09<\/p>\n\n<p>\u7236\u8282\u70b9\u9ad8\u5ea6\u4e0d\u53d8\u6709\u4e24\u79cd\u60c5\u51b5\uff0c\u4e00\u79cd\u662f\u4e24\u68f5\u5b50\u6811\u59cb\u7ec8\u5e73\u8861\uff0c\u5e76\u4e14\u8f83\u9ad8\u7684\u90a3\u68f5\u9ad8\u5ea6\u6ca1\u53d8\uff1b\u53e6\u4e00\u79cd\u662f\u4e24\u68f5\u5b50\u6811\u4e0d\u518d\u5e73\u8861\uff0c\u7236\u8282\u70b9\u9ad8\u5ea6\u5148\u662f\u589e\u52a0\uff0c\u4e0d\u8fc7\u6211\u4eec\u7528\u7b97\u6cd5\u8ba9\u4e24\u68f5\u5b50\u6811\u7684\u9ad8\u5ea6\u201c\u4e2d\u548c\u201d\u4e86\u4e00\u4e0b\uff0c\u8ba9\u7236\u8282\u70b9\u7684\u9ad8\u5ea6\u53d8\u56de\u6765\u4e86\u3002<\/p>\n\n<p>\u8282\u70b9\u9ad8\u5ea6\u662f\u4ece\u4e0b\u5230\u4e0a\u5f00\u59cb\u8003\u8651\u7684\uff0c\u7b2c\u4e00\u4e2a\u6539\u53d8\u9ad8\u5ea6\u7684\u8282\u70b9\u663e\u7136\u4e0d\u4f1a\u5f71\u54cd\u5b83\u7684\u5b50\u8282\u70b9\u3002\u4e00\u4e2a\u8282\u70b9\u53ea\u6709\u81ea\u5df1\u7684\u9ad8\u5ea6\u6539\u53d8\u4e86\uff0c\u624d\u6709\u53ef\u80fd\u6539\u53d8\u7236\u8282\u70b9\u7684\u9ad8\u5ea6\uff08\u5e9f\u8bdd\uff09\uff0c\u6240\u4ee5\u6240\u6709\u6539\u53d8\u9ad8\u5ea6\u7684\u8282\u70b9\u53ef\u4ee5\u8fde\u6210\u552f\u4e00\u7684\u4e00\u6761\u8def\u5f84\u3002\u56e0\u4e3a\u91cd\u65b0\u5e73\u8861\u7684\u7b97\u6cd5\u4e00\u5b9a\u4f1a\u8ba9\u4e0d\u5e73\u8861\u70b9\u7684\u9ad8\u5ea6\u6062\u590d\u5230\u539f\u6765\u7684\u72b6\u6001\uff0c\u800c\u4e0d\u5e73\u8861\u662f\u7531\u8282\u70b9\u9ad8\u5ea6\u6539\u53d8\u4ea7\u751f\u7684\uff0c\u6240\u4ee5\u91cd\u65b0\u5e73\u8861\u53ea\u6709\u53ef\u80fd\u51fa\u73b0\u5728\u8def\u5f84\u7684\u672b\u7aef\u3002\u6240\u4ee5\uff0c\u4e00\u6b65\u63d2\u5165\u3001\u5220\u9664\u64cd\u4f5c\u6700\u591a\u53ea\u9700\u8981\u5bf9\u6811\u8fdb\u884c\u4e00\u6b21\u91cd\u65b0\u5e73\u8861\u3002<\/p>\n\n<h1 id=\"\u5404\u79cd\u65cb\u8f6c\">\u5404\u79cd\u65cb\u8f6c<\/h1>\n\n<p>\u5982\u679c\u4e00\u68f5\u6811\u4e4b\u524d\u662f\u5e73\u8861\u7684\uff0c\u800c\u73b0\u5728\u4e0d\u5e73\u8861\u4e86\uff0c\u65e2\u7136\u4e00\u4e2a\u63d2\u5165\/\u5220\u9664\u64cd\u4f5c\u6700\u591a\u53ea\u4f1a\u8ba9\u8282\u70b9\u7684\u9ad8\u5ea6\u6539\u53d8\u4e00\u4e2a\u5355\u4f4d\uff0c\u8bf4\u660e\u8fd9\u68f5\u6811\u7684\u4e24\u68f5\u5b50\u6811\u539f\u672c\u5c31\u4e0d\u4e00\u6837\u9ad8\u3002\u6709\u4e00\u68f5\u5b50\u6811\u6bd4\u53e6\u4e00\u68f5\u9ad8\u4e00\u4e2a\u5355\u4f4d\uff0c\u7ecf\u5386\u4e00\u6b65\u64cd\u4f5c\u4e4b\u540e\u672c\u6765\u9ad8\u7684\u90a3\u68f5\u53c8\u5347\u9ad8\u4e86\u4e00\u4e2a\u5355\u4f4d\uff0c\u6216\u8005\u672c\u6765\u77ee\u7684\u90a3\u68f5\u53c8\u964d\u4f4e\u4e86\u4e00\u4e2a\u5355\u4f4d\uff0c\u6811\u5c31\u4e0d\u5e73\u8861\u4e86\u3002<\/p>\n\n<p>\u968f\u4fbf\u627e\u4e2a\u53f3\u5b50\u6811\u539f\u672c\u5c31\u9ad8\u4e00\u70b9\uff0c\u540e\u9762\u53c8\u5347\u9ad8\u4e86\u800c\u5bfc\u81f4\u4e0d\u5e73\u8861\u7684\u60c5\u51b5\u3002\u5706\u5708\u8868\u793a\u8282\u70b9\uff0c\u5706\u5708\u5185\u90e8\u662f\u8282\u70b9\u7684\u540d\u5b57\uff0c\u53f3\u8fb9\u8868\u793a\u8282\u70b9\u7684\u9ad8\u5ea6\u3002<code class=\"language-plaintext highlighter-rouge\">A<\/code>\u662f\u9700\u8981\u91cd\u65b0\u5e73\u8861\u7684\u8282\u70b9\uff0c<code class=\"language-plaintext highlighter-rouge\">B<\/code>\u3001<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u548c<code class=\"language-plaintext highlighter-rouge\">E<\/code>\u7684\u5b50\u6811\u7701\u7565\u4e86\uff0c\u5b83\u4eec\u5728\u8fd9\u91cc\u4e0d\u91cd\u8981\u3002\u8fd9\u662f\u63d2\u5165\u65b0\u8282\u70b9\u4e4b\u524d\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-1.webp\" alt=\"1\" \/><\/p>\n\n<p>\u63d2\u5165\u65b0\u8282\u70b9\u4e4b\u540e\uff0c<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u53c8\u5347\u9ad8\u4e86\u4e00\u4e2a\u5355\u4f4d\u3002\u8003\u8651\u5230\u524d\u9762\u8282\u70b9\u9ad8\u5ea6\u53d8\u5316\u7684\u89c4\u5f8b\uff0c\u8fd9\u91cc\u53ea\u6709<code class=\"language-plaintext highlighter-rouge\">A<\/code>\u4e24\u8fb9\u662f\u4e0d\u5e73\u8861\u7684\uff0c\u5176\u4ed6\u7684\u90fd\u5e73\u8861\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-2.webp\" alt=\"2\" \/><\/p>\n\n<p>\u73b0\u5728\u6765\u8003\u8651\u4e00\u4e0b<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u548c<code class=\"language-plaintext highlighter-rouge\">E<\/code>\u7684\u9ad8\u5ea6\u3002<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u539f\u672c\u7684\u9ad8\u5ea6\u662f<code class=\"language-plaintext highlighter-rouge\">n+1<\/code>\uff0c\u8bf4\u660e<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u548c<code class=\"language-plaintext highlighter-rouge\">E<\/code>\u91cc\u81f3\u5c11\u6709\u4e00\u4e2a\u9ad8\u5ea6\u4e3a<code class=\"language-plaintext highlighter-rouge\">n<\/code>\uff0c\u540c\u65f6\u6700\u4f4e\u7684\u90a3\u68f5\u9ad8\u5ea6\u4e0d\u80fd\u4f4e\u4e8e<code class=\"language-plaintext highlighter-rouge\">n-1<\/code>\u3002<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u7684\u5b50\u8282\u70b9\u8981\u4e48\u9ad8\u5ea6\u90fd\u662f<code class=\"language-plaintext highlighter-rouge\">n<\/code>\uff0c\u8981\u4e48\u6709\u4e00\u4e2a\u9ad8\u5ea6\u4e3a<code class=\"language-plaintext highlighter-rouge\">n<\/code>\u800c\u53e6\u4e00\u4e2a\u9ad8\u5ea6\u4e3a<code class=\"language-plaintext highlighter-rouge\">n-1<\/code>\u3002\u4e0d\u8fc7\u7b2c\u4e8c\u79cd\u60c5\u51b5\u4e0d\u53ef\u80fd\u53d1\u751f\uff0c\u56e0\u4e3a\u5982\u679c<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u7684\u5b50\u8282\u70b9\u9ad8\u5ea6\u4e0d\u540c\uff0c\u5047\u8bbe\u8f83\u77ee\u7684\u90a3\u68f5\u5b50\u6811\u5347\u9ad8\u4e86\u4e00\u4e2a\u5355\u4f4d\uff0c<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u7684\u9ad8\u5ea6\u5c31\u4e0d\u4f1a\u6539\u53d8\uff1b\u5982\u679c\u8f83\u9ad8\u7684\u90a3\u68f5\u5347\u9ad8\u4e86\uff0c<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u5c31\u4e0d\u5e73\u8861\u4e86\u3002\u8fd9\u8bf4\u660e<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u548c<code class=\"language-plaintext highlighter-rouge\">E<\/code>\u539f\u672c\u662f\u4e00\u6837\u9ad8\u7684\uff0c\u53ea\u53ef\u80fd\u662f<code class=\"language-plaintext highlighter-rouge\">n<\/code>\u3002<\/p>\n\n<p>\u91cd\u65b0\u753b\u4e00\u4e0b\u63d2\u5165\u65b0\u8282\u70b9\u4e4b\u524d\u7684\u56fe\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-3.webp\" alt=\"3\" \/><\/p>\n\n<p>\u8fd9\u65f6\u8003\u8651\u63d2\u5165\u8282\u70b9\u540e<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u548c<code class=\"language-plaintext highlighter-rouge\">E<\/code>\u7684\u9ad8\u5ea6\uff0c\u5c31\u6709\u4e24\u79cd\u60c5\u51b5\u4e86\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-4-7-9.webp\" alt=\"4\" \/><\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-5.webp\" alt=\"5\" \/><\/p>\n\n<p>\u7b2c\u4e8c\u79cd\u60c5\u51b5\u5904\u7406\u8d77\u6765\u6bd4\u8f83\u7b80\u5355\u3002\u5982\u679c\u80fd\u6539\u53d8\u8fd9\u6811\u7684\u7ed3\u6784\uff0c\u8ba9\u5de6\u5b50\u6811\u5347\u9ad8\u4e00\u4e2a\u5355\u4f4d\uff0c\u53f3\u5b50\u6811\u964d\u4f4e\u4e00\u4e2a\u5355\u4f4d\uff0c\u4e24\u8fb9\u7684\u6811\u9ad8\u53d8\u4e3a<code class=\"language-plaintext highlighter-rouge\">n+1<\/code>\uff0c\u6811\u4e5f\u5c31\u91cd\u65b0\u5e73\u8861\u4e86\u3002\u8fd9\u6837\u5904\u7406\u8fd8\u6709\u4e00\u4e2a\u597d\u5904\uff0c\u5c31\u662f\u64cd\u4f5c\u4e4b\u540e\u6700\u9ad8\u7684\u8282\u70b9\u9ad8\u5ea6\u4e3a<code class=\"language-plaintext highlighter-rouge\">n+2<\/code>\uff0c\u548c\u63d2\u5165\u65b0\u8282\u70b9\u4e4b\u524d\u7684\u4e00\u6837\uff0c\u4e0d\u4f1a\u5f15\u8d77\u5b83\u7236\u8282\u70b9\u9ad8\u5ea6\u7684\u53d8\u5316\uff0c\u4e5f\u5c31\u4e0d\u7528\u8003\u8651\u540e\u7eed\u5e73\u8861\u7684\u95ee\u9898\u4e86\u3002<\/p>\n\n<p>\u73b0\u5728\u60f3\u8ba9<code class=\"language-plaintext highlighter-rouge\">A<\/code>\u6210\u4e3a\u5de6\u5b50\u6811\u7684\u4e00\u90e8\u5206\uff08\u4e3a\u4e86\u8ba9\u5de6\u5b50\u6811\u5347\u9ad8\u4e00\u4e2a\u5355\u4f4d\uff09\uff0c<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u4e0d\u518d\u662f\u53f3\u5b50\u6811\u7684\u4e00\u90e8\u5206\uff08\u4e3a\u4e86\u8ba9\u53f3\u5b50\u6811\u964d\u4f4e\u4e00\u4e2a\u5355\u4f4d\uff09\uff0c\u5c31\u8ba9<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u6210\u4e3a\u65b0\u7684\u6700\u9ad8\u8282\u70b9\uff08\u6682\u4e14\u8ba9\u6211\u8fd9\u4e48\u8bf4\u5427\uff0c\u6bd5\u7adf\u7ba1\u5b83\u53eb\u201c\u6839\u8282\u70b9\u201d\u4e0d\u592a\u597d\uff09\uff0c\u8ba9<code class=\"language-plaintext highlighter-rouge\">A<\/code>\u53d8\u6210<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u7684\u5de6\u5b50\u6811\u3002\u4e3a\u4e86\u5728\u5de6\u8fb9\u817e\u51fa\u7a7a\u95f4\uff0c\u5148\u8ba9<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u53d8\u6210\u6e38\u79bb\u7684\uff0c\u4e4b\u540e\u5f80<code class=\"language-plaintext highlighter-rouge\">A<\/code>\u53d8\u6210\u5b50\u8282\u70b9\u540e\u7a7a\u51fa\u7684\u53f3\u8fb9\u63d2\u5c31\u53ef\u4ee5\u4e86\u3002\u6709\u70b9\u50cf\u8ba9<code class=\"language-plaintext highlighter-rouge\">A<\/code>\u548c<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u7ed5\u7740\u4e0b\u65b9\u7684\u4e00\u4e2a\u70b9\u9006\u65f6\u9488\u65cb\u8f6c\u4e00\u4e0b\uff0c\u6240\u4ee5\u8fd9\u4e2a\u7b97\u6cd5\u4e5f\u53eb\u201c\u65cb\u8f6c\u201d\u3002<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-6.webp\" alt=\"6\" \/><\/p>\n\n<p>\u81f3\u4e8e\u8fd9\u6837\u662f\u53eb\u5de6\u65cb\u8fd8\u662f\u53f3\u65cb\uff0c\u4e0d\u540c\u8bed\u8a00\u7684\u4e66\u4e0a\u4e0d\u592a\u4e00\u6837\u3002\u6211\u7684\u4e66\u4e0a\u662f right-right\uff0c\u542c\u8d77\u6765\u6709\u70b9\u53cd\u76f4\u89c9\uff0c\u5b9e\u9645\u4e0a\u662f\u8bf4\u4e0d\u5e73\u8861\u662f\u7531<code class=\"language-plaintext highlighter-rouge\">A<\/code>\u7684\u53f3\u5b50\u6811\u7684\u53f3\u5b50\u8282\u70b9\u5347\u9ad8\u5f15\u53d1\u7684\u3002<\/p>\n\n<p>\u603b\u7ed3\u6765\u8bf4\u5c31\u662f\u5c06<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u7684\u5de6\u5b50\u8282\u70b9\u8bbe\u4e3a<code class=\"language-plaintext highlighter-rouge\">A<\/code>\uff0c\u7136\u540e\u5c06<code class=\"language-plaintext highlighter-rouge\">A<\/code>\u7684\u53f3\u5b50\u8282\u70b9\u8bbe\u4e3a<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u3002<code class=\"language-plaintext highlighter-rouge\">B &lt; A &lt; D &lt; C &lt; E<\/code>\uff0c\u91cd\u65b0\u5e73\u8861\u4e4b\u540e\u7684\u6811\u4e5f\u662f\u7b26\u5408\u4e8c\u53c9\u641c\u7d22\u6811\u5b9a\u4e49\u7684\u3002<\/p>\n\n<p>\u73b0\u5728\u6211\u4eec\u5df2\u7ecf\u80fd\u5904\u7406\u7b2c\u4e8c\u79cd\u4e0d\u5e73\u8861\u7684\u60c5\u51b5\u4e86\uff0c\u518d\u6765\u770b\u4e0b\u7b2c\u4e00\u79cd\u3002\u8fd9\u4e2a\u4e0d\u5e73\u8861\u662f\u7531\u53f3\u5b50\u6811\u7684\u5de6\u5b50\u8282\u70b9\u5347\u9ad8\u5f15\u53d1\u7684\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-4-7-9.webp\" alt=\"7\" \/><\/p>\n\n<p>\u8981\u662f\u8fd8\u6309\u7b2c\u4e8c\u79cd\u60c5\u51b5\u7684\u65b9\u6cd5\u64cd\u4f5c\uff08right-right \u65cb\u8f6c\uff09\uff0c\u5f97\u5230\u7684\u6811\u662f\u8fd9\u6837\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-8.webp\" alt=\"8\" \/><\/p>\n\n<p>\u56e0\u4e3a<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u7684\u9ad8\u5ea6\u6bd4<code class=\"language-plaintext highlighter-rouge\">B<\/code>\u591a\u4e00\u4e2a\u5355\u4f4d\uff0c<code class=\"language-plaintext highlighter-rouge\">A<\/code>\u7684\u9ad8\u5ea6\u4e5f\u8981\u589e\u52a0\uff0c\u6811\u4ecd\u7136\u662f\u4e0d\u5e73\u8861\u7684\u3002\u8981\u662f\u80fd\u628a\u5b83\u53d8\u6210 right-right \u7684\u60c5\u51b5\uff0c\u4e4b\u540e\u76f4\u63a5\u5957\u7528\u521a\u624d\u7684\u6b65\u9aa4\u5c31\u65b9\u4fbf\u5f97\u591a\u4e86\u3002<\/p>\n\n<p>\u91cd\u65b0\u89c2\u5bdf\u4e00\u4e0b right-left \u7684\u6811\u3002\u8981\u8bb0\u5f97 right-left \u7684\u610f\u601d\u662f\uff0c\u4e0d\u5e73\u8861\u662f\u7531\u53f3\u5b50\u6811\u7684\u5de6\u8282\u70b9\u5347\u9ad8\u800c\u5f15\u53d1\u7684\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-4-7-9.webp\" alt=\"9\" \/><\/p>\n\n<p>\u8fd9\u6b21\u5148\u628a\u53f3\u5b50\u6811\u65cb\u8f6c\u4e00\u4e0b\uff0c\u8ba9\u53f3\u5b50\u6811\u7684\u53f3\u8282\u70b9<code class=\"language-plaintext highlighter-rouge\">E<\/code>\u6bd4\u5de6\u8282\u70b9<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u9ad8\u5c31\u662f\u4e86\u3002\u8981\u65cb\u8f6c\u53f3\u5b50\u6811\u5c31\u9700\u8981\u8003\u8651<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u7684\u5b50\u8282\u70b9\u7684\u60c5\u51b5\uff0c\u628a<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u7684\u4e24\u4e2a\u5b50\u8282\u70b9\u6807\u51fa\u6765\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-10.webp\" alt=\"10\" \/><\/p>\n\n<p>\u5148\u8ba9<code class=\"language-plaintext highlighter-rouge\">A<\/code>\u7684\u53f3\u8282\u70b9<code class=\"language-plaintext highlighter-rouge\">C<\/code>left-left \u65cb\u8f6c\u4e00\u4e0b\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-11.webp\" alt=\"11\" \/><\/p>\n\n<p>\u518d\u8ba9<code class=\"language-plaintext highlighter-rouge\">A<\/code>right-right \u8f6c\u4e00\u4e0b\u5c31\u597d\u4e86\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-12.webp\" alt=\"12\" \/><\/p>\n\n<p>\u81f3\u4e8e<code class=\"language-plaintext highlighter-rouge\">F<\/code>\u548c<code class=\"language-plaintext highlighter-rouge\">G<\/code>\u7684\u9ad8\u5ea6\uff0c\u7528\u7c7b\u4f3c\u521a\u624d\u5206\u6790<code class=\"language-plaintext highlighter-rouge\">C<\/code>\u5b50\u8282\u70b9\u9ad8\u5ea6\u7684\u65b9\u6cd5\u5206\u6790\u4e00\u4e0b\uff0c<code class=\"language-plaintext highlighter-rouge\">D<\/code>\u7684\u5b50\u8282\u70b9\u4e5f\u662f\u4e00\u4e2a<code class=\"language-plaintext highlighter-rouge\">n<\/code>\u4e00\u4e2a<code class=\"language-plaintext highlighter-rouge\">n-1<\/code>\u3002\u6211\u4eec\u6ca1\u52a8<code class=\"language-plaintext highlighter-rouge\">B<\/code>\u548c<code class=\"language-plaintext highlighter-rouge\">E<\/code>\u7684\u5b50\u8282\u70b9\uff0c\u6240\u4ee5\u5b83\u4fe9\u4ecd\u7136\u662f<code class=\"language-plaintext highlighter-rouge\">n<\/code>\u3002<\/p>\n\n<p>\u7b97\u4e0b\u65e0\u8bba<code class=\"language-plaintext highlighter-rouge\">F<\/code>\u548c<code class=\"language-plaintext highlighter-rouge\">G<\/code>\u54ea\u4e2a\u662f<code class=\"language-plaintext highlighter-rouge\">n<\/code>\u54ea\u4e2a\u662f<code class=\"language-plaintext highlighter-rouge\">n-1<\/code>\uff0c\u6811\u90fd\u662f\u5e73\u8861\u7684\uff1a<\/p>\n\n<p><img src=\"https:\/\/ratizux.github.io\/res\/avl\/tree-13.webp\" alt=\"13\" \/><\/p>\n\n<p>\uff08\u82e5\u662f\u4f60\u7528<code class=\"language-plaintext highlighter-rouge\">F = n-1<\/code>\u548c<code class=\"language-plaintext highlighter-rouge\">G = n<\/code>\u7684\u60c5\u51b5\u8003\u8651\u4e00\u4e0b\u8fd9\u6811\u7b2c\u4e00\u6b65\u65cb\u8f6c\u7684\u60c5\u51b5\uff0c\u4f1a\u53d1\u73b0\u65cb\u8f6c\u540e\u4f1a\u53f3\u4e24\u5904\u4e0d\u5e73\u8861\uff0c\u4e0d\u8fc7\u7b2c\u4e8c\u6b21\u65cb\u8f6c\u4e4b\u540e\u5c31\u90fd\u5e73\u8861\u4e86\uff09<\/p>\n\n<p>\u590d\u4e60\u4e00\u4e0b\uff0c\u53f3\u5b50\u6811\u7684\u53f3\u8282\u70b9\u5347\u9ad8\u5f15\u53d1\u7684\u4e0d\u5e73\u8861\u9700\u8981 right-right \u65cb\u8f6c\u3002\u53cd\u8fc7\u6765\uff0c\u5de6\u5b50\u6811\u7684\u5de6\u8282\u70b9\u5347\u9ad8\u82e5\u662f\u641e\u4e0d\u6e05\u695a\u65b9\u5411\uff0c\u77e5\u9053\u8fd9\u91cc\u6240\u8bf4\u7684 right-right \u65cb\u8f6c\u4f1a\u8ba9\u76ee\u6807\u7684\u5730\u4f4d\u88ab\u5b83\u7684\u53f3\u8282\u70b9\u53d6\u4ee3\u5c31\u662f\u4e86\u3002<\/p>\n\n<p>\u53f3\u5b50\u6811\u7684\u5de6\u8282\u70b9\u5347\u9ad8\u9700\u8981 right-left\u3002\u4e00\u4e2a right-left \u64cd\u4f5c\uff0c\u76f8\u5f53\u4e8e\u5148\u5bf9\u53f3\u5b50\u6811\u6839\u8fdb\u884c left-left \u65cb\u8f6c\uff0c\u518d\u5bf9\u6700\u9ad8\u8282\u70b9\u8fdb\u884c right-right \u65cb\u8f6c\u3002<\/p>\n\n<p>\u4e0a\u9762\u8fd9\u4e9b\u65cb\u8f6c\u89e3\u51b3\u7684\u90fd\u662f\u63d2\u5165\uff08\u9ad8\u5ea6\u5347\u9ad8\uff09\u5f15\u53d1\u7684\u4e0d\u5e73\u8861\u3002\u5220\u9664\uff08\u9ad8\u5ea6\u964d\u4f4e\uff09\u7684\u8bdd\u5b9e\u9645\u4e5f\u5dee\u4e0d\u591a\uff0c\u611f\u5174\u8da3\u7684\u540c\u5b66\u53ef\u4ee5\u81ea\u5df1\u8bd5\u4e00\u4e0b\u3002<\/p>\n\n<h1 id=\"40-\u5b66\u5206\u7684\u6570\u636e\u7ed3\u6784\u4e0e\u7b97\u6cd5\">4.0 \u5b66\u5206\u7684\u6570\u636e\u7ed3\u6784\u4e0e\u7b97\u6cd5<\/h1>\n\n<p>\u6211\u73b0\u5728\u53c8\u5e0c\u671b\u8bfe\u80fd\u6c34\u4e00\u70b9\u4e86\u3002\u6c34\u4e00\u70b9\u597d\uff0c\u6c34\u4e00\u70b9\u5b66\u7740\u4f1a\u8f7b\u677e\u5f88\u591a\u2026\u2026<\/p>\n","pubDate":"Fri, 27 Oct 2023 00:00:00 +0000","link":"https:\/\/ratizux.github.io\/2023\/10\/27\/1.html","guid":"https:\/\/ratizux.github.io\/2023\/10\/27\/1.html"},{"title":"\u70b9\u4e2a\u706f\u771f\u9ebb\u70e6\u554a","description":"<p>\u524d\u51e0\u5929\u7ec8\u4e8e\u62ff\u5230\u4e86\u6cf0\u6653\u548c\u7fa4\u82af\u95ea\u8000\u8d5e\u52a9\u7ed9\u5b66\u6821\u793e\u56e2\u7684 Milk-V Duo\uff0c\u4e0d\u5de7\u8dd1 buildroot \u7684\u673a\u5668\u574f\u4e86\u2026\u2026\u90a3\u5c31\u5148\u70b9\u4e2a\u706f\u5427\u3002<\/p>\n\n<p>\u628a Milk-V Duo \u7ffb\u5230\u80cc\u9762\uff08\u6ca1\u6709 SoC \u7684\u90a3\u4e00\u9762\uff09\uff0c\u5c31\u80fd\u770b\u5230\u4e24\u6392\u4e1d\u5370\uff0c\u4e0e <a href=\"https:\/\/milkv.io\/zh\/docs\/duo\/application-development\/pinmux\">pinmux \u6587\u6863<\/a> \u4e0a\u7684\u4e00\u81f4<\/p>\n\n<p>Milk-V Duo \u5b98\u65b9\u6587\u6863\u8bf4\u53ef\u4ee5\u7528 wiringX \u7684\u63a5\u53e3\u63a7\u5236 GPIO\uff0c\u4e0d\u8fc7\u6211\u60f3\u5148\u7528\u6240\u89c1\u5373\u6240\u5f97\u7684\u65b9\u6cd5\u8bd5\u9a8c\u4e00\u4e0b\u3002Milk-V Duo \u5b98\u65b9\u63d0\u4f9b\u7684\u7cfb\u7edf\u955c\u50cf\u4e2d <code class=\"language-plaintext highlighter-rouge\">\/mnt\/system<\/code> \u4e0b\u6709\u4e2a\u901a\u8fc7 sysfs \u63a7\u5236 LED \u7684\u811a\u672c\uff0c\u5b83\u5148\u64cd\u4f5c sysfs \u8ba9\u7cfb\u7edf\u521b\u5efa\u7279\u5b9a GPIO \u53e3\u7684 sysfs \u76ee\u5f55\uff0c\u7136\u540e\u76f4\u63a5\u8bbe\u7f6e\u5bf9\u5e94 GPIO \u53e3\u7684\u53c2\u6570\u2026\u2026\u53ef\u4ee5\u770b\u51fa LED \u5bf9\u5e94 GP25\uff0c\u6570\u5b57\u662f 440\uff0c\u73b0\u5728\u5c31\u8981\u60f3\u529e\u6cd5\u5f97\u5230\u5176\u4ed6 GPIO \u53e3\u5bf9\u5e94\u7684\u6570\u5b57\u4e86\u3002<\/p>\n\n<p>\u7ffb\u4e0b <code class=\"language-plaintext highlighter-rouge\">duo-examples<\/code> \u91cc\u70b9\u706f\u7684 C \u7a0b\u5e8f\uff0c\u7ffb wiringX \u7684\u4ee3\u7801\uff0c\u53d1\u73b0 Duo \u7684 wiringX \u662f\u6539\u8fc7\u7684\uff0c\u4ee3\u7801\u8fd8\u6ca1\u63a8\u5230 wiringX \u4e0a\u6e38\uff1b<code class=\"language-plaintext highlighter-rouge\">duo-app-sdk<\/code> \u91cc wiringX \u53ea\u6709\u4e00\u4e2a\u5934\u6587\u4ef6\u4e00\u4e2a\u52a8\u6001\u5e93\u3002\u641e\u4e0d\u5b9a\uff0c\u4e0d\u8fc7\u53d1\u73b0\u6709<a href=\"https:\/\/github.com\/pavelanni\/milkv-duo-experiments\/blob\/main\/docs\/gpio-pins-numbers.adoc\">\u6587\u7ae0<\/a>\u63d0\u5230\u4e86 <a href=\"https:\/\/doc.sophgo.com\/cvitek-develop-docs\/master\/docs_latest_release\/CV180x_CV181x\/en\/01.software\/OSDRV\/Peripheral_Driver_Operation_Guide\/build\/html\/7_GPIO_Operation_Guide.html\">GPIO \u6587\u6863<\/a>\u91cc GPIO \u53e3\u4e0e sysfs \u91cc\u6570\u5b57\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u4f46\u662f\u2026\u2026\u6587\u7ae0\u91cc\u7684 GPIO \u53e3\u540d\u5b57\u548c\u6211\u7684\u4e0d\u4e00\u6837\u2026\u2026<\/p>\n\n<p>\u554a\uff1f<\/p>\n\n<p>\u67e5\u9605<a href=\"https:\/\/github.com\/milkv-duo\/duo-hardware\/blob\/main\/duo\/duo-schematic-v1.2.pdf\">\u539f\u7406\u56fe<\/a>\uff0c\u5bf9\u6bd4\u4e00\u4e0b\u4e1d\u5370\u548c\u539f\u7406\u56fe\u4e0a\u5404\u4e2a\u5f15\u811a\u7684\u540d\u5b57\uff1a<\/p>\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"text-align: center\">\u4e1d\u5370<\/th>\n      <th style=\"text-align: center\">\u539f\u7406\u56fe<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td style=\"text-align: center\">VBUS<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">VSYS<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GND<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">3V3_EN<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">3V3<\/td>\n      <td style=\"text-align: center\">3V3(OUT)<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">\u00a0<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">\u00a0<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">AGND<\/td>\n      <td style=\"text-align: center\">GND<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">ADC1<\/td>\n      <td style=\"text-align: center\">ADC2<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">ADC0<\/td>\n      <td style=\"text-align: center\">ADC1<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">RUN<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP22<\/td>\n      <td style=\"text-align: center\">PWR_GPIO4<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GND<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP21<\/td>\n      <td style=\"text-align: center\">GPIOA26<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP20<\/td>\n      <td style=\"text-align: center\">GPIOA27<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP19<\/td>\n      <td style=\"text-align: center\">GPIOA25<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP18<\/td>\n      <td style=\"text-align: center\">GPIOA22<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GND<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP17<\/td>\n      <td style=\"text-align: center\">GPIOA24<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP16<\/td>\n      <td style=\"text-align: center\">GPIOA23<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP0<\/td>\n      <td style=\"text-align: center\">GPIOA28<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP1<\/td>\n      <td style=\"text-align: center\">GPIOA29<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GND<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP2<\/td>\n      <td style=\"text-align: center\">GPIO26<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP3<\/td>\n      <td style=\"text-align: center\">GPIO25<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP4<\/td>\n      <td style=\"text-align: center\">GPIO19<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP5<\/td>\n      <td style=\"text-align: center\">GPIO20<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GND<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP6<\/td>\n      <td style=\"text-align: center\">GPIO23<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP7<\/td>\n      <td style=\"text-align: center\">GPIO22<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP8<\/td>\n      <td style=\"text-align: center\">GPIO21<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP9<\/td>\n      <td style=\"text-align: center\">GPIO18<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GND<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP10<\/td>\n      <td style=\"text-align: center\">GPIOC9<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP11<\/td>\n      <td style=\"text-align: center\">GPIOC10<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP12<\/td>\n      <td style=\"text-align: center\">GPIOA16<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP13<\/td>\n      <td style=\"text-align: center\">GPIOA17<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GND<\/td>\n      <td style=\"text-align: center\">\u00a0<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP14<\/td>\n      <td style=\"text-align: center\">GPIOA14<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP15<\/td>\n      <td style=\"text-align: center\">GPIOA15<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n<p>\u63a5 LED \u7684 GP25 \u6ca1\u6709\u88ab\u5f15\u51fa\uff0c\u4ece\u539f\u7406\u56fe\u4e2d\u53ef\u4ee5\u770b\u51fa\u5b9e\u9645\u662f GPIOC24\uff1b\u4e0d\u5e26\u201cA\u201d\u6216\u8005\u201cC\u201d\u540e\u7f00\u7684\u63a5\u53e3\uff0c\u4ece\u539f\u7406\u56fe\u4e0a\u770b\u5b9e\u9645\u4e0a\u662f\u5e26\u201cPWR_\u201d\u524d\u7f00\u7684\u3002<\/p>\n\n<p>\u6211\u7b2c\u4e00\u6b21\u89c1\u4e1d\u5370\u548c\u539f\u7406\u56fe\u4e0a\u7684\u5b57\u5dee\u8fd9\u4e48\u8fdc\u7684\u786c\u4ef6\u2026\u2026<\/p>\n\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u7528\u4e0a\u8fd9\u7bc7\u6587\u7ae0\u91cc\u7684\u6570\u5b57\u4e86\u3002\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u81ea\u5df1\u7b97\uff1a\u56de\u5230\u4e0a\u9762\u7684 <a href=\"https:\/\/doc.sophgo.com\/cvitek-develop-docs\/master\/docs_latest_release\/CV180x_CV181x\/en\/01.software\/OSDRV\/Peripheral_Driver_Operation_Guide\/build\/html\/7_GPIO_Operation_Guide.html\">GPIO \u6587\u6863<\/a>\uff0c\u539f\u7406\u56fe\u91cc\u7684 GPIOA \u5728\u6587\u6863\u91cc\u662f GPIO0\uff0cGPIOC \u662f GPIO2\uff0c\u4e4b\u540e\u4ee3\u5165\u8ba1\u7b97\u5373\u53ef\u3002<\/p>\n\n<p>\u6211\u8fd8\u662f\u66f4\u559c\u6b22\u7528\u4e1d\u5370\u4e0a\u7684 <code class=\"language-plaintext highlighter-rouge\">GP+\u6570\u5b57<\/code> \u8868\u793a\u5404 GPIO \u53e3\uff1a<\/p>\n\n<table>\n  <thead>\n    <tr>\n      <th style=\"text-align: center\">GPIO<\/th>\n      <th style=\"text-align: center\">sysfs<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td style=\"text-align: center\">GP0<\/td>\n      <td style=\"text-align: center\">508<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP1<\/td>\n      <td style=\"text-align: center\">509<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP2<\/td>\n      <td style=\"text-align: center\">378<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP3<\/td>\n      <td style=\"text-align: center\">377<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP4<\/td>\n      <td style=\"text-align: center\">371<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP5<\/td>\n      <td style=\"text-align: center\">372<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP6<\/td>\n      <td style=\"text-align: center\">375<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP7<\/td>\n      <td style=\"text-align: center\">374<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP8<\/td>\n      <td style=\"text-align: center\">373<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP9<\/td>\n      <td style=\"text-align: center\">370<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP10<\/td>\n      <td style=\"text-align: center\">425<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP11<\/td>\n      <td style=\"text-align: center\">426<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP12<\/td>\n      <td style=\"text-align: center\">496<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP13<\/td>\n      <td style=\"text-align: center\">497<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP14<\/td>\n      <td style=\"text-align: center\">494<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP15<\/td>\n      <td style=\"text-align: center\">495<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP16<\/td>\n      <td style=\"text-align: center\">503<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP17<\/td>\n      <td style=\"text-align: center\">504<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP18<\/td>\n      <td style=\"text-align: center\">502<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP19<\/td>\n      <td style=\"text-align: center\">505<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP20<\/td>\n      <td style=\"text-align: center\">507<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP21<\/td>\n      <td style=\"text-align: center\">506<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP22<\/td>\n      <td style=\"text-align: center\">356<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"text-align: center\">GP25<\/td>\n      <td style=\"text-align: center\">440<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n<p>\u5148\u5728 <code class=\"language-plaintext highlighter-rouge\">duo-pinmux<\/code> \u91cc\u628a\u63a5\u53e3\u529f\u80fd\u8bbe\u4e3a GPIO\uff0c\u7136\u540e\u5f80 <code class=\"language-plaintext highlighter-rouge\">\/sys\/class\/gpio\/export<\/code> \u91cc\u5199\u6570\u5b57\uff0c\u4e4b\u540e\u8fdb\u5165\u5bf9\u5e94\u76ee\u5f55\u64cd\u4f5c\u5c31\u53ef\u4ee5\u4e86\uff0c\u548c\u7528 sysfs \u64cd\u4f5c\u952e\u76d8\u6307\u793a\u706f\u6216\u8005\u8c03\u6574\u5c4f\u5e55\u80cc\u5149\u5dee\u4e0d\u591a\u3002<\/p>\n\n<p>\u4f60\u4eec\u8fd9\u4ec0\u4e48\u6587\u6863\u554a\u2026\u2026\u7528 sysfs \u70b9\u4e2a\u706f\u6298\u817e\u5f97\u6b7b\u53bb\u6d3b\u6765\u2026\u2026<\/p>\n","pubDate":"Thu, 26 Oct 2023 00:00:00 +0000","link":"https:\/\/ratizux.github.io\/2023\/10\/26\/1.html","guid":"https:\/\/ratizux.github.io\/2023\/10\/26\/1.html"},{"title":"AOSCC 2023 \u6e38\u8bb0","description":"<p>\u519b\u8bad\u5b8c\u4e86\u6b63\u597d\u6709\u7a7a\u53bb <a href=\"https:\/\/wiki.aosc.io\/zh\/community\/aoscc\/2023\/\">AOSCC 2023<\/a>\u3002\u65e2\u7136\u5df2\u7ecf\u6ca1\u6709\u4ec0\u4e48 ICPC\uff08\u8fa3\u9e21\u6821\u961f\uff01\uff09\uff0c\u5bfc\u5e08\u53c8\u4e0d\u50ac\u4eba\u5e72\u6d3b\u2026\u2026\u90a3\u5c31\u7ed9\u7075\u8f66\u786c\u4ef6\u5f80\u5305\u91cc\u4e00\u585e\uff0c\u51fa\u53d1\uff01<\/p>\n\n<p>\u6d41\u6c34\u8d26\uff0c\u6d41\u6c34\u8d26\u3002<\/p>\n\n<h1 id=\"day-0\">Day 0<\/h1>\n\n<p>\u5728 HZLUG \u90a3\u8fb9\u89c1\u5230\u7528 AOSC OS \u7684 OriginCode \u4e4b\u540e\u5c31\u60f3\u7ed9\u5e73\u677f\u4e5f\u4e0a\u4e00\u4e2a\uff0c\u7ed3\u679c\u5728\u5b89\u88c5\u9636\u6bb5\u5c31\u6709\u95ee\u9898\uff08\u7b11\uff09\u3002\u5230\u793e\u533a\u53cd\u9988\uff0c\u5bf9 AOSC \u6709\u4e86\u5f88\u4e00\u822c\u7684\u7b2c\u4e00\u5370\u8c61\uff08\u8d77\u7801\u4e0d\u8981\u4e00\u4e0a\u6765\u5c31\u8bf4\u6211\u60f3\u9519\u4e86\u5427\uff09\uff0c\u4e0d\u8fc7\u8fd8\u662f\u60f3\u89c1\u7fa4\u53cb\uff0c\u5c31\u6765\u4e86\u3002<\/p>\n\n<h1 id=\"day-1\">Day 1<\/h1>\n\n<p>\u636e\u8bf4\u4eca\u5e74\u4e0e\u4f1a\u8005\u6bd4\u53bb\u5e74\u591a\u5f97\u591a\uff0c\u4e0d\u8fc7\u6211\u611f\u89c9\u8fd8\u597d\u3002\u672c\u6765\u8981\u8ddf\u7740\u4e00\u8d77\u6765\u7684\u540c\u5b66\u5495\u4e86\uff0c\u6240\u4ee5\u6211\u7684\u5b66\u6821\u5c31\u53ea\u6709\u6211\u4e00\u4e2a\u4eba\u6765\u3002\u558a\u7fa4\u53cb\u6765\u73a9\uff0c\u611f\u89c9\u6234\u4e0a\u5b66\u6821\u7684\u5fbd\u7ae0\u597d\u8fa8\u8ba4\u4e00\u70b9\uff0c\u4e0d\u8fc7\u53d1\u73b0\u6548\u679c\u4e0d\u662f\u5f88\u597d\u3002<\/p>\n\n<p>\u840c\u72fc\u4e00\u6765\u5c31\u7aef\u7740\u7b14\u8bb0\u672c\uff0c\u8bdd\u8bf4\u7aef\u8d77\u6765\u6253\u5b57\u4f1a\u5f88\u96be\u53d7\u5427\u3002<del>\u7adf\u7136\u6ca1\u6709\u88ab\u840c\u72fc\u4e00\u53e3\u5403\u6389\uff0c\u770b\u6765\u730e\u7269\u662f\u8981\u517b\u80a5\u4e86\u518d\u4e0b\u53e3\u3002<\/del>\u840c\u72fc\u597d\u50cf\u5f88\u559c\u6b22 PocketCHIP \u8fd8\u6709 PinePhone \u4e00\u7c7b\u5c0f\u73a9\u5177\uff0c\u770b\u6765\u4e0d\u4ec5\u662f\u5de8\u7269\u7231\u597d\u8005\uff0c\u4e5f\u5f88\u559c\u6b22\u597d\u770b\u4f46\u96be\u7528\u7684\u7535\u5b50\u4ea7\u54c1\u561b\u3002<\/p>\n\n<p>\u7fa4\u53cb\u90fd\u8bf4\u94c1\u4e1d\u5f88\u50cf\u6770\u54e5\uff0c\u4e0d\u8fc7\u6211\u7b2c\u4e00\u773c\u60f3\u5230\u7684\u662f 8-bit Guy\u3002\u94c1\u4e1d\u9a91\u4e86\u8f86\u5f88\u80fd\u5438\u5f15\u7389\u7c73\u72d0\u72f8\u6ce8\u610f\u7684\u7535\u52a8\u65c5\u884c\u7bb1\u3002<\/p>\n\n<p>\u6709\u65f6\u5019\u611f\u89c9\u94c1\u4e1d\u548c\u7389\u7c73\u72d0\u72f8\u6709\u70b9\u50cf\u7236\u5b50\u3002<\/p>\n\n<p>\u4e0a\u5348\u7684\u9879\u76ee\u4e0d\u662f\u5f88\u5438\u5f15\u4eba\uff0c\u4e0d\u8fc7 AOSC OS Retro \u7adf\u7136\u80fd\u5728 24M \u5185\u5b58\u7684\u8001\u673a\u5668\u4e0a\u8dd1 systemd\uff0c\u8bba\u6280\u672f\u5df2\u7ecf\u53ef\u4ee5\u8bf4\u662f\u5f88\u503c\u5f97\u8d5e\u7f8e\u4e86\u3002<\/p>\n\n<p><del>\u62bd\u7968\u6295\u5956<\/del>\u5f53\u7136\u4e5f\u6ca1\u6211\u8fd9\u79cd\u975e\u914b\u7684\u4e8b\u3002\u732b\u8def\u7531\u5012\u662f\u540c\u65f6\u62bd\u5230\u4e86\u7b14\u8bb0\u672c\u548c\u5c0f\u7c73 2\uff0c\u6211\u613f\u5728\u6b64\u9001\u4e0a\u539f\u51fa\u5904\u5df2\u4e0d\u53ef\u8003\u7684\u300a\u6d77\u8c79\u6b4c\u300b\uff1a<\/p>\n\n<p>\u5c0f\u5c0f\u6d77\u8c79\u6c5f\u4e2d\u6e38\uff0c\u4e24\u4ef6\u5927\u4e8b\u8bb0\u5fc3\u5934\u3002<\/p>\n\n<p>\u5982\u6b32\u5341\u8fde\u5148\u9884\u8b66\uff0c\u53ea\u9700\u4e00\u5b9d\u5fc5\u5355\u62bd\u3002<\/p>\n\n<p>\u00b7\u00b7\u00b7\u00b7\u00b7\u00b7<\/p>\n\n<p>\u81ea\u53e4\u591a\u809d\u65e0\u76ca\u5904\uff0c\u4ece\u6765\u6d77\u8c79\u4e0d\u79c3\u5934\u3002<\/p>\n\n<p>\u53ef\u601c\u697c\u4e0a\u8c79\u5f98\u5f8a\uff0c\u5e94\u7167\u975e\u6d32\u5077\u6e21\u53f0\u3002<\/p>\n\n<p>\u4e00\u987f\u8c79\u6253\u6253\u4e0d\u5c3d\uff0c\u660e\u5929\u62bd\u5361\u590d\u8fd8\u6765\u3002<\/p>\n\n<p>\u4e2d\u5348\u7b80\u5355\u5728\u4e0a\u79d1\u5927\u98df\u5802\u5403\u70b9\u5783\u573e\u98df\u54c1\u3002\u4e0a\u79d1\u5927\u7684\u98df\u5802\u771f\u597d\u554a\uff0c\u6c49\u5821\u6bd4\u6211\u90a3\u5c0f\u7834\u5b66\u6821\u7684\u5f3a\uff0c\u996e\u6599\u8fd8\u80fd\u65e0\u9650\u7eed\u676f\uff0c\u679c\u7136\u8fa3\u9e21\u5b66\u6821\u4ece\u57fa\u7840\u8bbe\u65bd\u4e0a\u5c31\u88ab\u5f7b\u5e95\u78be\u538b\u4e86\u3002<\/p>\n\n<p>\u4e0b\u5348\u5c31\u542c\u90a3\u4f4d\u7528 Rust \u5199 DeployKit \u7684\u4eba\uff08\u539f\u6765\u5c31\u662f\u4f60\u554a\uff09<del>\u5439<\/del>\u4ecb\u7ecd AOSC \u672a\u6765\u7684\u5305\u7ba1\u7406\u5668\u3002\u4f5c\u8005\u5c31\u4e0d\u559c\u6b22 openSUSE \u7684 YaST \u5b89\u88c5\u5668\uff0c\u4e0d\u8fc7\u4ed6\u8bbe\u8ba1\u4e2d\u6709\u8d85\u8fc7\u4e00\u534a\u7684\u7279\u6027\uff0c\u6211\u4eec openSUSE \u7684 zypper \u4e5f\u6709\u3002\uff08\u7b11\uff09<\/p>\n\n<p>\u5305\u7ba1\u7406\u5668\u542b Rust \u91cf\u6781\u9ad8\uff08\u6c42\u60a8\u4e86\u522b Rust \u4e86\uff09\u3002<\/p>\n\n<p>\u5976\u51b0\u597d\u50cf\u662f\u5728\u4e0a\u5348\u627e\u5230\u6211\u7684\uff0c\u8bb0\u4e0d\u6e05\uff0c\u65e0\u6240\u8c13\u4e86\u3002\u5976\u51b0\u7684\u58f0\u97f3\u771f\u7684\u597d<strong>\u5976<\/strong>\u554a\u3002\u5976\u51b0\u8bf4\u81ea\u5df1\u793e\u4ea4\u6050\u60e7\uff0c\u4e0d\u8fc7\u793e\u4ea4\u6050\u60e7\u771f\u7684\u80fd\u4e00\u4e0a\u6765\u548c\u90a3\u8bfa\u9762\u57fa\u5417\u2026\u2026<\/p>\n\n<p>\u90a3\u8bfa\u5c0f\u5c0f\u7684\u5f88\u53ef\u7231\uff01\u4e0d\u8fc7\u4e00\u628a\u62b1\u8d77\u6765\u770b\u6837\u5b50\u6709\u4e00\u5b9a\u96be\u5ea6\u3002\u5976\u51b0\u7684\u58f0\u97f3\u6bd4\u90a3\u8bfa\u8fd8<strong>\u5976<\/strong>\uff0c\u771f\u662f\u5f88\u795e\u5947\u554a\u3002<\/p>\n\n<p>\u5976\u51b0\u60f3\u627e\u6d45\u8001\u5e08\uff0c\u4f46\u6015\u8ba4\u9519\u4eba\u3002\u7839\uff0c\u8fd9\u8fd8\u4e0d\u7b80\u5355\uff1f\u76f4\u63a5\u7ed5\u5230\u6d45\u8001\u5e08\u8eab\u540e\u558a\u201c\u6d45\u8001\u5e08\u6d45\u8001\u5e08\u6d45\u8001\u5e08\u2026\u2026\u201d\uff0c\u558a\u5b8c\u6709\u53cd\u5e94\u5c31\u662f\u6ca1\u8ba4\u9519\u4eba\u3002\u5976\u51b0\u6ca1\u558a\uff0c\u8fd9\u662f\u8bf4\u5f97\u901a\u7684\uff0c\u6bd5\u7adf\u542c\u5230\u8fd9\u4e48<strong>\u5976<\/strong>\u7684\u58f0\u97f3\u8fd9\u4e48<strong>\u5976<\/strong>\u7684\u5185\u5bb9\uff0c\u4f1a\u88ab\u53ef\u7231\u6b7b\u7684\u3002<\/p>\n\n<p>\u6211\u4ee5\u4e3a\u6d45\u8001\u5e08\u8868\u60c5\u770b\u8d77\u6765\u4f1a\u5f88\u6050\u6016\uff0c\u73b0\u5728\u53d1\u73b0\u53ea\u662f\u5728 openSUSE \u7fa4\u91cc\u8bf4\u8bdd\u6709\u70b9\u6050\u6016\u7f62\u4e86\u3002<\/p>\n\n<p>\u9ea6\u514b\u63f4\u5f88\u6d3b\u6cfc\uff0c\u548c\u90a3\u8bfa\u6709\u70b9\u50cf\u3002\u4e5f\u662f\u5f88\u5389\u5bb3\u7684\u4eba\u3002<\/p>\n\n<p>\u611f\u89c9 kexy \u770b\u8d77\u6765\u6709\u70b9\u50cf Carbyne\uff0c\u4e0d\u8fc7\u8fd9\u4e24\u4f4d\u4e92\u76f8\u4e0d\u8ba4\u8bc6\uff0c\u4e0d\u77e5\u9053\u51c6\u4e0d\u51c6\u786e\u3002\u53cc\u500d\u591a\u591a\u51b0\u597d\u50cf\u8d8a\u6765\u7b26\u5408\u963f\u59e8\u7684\u8bbe\u5b9a\u4e86\u3002<\/p>\n\n<p>\u4e2d\u5348\u73a9\u4e86\u4e0b\u5c55\u53f0\u7684\u4fe1\u521b\u786c\u4ef6\u6765\u7740\uff0c\u665a\u4e0a\u5403\u996d\u524d\u5c31\u53ea\u5fd9\u7740\u8ba4\u8138\u4e86\u3002\u4e2d\u5348\u628a PocketCHIP \u5f80\u5c55\u53f0\u4e0a\u4e00\u4e22\uff0c\u611f\u89c9 PocketCHIP \u548c\u94c1\u4e1d\u7684 UMPC \u5438\u5f15\u773c\u7403\u7684\u80fd\u529b\u4e00\u70b9\u90fd\u4e0d\u6bd4\u4fe1\u521b\u786c\u4ef6\u5f31\uff0c\u679c\u7136\u5c0f\u5c3a\u5bf8\u8bbe\u5907\u771f\u662f\u5f88\u795e\u5947\u7684\u4e1c\u897f\u554a\u3002<\/p>\n\n<p>\u665a\u4e0a\u548c\u94c1\u4e1d\u3001\u7389\u7c73\u72d0\u72f8\u3001\u732b\u8def\u7531\u3001BPC \u548c\u51e0\u4f4d\u522b\u7684\u7fa4\u53cb\u6109\u5feb\u5730\u5403\u4e86\u987f\u706b\u9505\u3002\u6d4b\u8bd5\u4e00\u4e0b\u732b\u8def\u7531\u521a\u62bd\u5230\u7684\u7ea2\u7c73 2\uff0c\u4f3c\u4e4e\u6bd4 PinePhone \u66f4\u9002\u5408\u4e00\u822c\u7528\u6237\uff0c\u81f3\u5c11 GPU \u6bd4\u5f31\u9e21 Mali 400 \u5f3a\u591a\u5566\u3002<\/p>\n\n<p>\u8fd9\u65f6\u5019\u9c7c\u5854\u5e94\u8be5\u5728\u4e0a\u6d77\u7ea6\u996d\uff0c\u53ef\u60dc\u6211\u4e0d\u4f1a\u5206\u8eab\u672f\u3002<\/p>\n\n<h1 id=\"day-2\">Day 2<\/h1>\n\n<p>Day 2 \u7684\u9879\u76ee\u76f8\u6bd4 Day 1 \u6709\u8da3\u4e00\u70b9\uff0c\u793e\u533a\u4e00\u4e0a\u6765\u5c31\u4ecb\u7ecd\u4e86\u4e0b\u65b0\u7684 CI \u5de5\u5177 Ciel\uff0c\u6211\u4f5c\u4e3a\u60f3\u5f53 DevOps \u7684\u83dc\u9e21\u5f53\u7136\u8981\u5173\u6ce8\u4e86\u3002Ciel \u628a AOSC \u504f\u7231 systemd \u7684\u7279\u70b9\u8868\u73b0\u5f97\u6dcb\u6f13\u5c3d\u81f4\uff0c\u5bb9\u5668\u540e\u7aef\u7adf\u7136\u7528 systemd-nspawn\uff08\u6c42\u60a8\u4e86\u522b systemd \u4e86\uff09\u3002<\/p>\n\n<p>Ciel \u4e5f\u6709\u8bb2\u672a\u6765\u5176\u4ed6\u540e\u7aef\u7684\u4e8b\u60c5\u3002\u591a\u5634\u95ee\u4e86\u53e5\u8fd9\u4e8b\uff0c\u611f\u89c9\u652f\u6301 BtrFS \u5f97\u8981\u597d\u4e45\u5427\uff0c\u77ed\u671f\u5c31\u53ea\u652f\u6301 overlayfs \u4e86\u3002<del>\u4f60\u7684\u5bb9\u5668\u540e\u7aef\u662f\u73b0\u4ee3\u7684\uff0c\u5b58\u50a8\u540e\u7aef\u5374\u76f8\u5f53\u53e4\u8001\u3002\u4f60\u7a76\u7adf\u662f\u4ec0\u4e48\u4eba\uff1f<\/del><\/p>\n\n<p>\u9c7c\u5854\u4e0a\u5348\u5c31\u6765\u4e86\u3002\u9c7c\u5854\u5f88\u9c7c\u5854\uff0c\u6ce1\u6ce1\u5f88\u6ce1\u6ce1\uff0c\u4e00\u56e2\u5f88\u2026\u2026\u6839\u672c\u4e0d\u662f\u201c\u56e2\u201d\u5427\uff01<\/p>\n\n<p>\u90a3\u8bfa\u8fd9\u5929\u6ca1\u6765\uff0c\u6211\u628a\u9ea6\u514b\u63f4\u8ba4\u6210\u90a3\u8bfa\u4e86\u3002<del>\u90a3\u8bfa\u600e\u4e48\u957f\u9ad8\u4e86\uff1f<\/del><\/p>\n\n<p>\u4e2d\u5348\u548c\u9c7c\u5854\u4e00\u8def\u5728\u98df\u5802\u5403\u996d\u3002\u610f\u5927\u5229\u9762\u3001\u62ab\u8428\uff0c\u6211\u90a3\u7834\u5b66\u6821\u62ff\u4ec0\u4e48\u6bd4\u554a\uff01<\/p>\n\n<p>\u7389\u7c73\u72d0\u72f8<strong>\u5355\u65b9\u9762<\/strong>\u4e0e\u5976\u51b0\u5f88\u6109\u5feb\u5f97\u73a9\u800d\u4e86\u8d77\u6765\uff0c\u5177\u4f53\u573a\u666f\u7528\u8bed\u8a00\u63cf\u8ff0\u8d77\u6765\u6709\u96be\u5ea6\uff0c\u5f53\u65f6\u6ca1\u62cd\u7167\u7247\uff0c\u5c31\u627e\u4e86\u5f20\u56fe\u3002<\/p>\n\n<p><img src=\"https:\/\/cdn.donmai.us\/sample\/cf\/5b\/__noelle_alice_in_cradle_drawn_by_kareki__sample-cf5bd7e502c2e971a399531b8548ffe4.jpg\" alt=\"cronfox-and-milkice\" \/><\/p>\n\n<p>Noel+ by <a href=\"https:\/\/www.pixiv.net\/users\/20230184\">\u67af\u6728<\/a>\u3002<a href=\"https:\/\/www.pixiv.net\/artworks\/106789607\">Pixiv<\/a> <a href=\"https:\/\/danbooru.donmai.us\/posts\/6495599\">Danbooru<\/a><\/p>\n\n<p>\u5de6\u8fb9\u7389\u7c73\u72d0\u72f8\uff0c\u53f3\u8fb9\u5976\u51b0\u3002\u4e0d\u8fc7\u6700\u91cd\u8981\u7684\u662f\uff0c<strong>\u6211\u634f\u5230\u5976\u51b0\u7684\u8138\u4e86\uff01<\/strong><\/p>\n\n<p>\u4e0b\u5348 RISC-V \u7684\u6f14\u8bb2\u4e5f\u5f88\u6709\u610f\u601d\uff0c\u5e0c\u671b\u4e24\u4e09\u5e74\u5185\u80fd\u770b\u5230\u6027\u80fd\u4e0d\u9519\u7684\u6d88\u8d39\u7ea7\u4ea7\u54c1\u3002RISC-V \u628a\u7334\u54e5\u4e5f\u70b8\u51fa\u6765\u63d0\u95ee\u4e86\u3002<del>\u7334\u54e5\u7684\u5934\u771f\u4eae\u554a\u2026\u2026<\/del><\/p>\n\n<p>\u540c\u5976\u51b0\u548c\u840c\u72fc\u56f4\u7ed5\u5404\u79cd\u95ee\u9898\u5c55\u5f00\u4e86\u6109\u5feb\u7684\u8ba8\u8bba\uff0c\u53ef\u60dc\u5976\u51b0\u4e0d\u613f\u610f\u8ba9\u6211\u518d\u634f\u8138\u4e86\u3002<\/p>\n\n<p>\u540e\u9762\u5c31\u662f\u793e\u533a\u5916\u8054\uff0c\u603b\u4e4b\u2026\u2026\u542b snap \u91cf\u3001\u542b Nix \u91cf\u6781\u9ad8\u3002<\/p>\n\n<p>\u4e34\u8d70\u7684\u65f6\u5019\u770b\u5230\u6c38\u7965\u7684\u540d\u5b57\uff0c\u5c0f\u7965\u7adf\u7136\u4e5f\u6765\u4e86\u2026\u2026\u5c0f\u7965\u5e74\u9f84\u6bd4\u60f3\u8c61\u4e2d\u8981\u5927\u554a\u3002<\/p>\n\n<h1 id=\"\u5173\u4e8e-aoscc-2023\">\u5173\u4e8e AOSCC 2023<\/h1>\n\n<p>\u4e24\u5929\u597d\u5feb\u554a\uff0c\u8981\u56de\u5bb6\u8c03 HomeLab \u4e86\uff01<\/p>\n\n<p>\u8fd9\u6837\u51b7\u95e8\u7684\u793e\u533a\u5374\u80fd\u7ec4\u7ec7\u8d77\u5982\u6b64\u5927\u89c4\u6a21\u7684\u6d3b\u52a8\uff0c\u201c\u793e\u533a\u4e0d\u884c\u201d\u7684\u7b2c\u4e00\u5370\u8c61\u5927\u6982\u88ab\u6273\u56de\u6765\u4e86\u3002<\/p>\n\n<p>\u4e2d\u5b66\u9636\u6bb5\u5047\u671f\u6ca1\u6cd5\u5230\u5904\u4e71\u8dd1\uff0c\u4e5f\u4e0d\u600e\u4e48\u5173\u6ce8\u793e\u533a\u7ebf\u4e0b\u6d3b\u52a8\uff0c\u6240\u4ee5\u8fd9\u6b21\u771f\u7684\u662f\u7b2c\u4e00\u6b21\u53c2\u52a0\u5927\u89c4\u6a21\u793e\u533a\u6d3b\u52a8\u3002\u4e0d\u77e5\u4eca\u5e74\u6709\u6ca1\u6709\u7a7a\u53c2\u52a0 openSUSE \u5341\u6708\u4efd\u90a3\u573a\uff0c\u4e0d\u884c\u7684\u8bdd\u53ef\u80fd\u5c31\u7b49\u660e\u5e74\u4e86\u3002<\/p>\n","pubDate":"Sun, 16 Jul 2023 00:00:00 +0000","link":"https:\/\/ratizux.github.io\/2023\/07\/16\/1.html","guid":"https:\/\/ratizux.github.io\/2023\/07\/16\/1.html"},{"title":"\u96f6\u76d2\u535a\u5f08","description":"<p>\u767d\u5929\u7ed9 ACM \u961f\u9000\u4e86\uff0c\u508d\u665a\u5f00\u59cb\u73a9\u7535\u89c6\u76d2\u5b50\uff0c\u73a9\u5230\u5929\u9ed1\u3002<\/p>\n\n<p>\u7535\u89c6\u76d2\u5b50\u5176\u5b9e\u4e0d\u597d\u73a9\uff0c\u771f\u7684\u3002\u6211\u51e0\u4e2a\u5c0f\u65f6\u90fd\u5728\u6362\u955c\u50cf\u3001\u6362 Device Tree\uff0c\u6700\u7ec8\u542f\u52a8\u8d77\u6765\u4e86\u67d0 <a href=\"https:\/\/github.com\/ophub\/amlogic-s9xxx-armbian\">Armbian \u5b9a\u5236\u7248<\/a>\uff0c\u8fd8\u6ca1\u7ed9\u7f51\u5361\u9a71\u52a8\u8d77\u6765\uff0c\u5185\u5b58\u5bb9\u91cf\u4e5f\u4e0d\u5bf9\uff0c\u8fd8\u6389\u76d8\u4e86\u3002\u7535\u89c6\u76d2\u5b50\u662f\u4e8c\u767e\u5757\u94b1\u4e70\u7684\uff0cAmlogic s905x3\uff0c4GiB \u5185\u5b58\uff0cglmark2 \u80fd\u8dd1\u5230 316 \u5206\uff0c\u6027\u80fd\u548c\u540c\u7b49\u4ef7\u4f4d\u7684\u5f00\u53d1\u677f\u6bd4\u76f8\u5f53\u4e0d\u9519\uff0c\u7f3a\u70b9\u5c31\u662f\u4e0d\u53ef\u80fd\u6709\u6587\u6863\uff0c\u53c8\u4e0d\u7a33\u5b9a\uff0c\u53ea\u80fd\u5f53\u73a9\u5177\u3002\u6211\u5f88\u5e86\u5e78\u73b0\u5728\u5bf9\u7535\u8111\u786c\u4ef6\u6709\u4e86\u4e2a\u6700\u57fa\u672c\u7684\u8ba4\u8bc6\uff0c\u6ca1\u6709\u50cf\u4e0a\u6b21\u90a3\u6837\u82b1\u4e8c\u767e\u5757\u4e70\u4e86\u5757 armv4l \u7684\u771f\u6b63\u6beb\u65e0\u4ef7\u503c\u7684\u4e1c\u897f\u3002<\/p>\n\n<p>\u6211\u5e76\u4e0d\u719f\u6089\u5d4c\u5165\u5f0f\u7cfb\u7edf\u3002\u4e8b\u5b9e\u8bc1\u660e\uff0c\u73a9\u8fd9\u4e1c\u897f\u5e76\u4e0d\u80fd\u8ba9\u4eba\u5feb\u901f\u589e\u957f\u5173\u4e8e\u5d4c\u5165\u5f0f\u7684\u7ecf\u9a8c\u2014\u2014\u9664\u975e\u4f60\u672c\u6765\u5c31\u662f\u5d4c\u5165\u5f0f\u4e13\u5bb6\uff0c\u90a3\u9006\u5411\u4e00\u4e0b\u4ec0\u4e48\u4e1c\u897f\u4f30\u8ba1\u8fd8\u662f\u6709\u70b9\u6536\u83b7\u7684\u3002\u5916\u884c\u73a9\u5b83\u4e5f\u5c31\u6700\u591a\u719f\u6089\u4e00\u4e0b Device Tree\uff0c\u7136\u540e\u5bb6\u91cc\u5c31\u4f1a\u591a\u51fa\u53e6\u4e00\u53f0\u5403\u7070\u6216\u8005\u9ed8\u9ed8\u8fd0\u884c\u7684\u673a\u5668\uff0c\u5b9e\u9645\u73a9\u7684\u65f6\u95f4\u53ef\u4ee5\u77ed\u5230\u53ea\u6709\u82e5\u5e72\u5c0f\u65f6\u2014\u2014\u6211\u7a81\u7136\u610f\u8bc6\u5230\uff0c\u4e0d\u8be5\u518d\u73a9\u5b83\u4e86\uff0c\u518d\u73a9\u7684\u8bdd\u4f5c\u4e1a\u5c31\u8981\u8fdf\u4ea4\u4e86\u3002<\/p>\n\n<p>\u665a\u4e0a\u7684\u8bdd\u9898\u7ed3\u675f\u4e86\uff0c\u56de\u5230\u767d\u5929\u7684\u8bdd\u9898\u3002<\/p>\n\n<p>\u6211\u7ed9 ACM \u961f\u9000\u4e86\uff0c\u56e0\u4e3a\u6211\u4e0d\u64c5\u957f\u7b97\u6cd5\u3001\u5237\u7b97\u6cd5\u9898\u592a\u8d39\u65f6\u95f4\u3001\u5b66\u6821 ACM \u961f\u7684\u4eba\u9971\u548c\u4e86\u3001\u6211\u6253 ACM \u4f1a\u504f\u79d1\uff0c\u4e0a\u9762\u8fd9\u4e9b\u90fd\u662f\u5e9f\u8bdd\u3002\u6211\u7ed9 ACM \u961f\u9000\u4e86\uff0c\u56e0\u4e3a\u6211\u771f\u7684\u4e0d\u559c\u6b22\u5b66\u6821\u7684 ACM \u961f\u3002<\/p>\n\n<p>\u5b66\u6821 ACM \u961f\u7684\u4eba\u4e0d\u559c\u6b22\u4e92\u52a9\u3002\u8fd9\u4e2a\u4e1c\u897f\u4f60\u4e0d\u4f1a\uff1f\u55ef\uff0c\u662f\u5440\u662f\u5440\uff0c\u4e0d\u4f1a\u8fd8\u80fd\u5199\u5f97\u51fa\u6765\uff0c\u5728\u952e\u76d8\u4e0a\u968f\u673a\u6572\u6253\u90fd\u80fd\u5199\u51fa\u6b63\u786e\u4f5c\u7b54\uff0c\u771f\u662f\u592a\u5389\u5bb3\u4e86\u3002<\/p>\n\n<p>\u5b66\u6821 ACM \u961f\u7684\u4eba\u6ee1\u5634\u8dd1\u706b\u8f66\u3002gcc \u662f\u7528 Java \u5199\u7684\u5440\uff0c\u61c2\u4e0d\u61c2\u5440\uff0c\u8fd9\u5c31\u53eb\u4e13\u4e1a\u3002\u6211\u5199\u4f60\u4e2a\u9524\u5b50\u3002<\/p>\n\n<p>\u5b66\u6821 ACM \u961f\u7684\u4eba\u7231\u641e\u9119\u89c6\u94fe\u3002\u7528 Allman \u7f29\u8fdb\u98ce\u683c\u662f\u4f1a\u88ab\u4eba\u770b\u4e0d\u8d77\u7684\uff0c\u7528 Qt \u662f\u4f1a\u88ab\u4eba\u770b\u4e0d\u8d77\u7684\uff0c\u7528 GNU\/Linux \u4e5f\u662f\u4f1a\u88ab\u4eba\u770b\u4e0d\u8d77\u7684\u3002<\/p>\n\n<p>\u5b66\u6821 ACM \u961f\u7684\u4eba\u6700\u7231\u5377\u4e86\uff0c\u5e26\u7740\u73ed\u91cc\u7684\u5176\u4ed6\u4eba\u4e5f\u4e00\u8d77\u5377\u3002\u8fd9\u8bdd\u597d\u50cf\u5728\u8bf4\u73ed\u91cc\u7684\u4eba\u5377\u5f97\u6ca1\u90a3\u4e48\u75af\u4e00\u6837\uff0c\u4e0d\u8fc7\u5176\u5b9e\u4f5c\u4e1a\u8d85\u989d\u5b8c\u6210\u8fd9\u79cd\u4e8b\u4e24\u8fb9\u7684\u4eba\u90fd\u7ecf\u5e38\u5e72\u30022000 \u5b57\u7684\u62a5\u544a\uff0c\u5f15\u7528 15 \u7bc7\u8bba\u6587\uff0c\u540c\u5b66\u5c31\u5199\u5230 3500 \u5b57\uff0c\u5f15 27 \u751a\u81f3 30 \u7bc7\u3002\u5199\u4e2a\u6a21\u62df\u7535\u68af\u8fd0\u4f5c\u7684\u7a0b\u5e8f\uff0c\u7ed3\u679c\u6709\u540c\u5b66\u8fde\u591a\u7ebf\u7a0b\u548c\u4fe1\u53f7\u4e0e\u69fd\u90fd\u7528\u4e0a\u4e86\uff0c\u8fd8\u6709\u540c\u5b66\u7ed9\u7535\u68af\u5199\u542f\u53d1\u5f0f\u641c\u7d22\u7b97\u6cd5\u3002\u8fd9\u4e48\u4e00\u5377\uff0c\u6309\u6b63\u5e38\u6807\u51c6\u80fd\u5f97 85 \u751a\u81f3 90 \u5206\u7684\u4f5c\u4e1a\uff0c\u5c31\u53ea\u80fd\u88ab\u538b\u5230 80 \u4e86\u300280 \u5206\uff0c\u7ee9\u70b9\u662f 3.0\u3002<\/p>\n\n<p>3.0 \u662f\u4e2a\u5f88\u53ef\u6015\u7684\u6570\u5b57\u30023.0 GPA \u53ea\u80fd\u7b97\u662f\u4e2d\u7b49\uff0c\u7b97\u662f\u88ab\u4eba\u770b\u4e0d\u8d77\u7684\u6c34\u5e73\uff0c\u518d\u4f4e\u4e00\u70b9\u7684\u5c31\u4ec0\u4e48\u9879\u76ee\u90fd\u7533\u8bf7\u4e0d\u4e86\u4e86\u3002\u62a2\u4fdd\u7814\u540d\u989d\u7684\u4eba\u662f 4.0 \u8d77\u6b65\u7684\u3002\u5f88\u4e0d\u5e78\u7684\u662f\uff0c\u6211\u5728\u51e0\u95e8\u8bfe\u4e0a\u662f\u6b8b\u75be\u4eba\uff0c\u5176\u4e2d\u51e0\u95e8\u548c\u6570\u5b66\u6709\u70b9\u5173\u7cfb\u7684\u5b66\u5206\u5360\u6bd4\u8fd8\u7279\u522b\u9ad8\uff0cGPA \u7ef4\u6301 3.0 \u5c31\u5df2\u7ecf\u76f8\u5f53\u96be\u4e86\u3002\u6709 GPA \u538b\u529b\u7684\u5b66\u751f\u663e\u7136\u9700\u8981\u4e0a\u884c\u5feb\u9053\u3002\u73a9\u7535\u89c6\u76d2\u5b50\u6700\u591a\u7b97\u662f\u6d88\u9063\uff0c\u5728\u5377\u738b\u773c\u91cc\u5341\u5206\u4f4e\u7aef\u3002\u771f\u6b63\u7684\u5377\u738b\u90fd\u73a9 CF\uff0c\u53c8\u540d CodeForces\u3002<\/p>\n\n<p>\u6240\u4ee5\u73a9\u7535\u89c6\u76d2\u5b50\u7684\u4eba\u5f88\u5c11\uff0c\u662f\u5b8c\u5168\u8bf4\u5f97\u901a\u7684\uff1a\u6210\u529f\u4eba\u58eb\u4e0d\u4f1a\u73a9\u8fd9\u4e1c\u897f\uff0c\u56e0\u4e3a\u5916\u8d38\u76d2\u5b50\u548c\u9ad8\u7aef\u5f00\u53d1\u677f\u4e4b\u95f4\u7684\u4ef7\u683c\u5dee\u8ddd\uff0c\u5bf9\u4ed6\u4eec\u6765\u8bf4\u6839\u672c\u4e0d\u7b97\u4ec0\u4e48\uff0c\u751a\u81f3\u4e70\u8fd9\u4e9b\u673a\u5668\u90fd\u4e0d\u662f\u56e0\u4e3a\u529f\u8017\u4f4e\u3001\u566a\u97f3\u5c0f\uff0c\u53ea\u662f\u4e3a\u4e86\u597d\u73a9\uff1b\u5728\u96f6\u548c\u535a\u5f08\u4e2d\u9677\u5165GPA\u538b\u529b\u3001\u5bf9\u540c\u5b66\u7684\u731c\u7591\u4ee5\u53ca\u5c31\u4e1a\u7126\u8651\u4e2d\u7684\u6323\u624e\u7684\u4e0a\u6587\u4e2d\u63d0\u5230\u7684\u5b66\u751f\u4e5f\u4e0d\u80fd\u73a9\uff0c\u4eca\u5929\u73a9\u4e86\u8fd9\u73a9\u610f\uff0c\u660e\u5929\u54ea\u95e8\u8bfe\u5c31\u53ef\u80fd\u6302\u6389\uff0c\u540e\u5929\u5c31\u53ef\u80fd\u627e\u4e0d\u5230\u5de5\u4f5c\uff1b\u79d1\u7814\u578b\u4eba\u624d\u4e5f\u4e0d\u4f1a\u73a9\u8fd9\u4e1c\u897f\uff0c\u4ed6\u4eec\u7684\u9752\u6625\u4e0d\u80fd\u846c\u9001\u5728\u5bf9\u4e09\u6d41\u5382\u5546\u5c0f\u4ea7\u54c1\u8fdb\u884c\u9006\u5411\u5de5\u7a0b\u4e0a\u9762\uff1b\u8d39\u8001\u9f3b\u5b50\u52b2\u8003\u4e2a\u56db\u975e\u4e00\u672c\u3001\u8499\u5728\u9f13\u91cc\u7684\u519c\u4e1a\u5927\u7701\u505a\u9898\u5bb6\u66f4\u4e0d\u80fd\u73a9\u8fd9\u73a9\u610f\uff0c\u6bd5\u7adf\u4ece\u4e0a\u5e7c\u513f\u56ed\u5f00\u59cb\u5c31\u8981\u4e0a\u8865\u4e60\u73ed\uff0c\u4e0a\u5b66\u7684\u5e74\u9f84\u6bb5\u8fde\u89c9\u90fd\u7761\u4e0d\u7740\uff0c\u66f4\u4e0d\u53ef\u80fd\u5728\u7535\u5b50\u4ea7\u54c1\u4e0a\u6d6a\u8d39\u65f6\u95f4\u3002\u53ea\u6709\u7238\u5988\u4e0d\u7ed9\u96f6\u82b1\u94b1\u7684\u53db\u9006\u5317\u4eac\u5b69\u5b50\uff0c\u6bcf\u5929\u65f6\u95f4\u4e00\u5927\u628a\uff0c\u5347\u5b66\u538b\u529b\u6839\u672c\u4e0d\u5b58\u5728\uff0c\u65e2\u7136\u6ca1\u6709\u6210\u4e3a\u79d1\u7814\u578b\u4eba\u624d\u7684\u6f5c\u8d28\uff0c\u90a3\u5c31\u5728\u793e\u533a\u6536\u83b7\u5927\u628a\u8ffd\u968f\u8005\u5427\u3002<\/p>\n\n<p>\u6211\u53ea\u80fd\u653e\u5f03\u7535\u89c6\u76d2\u5b50\uff0c\u628a\u5b83\u6536\u56de\u62bd\u5c49\u91cc\uff0c\u5f00\u59cb\u5c1d\u8bd5\u8fbe\u5230\u5404\u79cd\u4e0d\u4eba\u9053\u7684\u9ad8\u6807\u51c6\u3002\u6bd5\u7adf\uff0c\u5018\u82e5\u771f\u8981\u770b\u7740\u81ea\u5df1\u8ba4\u771f\u5b8c\u6210\u7684\u4f5c\u4e1a\u88ab\u5377\u738b\u538b\u6210\u4f4e\u5206\uff0c\u4e0d\u5982\u76f4\u63a5\u4e00\u8eba\u5230\u5e95\uff0c\u8d77\u7801\u6536\u83b7\u56db\u5e74\u5feb\u4e50\u751f\u6d3b\u3002\u4f46\u662f\u522b\u4eba\u5feb\u4e50\u56db\u5e74\u4e4b\u540e\u8fd8\u80fd\u5403\u5f97\u4e0a\u996d\uff0c\u6211\u5403\u4e0d\u4e0a\u3002\u5403\u4e0d\u4e0a\u996d\u7684\u4eba\u53ea\u80fd\u62fc\u547d\u786c\u5e72\u3002<\/p>\n\n<p>\u6709\u4e9b\u4e0d\u4eba\u9053\u7684\u9ad8\u6807\u51c6\u662f\u9690\u6027\u7684\u3002\u7ed3\u8bfe\u4f5c\u4e1a\u8981\u6c42\u5199 2000 \u5b57\uff0c\u6ca1\u6709\u534a\u53e5\u8bdd\u8981\u6c42\u8d85\u989d\u5b8c\u6210\uff0c\u4f46\u5377\u738b\u5c31\u662f\u7231\u641e\u4e24\u500d\u5de5\u4f5c\u91cf\uff0c\u6ca1\u529e\u6cd5\u3002\u9ad8\u6570\u4f53\u80b2\u5565\u7684\u5012\u662f\u4e0d\u5bb9\u6613\u53d7\u5377\u738b\u5f71\u54cd\uff0c\u5b66\u6821\u81ea\u5df1\u7ed9\u6807\u51c6\u8c03\u5f97\u5f88\u9ad8\uff0c\u5b9e\u9645\u6548\u679c\u4e00\u6837\u3002<\/p>\n\n<p>\u641e\u8fd9\u4e48\u9ad8\u7684\u6807\u51c6\u5e72\u561b\u5462\uff1f\u8fd9\u662f\u5de5\u4f5c\u91cf\u8bc1\u660e\uff0c\u7ffb\u8bd1\u8fc7\u6765\u5c31\u662f\u7528\u4eba\u8111\u6316\u77ff\uff0c\u4f5c\u4e1a\u91cc\u591a\u51fa\u6765\u7684\u51e0\u5343\u5b57\u9664\u4e86\u4f5c\u4e3a\u5de5\u4f5c\u91cf\u8bc1\u660e\u5916\uff0c\u6ca1\u6709\u4efb\u4f55\u610f\u4e49\u3002\u6211\u5f88\u4e0d\u559c\u6b22\u6316\u77ff\uff0c\u8fd9\u4e9b\u8d44\u6e90\u62ff\u6765\u7b97\u86cb\u767d\u8d28\u6298\u53e0\u591a\u597d\uff1f\u4f46\u5c31\u662f\u6709\u8fd9\u4e48\u591a\u4eba\u53ea\u987e\u81ea\u5df1\u3002\u81ea\u79c1\uff0c\u75af\u766b\uff0c\u65e0\u6240\u4e8b\u4e8b\u3002<\/p>\n\n<p>Rat race, \u6307\u4eba\u4eec\u4e3a\u4e86\u8ffd\u6c42\u6210\u529f\u7684\u75af\u72c2\u8ffd\u9010\u3001\u6fc0\u70c8\u7ade\u4e89\u3002\u6211\u5c31\u4e00\u9f20\u9f20\uff0c\u518d\u62fc\u547d\u8dd1\u4e5f\u8fd8\u662f\u9f20\u9f20\u3002<\/p>\n","pubDate":"Mon, 01 May 2023 00:00:00 +0000","link":"https:\/\/ratizux.github.io\/2023\/05\/01\/1.html","guid":"https:\/\/ratizux.github.io\/2023\/05\/01\/1.html"},{"title":"\u540c\u5b66\u6765\u70b9\u81ea\u5efa\u670d\u52a1","description":"<p>\u4e00\u76f4\u8dd1 Minecraft \u670d\u52a1\u5668\u4e5f\u6709\u70b9\u65e0\u804a\uff0c\u800c\u4e14\u6211\u6bd5\u7adf\u4e0d\u80fd\u603b\u662f\u73a9 Minecraft\u3002\u5f97\u7ed9\u670d\u52a1\u5668\u627e\u70b9\u6d3b\u5e72\uff0c\u4e0d\u5982\u5c31\u6765\u70b9\u81ea\u5efa\u670d\u52a1\uff0c\u987a\u4fbf\u8bd5\u4e0b Rootless Podman \u597d\u4e0d\u597d\u4f7f\u3002<\/p>\n\n<p>\u5982\u679c\u7528 Docker\uff0c\u4e00\u822c\u76f4\u63a5\u770b\u5b98\u65b9\u5b89\u88c5\u6587\u6863\u5c31\u884c\u4e86\u3002Rootless Podman \u4e0b\u8981\u8e29\u4e9b\u5751\uff0c\u8bdd\u8bf4\u6211\u4e3a\u5565\u8981\u6298\u817e\u7ea2\u5e3d\u5b50\u7684\u8fd9\u4e1c\u897f\u554a\u2026\u2026<\/p>\n\n<p>\u8fd9\u4e9b\u9879\u76ee\u90fd\u8fd8\u5728\u5f00\u53d1\uff0c\u6240\u4ee5\u4e0b\u9762\u7684\u5185\u5bb9\u4f1a\u6bd4\u8f83\u6709\u65f6\u6548\u6027\uff1b\u6211\u4e5f\u6ca1 arm \u6216\u8005 rv \u7684\u673a\u5668\uff0c\u4e0b\u9762\u64cd\u4f5c\u90fd\u53ea\u5728 amd64 Linux \u4e0b\u6d4b\u8bd5\u8fc7\u3002\u603b\u4e4b\uff0c\u4ec5\u4f9b\u53c2\u8003\uff0c\u5982\u679c\u6709\u540c\u5b66\u53d1\u73b0\u5565\u95ee\u9898\u7684\u8bdd\u8bb0\u5f97\u7ed9\u6211\u53d1\u4e2a\u90ae\u4ef6\u3002<\/p>\n\n<h1 id=\"code-server\">code-server<\/h1>\n\n<p><a href=\"https:\/\/coder.com\/docs\/code-server\/latest\">code-server<\/a> \u63d0\u4f9b\u6709\u7f51\u9875\u7248\u7684 VS Code\u3002\u5e73\u677f\u63a5\u4e0a\u952e\u76d8\u9f20\u6807\uff0c\u8fde\u4e0a code-server \u64cd\u4f5c\u5341\u5206\u8212\u9002\uff0c\u4e0a\u8bfe\u62ff\u6765\u5199\u4ee3\u7801\u5b8c\u5168\u6ca1\u95ee\u9898\u3002code-server \u6bd4\u8f83\u8f7b\uff0c\u5f88\u591a\u4eba\u5c31\u76f4\u63a5\u5728\u5e73\u677f\u4e0a\u90e8\u7f72 code-server\uff0c\u4e0d\u8fc7\u6211\u5e73\u677f\u6027\u80fd\u6bd4\u8f83\u5dee\uff0c\u5728\u5e73\u677f\u4e0a\u90e8\u7f72\u4e5f\u4e0d\u65b9\u4fbf\u540c\u6b65\/\u591a\u4eba\u534f\u4f5c\uff0c\u4e0d\u5982\u5148\u5728\u670d\u52a1\u5668\u4e0a\u8dd1\u4e2a\u8bd5\u8bd5\u3002<\/p>\n\n<p>code-server \u5b98\u65b9\u63d0\u4f9b\u6709 Docker \u955c\u50cf\u548c\u90e8\u7f72<a href=\"https:\/\/coder.com\/docs\/code-server\/latest\/install#docker\">\u6587\u6863<\/a>\uff0c\u4e0d\u8fc7\u4e5f\u53ef\u4ee5\u7a0d\u5fae\u4fee\u6539\u4e00\u4e0b\u955c\u50cf\uff0c\u7701\u4e0b\u4e00\u70b9\u5b89\u88c5\/\u91cd\u88c5\u540e\u7684\u65f6\u95f4\u3002<\/p>\n\n<p>\u8fd9\u4e2a\u955c\u50cf\u57fa\u4e8e Debian 11 (bullseye)\uff0c\u9664\u4e86\u6ca1\u6709\u4ec0\u4e48\u51b7\u95e8\u5de5\u5177\u5916\u7528\u7740\u90fd\u5f88\u597d\u3002<\/p>\n\n<p>\u5199\u4e2a Containerfile\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>FROM codercom\/code-server:latest\n### \u955c\u50cf\u91cc\u9ed8\u8ba4\u7528\u6237\u662f coder\uff0c\u5b89\u88c5\u7a0b\u5e8f\u7684\u65f6\u5019\u5148\u7ed9\u6539\u6210 root\uff1a\nUSER root\n### \u6362\u955c\u50cf\u6e90\uff0c\u987a\u4fbf\u63a8\u9500\u4e00\u4e0b\u9694\u58c1\u5b66\u6821\u7684\u955c\u50cf\u7ad9\n### \u955c\u50cf\u7ad9\u662f\u8861\u91cf\u5927\u5b66\u6c34\u5e73\u7684\u6807\u51c6\uff08\u4e0d\u662f\uff09\uff0c\u6211\u8fd9\u79cd\u6ca1\u6709\u81ea\u5bb6\u955c\u50cf\u7ad9\u7684\u5c31\u53ea\u80fd\u7b97\u662f\u5927\u4e13\u4e86\uff08\u7b11\uff09\nRUN sed -i 's\/deb.debian.org\/mirrors.zju.edu.cn\/g' \/etc\/apt\/sources.list &amp;&amp; \\\napt update &amp;&amp; DEBIAN_FRONTEND=\"noninteractive\" apt -o Acquire::Retries=50 install \\\n### \u4e24\u5957 C\/C++ \u7f16\u8bd1\u5668\uff0c\u4ee5\u53ca Vim\ngcc g++ clang vim \\\n### \u5b89\u88c5 ipykernel\uff0c\u5728 code-server \u91cc\u542f\u7528 Jupyter \u8bb0\u4e8b\u672c\u7684\u65f6\u5019\u8981\u7528\u3002\u522b\u5fd8\u4e86\u4e5f\u5728 code-server \u91cc\u88c5\u4e0a\u5bf9\u5e94\u63d2\u4ef6\npython3-ipykernel -y\n### \u628a\u9ed8\u8ba4\u7528\u6237\u6539\u56de\u53bb\nUSER coder\n<\/code><\/pre><\/div><\/div>\n\n<p>\u4fdd\u5b58\u4e3a <code class=\"language-plaintext highlighter-rouge\">Containerfile<\/code>\uff0c\u6784\u5efa\u4e00\u4e0b\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>### \u955c\u50cf\u540d\u5b57\u662f\u968f\u4fbf\u53d6\u7684\uff0c\u4e0d\u5fc5\u4e0e\u4e0a\u6e38\u955c\u50cf\u540d\u5b57\u4e00\u6837\npodman build -t code-server .\n<\/code><\/pre><\/div><\/div>\n\n<p>\u4e4b\u540e\u5c31\u53ef\u4ee5\u521b\u5efa\u5bb9\u5668\u4e86\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>podman create \\\n### \u5bb9\u5668\u540d\u5b57\u4e5f\u662f\u968f\u4fbf\u53d6\u7684\n--name code-server \\\n### \u6dfb\u52a0 SYS_PTRACE Capability\uff0c\u7528 gdb\u3001strace \u548c ASan \u4e4b\u7c7b\u7684\u65f6\u5019\u8981\u7528\u5230\n--cap-add sys_ptrace \\\n### \u5bb9\u5668\u5916\u9762\u76d1\u542c 8080 \u7aef\u53e3\uff0c\u8f6c\u53d1\u5230\u5bb9\u5668\u91cc\u9762\u7684 80 \u7aef\u53e3\uff0c\u5373 code-server \u7684\u7aef\u53e3\u4e0a\n-p 8080:80 \\\n### \u521b\u5efa\u4e2a\u540d\u4e3a code-server \u7684\u5377\uff08Volume\uff09\uff0c\u6302\u8f7d\u5230 \/home\/coder \u4e0a\uff0c\u8fd9\u6837\u628a\u6570\u636e\u76ee\u5f55\u5206\u79bb\u51fa\u6765\uff0c\u540e\u7eed\u91cd\u88c5\u6216\u8005\u8fc1\u79fb\u7684\u65f6\u5019\u4f1a\u65b9\u4fbf\u4e00\u70b9\n### \u5377\u7684\u540d\u5b57\u4e5f\u662f\u968f\u4fbf\u53d6\u7684\n### \u91cd\u88c5\u7684\u65f6\u5019\u4e0d\u5220\u5377\uff0c\u521b\u5efa\u65b0\u5bb9\u5668\u7684\u65f6\u5019\u4ecd\u7136\u6307\u5b9a\u8fd9\u4e2a\u5377\uff0c\u8fd9\u6837\u8001\u5bb9\u5668\u7559\u4e0b\u7684 \/home\/coder \u5c31\u6302\u8f7d\u5230\u65b0\u5bb9\u5668\u91cc\u4e86\n-v code-server:\/home\/coder \\\ncode-server\n<\/code><\/pre><\/div><\/div>\n\n<p>\u542f\u52a8\u5bb9\u5668\uff1a<\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">podman start code-server<\/code><\/p>\n\n<p>\u542f\u52a8\u4e4b\u540e\u522b\u6025\u7740\u8fde\uff0c\u5148\u6539\u4e0b <code class=\"language-plaintext highlighter-rouge\">\/home\/coder\/.config\/code-server\/config.yaml<\/code> \u91cc\u7684\u5bc6\u7801\u3002podman-exec \u8fdb\u5bb9\u5668\uff0c\u6216\u8005 podman-unshare \u518d podman-mount \u8fdb\u53bb\u6539\u90fd\u65e0\u6240\u8c13\u3002<\/p>\n\n<p>\u5bc6\u7801\u9ed8\u8ba4\u662f\u660e\u6587\u4fdd\u5b58\u7684\uff0c\u5982\u679c\u60f3\u4fdd\u5b58\u5bc6\u7801\u6563\u5217\uff0c<a href=\"https:\/\/coder.com\/docs\/code-server\/latest\/FAQ#can-i-store-my-password-hashed\">\u6587\u6863<\/a>\u91cc\u6709\u5199\u505a\u6cd5\u3002<\/p>\n\n<p>\u6539\u5b8c\u5bc6\u7801\uff0c\u91cd\u542f\u4e00\u4e0b\u5bb9\u5668\uff1a<\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">podman restart code-server<\/code><\/p>\n\n<p>\u4e4b\u540e\u7528\u6d4f\u89c8\u5668\u8fde\u4e0a\uff0c\u5f00\u7bb1\u5373\u7528\u3002<\/p>\n\n<h1 id=\"overleaf\">Overleaf<\/h1>\n\n<p>Overleaf\uff0c\u5728\u7ebf LaTeX \u7f16\u8f91\u5668\uff0c\u7f16\u8bd1\u7684\u65f6\u5019\u4f1a\u5728\u670d\u52a1\u5668\u7aef\u751f\u6210 PDF\uff08\u771f\u591f\u66b4\u529b\u7684\uff09\uff0c\u8ba9\u5ba2\u6237\u7aef\u6e32\u67d3\u3002\u603b\u4e4b\uff0c\u7f16\u8bd1\u8fd8\u662f\u5f97\u7b49\uff0c\u4e0d\u8fc7\u8d77\u7801\u4e0d\u4f1a\u628a\u7535\u8111\u7684\u6587\u4ef6\u7cfb\u7edf\u641e\u5f97\u5f88\u810f\u5f88\u810f\uff0c\u4e5f\u4e0d\u7528\u5728\u6bcf\u53f0\u7535\u8111\u4e0a\u90fd\u88c5\u4e24\u5343\u591a\u4e2a\u5305\u7684\u5168\u91cf texlive \u4e86\u3002\u7a33\u5b9a\u53d1\u884c\u7248\u4e0a\u88c5 texlive \u5c1a\u4e14\u5f88\u75db\u82e6\uff0c\u8981\u662f\u5728\u6eda\u52a8\u53d1\u884c\u7248\u4e0a\uff0c\u4e24\u661f\u671f\u8fd8\u5f97\u66f4\u65b0\u4e00\u6b21\u5c31\u66f4\u2026\u2026<\/p>\n\n<p>\u5176\u5b9e\u76f4\u63a5\u5728<a href=\"https:\/\/www.overleaf.com\/\">\u5b98\u7f51<\/a>\u6ce8\u518c\u4e2a\u514d\u8d39\u7528\u6237\u5c31\u5df2\u7ecf\u80fd\u7528\u4e0a\u4e86\uff0c\u4f46\u6211\u7528\u7684\u65f6\u5019\u5199\u4e24\u884c\u65ad\u4e09\u904d\u2026\u2026\u60f3\u5fc5\u662f\u53d7\u5230\u4e86\u5927\u578b\u6df7\u51dd\u571f\u590d\u5408\u7ed3\u6784\u7684\u5e72\u6270\u3002\u6211\u7684\u4ee3\u7406\u4e5f\u6ca1\u6709\u8db3\u591f\u7a33\u5b9a\uff0c\u800c\u4e14\u5b66\u6821\u7535\u8111\u4e0a\u4e5f\u4e0d\u597d\u76f4\u63a5\u6302\u4ee3\u7406\uff0c\u90a3\u5c31\u6254\u670d\u52a1\u5668\u4e0a\u5427\u3002<\/p>\n\n<p>Overleaf \u5f88\u91cd\uff0c\u5355\u7eaf\u542f\u52a8\u90fd\u8981\u7b49\u5f88\u4e45\uff0c\u5bf9 CPU \u548c IO \u7684\u8981\u6c42\u90fd\u5f88\u9ad8\uff0c\u5f00\u5de5\u4e4b\u524d\u6700\u597d\u8fd8\u662f\u5148\u7559\u81f3\u5c11 10 GiB \u7a7a\u95f2\u7a7a\u95f4\u3002<\/p>\n\n<p>Overleaf \u5b98\u65b9\u63d0\u4f9b\u6709\u4f7f\u7528 Docker \u90e8\u7f72\u7684<a href=\"https:\/\/github.com\/overleaf\/toolkit\/blob\/master\/doc\/quick-start-guide.md\">\u811a\u672c<\/a>\uff08\u4f46\u662f\u6211\u4eec\u663e\u7136\u7528\u4e0d\u4e86\uff09\uff0c\u548c docker-compose <a href=\"https:\/\/github.com\/overleaf\/overleaf\/wiki\/Quick-Start-Guide\">\u9884\u8bbe<\/a>\uff08\u4f46\u662f\u5728<strong>\u4e1a\u754c\u50bb\u53c9\u7ea2\u5e3d\u5b50<\/strong>\u7684\u52aa\u529b\u4e0b\uff0cpodman-compose \u73b0\u5728\u53ef\u4ee5\u8bf4\u662f\u975e\u5e38\u96be\u7528\uff09<\/p>\n\n<p>\u624b\u6284 <code class=\"language-plaintext highlighter-rouge\">docker-compose.yml<\/code>\uff0c\u624b\u52a8\u521b\u5efa\u5bb9\u5668\u3002<code class=\"language-plaintext highlighter-rouge\">docker-compose.yml<\/code> \u91cc\u9762\u5b9a\u4e49\u4e86\u4e09\u4e2a\u5bb9\u5668\uff0c<code class=\"language-plaintext highlighter-rouge\">sharelatex<\/code>\u3001<code class=\"language-plaintext highlighter-rouge\">redis<\/code> \u548c <code class=\"language-plaintext highlighter-rouge\">mongo<\/code><\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">sharelatex<\/code> \u57fa\u4e8eUbuntu 20.04 LTS\uff0c\u91cc\u9762\u8fd8\u6ca1\u9884\u88c5 XeTeX\u3002\u6211\u60f3\u7528 xeCJK \u5199\u4e2d\u6587\uff0c\u7ed9\u5b83\u5199\u4e2a Containerfile \u8865\u5168\u4f9d\u8d56\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>FROM sharelatex\/sharelatex\nRUN sed -i 's\/archive.ubuntu.com\/opentuna.cn\/g' \/etc\/apt\/sources.list &amp;&amp; \\\nsed -i 's\/security.ubuntu.com\/opentuna.cn\/g' \/etc\/apt\/sources.list &amp;&amp; \\\napt update &amp;&amp; DEBIAN_FRONTEND=\"noninteractive\" apt -o Acquire::Retries=50 install texlive-full -y\n<\/code><\/pre><\/div><\/div>\n\n<p>\u6784\u5efa\uff0c\u591a\u7b49\u4e00\u4f1a\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>podman build -t sharelatex .\n<\/code><\/pre><\/div><\/div>\n\n<p>Rootless Podman \u9ed8\u8ba4\u6bcf\u4e2a\u5bb9\u5668\u6709\u72ec\u7acb\u7684\u7f51\u7edc\u547d\u540d\u7a7a\u95f4\uff08namespace\uff09\uff0c\u4f46\u6ca1\u6709\u81ea\u5df1\u7684 IP\uff0c\u4e5f\u4e0d\u80fd\u76f4\u63a5\u76f8\u4e92\u901a\u4fe1\u3002Overleaf \u7684\u4e09\u4e2a\u5bb9\u5668\u9700\u8981\u76f8\u4e92\u901a\u4fe1\uff0c\u6b63\u5de7\u5bb9\u5668\u6240\u76d1\u542c\u7684\u7aef\u53e3\u4e92\u4e0d\u76f8\u540c\uff0c\u4e0d\u5982\u628a\u8fd9\u4e09\u4e2a\u5bb9\u5668\u653e\u5728\u540c\u4e00\u4e2a Pod \u91cc\uff0c\u5171\u4eab\u7f51\u7edc\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>podman pod create --name overleaf -p 9080:80\npodman create --name=mongo --pod overleaf -v mongo:\/data\/db mongo:4.4\npodman create --name=redis --pod overleaf -v redis:\/data redis:5\npodman create --name=sharelatex \\\n-e SHARELATEX_APP_NAME=\"Overleaf Community Edition\" \\\n-e SHARELATEX_MONGO_URL=\"mongodb:\/\/mongo\/sharelatex\" \\\n-e SHARELATEX_REDIS_HOST=\"redis\" -e REDIS_HOST=\"redis\" \\\n-e ENABLED_LINKED_FILE_TYPES=\"project_file,project_output_file\" \\\n-e ENABLE_CONVERSIONS=\"true\" -e EMAIL_CONFIRMATION_DISABLED=\"true\" \\\n-e TEXMFVAR=\"\/var\/lib\/sharelatex\/tmp\/texmf-var\" \\\n--pod overleaf -v sharelatex:\/var\/lib\/sharelatex sharelatex\n<\/code><\/pre><\/div><\/div>\n\n<p><code class=\"language-plaintext highlighter-rouge\">SHARELATEX_APP_NAME<\/code> \u53ef\u4ee5\u968f\u4fbf\u6539\uff0c\u653e UTF-8 \u4e5f\u6ca1\u95ee\u9898\u3002<\/p>\n\n<p>\u5bb9\u5668\u95f4\u4e92\u76f8\u901a\u4fe1\uff0c\u5e94\u8be5\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e <code class=\"language-plaintext highlighter-rouge\">podman-network<\/code> \u6765\u5b9e\u73b0\uff0c\u4e0d\u8fc7\u6211\u8fd8\u6ca1\u8bd5\u8fc7\u3002<\/p>\n\n<p>\u542f\u52a8\u5bb9\u5668\uff0c\u8bb0\u5f97\u7559\u591f\u7cfb\u7edf\u8d44\u6e90\uff0c\u5185\u5b58\u7559\u81f3\u5c11 1 GiB \u4e3a\u597d\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>podman pod start overleaf\n<\/code><\/pre><\/div><\/div>\n\n<p>\u7136\u540e\u5c31\u4f1a\u53d1\u73b0 openSUSE Leap 15.4 \u4e0a\u603b\u662f\u542f\u52a8\u5931\u8d25\uff0cFedora 37 \u4e0a\u5374\u6ca1\u95ee\u9898\u3002\u68c0\u67e5\u4e00\u4e0b\u662f <code class=\"language-plaintext highlighter-rouge\">\/etc\/my_init.d\/10_syslog-ng.init<\/code> \uff08\u600e\u4e48\u8fd8 <code class=\"language-plaintext highlighter-rouge\">my_init.d<\/code> \u4e86\uff09\u6267\u884c\u5931\u8d25\u4e86\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>     26 syslogng_wait() {\n     27     if [ \"$2\" -ne 0 ]; then\n     28         return 1\n     29     fi\n     30\n     31     RET=1\n     32     for i in $(seq 1 30); do\n     33         status=0\n     34         syslog-ng-ctl stats &gt;\/dev\/null 2&gt;&amp;1 || status=$?\n     35         if [ \"$status\" != \"$1\" ]; then\n     36             RET=0\n     37             break\n     38         fi\n     39         sleep 1s\n     40     done\n     41     return $RET\n<\/code><\/pre><\/div><\/div>\n\n<p>syslog-ng \u542f\u52a8\u4e0d\u8d77\u6765\uff0c<del>\u4e0d\u8fc7\u6211\u4e5f\u4e0d\u60f3\u4fee\u4e86\uff0c\u76f4\u63a5\u4fee\u6539\u811a\u672c\uff0c\u5728\u7b2c 41 \u884c\u8d85\u65f6\u4e5f\u6b63\u5e38\u8fd4\u56de\u5c31\u662f\u4e86\u2026\u2026<\/del>\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u7f3a\u4e2a\u65e5\u5fd7\u8bb0\u5f55\u7a0b\u5e8f\u5bf9 Overleaf \u7684\u57fa\u672c\u529f\u80fd\u5f71\u54cd\u4e0d\u5927\u3002<\/p>\n\n<p>\u542f\u52a8\u4e4b\u540e\u8fdb\u5230 <code class=\"language-plaintext highlighter-rouge\">&lt;\u4e3b\u673a&gt;:&lt;\u7aef\u53e3&gt;\/launchpad<\/code> \u9875\u9762\uff0c\u8bbe\u7f6e\u4e00\u4e0b\u7ba1\u7406\u5458\u7528\u6237\uff0c\u4e4b\u540e\u5c31\u80fd\u624b\u52a8\u6dfb\u52a0\u666e\u901a\u7528\u6237\u4e86\u3002<\/p>\n\n<p>Overleaf \u542f\u52a8\u6162\uff0c\u5173\u95ed\u4e5f\u6162\u3002\u505c\u6b62\u5bb9\u5668\u7684\u65f6\u5019\u6700\u597d\u7ed9\u7b49\u5f85\u65f6\u95f4\u8c03\u5f97<strong>\u8db3\u591f\u4e45<\/strong>\uff0c\u4e0d\u7136\u7a0b\u5e8f\u88ab SIGKILL \u4e86\u5c31\u4e0d\u597d\u4e86\u3002\u6211\u4e00\u822c\u90fd\u662f\u7b49\u5f85\u4e00\u5c0f\u65f6\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>podman pod stop -t 3600 overleaf\n<\/code><\/pre><\/div><\/div>\n\n<p>\u90e8\u7f72\u5b8c Overleaf\uff0c\u611f\u89c9\u2026\u2026\u8fd9\u73a9\u610f\u5199\u5f97\u592a\u4e71\u4e86\uff0c\u63a5\u4e0b\u6765\u53ea\u8981\u4e0d\u51fa\u95ee\u9898\uff0c\u6211\u80af\u5b9a\u4e0d\u613f\u610f\u518d\u78b0\u5b83\u3002<\/p>\n\n<h1 id=\"\u6742\u9879\">\u6742\u9879<\/h1>\n\n<p>Mumble \u548c kiwix-serve \u5bf9 Podman \u7684\u517c\u5bb9\u6027\u90fd\u8fd8\u4e0d\u9519\uff0c\u57fa\u672c\u6ca1\u5751\uff0c\u6240\u4ee5\u4e0d\u5199\u4e86\u3002<\/p>\n\n<p>Nextcloud \u548c\u66f4\u590d\u6742\u7684\u4e1c\u897f\uff0c\u73b0\u5728\u6682\u65f6\u7528\u4e0d\u5230\uff0c\u6240\u4ee5\u9e3d\u6389\u4e86\u3002<\/p>\n\n<h1 id=\"\u603b\u7ed3\">\u603b\u7ed3<\/h1>\n\n<p>\u53d1\u73b0\u81ea\u5df1\u8fd8\u662f\u4e0d\u719f\u5f88\u591a\u5165\u95e8\u6280\u672f\uff0c\u5c31\u4e1a\u7126\u8651\u500d\u589e\u3002\u679c\u7136\u53ea\u8981\u4e0d\u662f\u5929\u9f99\u4eba\uff0c\u8f7b\u677e\u6109\u5feb\u7684\u751f\u6d3b\u5c31<strong>\u53ea\u662f\u4e00\u79cd\u5e7b\u60f3\uff0c\u5b9e\u9645\u4e0a\u6839\u672c\u4e0d\u5b58\u5728\u3002<\/strong><\/p>\n\n<p>\u53e6\u5916\uff0c<strong>\u7ea2\u5e3d\u5b50<\/strong>\u786e\u5b9e\u662f<strong>\u4e1a\u754c\u50bb\u53c9<\/strong>\u3002<\/p>\n\n<h1 id=\"\u9898\u5916\u8bdd\">\u9898\u5916\u8bdd<\/h1>\n\n<p>\u53d1\u73b0\u8eab\u8fb9\u7684\u4eba\u751a\u5c11\u4f7f\u7528 SSH \u8f6c\u53d1\u2026\u2026\u4e5f\u8bb8\u90fd\u53bb\u7528 VPN \u4e86\uff0c\u6bd5\u7adf SSH \u96a7\u9053\u65e0\u8bba\u4ece\u6027\u80fd\u8fd8\u662f\u529f\u80fd\u4e0a\u90fd\u662f\u6bd4\u4e0d\u4e0a\u6b63\u7ecf VPN \u7684\u3002<\/p>\n\n<p>\u4f46\u662f\u6211\u5bf9\u7f51\u7edc\u4e00\u7a8d\u4e0d\u901a\u2026\u2026\u800c\u4e14\u73b0\u5728\u591a\u6570 Windows \u673a\u5668\u9884\u88c5\u6709 OpenSSH\uff0c\u4e34\u65f6\u4f7f\u7528 SSH \u8f6c\u53d1\u4e5f\u8db3\u591f\u65b9\u4fbf\uff0c\u540c\u65f6\u5bf9\u6027\u80fd\u548c UDP \u7b49\u7684\u8981\u6c42\u4e0d\u9ad8\uff0c\u5c31\u6682\u4e14\u5f00\u7740 SSH \u96a7\u9053\u4e86\u3002<\/p>\n\n<p>\u6bcf\u6b21\u90fd\u8ba9\u8fde\u670d\u52a1\u5668\u7684\u4eba\u53bb\u67e5\u6587\u6863\u4e5f\u592a\u8d39\u65f6\u95f4\u4e86\u2026\u2026<\/p>\n\n<h3 id=\"\u76f4\u63a5\u4f7f\u7528-openssh-\u5185\u5efa\u8f6c\u53d1\u529f\u80fd\">\u76f4\u63a5\u4f7f\u7528 OpenSSH \u5185\u5efa\u8f6c\u53d1\u529f\u80fd<\/h3>\n\n<h4 id=\"\u8bbe\u7f6e\u4e13\u7528\u4e8e-tcp-\u8f6c\u53d1\u7684\u7528\u6237\">\u8bbe\u7f6e\u4e13\u7528\u4e8e TCP \u8f6c\u53d1\u7684\u7528\u6237<\/h4>\n\n<p>\u6253\u5f00 <code class=\"language-plaintext highlighter-rouge\">sshd_config<\/code>\uff1a<\/p>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>### \u5982\u679c\u7528\u6237\u540d\u4e3a tcpguest \uff0c\u5219\u5e94\u7528\u4e0b\u5217\u89c4\u5219\u3002\u540d\u5b57\u662f\u968f\u4fbf\u5199\u7684\nMatch User tcpguest\n        ### \u7981\u7528 ssh-agent \u8f6c\u53d1\n        AllowAgentForwarding no\n        ### \u7981\u7528\u5957\u63a5\u5b57\uff08socket\uff09\u8f6c\u53d1\n        AllowStreamLocalForwarding no\n        ### \u5bf9\u4e8e\u8fdc\u7a0b TCP \u8f6c\u53d1\uff08\u670d\u52a1\u5668\u7aef\u76d1\u542c\u7aef\u53e3\uff0c\u5c06\u4f20\u5165\u6d41\u91cf\u8f6c\u53d1\u5230\u5ba2\u6237\u7aef\u67d0\u4e00\u7aef\u53e3\uff09\uff0c\u8981\u6c42\u670d\u52a1\u5668\u53ea\u76d1\u542c\u672c\u5730\u53d1\u8d77\u7684\u8fde\u63a5\n        GatewayPorts no\n        ### \u7981\u7528\u8fdc\u7a0b TCP \u8f6c\u53d1\uff0c\u53ea\u5141\u8bb8\u672c\u5730 TCP \u8f6c\u53d1\u3002\u5176\u5b9e\u5199\u4e86\u8fd9\u53e5\u4e4b\u540e\uff0c\u4e0a\u4e00\u53e5\u7684\u503c\u4e5f\u6ca1\u5565\u610f\u4e49\u4e86\u2026\u2026\n        AllowTcpForwarding local\n        ### \u7981\u7528 X11\uff08\u67d0\u4e2a\u7528\u6237\u8d8a\u6765\u8d8a\u5c11\u4e86\u7684\u56fe\u5f62\u534f\u8bae\uff09\u8f6c\u53d1\u3002\u5176\u5b9e\u4e0b\u9762\u5199\u4e86 ForceCommand \u4e4b\u540e\uff0c\u8fd9\u53e5\u4e0d\u5199\u4e5f\u6ca1\u5565\u95ee\u9898\n        X11Forwarding no\n        ### \u5bf9\u4e8e\u672c\u5730 TCP \u8f6c\u53d1\uff0c\u5141\u8bb8\u5ba2\u6237\u7aef\u53d1\u8d77\u8fde\u63a5\u7684\u7aef\u53e3\u3002\u7a7a\u683c\u5206\u9694\n        PermitOpen 127.0.0.1:25565 127.0.0.1:8080 127.0.0.1:64738\n        ### \u8bbe\u7f6e\u6a2a\u5e45\uff0c\u7eaf\u6587\u672c\u6587\u4ef6\uff0c\u4f1a\u5728\u8f93\u5165\u5bc6\u7801\u4e4b\u524d\u663e\u793a\u3002\u7528\u6765\u6574\u6d3b\u5f88\u65b9\u4fbf\n        Banner \/home\/tcpguest\/.ssh\/banner\n        ### \u5f3a\u5236\u6267\u884c\u67d0\u4e00\u547d\u4ee4\uff0c\u8fd9\u6837 sftp \u4e4b\u7c7b\u7684\u4e5f\u5c31\u7528\u4e0d\u4e86\u4e86\u3002\u5f53\u7136\u5982\u679c\u5ba2\u6237\u7aef\u5236\u5b9a\u4e86 -N\uff0c\u8fd9\u547d\u4ee4\u4e5f\u4e0d\u4f1a\u6267\u884c\n        ForceCommand neofetch\n<\/code><\/pre><\/div><\/div>\n\n<h4 id=\"\u5ba2\u6237\u7aef\u8fde\u63a5\u53c2\u6570\">\u5ba2\u6237\u7aef\u8fde\u63a5\u53c2\u6570<\/h4>\n\n<div class=\"language-plaintext highlighter-rouge\"><div class=\"highlight\"><pre class=\"highlight\"><code>ssh &lt;\u7528\u6237\u540d&gt;@&lt;\u4e3b\u673a\u540d&gt; -p &lt;\u7aef\u53e3\u53f7&gt; -v -N -T -L 1234:127.0.0.1:4321\n<\/code><\/pre><\/div><\/div>\n\n<p><code class=\"language-plaintext highlighter-rouge\">-v<\/code>\uff1a\u5f00\u542f\u8be6\u5c3d\u6a21\u5f0f\uff0c\u8fd9\u6837\u624d\u80fd\u4e00\u773c\u770b\u51fa\u8fde\u4e0d\u901a\u65f6\u662f\u54ea\u51fa\u4e86\u95ee\u9898\u3002<\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">-N<\/code>\uff1a\u4e0d\u6267\u884c\u547d\u4ee4\uff0c\u5355\u7eaf\u8f6c\u53d1\u5e76\u4e0d\u9700\u8981\u6267\u884c\u989d\u5916\u7684\u547d\u4ee4\uff08\u800c\u4e14\u5728\u6709\u670d\u52a1\u5668\u8bbe\u7f6e\u7684 <code class=\"language-plaintext highlighter-rouge\">ForceCommand<\/code> \u7684\u524d\u63d0\u4e0b\uff0c\u547d\u4ee4\u6267\u884c\u5b8c\u4e5f\u4f1a\u81ea\u52a8\u628a\u8fde\u63a5\u65ad\u5f00\uff09\u3002<\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">-T<\/code>\uff1a\u4e0d\u5206\u914d\u7ec8\u7aef\u3002<\/p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">-L<\/code>\uff1a\u672c\u5730\u8f6c\u53d1\uff0c\u5ba2\u6237\u7aef\u76d1\u542c <code class=\"language-plaintext highlighter-rouge\">1234<\/code>\uff0c\u4f20\u5165\u7684\u6d41\u91cf\u8f6c\u53d1\u5230\u670d\u52a1\u5668\u7aef <code class=\"language-plaintext highlighter-rouge\">127.0.0.1<\/code>\uff08\u4e5f\u5c31\u662f\u670d\u52a1\u5668\u81ea\u5df1\uff09\u7684 <code class=\"language-plaintext highlighter-rouge\">4321<\/code> \u7aef\u53e3\u4e0a\u3002\u4e5f\u53ef\u4ee5\u5728 <code class=\"language-plaintext highlighter-rouge\">-L<\/code> \u548c\u4e0a\u9762\u7684\u53c2\u6570\u4e4b\u95f4\u6307\u5b9a\u4e2a\u76d1\u542c IP\uff0c\u8868\u793a\u53ea\u6709\u6307\u5b9a IP \u80fd\u53d1\u8d77\u8fde\u63a5\uff0c\u6bd4\u5982\u5199\u6210 <code class=\"language-plaintext highlighter-rouge\">127.0.0.1:1234:127.0.0.1:4321<\/code> \u5c31\u4f1a\u7981\u6b62\u5176\u4ed6\u673a\u5668\u8fde\u63a5\u5ba2\u6237\u7aef\u4e0a\u7684 <code class=\"language-plaintext highlighter-rouge\">1234<\/code> \u7aef\u53e3\u3002<\/p>\n\n<h4 id=\"\u67e5\u770b\u670d\u52a1\u5668\u7684-ssh-\u6307\u7eb9\">\u67e5\u770b\u670d\u52a1\u5668\u7684 SSH \u6307\u7eb9<\/h4>\n\n<p>\u5176\u5b9e\u6211\u4e5f\u6ca1\u770b\u5230\u4ec0\u4e48\u4f18\u96c5\u7684\u65b9\u6cd5\uff0c\u6240\u4ee5\u5c31\u5728\u670d\u52a1\u5668\u7aef <code class=\"language-plaintext highlighter-rouge\">ssh-keyscan 127.0.0.1|ssh-keygen -lf -<\/code> \u4e86\u3002<\/p>\n\n<h3 id=\"sshuttle\">sshuttle<\/h3>\n\n<p>\u5982\u679c\u6709\u4e00\u5806\u7aef\u53e3\u8981\u8f6c\u53d1\uff0c\u6216\u8005\u60f3\u8981\u66f4\u597d\u7684\u6027\u80fd\uff0c\u7528 <a href=\"https:\/\/github.com\/sshuttle\/sshuttle\">sshuttle<\/a> \u5c31\u662f\u4e86\u3002\u9700\u8981\u6ce8\u610f\uff0c\u7528 sshuttle \u5c31\u4e0d\u80fd\u901a\u8fc7\u8bbe\u7f6e <code class=\"language-plaintext highlighter-rouge\">ForceCommand<\/code> \u9650\u5236 shell \u529f\u80fd\u4e86\uff0csshuttle \u662f\u8981\u6267\u884c\u547d\u4ee4\u7684\u3002\u5f53\u7136\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c<code class=\"language-plaintext highlighter-rouge\">PermitOpen<\/code> \u4e5f\u4e0d\u4f1a\u751f\u6548\uff08\u56e0\u4e3a sshuttle \u5e76\u6ca1\u7528\u5230 SSH \u672c\u8eab\u63d0\u4f9b\u7684 TCP \u96a7\u9053\u529f\u80fd\uff0c\u5f53\u7136\u4e0d\u4f1a\u88ab\u5b83\u7684\u8bbe\u7f6e\u9650\u5236\uff09\u3002<\/p>\n\n<h3 id=\"\u5173\u4e8e-ssh-\u96a7\u9053\">\u5173\u4e8e SSH \u96a7\u9053<\/h3>\n\n<p>\u4e3a\u4ec0\u4e48\u4e0d\u641e TLS\uff1f\u53ef\u4ee5\uff0c\u4f46\u8fd9\u6837\u5982\u679c\u81ea\u5df1\u7ed9\u8bc1\u4e66\u7b7e\u540d\uff0c\u5c31\u9700\u8981\u522b\u4eba\u5bfc\u5165\u8bc1\u4e66\uff08\u8fd9\u53ef\u6bd4\u68c0\u67e5\u670d\u52a1\u5668\u7684 SSH \u6307\u7eb9\u8981\u9ebb\u70e6\uff09\uff1b\u7533\u8bf7\u8bc1\u4e66\u7684\u8bdd\u8fd8\u8981\u8003\u8651\u5305\u62ec\u6709\u6548\u671f\u5728\u5185\u7684\u5404\u79cd\u9ebb\u70e6\u4e8b\uff0c\u6211\u4f5c\u4e1a\u8fd8\u6ca1\u5199\u5b8c\u5462\u3002<\/p>\n\n<p>TLS \u5f88\u597d\uff0c\u4f46\u6211\u670d\u52a1\u5668\u4e0a\u90a3\u5806<strong>\u73a9\u5177<\/strong>\u7684\u4f7f\u7528\u89c4\u6a21\uff0c\u8fd8\u6ca1\u6709\u5927\u5230\u80fd\u548c\u7528 TLS \u7684\u6210\u672c\u76f8\u62b5\u3002\u5bf9\u4e8e\u4e2a\u4eba\u548c\u5c0f\u7ec4\u7ec7\u5185\u90e8\u7684\u4f7f\u7528\uff0cSSH \u5df2\u7ecf\u6bd4\u8f83\u7b80\u5355\u4e86\u3002<\/p>\n","pubDate":"Tue, 18 Apr 2023 00:00:00 +0000","link":"https:\/\/ratizux.github.io\/2023\/04\/18\/1.html","guid":"https:\/\/ratizux.github.io\/2023\/04\/18\/1.html"}]}}