[audio-hal-2-0在android系统启动时找不到

问题描述 投票:0回答:1

我正在为Resenas Rcar-H3开发板构建android 9。构建过程成功。但是,在将映像刷新到电路板上之后,启动过程将无法正常进行。 audioserver由初始化进程重新启动,并通知如下错误:

[  737.947862] init: Service 'audioserver' (pid 2734) exited with status 1
[  737.954674] init: Sending signal 9 to service 'audioserver' (pid 2734) process group...
[  737.962915] libprocessgroup: Successfully killed process cgroup uid 1041 pid 2734 in 0ms
[  737.971171] init: Command 'restart vendor.audio-hal-2-0' action=onrestart (<Service 'audioserver' onrestart>:1) took 0ms and failed: service vendor.audio-hal-2-0 not found
[  737.986524] init: Command 'restart audio-hal-2-0' action=onrestart (<Service 'audioserver' onrestart>:2) took 0ms and failed: service audio-hal-2-0 not found
[  742.929725] init: starting service 'audioserver'...
[  742.964835] init: Service 'audioserver' (pid 2735) exited with status 1
[  742.971523] init: Sending signal 9 to service 'audioserver' (pid 2735) process group...
[  742.979681] libprocessgroup: Successfully killed process cgroup uid 1041 pid 2735 in 0ms
[  742.987951] init: Command 'restart vendor.audio-hal-2-0' action=onrestart (<Service 'audioserver' onrestart>:1) took 0ms and failed: service vendor.audio-hal-2-0 not found
[  743.003317] init: Command 'restart audio-hal-2-0' action=onrestart (<Service 'audioserver' onrestart>:2) took 0ms and failed: service audio-hal-2-0 not found
[  747.946500] init: starting service 'audioserver'...
[  747.981024] init: Service 'audioserver' (pid 2736) exited with status 1
[  747.987697] init: Sending signal 9 to service 'audioserver' (pid 2736) process group...
[  747.995844] libprocessgroup: Successfully killed process cgroup uid 1041 pid 2736 in 0ms
[  748.004108] init: Command 'restart vendor.audio-hal-2-0' action=onrestart (<Service 'audioserver' onrestart>:1) took 0ms and failed: service vendor.audio-hal-2-0 not found
...

有人可以帮助我吗?谢谢大家!

android audio android-source porting
1个回答
0
投票

好像您告诉init启动vendor.audio-hal-2-0,但未提供服务定义。

在您已安装的.rc文件之一中,可能会有这样的呼叫:

start vendor.audio-hal-2-0

您还应该有一个看起来像这样的服务定义文件:

service vendor.audio-hal-2-0 /vendor/bin/hw/<binary>
    <options>

如果不这样做,则需要创建一个,如果执行,则可能未正确安装。您可以像这样在Android.bp模块定义中安装其他服务文件:

cc_binary {
    [ ... ]
    init_rc: [ "vendor.audio-hal-2-0.rc" ],
    [...]
}
© www.soinside.com 2019 - 2024. All rights reserved.