Tool/software:
I'm trying to integrate DCC files with my custom camera driver. I read through https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1080175/tda4vm-adding-a-new-sensor-driver-invalid-camera-id-received-when-a-new-sensor-driver-is-in-corporated, but I'm still unsure about what's missing to make the driver correctly match the DCC files I'm generating.
Below are the errors I'm encountering:
gst-launch-1.0 v4l2src device=/dev/video12 ! video/x-bayer, width=2880, height=1860, framerate=30/1, format=rggb12 ! queue leaky=2 ! tiovxisp target=1 sink_0::device=/dev/v4l-subdev7 dcc-isp-file=/opt/imaging/imx490/wdr/dcc_viss_wdr.bin sink_0::dcc-2a-file=/opt/imaging/imx490/wdr/dcc_2a_wdr.bin format-msb=11 ! queue ! video/x-raw,format=NV12 ! filesink location=output_image.yuv -ev
APP: Init ... !!!
477.306675 s: MEM: Init ... !!!
477.306708 s: MEM: Initialized DMA HEAP (fd=8) !!!
477.306806 s: MEM: Init ... Done !!!
477.306817 s: IPC: Init ... !!!
477.342620 s: IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
477.350055 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
477.350148 s: VX_ZONE_INIT:Enabled
477.350158 s: VX_ZONE_ERROR:Enabled
477.350167 s: VX_ZONE_WARNING:Enabled
477.350859 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Ad[ 467.951645] imx490 9-001a: imx490: Set stream
ded target MPU-0
477.350975 s: VX_ZONE_INIT:[tivxPlatformC[ 467.959029] imx490 9-001a: imx490: Start stream
reateTargetId:124] Added target MPU-1
477.351072 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2
477.351162 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3
477.351174 s: VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
477.351539 s: VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXIspPad:sink_0: caps = video/x-bayer, width=(int)2880, height=(int)1860, framerate=(fraction)30/1, format=(string)rggb12, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXMisoPad:src: caps = video/x-raw, format=(string)NV12, width=(int)2880, heig[ 468.238813] imx490 9-001a: imx490: Set stream
ht=(int)1860
/GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink[ 468.244615] imx490 9-001a: imx490: Stop stream
: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
/GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)2880, height=(int)1860
Invalid Camera Id 219
477.650556 s: VX_ZONE_ERROR:[TI_2A_wrapper_create:176] dcc_update returned -1
477.657980 s: VX_ZONE_ERROR:[ownContextSendCmd:885] Command ack message returned failure cmd_status: -1
477.657995 s: VX_ZONE_ERROR:[ownNodeKernelInit:592] Target kernel, TIVX_CMD_NODE_CREATE failed for node node_110
477.658003 s: VX_ZONE_ERROR:[ownNodeKernelInit:593] Please be sure the target callbacks have been registered for this core
477.658011 s: VX_ZONE_ERROR:[ownNodeKernelInit:594] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
477.658020 s: VX_ZONE_ERROR:[ownGraphNodeKernelInit:620] kernel init for node 0, kernel com.ti.hwa.vpac_viss ... failed !!!
477.658031 s: VX_ZONE_ERROR:[vxVerifyGraph:2254] Node kernel init failed
477.658039 s: VX_ZONE_ERROR:[vxVerifyGraph:2311] Graph verify failed
477.658451 s: VX_ZONE_ERROR:[ownReleaseReferenceInt:594] Invalid reference
ERROR: from element /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0: Unable to init TIOVX module
Additional debug info:
/usr/src/debug/edgeai-gst-plugins/1.0.0/gst-libs/gst/tiovx/gsttiovxmiso.c(1512): gst_tiovx_miso_negotiated_src_caps (): /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0
Execution ended after 0:00:00.302346630
Setting pipeline to NULL ...
Freeing pipeline ...
477.744259 s: VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbcfddb68 of type 00000816 at external count 1, internal count 0, releasing it
477.744273 s: VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=user_data_object_99) now as a part of garbage collection
477.744336 s: VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbcfddd90 of type 00000816 at external count 1, internal count 0, releasing it
477.744346 s: VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=user_data_object_100) now as a part of garbage collection
477.744392 s: VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd110c90 of type 00000813 at external count 1, internal count 0, releasing it
477.744401 s: VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=object_array_102) now as a part of garbage collection
477.744415 s: VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbcfde1e0 of type 00000816 at external count 1, internal count 0, releasing it
477.744422 s: VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=user_data_object_103) now as a part of garbage collection
477.744436 s: VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd110e38 of type 00000813 at external count 1, internal count 0, releasing it
477.744444 s: VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=object_array_104) now as a part of garbage collection
477.744456 s: VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd000be8 of type 00000817 at external count 1, internal count 0, releasing it
477.744464 s: VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=raw_image_105) now as a part of garbage collection
477.746851 s: VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd110fe0 of type 00000813 at external count 1, internal count 0, releasing it
477.746887 s: VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=object_array_106) now as a part of garbage collection
477.746901 s: VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbcfde408 of type 00000816 at external count 1, internal count 0, releasing it
477.746909 s: VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=user_data_object_107) now as a part of garbage collection
477.746922 s: VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd111188 of type 00000813 at external count 1, internal count 0, releasing it
477.746930 s: VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=object_array_108) now as a part of garbage collection
477.746977 s: VX_ZONE_WARNING:[vxReleaseContext:1213] Found a reference 0xffffbd03d030 of type 0000080f at external count 1, internal count 0, releasing it
477.746985 s: VX_ZONE_WARNING:[vxReleaseContext:1215] Releasing reference (name=image_109) now as a part of garbage collection
478.076048 s: VX_ZONE_INIT:[tivxHostDeInitLocal:120] De-Initialization Done for HOST !!!
478.080411 s: VX_ZONE_INIT:[tivxDeInitLocal:206] De-Initialization Done !!!
APP: Deinit ... !!!
REMOTE_SERVICE: Deinit ... !!!
REMOTE_SERVICE: Deinit ... Done !!!
478.081267 s: IPC: Deinit ... !!!
478.082169 s: IPC: DeInit ... Done !!!
478.082188 s: MEM: Deinit ... !!!
478.082277 s: DDR_SHARED_MEM: Alloc's: 15 alloc's of 19243867 bytes
478.082287 s: DDR_SHARED_MEM: Free's : 15 free's of 19243867 bytes
478.082294 s: DDR_SHARED_MEM: Open's : 0 allocs of 0 bytes
478.082304 s: MEM: Deinit ... Done !!!
APP: Deinit ... Done !!!