Changes between Version 1 and Version 2 of hailoai


Ignore:
Timestamp:
03/20/2024 10:48:45 PM (8 weeks ago)
Author:
Ryan Erbstoesser
Comment:

update more hailo stuff

Legend:

Unmodified
Added
Removed
Modified
  • hailoai

    v1 v2  
    16161. Download Hailo AI Software for Gateworks SBC
    17171. 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 and OS is Linux. As shown in screenshot below:
     181. 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:
    1919 1. [[Image(hailort.png)]]
    20 1. Download the two following files:
     201. Download the following files:
     21 1. HailoRT – PCIe driver Ubuntu package (deb) * '''not specific to arm64'''
    2122 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)
    28241. Boot the Gateworks SBC with access to the serial console over JTAG
    29251. Come a Ubuntu command prompt:
     
    3127root@jammy-venice:~#
    3228}}}
    33 2.
     291. 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).
     301. Install pre-requisites
     31{{{
     32sudo apt update
     33sudo apt install build-essential
     34}}}
     351. Install PCIe driver first
     36{{{
     37root@jammy-venice:~# sudo dpkg -i hailort-pcie-driver_4.16.0_all.deb
     38(Reading database ... 34758 files and directories currently installed.)
     39Preparing to unpack hailort-pcie-driver_4.16.0_all.deb ...
     40Could not test for SecureBoot, assuming SecureBoot is disabled on this machine.
     41Unpacking hailort-pcie-driver (4.16.0) over (4.16.0) ...
     42Setting up hailort-pcie-driver (4.16.0) ...
    3443
     44WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    3545
    36 == Usage
     46build-essential/jammy,now 12.9ubuntu3 arm64 [installed]
     47Do you wish to use DKMS? [Y/n]: n
     48Please reboot your computer for the installation to take effect.
     49root@jammy-venice:~#
    3750
    38 Verify PCIe device is seen:
     51}}}
     521. Install HailoRT tools second:
     53{{{
     54root@jammy-venice:~# sudo dpkg -i hailort_4.16.0_arm64.deb
     55Selecting previously unselected package hailort.
     56(Reading database ... 28728 files and directories currently installed.)
     57Preparing to unpack hailort_4.16.0_arm64.deb ...
     58Unpacking hailort (4.16.0) ...
     59Setting up hailort (4.16.0) ...
     60Do you wish to activate hailort service? (required for most pyHailoRT use cases) [y/N]:
     61Stopping hailort.service
     62root@jammy-venice:~#
     63
     64}}}
     651. Reboot system
     661. Use the lspci command to verify the Hailo card is seen on the PCIe bus:
     67{{{
     68root@jammy-venice:~# lspci
     6900:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01)
     7001:00.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch
     7102:01.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch
     7202:02.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch
     7302:03.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch
     7402:04.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch
     7542:00.0 Co-processor: Hailo Technologies Ltd. Hailo-8 AI Processor (rev 01)
     76c0:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8057 PCI-E Gigabit Ethernet Controller
     77root@jammy-venice:~#
     78}}}
     791.
     80Verify Hailo PCIe device is seen with the hailo rt cli software tool:
    3981{{{
    4082root@jammy-venice:~# hailortcli scan
     
    4486}}}
    4587
     88== Usage
     89
     90
    4691Run 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]
    4894{{{
    4995root@jammy-venice:~# hailortcli run my.hef