Forums - Failed to open a channel to cDSP or aDSP

2 posts / 0 new
Last post
Failed to open a channel to cDSP or aDSP
icework
Join Date: 3 Mar 20
Posts: 5
Posted: Sat, 2020-03-21 07:22

Hello, every one:

    I have some trouble about running DSP's example

    I've followed the user's guide and the "README" in the examples, including setting LD_LIBRARY_PATH, ADSP_LIBRARY_PATH.

    I always cannot execute the example on my SDM845, why?

    I setting env_var before executing example(such as qmath_sample) like this:

    export LD_LIBRARY_PATH=${CURRENT_WORK_PATH}

    export ADSP_LIBRARY_PATH="${CURRENT_WORK_PATH};/vendor/lib/rfsa/adsp:/system/lib/rfsa/adsp:/system/vendor/lib/rfsa/adsp;/dsp"

    and my ***_skel.so is in ${CURRENT_WORK_PATH}

   at the last, the programme always tell me :

   1.cDSP not detected on this target (error code -1), attempting to use aDSP 

   2."Failed to open a channel to cDSP or aDSP"

   my Hexagon SDK is 3.5.1, and my compile config is hexagon_Release_dynamic_toolv83_v65

   Is there any one would like to tell me how to solve this trouble?

  • Up0
  • Down0
icework
Join Date: 3 Mar 20
Posts: 5
Posted: Sun, 2020-03-22 22:26

the message caught by mini-dm as following:

[08522/02]  13:22.458  ADSP: A new client registered with DCVS with client id: 2  0159  sysmon_dcvs_clients.c
[08522/01]  13:22.460  ADSP: DCVS aggregated sleep latency request for ADSPPM: 1000 us  0539  sysmon_dcvs_clients.c
[08522/01]  13:22.460  ADSP: DCVS aggregated state request to ADSPPM: 1  1021  sysmon_dcvs_clients.c
[08522/01]  13:22.460  ADSP: NPA Callback: Actual values: DSP core clock: 940800 KHz, Extrapolated values: Core voltage corner: 7  1988  sysmon_prof.c
[08522/00]  13:22.460  ADSP: new DCVS upper thresholds: core clk: 940800 kHz, bus clk: 403000 kHz  0688  sysmon_dcvs_clients.c
[08522/01]  13:22.460  ADSP: QDSPPM votes: ADSP vote: 881000 kHz, BUS vote: Ab: 40135 KBps; Ib: 578125 KBps, DCVS mode: 0, HFW Window: 20  0449  sysmon_dcvs.c
[08522/01]  13:22.460  ADSP: ICB Callback: Ab: 589377 KBps, Ib: 2983593 KBps, Extrapolated values: Bus clock: 403000 kHz, Bus voltage level: 7  1924  sysmon_prof.c
[08522/01]  13:22.460  ADSP: QDSPPM votes: ADSP vote: 881000 kHz, BUS vote: Ab: 338494 KBps; Ib: 2983593 KBps, DCVS mode: 0, HFW Window: 20  0449  sysmon_dcvs.c
[08522/00]  13:22.460  ADSP: new DCVS target vote: core clk: 788200 kHz, bus clk: 402000 kHz  0806  sysmon_dcvs_clients.c
[08522/00]  13:22.460  ADSP: Aggregated client class update from QDSPPM: 0x5  0364  sysmon_prof.c
[08522/01]  13:22.460  ADSP: DCVS aggregated client class request for DSPPM: 0x4  0560  sysmon_dcvs_clients.c
[08522/02]  13:22.460  ADSP: DCVS client with client id: 2, updated its request successfully; DCVS Enable/Option: 1 / 1, Sleep Latency Enable/Value: 1 / 1000, Corner votes Enable/(min, target, max): 1 / (0, 4, 4)  0413  sysmon_dcvs_clients.c
[08522/02]  13:22.460  ADSP: Current DCVS policy: 0x2  0507  sysmon_dcvs_clients.c
[08522/02]  13:22.460  ADSP: DCVS client with client id: 2, requesting for client class 4  0432  sysmon_dcvs_clients.c
[08500/03]  13:22.475  00: ADSP:Error ffffffff: Platform fs invokation failed for method:257  0213  platform_fs_qdi_driver.c
[08500/03]  13:22.476  00: ADSP:Error ffffffff: Platform fs invokation failed for method:257  0213  platform_fs_qdi_driver.c
[08500/03]  13:22.476  130ad:08: ADSP: :error: -1: -1 != (*num_segments = GetProp_uint32(pHandle, "num_segments",-1))  0574  sigverify.c
[08500/03]  13:22.476  130ad:08: ADSP: :error: -1: 0 == Read_Hash_From_Devcfg(so_name, (const byte**) &p_elf->pHashes, &p_elf->cbHashes, &num_segments)  0644  sigverify.c
[08500/02]  13:22.476  130ad:08: ADSP: OEM ID -----------------------> 0x0  0589  sigverify.c
[08500/02]  13:22.476  130ad:08: ADSP: Debug Fuse Enabled -----------> No  0590  sigverify.c
[08500/02]  13:22.476  130ad:08: ADSP: Testsig Enabled --------------> No  0591  sigverify.c
[08500/02]  13:22.476  130ad:08: ADSP: Testsig file found -----------> No  0592  sigverify.c
[08500/02]  13:22.476  130ad:08: ADSP: module: Module is signed -----> No  0597  sigverify.c
[08500/02]  13:22.476  130ad:08: ADSP: module: Static hash found ----> No  0602  sigverify.c
[08500/03]  13:22.476  120a7:08: ADSP: signature verify start failed for libqmath_sample_skel.so  0506  map_object.c
[08500/03]  13:22.477  120a8:08: ADSP: dlopen failed, libqmath_sample_skel.so  0742  rtld.c
[08500/03]  13:22.477  120a8:08: ADSP: Error:-5 open_mod_table_open_dynamic failed  0474  mod_table.c
[08500/03]  13:22.478  120a8:08: ADSP: Error:8000041d open_mod_table_close failed  0655  mod_table.c
[08500/03]  13:22.478  120a8:08: ADSP: Error 8000041d: MODTABLE close failed for handle e0978d28 ()  0847  mod_table.c
[08500/03]  13:22.478  120a8:08: ADSP: Error:8000041d open_mod_table_handle_invoke failed for handle 0 sc 1010200  0714  mod_table.c
[08500/03]  13:22.491  00: ADSP:Error 80000553: Platform fs invokation failed for method:11  0213  platform_fs_qdi_driver.c
[08500/02]  13:22.491  00: ADSP:Reaper got exit on client handle 267   0001  stdout
[08500/02]  13:22.491  00: ADSP:Removing HVX vote  0224  platform_qdi_driver.c
[08500/02]  13:22.491  00: ADSP:releasing hvx power for client 77  0552  fastrpc_kpower.c
[08522/01]  13:22.491  ADSP: DCVS aggregated sleep latency request for ADSPPM: 65535 us  0539  sysmon_dcvs_clients.c
[08522/01]  13:22.492  ADSP: DCVS aggregated state request to ADSPPM: 0  1021  sysmon_dcvs_clients.c
[08522/00]  13:22.492  ADSP: new DCVS upper thresholds: core clk: 3000000 kHz, bus clk: 3000000 kHz  0688  sysmon_dcvs_clients.c
[08522/01]  13:22.492  ADSP: QDSPPM votes: ADSP vote: 93000 kHz, BUS vote: Ab: 338494 KBps; Ib: 2983593 KBps, DCVS mode: 0, HFW Window: 50  0449  sysmon_dcvs.c
[08522/01]  13:22.492  ADSP: NPA Callback: Actual values: DSP core clock: 288000 KHz, Extrapolated values: Core voltage corner: 3  1988  sysmon_prof.c
[08522/00]  13:22.492  ADSP: Aggregated client class update from QDSPPM: 0x1  0364  sysmon_prof.c
[08522/00]  13:22.493  ADSP: new DCVS target vote: core clk: 0 kHz, bus clk: 0 kHz  0806  sysmon_dcvs_clients.c
[08522/01]  13:22.493  ADSP: DCVS aggregated client class request for DSPPM: 0x0  0560  sysmon_dcvs_clients.c
[08522/02]  13:22.493  ADSP: DCVS client with client id: 2 is deregistered  0227  sysmon_dcvs_clients.c
[08522/02]  13:22.493  ADSP: Current DCVS policy: 0x1  0507  sysmon_dcvs_clients.c
[08522/01]  13:22.493  ADSP: ICB Callback: Ab: 291017 KBps, Ib: 578125 KBps, Extrapolated values: Bus clock: 75000 kHz, Bus voltage level: 3  1924  sysmon_prof.c
[08522/01]  13:22.493  ADSP: QDSPPM votes: ADSP vote: 93000 kHz, BUS vote: Ab: 40135 KBps; Ib: 578125 KBps, DCVS mode: 0, HFW Window: 20  0449  sysmon_dcvs.c
[08500/02]  13:22.493  00: ADSP:walking through from proxy..   0001  stdout
[08500/03]  13:22.495  00: ADSP:Error 0(ffffffff): fastrpc kill failed   0912  fastrpc_loader.c
[08522/01]  13:22.425  CDSP: DCVS aggregated sleep latency request for ADSPPM: 1000 us  0539  sysmon_dcvs_clients.c
[08522/00]  13:22.425  CDSP: new DCVS target vote: core clk: 788200 kHz, bus clk: 805000 kHz  0806  sysmon_dcvs_clients.c
[08522/01]  13:22.425  CDSP: ICB Callback: Ab: 577125 KBps, Ib: 5771250 KBps, Extrapolated values: Bus clock: 806000 kHz, Bus voltage level: 7  1924  sysmon_prof.c
[08522/01]  13:22.425  CDSP: QDSPPM votes: ADSP vote: 944000 kHz, BUS vote: Ab: 577125 KBps; Ib: 5771250 KBps, DCVS mode: 0, HFW Window: 50  0440  sysmon_dcvs.c
[08522/01]  13:22.425  CDSP: NPA Callback: Actual values: DSP core clock: 940800 KHz, Extrapolated values: Core voltage corner: 7  1988  sysmon_prof.c
[08522/00]  13:22.425  CDSP: new DCVS lower threshold: core clk: 292000 kHz  0641  sysmon_dcvs_clients.c
[08522/02]  13:22.425  CDSP: DCVS client with client id: 3, updated its request successfully; DCVS Enable/Option: 1 / 4, Sleep Latency Enable/Value: 1 / 2000, Corner votes Enable/(min, target, max): 1 / (1, 2, 2)  0413  sysmon_dcvs_clients.c
[08522/02]  13:22.425  CDSP: DCVS client with client id: 3, requesting for client class 4  0432  sysmon_dcvs_clients.c
[08522/01]  13:22.425  CDSP: QDSPPM votes: ADSP vote: 788000 kHz, BUS vote: Ab: 577125 KBps; Ib: 5771250 KBps, DCVS mode: 0, HFW Window: 50  0440  sysmon_dcvs.c
[08522/00]  13:22.425  CDSP: new DCVS upper thresholds: core clk: 940800 kHz, bus clk: 806000 kHz  0688  sysmon_dcvs_clients.c
[08522/00]  13:22.425  CDSP: new DCVS upper thresholds: core clk: 1190400 kHz, bus clk: 933000 kHz  0688  sysmon_dcvs_clients.c
[08500/03]  13:22.426  00: CDSP:Error ffffffff: Platform fs invokation failed for method:257  0213  platform_fs_qdi_driver.c
[08500/03]  13:22.427  120ab:06: CDSP: :error: -1: -1 != (*num_segments = GetProp_uint32(pHandle, "num_segments",-1))  0574  sigverify.c
[08500/03]  13:22.427  120ab:06: CDSP: :error: -1: 0 == Read_Hash_From_Devcfg(so_name, (const byte**) &p_elf->pHashes, &p_elf->cbHashes, &num_segments)  0644  sigverify.c
[08500/02]  13:22.427  120ab:06: CDSP: OEM ID -----------------------> 0x0  0589  sigverify.c
[08500/02]  13:22.427  120ab:06: CDSP: Debug Fuse Enabled -----------> No  0590  sigverify.c
[08500/02]  13:22.427  120ab:06: CDSP: Testsig Enabled --------------> No  0591  sigverify.c
[08500/02]  13:22.427  120ab:06: CDSP: Testsig file found -----------> No  0592  sigverify.c
[08500/02]  13:22.427  120ab:06: CDSP: module: Module is signed -----> No  0597  sigverify.c
[08500/02]  13:22.427  120ab:06: CDSP: module: Static hash found ----> No  0602  sigverify.c
[08500/03]  13:22.427  120ac:06: CDSP: signature verify start failed for libqmath_sample_skel.so  0506  map_object.c
[08500/03]  13:22.427  120ae:06: CDSP: dlopen failed, libqmath_sample_skel.so  0742  rtld.c
[08500/03]  13:22.427  120ae:06: CDSP: Error:-5 open_mod_table_open_dynamic failed  0474  mod_table.c
[08500/03]  13:22.428  120ae:06: CDSP: Error:8000041d open_mod_table_close failed  0655  mod_table.c
[08500/03]  13:22.428  120ae:06: CDSP: Error 8000041d: MODTABLE close failed for handle 14e77f88 ()  0847  mod_table.c
[08500/03]  13:22.428  120ae:06: CDSP: Error:8000041d open_mod_table_handle_invoke failed for handle 0 sc 1010200  0714  mod_table.c

it always say "dlopen failed, libqmath_sample_skel.so", how to understand these messages?
 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.