Fw-control error

Hello,

we have below error message while we installing and testing hailo-8.
Please advise to me.

  • CPU : Qualcomm RB5 platform
  • NPU : Hailo-8 x 1
  • OS : Ubuntu 20.04 kernel 5.4.xx

Q1. After install driver and RT,
we can check hailortcli scan and hailortcli -v
but error happens if we run ‘hailortcli fw-control identify’.


Please advise against this error.

Q2. we can use below command?
we don;t use -x when tesing above fw-control error issue.
thsi is just question for our internal test.

dpkg -x hailort-pcie-driver_4.17.0_all.deb hailort-pcie-driver_4.17.0_all

-x is necessary for customer’s system because of system’s internal security policy. (According to customer, ko file can’t be used in system.)

thanks

Hey @jy.han

can you run hailortcli scan to check if the device is recognized .
you can also check out
hailo-rpi5-examples/doc/install-raspberry-pi5.md at main · hailo-ai/hailo-rpi5-examples · GitHub

Regards

@omria
as i reported, we tried “hailortcli scan and -v” and ok.
we also tried lspci and found hailo device correctly.

Ok , can you please run :

sudo dpkg --purge hailort-pcie-driver

and re-install the driver .
I am going to check out the error 6 and will get back to you.

Regards

Hey @jy.han

Please update the kernel version ( Ubuntu OS) to the latest , this has solved the problem for our other costumers.

Hope this fixes the issue
Regards

I will ask this…

one more, DKMS must be installed?
If DKMS not installed??

When press ‘Y’ at the step of DKMS installation, DPKG erroe happen.
so tester pressed ‘N’, and driver installed.

possible?

the DKMS isn’t a must to be installed.
The driver can be installed and will work without the DKMS

Regards

ok, very thanks for your answer !!

1 Like

Is happening always? If you bring up the system afresh, is it ok?
If not, have causing it to get into this state?

still under debugging.
but not any idea now.
partner trying to update the kernel source, but very difficult because this hw and os image depends on Qualcomm.
and we’re not sure that we can solve issue with kernel update.
very strange status.

What about what I’ve asked?

sorry, didn’t understand your intension.
problem always happens.
we tried several pcie driver and changed several hardwares.
but still same error when testing hailortcli fw-control.

What’s the output from dmesg?

Hi Jy,
There’s no simple answer on this, Qualcomm doen’t open source their Linux, so we cannot test it on our side. There are a few leads you can take:
** HW

  • make sure that the socket is for PCIe and not SATA.
  • delivers enough power

** SW

  • Need to debug the driver, add see if the MSI interrupts are coming through, if the FW is loaded correctly.

I think that was loaded correctly based on the dmesg output.
Looking at the driver source code, this is the function that originates the error:
image
and this is the inner implementation:


You can clone this from git, add prints and see where the error comes from, would help see if this is mem allocation problem.

trinity@raspberrypi:~/tappas/apps/h8/gstreamer/general/face_recognition $ ./face_recognition.sh
[HailoRT] [error] CHECK failed - Failed open /sys/class/hailo_chardev/hailo0/accelerator_type
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36) - Failed parsing device info for hailo0
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
[HailoRT CLI] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36)
i getting this error

Hi @vinaygouda.ttssl,
I think that this issue derves it’s own topic, right? :slight_smile:

I would be easier for other in the community to follow the thread like that.

plz help me to resolve it

I am currently facing issues with the Hailo driver on my Raspberry Pi 5, specifically while trying to use the Hailo-8 AI processor connected via PCIe. My goal is to run my own custom model (not pretrained) on this setup. After installing the Hailo driver and attempting to run the hailortcli scan command, I consistently receive the following error messages: [HailoRT] [error] CHECK failed - Failed open /sys/class/hailo_chardev/hailo0/accelerator_type and [HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_FAIL(36). My kernel version is 6.6.31+rpt-rpi-2712, which is compatible with the driver according to the documentation.

I would like to know if I need to install the full hailo-all package or if I should just be using the .deb file. I have tried both methods, but unfortunately, I am still encountering the same error. Can someone help me with it?

Hey @ghobadin

Welcome to the Hailo Community!

You can check out the solution in here : Model Zoo Model Download HEF Parser Error - #11 by sanjoyg