Discussion:
[android-porting] Newbie HAL service question
Darren Greene
2018-07-27 02:54:32 UTC
Permalink
Hi all,

Need help from HAL experts.

I am following the steps to integrate the ARM neural network HAL on my
development kit (https://github.com/ARM-software/android-nn-driver). In the
testing section we have the following step to "Run the ArmNN driver service
executable in the background":
adb shell
/system/vendor/bin/hw/***@1.0-service-armnn &

This starts the armnn hal service. I wanted to know if this can be started
automatically at boot since it is not currently happening for me.

I had posted this earlier in the "android-platform" group and was
re-directed here. One of the replies there was:
"That service already has 'class hal' in its init.rc file, so it should be
starting on boot already (assuming it is in PRODUCT_PACKAGES). It could
also be a missing an sepolicy domain causing it to fail to start (even in
permissive mode), and if this is the case, you should see an error message
in dmesg"
I have added it to PRODUCT_PACKAGES and I don't see any errors related to
this service in logcat/dmesg. Are there any other reasons for this service
not to start at boot-up ?

- Darren
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Darren Greene
2018-07-31 16:35:50 UTC
Permalink
Any pointers guys ? I don't see any errors/message related to the hal. I am
on "O" (8.1). I have tried adding the service to start "on boot" in the
init.rc, but still no luck. Any other files I need to modify to get this
running at boot ?
Post by Darren Greene
Hi all,
Need help from HAL experts.
I am following the steps to integrate the ARM neural network HAL on my
development kit (https://github.com/ARM-software/android-nn-driver). In
the testing section we have the following step to "Run the ArmNN driver
adb shell
This starts the armnn hal service. I wanted to know if this can be started
automatically at boot since it is not currently happening for me.
I had posted this earlier in the "android-platform" group and was
"That service already has 'class hal' in its init.rc file, so it should be
starting on boot already (assuming it is in PRODUCT_PACKAGES). It could
also be a missing an sepolicy domain causing it to fail to start (even in
permissive mode), and if this is the case, you should see an error message
in dmesg"
I have added it to PRODUCT_PACKAGES and I don't see any errors related to
this service in logcat/dmesg. Are there any other reasons for this service
not to start at boot-up ?
- Darren
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Vitaliy Freidovich
2018-08-01 06:40:30 UTC
Permalink
Hi Darren,

Try starting a dummy service which will only write a log message once
started.
In this way you'll be able to trace down the problem easier.

Good luck,

Vitaliy
Post by Darren Greene
Any pointers guys ? I don't see any errors/message related to the hal. I
am on "O" (8.1). I have tried adding the service to start "on boot" in the
init.rc, but still no luck. Any other files I need to modify to get this
running at boot ?
Post by Darren Greene
Hi all,
Need help from HAL experts.
I am following the steps to integrate the ARM neural network HAL on my
development kit (https://github.com/ARM-software/android-nn-driver). In
the testing section we have the following step to "Run the ArmNN driver
&
This starts the armnn hal service. I wanted to know if this can be
started automatically at boot since it is not currently happening for me.
I had posted this earlier in the "android-platform" group and was
"That service already has 'class hal' in its init.rc file, so it should
be starting on boot already (assuming it is in PRODUCT_PACKAGES). It could
also be a missing an sepolicy domain causing it to fail to start (even in
permissive mode), and if this is the case, you should see an error message
in dmesg"
I have added it to PRODUCT_PACKAGES and I don't see any errors related to
this service in logcat/dmesg. Are there any other reasons for this service
not to start at boot-up ?
- Darren
--
--
website: http://groups.google.com/group/android-porting
---
You received this message because you are subscribed to the Google Groups
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
--
unsubscribe: android-porting+***@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...