Hi,
There are two threads about this, but neither of them have answers that work. Can somebody please give precise instructions on getting hailort 4.18 to run on Rpi5?
I have tried with a clean OS install, following all the instructions, and I still get the same errors that myself and others have documented.
I need this in order to do inference with a batch size greater than 1.
Could you please check the contents of the /lib/firmware directory? If you find any files or folders related to version 4.17, you should remove them. Sometimes during upgrades or purge operations, certain files aren’t deleted because they’re currently in use or open.
So the only place that is “important” to make sure that the driver is installed in is this: /lib/modules/6.6.31+rpt-rpi-2712/
maybe you can manually remove the hailo_pci from there, and after that install the driver
OK, that actually worked to get a 4.18 driver running.
I deleted /lib/modules/6.6.31+rpt-rpi-2712/kernel/drivers/media/pci/hailo/hailo_pci.ko.xz, reinstalled hailort-pcie-driver_4.18.0_all.deb, and now at least hailortcli scan detects the device.
HOWEVER, I am still unable to run any networks.
$ hailortcli run yolov8s.hef
[HailoRT] [error] CHECK failed - max_desc_page_size given 16384 is bigger than hw max desc page size 4096
Can you remove the driver: sudo modprobe -r hailo_pci
and insert it back with forcing the max_page_desc_size: sudo modprobe hailo_pci force_desc_page_size=4096
Just a note to why this happens. Raspberry Pi’s kernel includes v4.17.0 of the Hailo PCIe driver. That’s why you kept seeing that version until you manually removed its hailo_pcie.ko file.
As a workaround, one can install dkms with sudo apt install dkms and when installing hailort-pcie-driver_4.18.0_all.deb, choose the DKMS option. It looks like DKMS kernel modules have preference over in-tree ones, since I didn’t delete /lib/modules/6.6.31+rpt-rpi-2712/kernel/drivers/media/pci/hailo/hailo_pci.ko.xz, yet HailoRT 4.18 works fine for me.
Yeah, I did the same, installed sudo apt install dkms and it worked for me without, rm /lib/modules/6.6.31+rpt-rpi-2712/kernel/drivers/media/pci/hailo/hailo_pci.ko.xz, I forgot to mention earlier.
This file can be downloaded from the developer zone, but the best advice that we can give is to use the official hailo_all package.
Please see this topic: