Hi,
I am working on iMX8M nano chipset. I have ported android 10 on imx8M nano evk and is working fine. But, when I port same build on a custom hardware, and try to launch the android app from ADB shell using "adb shell monkey --pct-syskeys 0 -s 13 -p com.example.myapplication -v 500".
I get the following prints after which the service restarts at random times. The codec used on my custom board is tas2770. The difference between evk and custom hardware is that the EVK has 4 cores and custom board has a single core.
The debug prints that I observe are shown below:
[ 295.593342] binder: undelivered transaction 81490, process died.
[ 295.611744] binder: undelivered transaction 81411, process died.
[ 295.737106] sdcardfs: removing com.example.myapplication
[ 297.571139] alloc_contig_range: [90b00, 912ea) PFNs busy
[ 297.589457] alloc_contig_range: [90c00, 913ea) PFNs busy
[ 297.597923] alloc_contig_range: [90c00, 914ea) PFNs busy
[ 297.604580] alloc_contig_range: [90c00, 915ea) PFNs busy
[ 297.611330] alloc_contig_range: [90c00, 916ea) PFNs busy
[ 297.618156] alloc_contig_range: [91000, 917ea) PFNs busy
[ 297.631910] alloc_contig_range: [91100, 918ea) PFNs busy
[ 297.638654] alloc_contig_range: [91200, 919ea) PFNs busy
[ 297.645178] alloc_contig_range: [91200, 91aea) PFNs busy
[ 297.651841] alloc_contig_range: [91400, 91bea) PFNs busy
[ 326.939643] binder: 347:1719 transaction failed 29189/-22, size 96-0 line 3142
[ 331.745745] init: Untracked pid 1733 exited with status 0
[ 331.751817] init: Untracked pid 1735 exited with status 0
[ 331.804423] binder: release 1521:1521 transaction 87167 in, still active
[ 331.811350] init: Service 'vendor.audio-hal-2-0' (pid 1521) received signal 11
[ 331.822050] binder: send failed reply for transaction 87167 to 1522:1547
[ 331.904428] binder: undelivered death notification, 0000e0bac087e8c0
[ 331.911714] init: Service 'audioserver' (pid 1522) exited with status 1
[ 331.938713] init: Sending signal 9 to service 'audioserver' (pid 1522) process group...
[ 331.965917] libprocessgroup: Successfully killed process cgroup uid 1041 pid 1522 in 0ms
[ 331.986186] init: starting service 'vendor.audio-hal-2-0'...
[ 331.999524] init: Command 'restart vendor.audio-hal-4-0-msd' action=onrestart (<Service 'audioserver' onrestart>:2) took 0ms and failed: service vendor.audio-hal-4-0-msd not found
[ 332.041650] init: Command 'restart audio-hal-2-0' action=onrestart (<Service 'audioserver' onrestart>:3) took 0ms and failed: service audio-hal-2-0 not found
[ 332.083470] init: starting service 'audioserver'...
Is this an application related issue or a HAL related issue?
Inputs on why the board application/service restarts would be highly appreciated.
Also, the last 2 times I posted a question, I can not view my question after 24hrs on the community forum
TIA,
Anurag
HAL typically exists as a .so file format and is loaded into the Android system at the opportune time. Android 11 expands compatibility by adding support for HALs written in the older AIDL format, although these must still be binderized for communication.
typedef struct hw_module_t {
uint32_t tag;
uint16_t module_api_version;
uint16_t hal_api_version;
const char *id;
const char *name;
const char *author;
struct hw_module_methods_t* methods;
void* dso;
} hw_module_t;
For more details can refer this as a guide: Click Here