{"id":765,"date":"2024-10-12T08:00:15","date_gmt":"2024-10-12T00:00:15","guid":{"rendered":"https:\/\/www.zhoubin.asia\/?p=765"},"modified":"2024-10-11T17:49:07","modified_gmt":"2024-10-11T09:49:07","slug":"solidrun-hailo10-som","status":"publish","type":"post","link":"https:\/\/www.zhoubin.asia\/index.php\/2024\/10\/12\/solidrun-hailo10-som\/","title":{"rendered":"SolidRun Hailo15 SOM \u8bbe\u5907\u6062\u590d\u6307\u5357"},"content":{"rendered":"<h2>\u5237\u673a\u6240\u9700\u6587\u4ef6\u53ca\u4f4d\u7f6e<\/h2>\n<p>\u6839\u636e<a href=\"https:\/\/solidrun.atlassian.net\/wiki\/spaces\/developer\/pages\/722042882\/HummingBoard+Hailo+15+SOM+Quick+Start+Guide\">Solidrun wiki<\/a>\u4ecb\u7ecd\uff0c\u6062\u590dH15 SOM\u65f6\uff0c\u9700\u8981\u5c06\u6587\u4ef6\u5206\u522b\u5237\u5165QSPI Flash\u548ceMMC\u4e2d\u3002\u4ee5\u4e0b\u662f\u5404\u4e2a\u6587\u4ef6\u7684\u4f5c\u7528\u53ca\u5b58\u50a8\u4f4d\u7f6e\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6587\u4ef6\u540d\u79f0<\/th>\n<th>\u4f5c\u7528<\/th>\n<th>\u76ee\u6807\u5b58\u50a8\u4f4d\u7f6e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>hailo15_scu_bl.bin<\/td>\n<td>SCU Bootloader<\/td>\n<td>QSPI Flash<\/td>\n<\/tr>\n<tr>\n<td>hailo15_scu_fw.bin<\/td>\n<td>SCU Firmware<\/td>\n<td>QSPI Flash<\/td>\n<\/tr>\n<tr>\n<td>scu_bl_cfg_a.bin, scu_bl_cfg_b.bin<\/td>\n<td>SCU\u914d\u7f6e\u6587\u4ef6<\/td>\n<td>QSPI Flash<\/td>\n<\/tr>\n<tr>\n<td>customer_certificate.bin<\/td>\n<td>\u5ba2\u6237\u5bc6\u94a5\u8bc1\u4e66<\/td>\n<td>QSPI Flash<\/td>\n<\/tr>\n<tr>\n<td>u-boot.dtb.signed<\/td>\n<td>U-Boot\u8bbe\u5907\u6811<\/td>\n<td>QSPI Flash<\/td>\n<\/tr>\n<tr>\n<td>u-boot-initial-env<\/td>\n<td>U-Boot\u73af\u5883\u53d8\u91cf<\/td>\n<td>QSPI Flash<\/td>\n<\/tr>\n<tr>\n<td>u-boot-spl.bin<\/td>\n<td>U-Boot SPL<\/td>\n<td>QSPI Flash<\/td>\n<\/tr>\n<tr>\n<td>u-boot-tfa.itb<\/td>\n<td>TF-A \u548c U-Boot<\/td>\n<td>eMMC Boot\u5206\u533a<\/td>\n<\/tr>\n<tr>\n<td>fitImage<\/td>\n<td>Linux\u5185\u6838\u53ca\u8bbe\u5907\u6811<\/td>\n<td>eMMC Boot\u5206\u533a<\/td>\n<\/tr>\n<tr>\n<td>core-image-minimal-hailo15-solidrun.ext4<\/td>\n<td>\u6839\u6587\u4ef6\u7cfb\u7edf<\/td>\n<td>eMMC Root\u5206\u533a<\/td>\n<\/tr>\n<tr>\n<td>core-image-minimal-hailo15-solidrun.wic<\/td>\n<td>\u5b8c\u6574eMMC\u6620\u50cf\uff0c\u5305\u542b\u4e24\u4e2a\u5206\u533a<\/td>\n<td>eMMC<\/td>\n<\/tr>\n<tr>\n<td>hailo15_uart_recovery_fw.bin<\/td>\n<td>QSPI\u6062\u590d\u56fa\u4ef6<\/td>\n<td>QSPI Flash<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u5237\u5199\u6307\u4ee4<\/h2>\n<p>\u8fd9\u4e9b\u6587\u4ef6\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6307\u4ee4\u5237\u5165(\u5177\u4f53\u5237flash\u65b9\u5f0f\u8bf7\u67e5\u770bwiki)\uff1a<\/p>\n<pre><code>uart_boot_fw_loader --serial-device-name \/dev\/ttyUSB0 --firmware hailo15_uart_recovery_fw.bin\r\nhailo15_spi_flash_program --serial-device-name \/dev\/ttyUSB0 --uart-load --scu-bootloader .\/hailo15_scu_bl.bin --scu-bootloader-config scu_bl_cfg_a.bin --scu-firmware .\/hailo15_scu_fw.bin --uboot-device-tree .\/u-boot.dtb.signed --bootloader .\/u-boot-spl.bin --bootloader-env .\/u-boot-initial-env --customer-certificate .\/customer_certificate.bin\r\n<\/code><\/pre>\n<h2>NFS\u670d\u52a1\u5668\u7684\u914d\u7f6e<\/h2>\n<ol>\n<li><strong>\u5b89\u88c5NFS\u670d\u52a1\u5668<\/strong>\n<pre><code>sudo apt-get install nfs-kernel-server<\/code><\/pre>\n<\/li>\n<li><strong>\u521b\u5efaNFS\u5bfc\u51fa\u76ee\u5f55<\/strong>\n<pre><code>sudo mkdir -p \/mnt\/hailo15_nfs<\/code><\/pre>\n<\/li>\n<li><strong>\u6302\u8f7dNFS\u6620\u50cf<\/strong>\n<pre><code>sudo losetup -fP core-image-minimal-hailo15-solidrun.wic\r\nsudo mount \/dev\/loop30p2 \/mnt\/hailo15_nfs<\/code><\/pre>\n<\/li>\n<li><strong>\u914d\u7f6eNFS\u5bfc\u51fa<\/strong>\n<pre><code>\/mnt\/hailo15_nfs  *(rw,sync,no_subtree_check)<\/code><\/pre>\n<\/li>\n<li><strong>\u91cd\u542fNFS\u670d\u52a1\u5668<\/strong>\n<pre><code>sudo exportfs -a\r\nsudo systemctl restart nfs-kernel-server<\/code><\/pre>\n<\/li>\n<\/ol>\n<h2>TFTP\u670d\u52a1\u5668\u7684\u914d\u7f6e<\/h2>\n<ol>\n<li><strong>\u5b89\u88c5TFTP\u670d\u52a1\u5668<\/strong>\n<pre><code>sudo apt update\r\nsudo apt install tftpd-hpa<\/code><\/pre>\n<\/li>\n<li><strong>\u914d\u7f6eTFTP\u670d\u52a1\u5668<\/strong>\n<pre><code>TFTP_USERNAME=\"tftp\"\r\nTFTP_DIRECTORY=\"\/var\/tftpboot\"\r\nTFTP_ADDRESS=\":69\"\r\nTFTP_OPTIONS=\"--secure\"<\/code><\/pre>\n<\/li>\n<li><strong>\u521b\u5efaTFTP\u6839\u76ee\u5f55\u5e76\u8bbe\u7f6e\u6743\u9650<\/strong>\n<pre><code>sudo mkdir \/var\/tftpboot\r\nsudo chown tftp:tftp \/var\/tftpboot\r\nsudo chmod -R 775 \/var\/tftpboot<\/code><\/pre>\n<\/li>\n<li><strong>\u91cd\u542fTFTP\u670d\u52a1<\/strong>\n<pre><code>sudo systemctl restart tftpd-hpa<\/code><\/pre>\n<\/li>\n<li><strong>\u68c0\u67e5TFTP\u670d\u52a1\u72b6\u6001<\/strong>\n<pre><code>sudo systemctl status tftpd-hpa<\/code><\/pre>\n<\/li>\n<\/ol>\n<h2>eMMC\u5206\u533a\u53ca\u7cfb\u7edf\u5b89\u88c5<\/h2>\n<ol>\n<li><strong>\u5206\u533aeMMC<\/strong>\n<pre><code>sudo fdisk \/dev\/mmcblk1<\/code><\/pre>\n<p>\u521b\u5efa\u4e24\u4e2a\u5206\u533a\uff1a<\/p>\n<pre><code>Command (m for help): n\r\nPartition type: p\r\nPartition number: 1\r\nFirst sector: \u9ed8\u8ba4\r\nLast sector: +64M\r\nCommand (m for help): t\r\nHex code: b\r\nCommand (m for help): n\r\nPartition number: 2\r\nFirst sector: \u9ed8\u8ba4\r\nLast sector: \u9ed8\u8ba4\r\nCommand (m for help): w<\/code><\/pre>\n<\/li>\n<li><strong>\u683c\u5f0f\u5316\u5206\u533a<\/strong>\n<pre><code>sudo mkfs.vfat -n boot \/dev\/mmcblk1p1\r\nsudo mkfs.ext4 -L root \/dev\/mmcblk1p2<\/code><\/pre>\n<\/li>\n<li><strong>\u6302\u8f7d\u5e76\u590d\u5236\u6587\u4ef6<\/strong>\n<pre><code>sudo mount \/dev\/mmcblk1p1 \/mnt\/boot\r\nsudo cp u-boot-tfa.itb \/mnt\/boot\r\nsudo cp fitImage \/mnt\/boot\r\nsudo umount \/mnt\/boot\r\n\r\nsudo mount \/dev\/mmcblk1p2 \/mnt\/root\r\nsudo cp -r \/mnt\/hailo15_nfs\/* \/mnt\/root\r\nsudo umount \/mnt\/root<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<ul>\n<li><strong>\u9996\u5148\u9700\u8981\u5229\u7528 tftp\u670d\u52a1\u5668\u4ee5\u53caNFS\u670d\u52a1\u5668\u5c06\u8bbe\u5907\u6b63\u5e38\u542f\u52a8\u8d77\u6765<\/strong><\/li>\n<li><strong>\u56e0\u4e3auboot\u73af\u5883\u4e2d\u83b7\u53d6\u7f51\u7edc\u6587\u4ef6\u7684\u65b9\u5f0f\u662fwget, \u8bf7\u4fdd\u8bc1tftp\u7aef\u53e3\u5f00\u542f\uff1as<\/strong>udo python3 -m http.server 80<\/li>\n<li><strong>uboot\u73af\u5883\u53d8\u91cf\u8bf7\u53ca\u65f6\u8fdb\u884c\u4fdd\u5b58\u597d\uff0c\u5b9e\u9645\u4e0a\u4e5f\u5927\u90e8\u5206\u6765\u81ea\u6587\u4ef6u-boot-initial-env<\/strong><\/li>\n<li><strong>eMMC\u5206\u533a\u7684\u5177\u4f53\u65b9\u5f0f\u5176\u5b9e\u53c2\u8003\u8fd9\u4e2aH15\u7684wic\u6587\u4ef6\uff0c\u6216\u8005\u5982\u679c\u4f60\u6709\u7f16\u8bd1\u8fd9\u4e2ayocto\u7684\u8bdd\u53ef\u4ee5\u53c2\u8003*.wks\u6587\u4ef6<\/strong><\/li>\n<\/ul>\n<footer>\u00a9 2024 SolidRun Hailo15 SOM \u8bbe\u5907\u6062\u590d\u6307\u5357<\/footer>\n","protected":false},"excerpt":{"rendered":"<p>\u5237\u673a\u6240\u9700\u6587\u4ef6\u53ca\u4f4d\u7f6e \u6839\u636eSolidrun wiki\u4ecb\u7ecd\uff0c\u6062\u590dH15 SOM\u65f6\uff0c\u9700\u8981\u5c06\u6587\u4ef6\u5206\u522b\u5237\u5165QSPI Fl [&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-765","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/765","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=765"}],"version-history":[{"count":1,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/765\/revisions"}],"predecessor-version":[{"id":766,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/765\/revisions\/766"}],"wp:attachment":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/media?parent=765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/categories?post=765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/tags?post=765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}