{"id":804,"date":"2025-12-23T08:00:34","date_gmt":"2025-12-23T00:00:34","guid":{"rendered":"https:\/\/www.zhoubin.asia\/?p=804"},"modified":"2025-12-22T16:04:43","modified_gmt":"2025-12-22T08:04:43","slug":"h15-sbc-ddr-config","status":"publish","type":"post","link":"https:\/\/www.zhoubin.asia\/index.php\/2025\/12\/23\/h15-sbc-ddr-config\/","title":{"rendered":"H15 SBC DDR \u914d\u7f6e\u4e0e\u542f\u52a8\u673a\u5236\u89e3\u6790"},"content":{"rendered":"<p>\u4e4b\u524d\u6211\u5728\u4e00\u4e2a H15 \u7684 SBC \u5f00\u53d1\u677f\u4e0a\u9047\u5230\u4e00\u5757 8GB DDR\uff0c\u5728 <strong>SCU-BL<\/strong> \u9636\u6bb5\u51fa\u73b0\u4e86\u5982\u4e0b\u62a5\u9519\uff1a<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-805\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2025\/12\/DDR_error.png\" alt=\"\" width=\"502\" height=\"173\" \/><\/p>\n<p>\u6700\u540e\u7684\u89e3\u51b3\u529e\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre>\u5c4f\u853d\u6389 <a href=\"https:\/\/github.com\/hailo-ai\/hailo-u-boot.git\">u-boot<\/a> \u4ee3\u7801\u4e2d <code>arch\/arm\/dts\/hailo15-sbc.dts<\/code> \u4e2d\u7684\u8bbe\u7f6e\uff1a ddr_config { dram_auto_detect_en = &lt;1&gt;; }; \u540c\u65f6\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff0c\u5f15\u5165\u5bf9\u5e94\u6b63\u786e\u7684 8GB DDR \u914d\u7f6e\uff1a <code>hailo15_ddr_MT53E2G32D4DE-046_regconfig_8GB.dtsi<\/code> \u8fd9\u6837\u5c31\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\u5e76\u4f7f\u7528 8GB DDR\u3002<\/pre>\n<h2>H15 \u542f\u52a8\u673a\u5236\u7814\u7a76<\/h2>\n<p>\u7ecf\u8fc7\u8fd9\u4ef6\u4e8b\u60c5\uff0c\u6211\u7814\u7a76\u4e86 H15 \u7684\u542f\u52a8\u673a\u5236\u3002H15 \u7684\u542f\u52a8\u6d41\u7a0b\u5927\u81f4\u5982\u4e0b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u9636\u6bb5<\/th>\n<th>\u8fd0\u884c\u5904\u7406\u5668<\/th>\n<th>\u6838\u5fc3\u4efb\u52a1<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>BootROM<\/td>\n<td>SCU (M4)<\/td>\n<td>\u4ece Flash \u52a0\u8f7d SCU-BL\u3002<\/td>\n<\/tr>\n<tr>\n<td>SCU-BL<\/td>\n<td>SCU (M4)<\/td>\n<td>\u8bfb\u53d6\u914d\u7f6e\uff0c\u9009\u62e9\u5e76\u52a0\u8f7d SCU-FW\uff0c\u7ba1\u7406\u542f\u52a8\u91cd\u8bd5\u3002<\/td>\n<\/tr>\n<tr>\n<td>SCU-FW<\/td>\n<td>SCU (M4)<\/td>\n<td>DDR \u8bad\u7ec3\u4e0e\u521d\u59cb\u5316\uff1b\u7ba1\u7406\u7535\u6e90\/\u590d\u4f4d\uff1b\u52a0\u8f7d SPL \u5e76\u5524\u9192 AP\u3002<\/td>\n<\/tr>\n<tr>\n<td>U-Boot SPL<\/td>\n<td>AP (A53)<\/td>\n<td>\u4ece\u5b58\u50a8\u4ecb\u8d28\u52a0\u8f7d\u5b8c\u6574\u7684\u4e3b\u5f15\u5bfc\u955c\u50cf\u675f (<code>u-boot-tfa.itb<\/code>)\u3002<\/td>\n<\/tr>\n<tr>\n<td>TF-A<\/td>\n<td>AP (A53)<\/td>\n<td>\u5b89\u5168\u73af\u5883\u521d\u59cb\u5316\uff0c\u8df3\u8f6c\u81f3 EL1 \u73af\u5883\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u4e3b U-Boot<\/td>\n<td>AP (A53)<\/td>\n<td>\u8fd0\u884c\u5f15\u5bfc\u811a\u672c\uff0c\u52a0\u8f7d\u5e76\u542f\u52a8 Linux \u5185\u6838\u5305 (<code>fitImage<\/code>)\u3002<\/td>\n<\/tr>\n<tr>\n<td>Linux \u5185\u6838<\/td>\n<td>AP (A53)<\/td>\n<td>\u9a71\u52a8\u786c\u4ef6\uff0c\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\uff0c\u542f\u52a8\u7528\u6237\u7a7a\u95f4\u5e94\u7528\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u83b7\u53d6\u672a\u52a0\u5bc6\u7684 Device Tree \u6587\u4ef6<\/h2>\n<p>\u5728 SCU-BL \u9636\u6bb5\uff0cH15 \u4f1a\u8bfb\u53d6\u6211\u4eec\u70e7\u5199\u5230 Flash \u4e2d\u7684 Device Tree\uff1a<code>u-boot.dtb.signed<\/code>\u3002\u8be5\u6587\u4ef6\u662f\u52a0\u5bc6\u7684\uff0c\u5982\u679c\u60f3\u83b7\u53d6\u5bf9\u5e94\u7684\u672a\u52a0\u5bc6 Device Tree \u6587\u4ef6\uff0c\u53ef\u4ee5\u6309\u7167\u5982\u4e0b\u65b9\u6cd5\u64cd\u4f5c\uff1a<\/p>\n<pre>\u8fdb\u5165 Yocto \u7f16\u8bd1\u76ee\u5f55\uff1a\r\nbuild\/tmp\/work\/hailo15_sbc-poky-linux\/u-boot\/1_2022.01-r0\/u-boot-2022.01\r\n\r\n\u4f60\u53ef\u4ee5\u770b\u5230\u4ee5\u4e0b\u6587\u4ef6\uff1a\r\nu-boot.dtb, u-boot-dtb.bin, u-boot-dtb.img, u-boot.dtb.signed\r\n\r\n\u5176\u4e2d <code>u-boot.dtb<\/code> \u662f\u539f\u59cb Device Tree Blob\u3002 \u8fd0\u884c\u547d\u4ee4\uff1a file u-boot.dtb \u8f93\u51fa\u4f1a\u663e\u793a \"Device Tree Blob\"\uff0c\u5176\u4e2d Blob \u8868\u793a\u539f\u59cb\u6570\u636e\u3002<\/pre>\n<p>\u83b7\u53d6\u7eaf\u51c0\u7684 Device Tree \u6587\u4ef6\u793a\u4f8b\uff1a<\/p>\n<pre>hexdump -C u-boot.dtb | head\r\n# \u67e5\u770b offset \u8d77\u59cb\u4f4d\u7f6e\uff0cH15 \u7684\u8d77\u59cb\u4f4d\u7f6e\u4e3a 0x00, \u5982\u679c\u4e0d\u4e3a0x00\u53ef\u4ee5\u7528\u5982\u4e0b\u547d\u4ee4\u8fdb\u884c\u622a\u53d6\u5e76\u5229\u7528dtc\u53cd\u89e3\u6790\r\ndd if=u-boot.dtb of=extracted.dtb bs=1 skip=123456\r\ndtc -I dtb -O dts extracted.dtb &gt; extracted.dts\r\n<\/pre>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u83b7\u5f97\u53ef\u8bfb\u7684 <code>dts<\/code> \u6587\u4ef6\uff0c\u4ece\u4e2d\u53ef\u4ee5\u67e5\u770b\u975e\u5e38\u8be6\u7ec6\u7684 DDR \u914d\u7f6e\u3002<\/p>\n<p>\u540c\u7406\uff0c\u4e5f\u53ef\u4ee5\u5728 <code>build\/tmp\/work\/hailo15_sbc-poky-linux\/linux-yocto-hailo\/5.15.32-r0\/deploy-linux-yocto-hailo<\/code> \u83b7\u53d6\u5230 Kernel \u5bf9\u5e94\u7684 Device Tree\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u73b0\u4ee3 Camera SoC \u7684 BSP\uff08Board Support Package\uff09\u5b9a\u5236\u4e2d\uff0c<code>DTS<\/code> \u7684\u4fee\u6539\u548c\u7ba1\u7406\u786e\u5b9e\u662f\u6838\u5fc3\u5de5\u4f5c\u4e4b\u4e00\u3002\u80fd\u591f\u83b7\u5f97\u6700\u7ec8\u7248\u672c\u7684\u53ef\u8bfb DTS \u6587\u4ef6\uff0c\u53ef\u4ee5\u6781\u5927\u5730\u65b9\u4fbf\u786e\u8ba4 BSP \u5b9a\u5236\u662f\u5426\u6b63\u5e38\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u6211\u5728\u4e00\u4e2a H15 \u7684 SBC \u5f00\u53d1\u677f\u4e0a\u9047\u5230\u4e00\u5757 8GB DDR\uff0c\u5728 SCU-BL \u9636\u6bb5\u51fa\u73b0\u4e86\u5982\u4e0b\u62a5\u9519\uff1a \u6700 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-804","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/comments?post=804"}],"version-history":[{"count":1,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/804\/revisions"}],"predecessor-version":[{"id":806,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/804\/revisions\/806"}],"wp:attachment":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/media?parent=804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/categories?post=804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/tags?post=804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}