Hi,
We are using custom board based on AM62A7 SOC with imx219 camera sensor and using Linux BSP
We referred k3-am62a7-sk-csi-imx219.dts and able to run imx219 camera module with data-lanes 1 and 2.
If we try to change the data-lanes property in dts from 1 2 to 2 3 or 3 4 or 1 4 camera streaming is not working and below error is shown.
gst-launch-1.0 v4l2src device=/dev/video2 io-mode=5 ! video/x-bayer,width=1920,height=1080,format=bggr ! \
> tiovxisp sensor-name=SENSOR_SONY_IMX219_RPI dcc-isp-file=/opt/imaging/imx219/dcc_viss_1920x1080.bin \
> sink_0::dcc-2a-file=/opt/imaging/imx219/dcc_2a_1920x1080.bin sink_0::device=/dev/v4l-subdev2 ! \
> video/x-raw,format=NV12 ! kmssink driver-name=tidss sync=false
APP: Init ... !!!
MEM: Init ... !!!
MEM: Initialized DMA HEAP (fd=5) !!!
MEM: Init ... Done !!!
IPC: Init ... !!!
IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
50.539179 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
50.540299 s: VX_ZONE_INIT:Enabled
50.540328 s: VX_ZONE_ERROR:Enabled
50.540337 s: VX_ZONE_WARNING:Enabled
50.541449 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
50.541884 s: VX_ZONE_INIT:[tivxHostInitLocal:93] Initialization Done for HOST !!!
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 28.861900] cdns-mipi-dphy 30110000.phy: DPHY wait for lane ready timeout
[ 28.872714] cdns-csi2rx 30101000.csi-bridge: Failed to configure external DPHY: -110
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
../gst-plugins-good-1.16.3/sys/v4l2/gstv4l2src.c(660): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
Execution ended after 0:00:00.127296485
Setting pipeline to NULL ...
** (gst-launch-1.0:1110): CRITICAL **: 05:25:47.412: gst_video_info_from_caps: assertion 'caps != NULL' failed
Freeing pipeline ...
50.701172 s: VX_ZONE_WARNING:[vxReleaseContext:1055] Found a reference 0xffffa7522528 of type 00000817 at external count 1, internal count 0, releasing it
50.701205 s: VX_ZONE_WARNING:[vxReleaseContext:1057] Releasing reference (name=raw_image_94) now as a part of garbage collection
50.701231 s: VX_ZONE_WARNING:[vxReleaseContext:1055] Found a reference 0xffffa75b7a50 of type 00000813 at external count 1, internal count 0, releasing it
50.701243 s: VX_ZONE_WARNING:[vxReleaseContext:1057] Releasing reference (name=object_array_95) now as a part of garbage collection
50.701550 s: VX_ZONE_WARNING:[vxReleaseContext:1055] Found a reference 0xffffa75b7bf0 of type 00000813 at external count 1, internal count 0, releasing it
50.701564 s: VX_ZONE_WARNING:[vxReleaseContext:1057] Releasing reference (name=object_array_97) now as a part of garbage collection
50.701808 s: VX_ZONE_WARNING:[vxReleaseContext:1055] Found a reference 0xffffa75b7d90 of type 00000813 at external count 1, internal count 0, releasing it
50.701821 s: VX_ZONE_WARNING:[vxReleaseContext:1057] Releasing reference (name=object_array_99) now as a part of garbage collection
50.702055 s: VX_ZONE_WARNING:[vxReleaseContext:1055] Found a reference 0xffffa75b7f30 of type 00000813 at external count 1, internal count 0, releasing it
50.702069 s: VX_ZONE_WARNING:[vxReleaseContext:1057] Releasing reference (name=object_array_101) now as a part of garbage collection
50.702340 s: VX_ZONE_INIT:[tivxHostDeInitLocal:107] De-Initialization Done for HOST !!!
50.703560 s: VX_ZONE_INIT:[tivxDeInitLocal:193] De-Initialization Done !!!
APP: Deinit ... !!!
REMOTE_SERVICE: Deinit ... !!!
REMOTE_SERVICE: Deinit ... Done !!!
IPC: Deinit ... !!!
IPC: DeInit ... Done !!!
MEM: Deinit ... !!!
DDR_SHARED_MEM: Alloc's: 4 alloc's of 8294400 bytes
DDR_SHARED_MEM: Free's : 4 free's of 8294400 bytes
DDR_SHARED_MEM: Open's : 0 allocs of 0 bytes
DDR_SHARED_MEM: Total size: 184549376 bytes
MEM: Deinit ... Done !!!
APP: Deinit ... Done !!!
Is it possible to stream the camera with different data-lanes other than 1 and 2?