atlflight / cmake_hexagon Goto Github PK
View Code? Open in Web Editor NEWCMake toolchain and rules for building apps for Hexagon DSP and apps processor on Qualcomm SoCs
CMake toolchain and rules for building apps for Hexagon DSP and apps processor on Qualcomm SoCs
The apps link libs aren't passed to the custom_target in bundle.cmake as far as I can tell. My evidence for this is that the string 'APPS_LINK_LIBS' appears once in the bundle.cmake file (in the set(multiValueArgs)
function). This differs from the LINUX_LIB and LINUX_APP functions in the linux_app.cmake, which do link the link libs with the app. As such, I don't think that I can simply link a library with the linux app using QURT_BUNDLE().
I'm trying to use the libsensor_imu.so file with my app. My QURT_BUNDLE function looks something like this.
QURT_BUNDLE(APP_NAME imu_tester
IDL_FILE imu_interface.idl
DSP_SOURCES
adsp_proc/libsensor_imu.so
APPS_SOURCES
apps_proc/imu_tester.cpp
APPS_INCS
-I../include
APPS_COMPILER arm-linux-gnueabihf-g++
)
It gives me the following errors
CMake Error: CMake can not determine linker language for target: imu_tester
CMake Error: Cannot determine link language for target "imu_tester".
The instructions in the readme need an update.
Currently, the instructions say:
Then add whichever modules you wish:
include(qurt_app)"
Presumably that should be:
include(qurt_flags)
root@linaro-developer:/home/linaro# ./dspal_tester
Starting DSPAL tests
testing malloc size
[* FAIL] malloc size test
testing time.h
[* FAIL] clockid values exist
[* FAIL] sigevent values exist
[* FAIL] time returns good value
[* FAIL] timer realtime
[* FAIL] timer monotonic
[* FAIL] timer process cputime
[* FAIL] timer thread cputime
[* FAIL] time return value
[* FAIL] time parameter
[* FAIL] usleep for two seconds
[* FAIL] clock_getres
[* FAIL] clock_gettime
[* FAIL] clock_settime
[* FAIL] one shot timer cb
[* FAIL] periodic timer cb
[* FAIL] periodic timer signal cb
[* FAIL] periodic timer sigwait
testing pthread.h
[* FAIL] pthread attr init
[* FAIL] pthread create
[* FAIL] pthread cancel
[* FAIL] pthread self
[* FAIL] pthread exit
[* FAIL] pthread kill
[* FAIL] pthread condition timed wait
[* FAIL] pthread mutex lock
[* FAIL] thread mutex lock thread
[* FAIL] thread large allocation on stack
[* FAIL] thread large allocation on heap
[* FAIL] usleep for two seconds
testing semaphore.h
[* FAIL] semaphore wait
testing C++
[* FAIL] test C++ heap
[* FAIL] test C++ static initialization
tests complete
testing device path access
[* FAIL] spi loopback test
[* FAIL] serial I/O test
[* FAIL] termios test
[* FAIL] i2c test
testing FARF
[* FAIL] farf log_info test
[* FAIL] farf log_err test
[* FAIL] farf log_debug test
testing GPIO
[* FAIL] gpio open/close test
[* FAIL] gpio ioctl I/O mode test
[* FAIL] gpio read/write test
[* FAIL] gpio INT test
testing file I/O
[* FAIL] file open/close
[* FAIL] file read/write
[* FAIL] file open_trunc
[* FAIL] file open_append
[* FAIL] file ioctl
[* FAIL] file fsync
[* FAIL] file remove
[* FAIL] fopen/fclose test
[* FAIL] fwrite/fread test
[* FAIL] fwrite/fread in a different thread test
DSPAL test failed.
root@linaro-developer:/home/linaro#
I would like to use PWM on the new Flight Pro board.
After following the instructions from Intrinsyc, I can use dspal/test
to get the version:
cpu
root@apq8096/home/root $ ./version_test
version: 2.0.0
build date: BUILD_DATE_STRING=Oct 22 2017
build time: BUILD_TIME_STRING=22:12:45
dsp
[08500/02] 41:23.050 Verification skipped, no function specified!! 0495 map_object.c
[08500/02] 41:23.050 uimg not supported 0529 map_object.c
[08500/02] 41:23.071 Verification skipped, no function specified!! 0495 map_object.c
[08500/02] 41:23.071 uimg not supported 0529 map_object.c
[08500/03] 41:23.083 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:23.083 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:23.083 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:23.083 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/02] 41:23.086 version: 2.0.0 0040 version_test.c
[08500/02] 41:23.086 build date: BUILD_DATE_STRING=Oct 22 2017 0041 version_test.c
[08500/02] 41:23.086 build time: BUILD_TIME_STRING=22:12:45 0042 version_test.c
but the dspal_tester
fails with (except HAP power API test):
dsp
// ...
[08500/03] 41:46.193 undefined PLT symbol #489 __cxa_atexit in libdspal_tester.so 0318 symbol.c
[08500/03] 41:46.193 plt object relocation failure 0274 mdreloc.c
[08500/03] 41:46.195 dlopen failed, libdspal_tester_skel.so 0725 rtld.c
[08500/02] 41:46.215 Verification skipped, no function specified!! 0495 map_object.c
[08500/02] 41:46.215 uimg not supported 0529 map_object.c
[08500/02] 41:46.242 Verification skipped, no function specified!! 0495 map_object.c
[08500/02] 41:46.242 uimg not supported 0529 map_object.c
[08500/03] 41:46.258 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.260 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.260 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.261 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.261 undefined PLT symbol #489 __cxa_atexit in libdspal_tester.so 0318 symbol.c
[08500/03] 41:46.261 plt object relocation failure 0274 mdreloc.c
[08500/03] 41:46.261 dlopen failed, libdspal_tester_skel.so 0725 rtld.c
[08500/02] 41:46.283 Verification skipped, no function specified!! 0495 map_object.c
[08500/02] 41:46.283 uimg not supported 0529 map_object.c
[08500/02] 41:46.311 Verification skipped, no function specified!! 0495 map_object.c
[08500/02] 41:46.311 uimg not supported 0529 map_object.c
[08500/03] 41:46.330 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.330 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.331 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.331 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.332 undefined PLT symbol #489 __cxa_atexit in libdspal_tester.so 0318 symbol.c
[08500/03] 41:46.332 plt object relocation failure 0274 mdreloc.c
[08500/03] 41:46.332 dlopen failed, libdspal_tester_skel.so 0725 rtld.c
[08500/02] 41:46.355 Verification skipped, no function specified!! 0495 map_object.c
[08500/02] 41:46.355 uimg not supported 0529 map_object.c
[08500/02] 41:46.383 Verification skipped, no function specified!! 0495 map_object.c
[08500/02] 41:46.383 uimg not supported 0529 map_object.c
[08500/03] 41:46.391 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.391 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.393 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.393 __cxa_finalize weak ref not found, return _rtld_sym_zero@_rtld_objmain 0295 symbol.c
[08500/03] 41:46.393 undefined PLT symbol #489 __cxa_atexit in libdspal_tester.so 0318 symbol.c
[08500/03] 41:46.393 plt object relocation failure 0274 mdreloc.c
[08500/03] 41:46.395 dlopen failed, libdspal_tester_skel.so 0725 rtld.c
Is this related to commit 291a68c? What is SLPI vs DSP?
See also: QDN forum.
Hi,
i have not got into the details, before i do that, let me tag the question.
if someone has patch to create apps_proc arm library except executive binary,
could you please share it with me?
i think that
library(arm) <--- fastrpc ---> *.skel(dsp) <----> *.so(dsp)
is better than
exe(arm) <--- fastrpc ---> *.skel(dsp) <----> *.so(dsp)
, most likely.
so the all the application can use the dsp resource easily.
thanks in advance,
TomoyaFujita
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.