{"id":506,"date":"2024-01-14T08:19:16","date_gmt":"2024-01-14T08:19:16","guid":{"rendered":"https:\/\/www.zhoubin.asia\/?p=506"},"modified":"2024-01-26T10:39:39","modified_gmt":"2024-01-26T02:39:39","slug":"hailorthailo8-yocto-implement-hailort","status":"publish","type":"post","link":"https:\/\/www.zhoubin.asia\/index.php\/2024\/01\/14\/hailorthailo8-yocto-implement-hailort\/","title":{"rendered":"[HailoRT]Hailo8 Yocto implement hailort"},"content":{"rendered":"\n<p><strong>Here is a rough way to implement the Yocto for hailort.(using yocto kirkstone\/4.0 as example)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"1\">\n<li>Meta-Hailo sources can be cloned from GitHub using:<\/li>\n<\/ol>\n\n\n\n<p class=\"has-text-align-left\"><em><code>git clone https:\/\/github.com\/hailoai\/meta-hailo.git<\/code><\/em><\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>After cloning meta_hailo, checkout a specific branch, for example (for Kirkstone)<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p><em><code>cd meta-hailo<\/code><\/em><\/p>\n\n\n\n<p><em><code>git checkout kirkstone<\/code><\/em><\/p>\n<\/div>\n<\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>The Yocto directory of all supported Yocto releases includes the meta-hailo layers. Open the directory of your required Yocto release and copy the meta-hailo layer directory to your sources directory (same directory as poky, meta-openembedded etc.). Then add it to your conf\/bblayers.conf like so:<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-group is-vertical is-layout-flex wp-container-core-group-is-layout-fe9cc265 wp-block-group-is-layout-flex\">\n<p><em><code>BBLAYERS += \" \\<\/code><\/em><\/p>\n\n\n\n<p><em>\u00a0 <code>\/home\/alex\/Work\/imotion\/poky\/meta-hailo\/meta-hailo-accelerator \\<\/code><\/em><\/p>\n\n\n\n<p><code><em>\/home\/<\/em>alex\/Work\/imotion\/poky\/meta-hailo\/meta-hailo-libhailort \\<\/code><\/p>\n\n\n\n<p><code>\u00a0 \"<\/code><\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>Add the recipes to your image in conf\/local.conf:<\/li>\n<\/ol>\n\n\n\n<p><em><code>IMAGE_INSTALL:append = \" libhailort hailortcli hailo-pci hailo-firmware\"<\/code><\/em><\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; All above here is pretty the same as our Hailort document, please pay more attention on how to help china mainland customer to add hailort on yocto.(because the bad speed for yocto and GitHub on mainland china).<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"1\" style=\"list-style-type:lower-alpha\">\n<li>Because hailort contained a lot of external GitHub, some of them is from google. It always had similar error like this if we directly build the yocto from the document.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"205\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2024\/01\/image.png\" alt=\"\" class=\"wp-image-507\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\" style=\"list-style-type:lower-alpha\">\n<li>We first prepared one clean hailort GitHub which had all the external GitHub already downloaded and set the \u201chailort\/CMakeLists.txt\u201d parameter \u201cHAILO_OFFLINE_COMPILATION\u201d as \u201cON\u201d. Please check the GitHub:&nbsp;<a href=\"https:\/\/github.com\/alex2014git\/hailort.git\">https:\/\/github.com\/alex2014git\/hailort.git<\/a>&nbsp;&nbsp; (we may only keep the latest version.)<\/li>\n\n\n\n<li>Please update the meta-hailo after previous step 2.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"205\" src=\"https:\/\/www.zhoubin.asia\/wp-content\/uploads\/2024\/01\/image.png\" alt=\"\" class=\"wp-image-508\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Here is a rough way to implement the Yocto for hailort. [&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":[5,1],"tags":[],"class_list":["post-506","post","type-post","status-publish","format-standard","hentry","category-hailort","category-tech"],"_links":{"self":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/506","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=506"}],"version-history":[{"count":1,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/506\/revisions"}],"predecessor-version":[{"id":509,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/posts\/506\/revisions\/509"}],"wp:attachment":[{"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/media?parent=506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/categories?post=506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhoubin.asia\/index.php\/wp-json\/wp\/v2\/tags?post=506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}