Other Parts Discussed in Thread: TDA4VM
Hello,
As explained in a previous post
We are currently starting to work with the TDA4VM starter kit J721EXSKG01EVM.
Since we have to make some modifications on the sensor.c files, we are following the Development flow stated here: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-sk-tda4vm/latest/exports/docs/development_flow.html#pub-edgeai-sdk-development-flow
We are able to go through each step of the process (Skipping "Getting PSDK LINUX" and "Building the LINUX SDK from source" since we only want to modify sensor.c files on RTOS).
We are properly flashing the SDcard and properly executing the Development flow steps up until "Target side steps".
Right now we are properly executing ./init_script.sh, and we are able to detect that our camera is connected to the board:
./init_script.sh: line 152: /usr/local/lib/python3.8/dist-packages/dlr/counter/ccm_config.json: No such file or directory
CSI Camera 0 detected
device = /dev/video2
name = imx219 8-0010
format = [fmt:SRGGB8_1X8/1920x1080]
subdev_id = 2
isp_required = yes
But when we try to execute ./app_edgeai.py ../configs/rpiV2_cam_example.yaml, we get the following errors:
root@tda4vm-sk:/opt/edge_ai_apps/apps_python# ./app_edgeai.py ../configs/rpiV2_cam_example.yaml
Traceback (most recent call last):
File "./app_edgeai.py", line 71, in <module>
main(sys.argv)
File "./app_edgeai.py", line 45, in main
demo = EdgeAIDemo(config)
File "/opt/edge_ai_apps/apps_python/edge_ai_class.py", line 74, in __init__
model_obj = config_parser.Model(model_config)
File "/opt/edge_ai_apps/apps_python/config_parser.py", line 86, in __init__
with open(self.path + '/param.yaml', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/model_zoo/ONR-OD-8050-ssd-lite-regNetX-800mf-fpn-bgr-mmdet-coco-512x512/param.yaml'
root@tda4vm-sk:/opt/edge_ai_apps/apps_python#
It seems that the script can't find some files, and we have noticed that, when executing "./setup_script.sh" we have network errors despite being properly connected through ethernet (We even see the IP on screen)
root@tda4vm-sk:/opt/edge_ai_apps# ./setup_script.sh
edgeai-tiovx-modules
-- The C compiler identification is GNU 9.2.1
-- The CXX compiler identification is GNU 9.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai-tiovx-modules
-- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai-tiovx-modules-test
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/edgeai-tiovx-modules/build
make[1]: Entering directory '/opt/edgeai-tiovx-modules/build'
make[2]: Entering directory '/opt/edgeai-tiovx-modules/build'
Scanning dependencies of target edgeai-tiovx-modules
make[2]: Leaving directory '/opt/edgeai-tiovx-modules/build'
make[2]: Entering directory '/opt/edgeai-tiovx-modules/build'
[ 7%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_color_convert_module.c.o
[ 7%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dl_color_convert_module.c.o
[ 11%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_multi_scaler_module.c.o
[ 14%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_img_mosaic_module.c.o
[ 18%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dl_pre_proc_module.c.o
[ 22%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dl_color_blend_module.c.o
[ 25%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_sensor_module.c.o
[ 29%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_viss_module.c.o
[ 33%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_ldc_module.c.o
[ 37%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_pyramid_module.c.o
[ 40%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dof_module.c.o
[ 44%] Building C object src/CMakeFiles/edgeai-tiovx-modules.dir/tiovx_dof_viz_module.c.o
[ 48%] Linking C shared library ../../bin/Release/libedgeai-tiovx-modules.so
make[2]: Leaving directory '/opt/edgeai-tiovx-modules/build'
[ 48%] Built target edgeai-tiovx-modules
make[2]: Entering directory '/opt/edgeai-tiovx-modules/build'
Scanning dependencies of target edgeai-tiovx-modules-test
make[2]: Leaving directory '/opt/edgeai-tiovx-modules/build'
make[2]: Entering directory '/opt/edgeai-tiovx-modules/build'
[ 55%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_dl_color_convert_module_test.c.o
[ 55%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_color_convert_module_test.c.o
[ 59%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_multi_scaler_module_test.c.o
[ 62%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_img_mosaic_module_test.c.o
[ 66%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_dl_pre_proc_module_test.c.o
[ 70%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_dl_color_blend_module_test.c.o
[ 74%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_viss_module_test.c.o
[ 77%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_ldc_module_test.c.o
[ 81%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_pyramid_module_test.c.o
[ 85%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_dof_module_test.c.o
[ 88%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_tiovx_dof_viz_module_test.c.o
[ 92%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/app_common.c.o
[ 96%] Building C object test/CMakeFiles/edgeai-tiovx-modules-test.dir/main.c.o
[100%] Linking C executable ../../bin/Release/edgeai-tiovx-modules-test
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: warning: libdlr.so, needed by /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `GetDLRInputSizeDim'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `DeleteDLRModel'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `RunDLRModel'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `DLRGetLastError'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `CreateDLRModel'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `GetDLROutput'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `GetDLROutputSizeDim'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `GetDLRInputShape'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `SetDLRInput'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `GetDLROutputShape'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `GetDLRNumOutputs'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `GetDLRInputName'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `GetDLROutputName'
/usr/lib/gcc/aarch64-linux/9.2.1/../../../../aarch64-linux/bin/ld: /usr/lib/gcc/aarch64-linux/9.2.1/../../../libtivision_apps.so: undefined reference to `GetDLRNumInputs'
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/edgeai-tiovx-modules-test.dir/build.make:265: ../bin/Release/edgeai-tiovx-modules-test] Error 1
make[2]: Leaving directory '/opt/edgeai-tiovx-modules/build'
make[1]: *** [CMakeFiles/Makefile2:142: test/CMakeFiles/edgeai-tiovx-modules-test.dir/all] Error 2
make[1]: Leaving directory '/opt/edgeai-tiovx-modules/build'
make: *** [Makefile:130: all] Error 2
Setup FAILED! : Make sure you have active network connection
How can we solve those two issues in order to have video from the RPI camera?
Just as a note: we have already tested this camera and script, with the prebuilt image from the "Getting started" tutorial: "software-dl.ti.com/.../getting_started.html" but we are not able to do so when building the sdk files ourselves.
Thank you,
David