-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/proc/device-tree dead link in addon with devicetree: true
...
#4863
Comments
Hm, I see, the Supervisor currently bind mounts I guess the question here becomes is it possible to bind mount |
i think! my original proposition is to create a link... bind mount is ok too! |
The |
yes, you are right. It seems impossible to create a symlink in or a bind mount to /proc. This means I will have to find another solution. Thank you for your help anyways! |
I finally found out how to access the device-tree within the container. It works with this command: I guess disabling apparmor using the option I hope you will consider it! |
@MarcA711 maybe you missunderstood, my intention was to fix the actual symlink.
I am fairly certain that this actually works 👆 . I just haven't come around to look into it. Stay tuned! |
Thank you for looking into this! Just two more comments to keep in mind:
Software that sticks to this convention will not work inside the addon if |
@agners Hi , Could you consider running the addon container in privileged mode, for example by adding " 2024-02-12 19:35:55.670507576 E RKNN: [19:35:55.670] failed to open rknpu module, need to insmod rknpu dirver! 2024-02-12 19:35:55.670597116 E RKNN: [19:35:55.670] failed to open rknn device! 2024-02-12 19:35:55.771905809 E Catch exception when init runtime! 2024-02-12 19:35:55.775398747 E Traceback (most recent call last): 2024-02-12 19:35:55.775412746 File "/usr/local/lib/python3.9/dist-packages/rknnlite/api/rknn_lite.py", line 148, in init_runtime 2024-02-12 19:35:55.775469329 self.rknn_runtime.build_graph(self.rknn_data, self.load_model_in_npu) 2024-02-12 19:35:55.775485953 File "rknnlite/api/rknn_runtime.py", line 875, in rknnlite.api.rknn_runtime.RKNNRuntime.build_graph 2024-02-12 19:35:55.775591535 Exception: RKNN init failed. error code: RKNN_ERR_FAIL Running the container |
i've made separate issue (home-assistant/operating-system#3089) one for adding rknpu the module (closed, we must wait the integration of the driver in mainline kernel), one here that can be usefull not only for running rknpu but i think can be usefull for other program that search device-tree in /proc or in /sys/firmware/devicetree/base |
@agners Sorry for pinging! |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
[Mostly to prevent issue from being auto-closed] I believe this is still an active issue. |
Hi @agners @MarcA711 , is there any news on this ? I am available to test anything if needed. There may be a mainline kernel driver work ongoing : https://blog.tomeuvizoso.net/2024/04/rockchip-npu-update-3-real-time-object.html?m=1 |
Hey, unfortunately no news from my side. I would happily work on a HA add-on for frigate-rockchip, once there is a way to do it. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Hey, thank you! I follow the kernel upstream process very closely and want to support mainstream in Frigate. We need full NPU support (this is just the kernel driver, userspace is still WIP and limited at this point) and de-/ and encoding. Decoding is WIP, Encoding is not being worked on afaik. It will take a couple of month until hardware NPU and Video Processing is upstream. Then I can maybe work on a add on for HA supervied. I am somewhat disappointed that such a (I think) small feature didn't make it... However, I understand that HA is a big project with a lot of stuff that needs to be worked on. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Begone, stalebot! |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
I have the same issue while using plugin https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon |
Is there an easy way to test if the NPU will be used by a given AI model? I am using HAOS on an Odroid M1. As I am not very familiar with everything, yet, I would be happy to do some testings with some supporting advices. |
Hey, To use the NPU you have to write code (Python or C), see docs here: https://github.com/airockchip/rknn-toolkit2 I wrote this code to perform inference for object detection: Moreover, you need to convert your model to the rknn format. There might be some projects that help you to convert the model or perform inference. Try to search on GitHub. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Describe the issue you are experiencing
in addon with
devicetree: true
the/device-tree
fs is correctly mounted...but the link
/proc/device-tree
that point to/sys/firmware/devicetree/base
(on docker host is ok) point to non existent directory...can you add
/sys/firmware/devicetree
(is readonly on the container) directory, and add a link from/sys/firmware/devicetree/base
to/device-tree
.this make dificulty to use frigate on odroid-m1 with use of the npu of the rockchip.
blakeblackshear/frigate-hass-addons#145
What operating system image do you use?
odroid-m1 (Hardkernel ODROID-M1)
What version of Home Assistant Operating System is installed?
11.4
Did you upgrade the Operating System.
Yes
Steps to reproduce the issue
use addon with
devicetree: true
and do in the container of the addon :# ls -al /proc/device-tree
the target of the link (
/sys/firmware/devicetree/base
) are red....Anything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
System information
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Additional information
No response
The text was updated successfully, but these errors were encountered: