hailo-ai / hailo-rpi5-examples

MIT License
304 stars 44 forks source link

Hailo8L on Raspberry Pi 5 on Ubuntu24 #8

Open OrsoEric opened 3 months ago

OrsoEric commented 3 months ago

No package located for Ubuntu 24 ubuntu@rpi5-orso-1:~$ sudo apt install hailo-all Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package hailo-all

Ubuntu 24 does detect the Halio accelerator and it is running at PCIe speed 3.0 ` ubuntu@rpi5-orso-1:~$ sudo lshw -pci:1 description: PCI bridge product: BCM2712 PCIe Bridge vendor: Broadcom Inc. and subsidiaries physical id: 101 bus info: pci@0001:00:00.0 version: 21 width: 32 bits clock: 33MHz capabilities: pci pm pciexpress normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:166 ioport:1800000000(size=1048576) -processor UNCLAIMED description: Co-processor product: Hailo-8 AI Processor vendor: Hailo Technologies Ltd. physical id: 0 bus info: pci@0001:01:00.0 version: 01 width: 64 bits clock: 33MHz capabilities: pciexpress msi pm cap_list configuration: latency=0 resources: iomemory:40-3f iomemory:40-3f iomemory:40-3f memory:1800000000-1800003fff memory:1800008000-1800008fff memory:1800004000-1800007fff

ubuntu@rpi5-orso-1:~$ sudo lspci -vv | grep -E 'PCI bridge|LnkCap' 0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21) (prog-if 00 [Normal decode]) 0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21) (prog-if 00 [Normal decode])

0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21) (prog-if 00 [Normal decode]) LnkCap: Port #0, Speed 5GT/s, Width x4, ASPM L1, Exit Latency L1 <2us LnkCap2: Supported Link Speeds: 2.5-5GT/s, Crosslink- Retimer- 2Retimers- DRS+ LnkCap: Port #0, Speed 5GT/s, Width x4, ASPM L0s L1, Exit Latency L0s <1us, L1 <2us LnkCap2: Supported Link Speeds: 2.5-5GT/s, Crosslink- Retimer- 2Retimers- DRS- 0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21) (prog-if 00 [Normal decode]) LnkCap: Port #0, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <1us, L1 <2us LnkCap2: Supported Link Speeds: 2.5-5GT/s, Crosslink- Retimer- 2Retimers- DRS+ LnkCap: Port #0, Speed 8GT/s, Width x4, ASPM L0s L1, Exit Latency L0s <1us, L1 <2us LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-

`

gmacario commented 3 months ago

That makes sense since the instructions (https://github.com/hailo-ai/hailo-rpi5-examples/blob/main/doc%2Finstall-raspberry-pi5.md) have latest Raspberry Pi OS (not Ubuntu-24.04) as prerequisite.

Hopefully if should be straighforward to port (or just install) hailo-all package on Ubuntu 24.04, but I have no first-hand experience with Hailo hardware to comment.

gmacario commented 3 months ago

Maybe this document could be useful: https://github.com/hailo-ai/tappas/blob/master/docs%2Finstallation%2Fmanual-install.rst

However it supports only Ubuntu 20.04 and 22.04, therefore be prepared to run into issues with 24.04.

mjunsen123 commented 2 months ago

Is there any update on this?

Bruce381 commented 1 week ago

I have find a docker image https://hub.docker.com/layers/alwaysai/edgeiq/hailo-amd64-latest/images/sha256-17c678f8889e842dea327000c1273c4e599f83c00c4a18af303ff3d8479f34a0?context=explore , but it is Private. Another way is get pkg pack https://downloads.up-community.org/download/hailo-8-setup/, i don't know is that work.