FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
07-31-2024 12:03 PM
Hi everyone,
I'm currently working on developing a snap using the Hailo TPU on X7. I need some guidance on configuring write permissions to access the TPU device.
I've configured my snapcraft.yml with the following plugs:
Despite this, I am still encountering an "access denied" error when trying to open the Hailo device, which is located at /dev/hailo0. I couldn't find a corresponding plug for write permissions in the Snapcraft documentation on hardware interfaces.
Could someone please advise on how to configure the necessary write permissions?
Thank you very much for your time and assistance.
Best regards,
Chih-Peng
Solved! Go to Solution.
08-01-2024 12:04 PM - edited 08-02-2024 04:32 PM
In order to use Hailo, add following to content to snapcraft.yml is required.
And CtrlX Core version 2.6 is required.
# Content of snapcraft.yml
apps:
appn-name:
command: ./app
plugs:
# ...
- hardware-observe
- hailo-0
# - hailo-1
plugs:
#...
hailo-0:
interface: custom-device
custom-device: ctrlx-hailo-0
# hailo-1:
# interface: custom-device
# custom-device: ctrlx-hailo-1
Thanks to @MauroRiboniMX's help.