Hailo 8, seems to be fine, but any of the basic examples doesn't work

I’ve installed a brand new Hailo 8 in a Raspberry Pi 5 (8GB). After software installation I made these all checks:

  1. hailortcli scan >>>>
    Hailo Devices:
    [-] Device: 0001:01:00.0
  2. hailortcli fw-control identify >>>>
    Executing on device: 0001:01:00.0
    Identifying board
    Control Protocol Version: 2
    Firmware Version: 4.20.0 (release,app,extended context switch buffer)
    Logger Version: 0
    Board Name: Hailo-8
    Device Architecture: HAILO8
    Serial Number: <N/A>
    Part Number: <N/A>
    Product Name: <N/A>
  3. lspci | grep Co-processor >>>>
    0001:01:00.0 Co-processor: Hailo Technologies Ltd. Hailo-8 AI Processor (rev 01)
  4. Finally, looking for errors. I run this command:dmesg | grep hailo
    [ 2.379430] hailo: Init module. driver version 4.20.0
    [ 2.379517] hailo 0001:01:00.0: Probing on: 1e60:2864…
    [ 2.379521] hailo 0001:01:00.0: Probing: Allocate memory for device extension, 13184
    [ 2.379533] hailo 0001:01:00.0: enabling device (0000 → 0002)
    [ 2.379537] hailo 0001:01:00.0: Probing: Device enabled
    [ 2.379551] hailo 0001:01:00.0: Probing: mapped bar 0 - 00000000fd82b987 16384
    [ 2.379554] hailo 0001:01:00.0: Probing: mapped bar 2 - 00000000f38ca518 4096
    [ 2.379557] hailo 0001:01:00.0: Probing: mapped bar 4 - 00000000162085cd 16384
    [ 2.379560] hailo 0001:01:00.0: Probing: Force setting max_desc_page_size to 4096 (recommended value is 16384)
    [ 2.379566] hailo 0001:01:00.0: Probing: Enabled 64 bit dma
    [ 2.379568] hailo 0001:01:00.0: Probing: Using userspace allocated vdma buffers
    [ 2.379571] hailo 0001:01:00.0: Disabling ASPM L0s
    [ 2.379574] hailo 0001:01:00.0: Successfully disabled ASPM L0s
    [ 2.379649] hailo 0001:01:00.0: Writing file hailo/hailo8_fw.bin
    [ 2.552251] hailo 0001:01:00.0: File hailo/hailo8_fw.bin written successfully
    [ 2.552257] hailo 0001:01:00.0: Writing file hailo/hailo8_board_cfg.bin
    [ 2.552284] Failed to write file hailo/hailo8_board_cfg.bin
    [ 2.552286] hailo 0001:01:00.0: File hailo/hailo8_board_cfg.bin written successfully
    [ 2.552288] hailo 0001:01:00.0: Writing file hailo/hailo8_fw_cfg.bin
    [ 2.552295] Failed to write file hailo/hailo8_fw_cfg.bin
    [ 2.552296] hailo 0001:01:00.0: File hailo/hailo8_fw_cfg.bin written successfully
    [ 2.688893] hailo 0001:01:00.0: NNC Firmware loaded successfully
    [ 2.688901] hailo 0001:01:00.0: FW loaded, took 309 ms
    [ 2.701067] hailo 0001:01:00.0: Probing: Added board 1e60-2864, /dev/hailo0
    [ 139.309995] hailo: get_user_pages failed with -4
    [ 139.310005] hailo 0001:01:00.0: failed to set sg list for user buffer -4
    [ 139.310011] hailo 0001:01:00.0: failed map buffer 7ffed8014000
    [ 2597.110812] hailo: get_user_pages failed with -4
    [ 2597.110825] hailo 0001:01:00.0: failed to set sg list for user buffer -4
    [ 2597.110831] hailo 0001:01:00.0: failed map buffer 7fff51d98000

There you can see those finally tasks that “fail”
Please, help me to see what’s wrong with my Hailo 8!
Thanks in advance.
Juan Carlos

Hi @jhidalgo,

Welcome to the Hailo Community!

Could you check what kernel version you’re running on your Raspberry Pi? Just run this command:

uname -r

If you’re on anything higher than 6.12.20, you’ll need to downgrade it. There’s a compatibility issue with newer kernels. I’ve put together a guide with the steps you’ll need to follow here: Raspberry Pi Kernel Compatibility Issue - Temporary Fix

Let me know if you run into any issues with the downgrade process!

Hi omria, yesterday I was able to downgrade, following @Kletternaut ([BUG] Deadlock in hailo_pci driver on Raspberry Pi 5 (Kernel 6.12.x) - #10 by Kletternaut).
And now my Kernel version is:
$ uname -r
6.6.77-v8-16k+
And everything is working now.
Thanks for your support

1 Like