Dear Ti experts,
Recently we are migrating to PSDK 09_01_00_07, we are able to boot the linux system, probe our sensor and test the sensor via v4l2-ctl.
But when trying to run g-streamer pipeline with the sensor, following error occured:
root@am62axx-evm:/opt# gst-launch-1.0 v4l2src device=/dev/video3 io-mode=auto ! video/x-bayer, width=1920, height=1280, format=bggr12, framerate=60/1 ! queue leaky=2 ! tiovxisp sensor-name=SENSOR_OX3C dcc-isp-file=/opt/imaging/ox3c/dcc_viss_wdr.bin sink_0::dcc_2a_file=/opt/imaging/ox3c/dcc_2a_wdr.bin sink_0::device=/dev/v4l-subdev2 format-msb=11 ! video/x-raw, format=NV12, width=1920, height=1280,framerate=60/1 ! queue ! kmssink async=false driver-name=tidss APP: Init ... !!! MEM: Init ... !!! MEM: ERROR: Failed to initialize DMA HEAP [/dev/dma_heap/carveou[ 5090.386853] audit: type=1701 audit(5096.272:338): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=2200 comm="gst-launch-1.0" exe="/usr/bin/gst-launch-1.0" sig=6 res=1 t_edgeai_shared-memories] !!! MEM: Init ... Done !!! APP: ERRO[ 5090.409141] audit: type=1334 audit(5096.292:339): prog-id=123 op=LOAD R: Memory init failed !!! APP: Init ... Done !!! ** ERROR:../[ 5090.419008] audit: type=1334 audit(5096.304:340): prog-id=124 op=LOAD gst-libs/gst/tiovx/gsttiovxcontext.c:146:gst_tiovx_context_init: assertion failed: (0 == ret) Bail out! ERROR:../gst-libs/gst/tiovx/gsttiovxcontext.c:146:gst_tiovx_context_init: assertion failed: (0 == ret) Aborted (core dumped)
The log is kinda broken, but the major error I think is MEM: ERROR: Failed to initialize DMA HEAP [/dev/dma_heap/carveout_edgeai_shared-memories] !!!
All edgeai related modifications we've done so far is adding our new sensor info in tiovx_sensor_modules.h & gsttiovxisp.c, and rebuilt tiovx_modules & gst_plugins. The definitions for edgeai_shared_region in k3-am62a7-sk.dts is not touched.
The same pipeline can be run on the last version (from PSDK 08_06_00_45), and modifications we've done are basically the same. So we want to ask, how this error can be located and solved?
Thank you for your support in advance.
Regards,
Huang Jingjie