Changes between Version 1 and Version 2 of hailoai
- Timestamp:
- 03/20/2024 10:48:45 PM (8 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
hailoai
v1 v2 16 16 1. Download Hailo AI Software for Gateworks SBC 17 17 1. Login to Hailo 'Developer Zone' and go to software downloads page: [https://hailo.ai/developer-zone/software-downloads/] 18 1. When selecting a product for downloads, select 'Accelerators' and Sub-package the 'HailoRT' radio button should be checked, Architecture radio button is ARM64 andOS is Linux. As shown in screenshot below:18 1. When selecting a product for downloads, select 'Accelerators' and Sub-package the 'HailoRT' radio button should be checked, OS is Linux. As shown in screenshot below: 19 19 1. [[Image(hailort.png)]] 20 1. Download the two following files: 20 1. Download the following files: 21 1. HailoRT – PCIe driver Ubuntu package (deb) * '''not specific to arm64''' 21 22 1. HailoRT – Ubuntu package (deb) for arm64 22 1. Hailo Integration Tool – Ubuntu package (deb) for arm64 23 1. Choose a way to transfer these two .deb files from the PC to the Gateworks SBC (use either wget from a http server, use SCP, or use a USB flash drive, etc). 24 25 26 27 23 1. Hailo Integration Tool – Ubuntu package (deb) for arm64 (not mandatory) 28 24 1. Boot the Gateworks SBC with access to the serial console over JTAG 29 25 1. Come a Ubuntu command prompt: … … 31 27 root@jammy-venice:~# 32 28 }}} 33 2. 29 1. Choose a way to transfer these .deb files from the PC to the Gateworks SBC (use either wget from a http server, use SCP, or use a USB flash drive, etc). 30 1. Install pre-requisites 31 {{{ 32 sudo apt update 33 sudo apt install build-essential 34 }}} 35 1. Install PCIe driver first 36 {{{ 37 root@jammy-venice:~# sudo dpkg -i hailort-pcie-driver_4.16.0_all.deb 38 (Reading database ... 34758 files and directories currently installed.) 39 Preparing to unpack hailort-pcie-driver_4.16.0_all.deb ... 40 Could not test for SecureBoot, assuming SecureBoot is disabled on this machine. 41 Unpacking hailort-pcie-driver (4.16.0) over (4.16.0) ... 42 Setting up hailort-pcie-driver (4.16.0) ... 34 43 44 WARNING: apt does not have a stable CLI interface. Use with caution in scripts. 35 45 36 == Usage 46 build-essential/jammy,now 12.9ubuntu3 arm64 [installed] 47 Do you wish to use DKMS? [Y/n]: n 48 Please reboot your computer for the installation to take effect. 49 root@jammy-venice:~# 37 50 38 Verify PCIe device is seen: 51 }}} 52 1. Install HailoRT tools second: 53 {{{ 54 root@jammy-venice:~# sudo dpkg -i hailort_4.16.0_arm64.deb 55 Selecting previously unselected package hailort. 56 (Reading database ... 28728 files and directories currently installed.) 57 Preparing to unpack hailort_4.16.0_arm64.deb ... 58 Unpacking hailort (4.16.0) ... 59 Setting up hailort (4.16.0) ... 60 Do you wish to activate hailort service? (required for most pyHailoRT use cases) [y/N]: 61 Stopping hailort.service 62 root@jammy-venice:~# 63 64 }}} 65 1. Reboot system 66 1. Use the lspci command to verify the Hailo card is seen on the PCIe bus: 67 {{{ 68 root@jammy-venice:~# lspci 69 00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01) 70 01:00.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch 71 02:01.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch 72 02:02.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch 73 02:03.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch 74 02:04.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch 75 42:00.0 Co-processor: Hailo Technologies Ltd. Hailo-8 AI Processor (rev 01) 76 c0:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8057 PCI-E Gigabit Ethernet Controller 77 root@jammy-venice:~# 78 }}} 79 1. 80 Verify Hailo PCIe device is seen with the hailo rt cli software tool: 39 81 {{{ 40 82 root@jammy-venice:~# hailortcli scan … … 44 86 }}} 45 87 88 == Usage 89 90 46 91 Run HEF File: 47 * Note HEF files can be downloaded here: https://github.com/hailo-ai/hailo_model_zoo/blob/master/docs/PUBLIC_MODELS.rst 92 * Note HEF files can be downloaded here: 93 * [https://github.com/hailo-ai/hailo_model_zoo/blob/master/docs/PUBLIC_MODELS.rst] 48 94 {{{ 49 95 root@jammy-venice:~# hailortcli run my.hef