ARM-software / android-nn-driver

MIT License
151 stars 60 forks source link

Problem running driver #5

Closed olegarch closed 5 years ago

olegarch commented 5 years ago

I am building android.hardware.neuralnetworks@1.0-service-armnn, pushing it to device and running it manually through adb shell. When I try to run I am getting error:

09-24 04:00:22.692 9611 9611 I Manager : Found interface armnn 09-24 04:00:22.692 3235 3235 W hwservicemanager: getTransport: Cannot find entry android.hardware.neuralnetworks@1.0::IDevice/armnn in either framework or device manifest.

Any suggestion how to fix it?

olegarch commented 5 years ago

I've added the following to the /vendor/etc/vintf/manifest.xml

<hal format="hidl">
    <name>android.hardware.neuralnetworks</name>
    <transport>hwbinder</transport>
    <version>1.0</version>
    <interface>
        <name>IDevice</name>
        <instance>armnn</instance>
    </interface>
    <fqname>@1.0::IDevice/armnn</fqname>
</hal>

Please let me know if it is the right way to solve this problem?

thl789 commented 5 years ago

Did you reboot your device? Android reads your configuration via manifest.xml only at boot time.

MatthewARM commented 5 years ago

Closing due to inactivity - @olegarch I hope you were able to get it working, please get back in touch if you are still having problems.