{"id":197,"date":"2025-01-03T00:42:41","date_gmt":"2025-01-02T15:42:41","guid":{"rendered":"https:\/\/tech.wen.tokyo\/?p=197"},"modified":"2025-01-03T00:42:41","modified_gmt":"2025-01-02T15:42:41","slug":"starfive-visionfive-2-1-2a-%e5%ae%89%e8%a3%85ubuntu","status":"publish","type":"post","link":"https:\/\/tech.wen.tokyo\/?p=197","title":{"rendered":"StarFive VisionFive 2 1.2A \u5b89\u88c5ubuntu"},"content":{"rendered":"\n<p>\u4eca\u5929\u5728starfive\u7684\u516c\u4f17\u53f7\u4e0a\u770b\u5230riscv\u6709\u65b0\u677f\u5b50\uff0c\u6309\u8010\u4e0d\u4f4f\u597d\u5947\u7684\u5fc3\uff0c\u53bb\u6dd8\u5b9d\u770b\u770b\u4ef7\u683c\u3002\u5374\u5076\u7136\u53d1\u73b0ubuntu\u5bf9\u6211\u73b0\u5728\u7684StarFive VisionFive2\u662f\u652f\u6301\u7684\uff0c\u4e8e\u662f\u53c8\u5f00\u59cb\u4e86\u6298\u817e\u4e4b\u8def\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u8bf4\u8981\u70b9\uff0cubuntu\u5bf9\u4e8eVisionFive2\u7684\u652f\u6301\u6709\u4e13\u95e8\u7684\u7f51\u9875\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/wiki.ubuntu.com\/RISC-V\/StarFive%20VisionFive%202\">https:\/\/wiki.ubuntu.com\/RISC-V\/StarFive%20VisionFive%202<\/a><\/p>\n\n\n\n<p>\u4e0a\u9762\u5927\u4f53\u4ecb\u7ecd\u4e86\u5982\u4f55\u5b89\u88c5ubuntu\u3002\u901a\u8bfb\u591a\u4fbf\uff0c\u603b\u8ba1\u5982\u4e0b\u3002\u8fd9\u91cc\u4ee51.2A\u7684\u677f\u5b50\u6765\u8bf4\uff0c\u56e0\u4e3a\u6211\u81ea\u5df1\u7684\u677f\u5b50\u5c31\u662f1.2A\u7684\u3002<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u7531\u4e8e\u5b98\u65b9\u7684SPI\u542f\u52a8\u7a0b\u5e8f\u4e0d\u652f\u6301ubuntu\uff0c\u6240\u4ee5\u8981\u81ea\u5df1\u5237SPI\u76f8\u5173\u7684\u542f\u52a8\u7a0b\u5e8f\uff0c\u4e5f\u5c31\u662f\u6587\u4e2d\u7684\u5982\u4e0b\u4ee3\u7801<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sf probe\nload mmc 1:1 $kernel_addr_r \/usr\/lib\/u-boot\/starfive_visionfive2\/u-boot-spl.bin.normal.out\nsf update $kernel_addr_r 0 $filesize\nload mmc 1:1 $kernel_addr_r \/usr\/lib\/u-boot\/starfive_visionfive2\/u-boot.itb               \nsf update $kernel_addr_r 0x100000 $filesize<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u600e\u4e48\u5237\uff0c\u6587\u4e2d\u8bf4\u7684\u5f88\u7b80\u7565\u3002\u5176\u5b9e\u662f\u8981\u7528UART\u7684\uff0c\u6240\u4ee5\u8981\u6709\u76f8\u5173\u8bbe\u5907\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo picocom -b 115200 \/dev\/ttyUSB0<\/code><\/pre>\n\n\n\n<p>\u6211\u81ea\u5df1\u7528\u7684fedora40\uff0c\u88c5\u597dpicocom\u5c31\u53ef\u4ee5\u901a\u8fc7UART\u8fde\u63a5\u4e86\uff0c\u7136\u540e\u6267\u884c\u4e0a\u9762\u7684\u4ee3\u7801\uff0c\u5237\u56fa\u4ef6\u3002<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\u70b9\u51fb\u677f\u5b50\u4e0a\u7684\u5f00\u5173\u6309\u94ae\uff0c\u673a\u5668\u91cd\u542f\u5c31\u80fd\u591f\u8fdb\u5165ubuntu\u4e86\uff0c\u8981\u6ce8\u610f\u7f51\u53e3\u540d\u79f0\u662fend0\u548cend1\uff0c\u6211\u5728\u8fd9\u91cc\u4e86\u4e00\u4e9b\u65f6\u95f4\u3002\u8fd8\u6709\uff0c\u56e0\u4e3a\u677f\u5b50\u662f1.2A\u7684\uff0c\u6240\u4ee5\u4e0b\u9762\u7684\u4ee3\u7801\u5728\u542f\u52a8ubuntu\u540e\u4e5f\u8981\u6267\u884c\uff0c\u7528\u4ee5\u6267\u884c\u6b63\u786e\u7684\u8bbe\u5907\u6811\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 'StarFive VisionFive 2 v1.2A' | sudo tee \/etc\/flash-kernel\/machine\nsudo flash-kernel $(uname -r)\nsudo update-grub\nsudo reboot<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u5927\u4f53\u5c31\u80fd\u591f\u542f\u52a8ubuntu\u4e86\u3002\u5f53\u7136\u5177\u4f53\u95ee\u9898\u8fd8\u8981\u5177\u4f53\u5206\u6790\u3002<\/p>\n\n\n\n<p>HINT\uff1aCtrl+A\u7136\u540eCtrl+X\u53ef\u4ee5\u7ed3\u675fpicocom\u4f1a\u8bdd\u3002\u5f88\u65b9\u4fbf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5728starfive\u7684\u516c\u4f17\u53f7\u4e0a\u770b\u5230riscv\u6709\u65b0\u677f\u5b50\uff0c\u6309\u8010\u4e0d\u4f4f\u597d\u5947\u7684\u5fc3\uff0c\u53bb\u6dd8\u5b9d\u770b\u770b\u4ef7\u683c\u3002\u5374\u5076\u7136\u53d1\u73b0ubunt&hellip; <a href=\"https:\/\/tech.wen.tokyo\/?p=197\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">StarFive VisionFive 2 1.2A \u5b89\u88c5ubuntu<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-197","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=197"}],"version-history":[{"count":1,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/197\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/197\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.wen.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}