IMX297 MIPI sensor raw image acquisition

Hello, I am trying to acquire a frame from an IMX297 sensor connected to Xavier devkit MIPI port 0.

This is the command:

v4l2-ctl -d /dev/video0 --set-fmt-video=width=1440,height=1080,pixelformat='Y10 ' --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw

The procedure was already tested and known to be working fine. Now we switched to another setup, including a CSI aggregator between sensor and Jetson, and stream acquisition does not work anymore.

Here dmesg log:

  1 [  167.437818] i2c 2-0010: vc_mod_set_mode(): Set module mode: 0 (lanes: 1, format: Y10 , type: STREAM)                                                           
  2 [  167.438179] i2c 2-0010: vc_mod_set_power(): Set module power: down
  3 [  167.438546] i2c 2-0010: vc_mod_set_power(): Set module power: up
  4 [  167.450503] [RCE] vi5_hwinit: firmware CL2018101701 protocol version 2.2
  5 [  167.840595] vc_mipi 2-001a: vc_sen_set_roi(): Set sensor roi: (x: 0, y: 0, width: 736, height: 540)
  6 [  167.850288] vc_mipi 2-001a: vc_sen_set_exposure(): Set sensor exposure: 10000 us
  7 [  167.853263] vc_mipi 2-001a: vc_sen_set_gain(): Set sensor gain: 0
  8 [  167.854253] vc_mipi 2-001a: vc_sen_set_blacklevel(): Set sensor black level: 60
  9 [  167.855998] vc_mipi 2-001a: vc_sen_start_stream(): Start streaming
 10 [  172.458657] tegra194-vi5 15c10000.vi: no reply from camera processor
 11 [  172.459245] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 5000 ms
 12 [  172.460196] tegra194-vi5 15c10000.vi: err_rec: attempting to reset the capture channel
 13 [  172.470642] tegra194-vi5 15c10000.vi: err_rec: successfully reset the capture channel
 14 [  177.578237] tegra194-vi5 15c10000.vi: no reply from camera processor
 15 [  177.578743] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 5000 ms
 16 [  177.579602] tegra194-vi5 15c10000.vi: err_rec: attempting to reset the capture channel
 17 [  177.590584] tegra194-vi5 15c10000.vi: err_rec: successfully reset the capture channel
 18 [  182.698213] tegra194-vi5 15c10000.vi: no reply from camera processor
 19 [  182.699021] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 5000 ms
 20 [  182.699615] tegra194-vi5 15c10000.vi: err_rec: attempting to reset the capture channel
 21 [  182.708986] tegra194-vi5 15c10000.vi: err_rec: successfully reset the capture channel
 22 [  182.712568] vc_mipi 2-001a: vc_sen_stop_stream(): Stop streaming

[ 2067.597733] tegra194-vi5 15c10000.vi: no reply from camera processor
[ 2067.598196] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 5000 ms
[ 2067.598973] tegra194-vi5 15c10000.vi: err_rec: attempting to reset the capture channel
[ 2067.606837] tegra194-vi5 15c10000.vi: err_rec: successfully reset the capture channel
[ 2067.626182] [RCE] Configuring VI GoS.
[ 2067.626280] [RCE] VM GOS[#0] addr=0xc2100000
[ 2067.626352] [RCE] VM GOS[#1] addr=0xc2101000
[ 2067.626417] [RCE] VM GOS[#2] addr=0xc2102000
[ 2067.626486] [RCE] VM GOS[#3] addr=0xc2103000
[ 2067.626550] [RCE] VM GOS[#4] addr=0xc2104000
[ 2067.626614] [RCE] VM GOS[#5] addr=0xc2105000

Trace log:

# tracer: nop
#
# entries-in-buffer/entries-written: 201/201   #P:6
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
        v4l2-ctl-5428  [003] ....   240.012976: tegra_channel_open: vi-output, vc_mipi 2-001a
        v4l2-ctl-5428  [005] ....   240.016525: tegra_channel_set_power: vc_mipi 2-001a : 0x1
        v4l2-ctl-5428  [005] ....   240.016538: camera_common_s_power: status : 0x1
        v4l2-ctl-5428  [005] ....   240.016577: tegra_channel_set_power: 15a00000.nvcsi--3 : 0x1
        v4l2-ctl-5428  [005] ....   240.016580: csi_s_power: enable : 0x1
        v4l2-ctl-5428  [005] ....   240.020338: tegra_channel_capture_setup: vnc_id 0 W 736 H 540 fmt c5
        v4l2-ctl-5428  [000] ....   240.036505: tegra_channel_set_stream: enable : 0x1
        v4l2-ctl-5428  [005] ....   240.043683: tegra_channel_set_stream: 15a00000.nvcsi--3 : 0x1
        v4l2-ctl-5428  [005] ....   240.043688: csi_s_stream: enable : 0x1
        v4l2-ctl-5428  [005] ....   240.043700: tegra_channel_set_stream: vc_mipi 2-001a : 0x1
     kworker/0:1-758   [000] ....   240.054705: rtos_queue_peek_from_isr_failed: tstamp:7876663918 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   240.054710: rtcpu_start: tstamp:7876665513
     kworker/0:1-758   [000] ....   240.054713: rtos_queue_send_from_isr_failed: tstamp:7876796369 queue:0x0bcb2e38
     kworker/0:1-758   [000] ....   240.054715: rtos_queue_send_from_isr_failed: tstamp:7876796521 queue:0x0bcb76a0
     kworker/0:1-758   [000] ....   240.054717: rtos_queue_send_from_isr_failed: tstamp:7876796671 queue:0x0bcb9220
     kworker/0:1-758   [000] ....   240.054718: rtos_queue_send_from_isr_failed: tstamp:7876796818 queue:0x0bcb9fe0
     kworker/0:1-758   [000] ....   240.054719: rtos_queue_send_from_isr_failed: tstamp:7876796964 queue:0x0bcbada0
     kworker/0:1-758   [000] ....   240.054722: rtcpu_string: tstamp:7876797397 id:0x04010000 str:"Configuring VI GoS."
     kworker/0:1-758   [000] ....   240.054770: rtcpu_string: tstamp:7876797597 id:0x04010000 str:"VM GOS[#0] addr=0xc2100000"
     kworker/0:1-758   [000] ....   240.054833: rtcpu_string: tstamp:7876797854 id:0x04010000 str:"VM GOS[#1] addr=0xc2101000"
     kworker/0:1-758   [000] ....   240.054858: rtcpu_string: tstamp:7876798099 id:0x04010000 str:"VM GOS[#2] addr=0xc2102000"
     kworker/0:1-758   [000] ....   240.054878: rtcpu_string: tstamp:7876798335 id:0x04010000 str:"VM GOS[#3] addr=0xc2103000"
     kworker/0:1-758   [000] ....   240.054899: rtcpu_string: tstamp:7876798584 id:0x04010000 str:"VM GOS[#4] addr=0xc2104000"
     kworker/0:1-758   [000] ....   240.054921: rtcpu_string: tstamp:7876798815 id:0x04010000 str:"VM GOS[#5] addr=0xc2105000"
     kworker/0:1-758   [000] ....   240.054942: rtcpu_string: tstamp:7876807243 id:0x04010000 str:"vi5_hwinit: firmware CL2018101701 protocol vers"
     kworker/0:1-758   [000] ....   240.054946: rtcpu_string: tstamp:7876807361 id:0x04010000 str:"on 2.2"
     kworker/0:1-758   [000] ....   240.054968: rtos_queue_send_from_isr_failed: tstamp:7876824721 queue:0x0bcb2e38
     kworker/0:1-758   [000] ....   240.054969: rtos_queue_send_from_isr_failed: tstamp:7876824892 queue:0x0bcb76a0
     kworker/0:1-758   [000] ....   240.055002: rtos_queue_send_from_isr_failed: tstamp:7876825048 queue:0x0bcb9220
     kworker/0:1-758   [000] ....   240.055003: rtos_queue_send_from_isr_failed: tstamp:7876825198 queue:0x0bcb9fe0
     kworker/0:1-758   [000] ....   240.055005: rtos_queue_send_from_isr_failed: tstamp:7876825343 queue:0x0bcbada0
     kworker/0:1-758   [000] ....   240.055006: rtcpu_string: tstamp:7876826264 id:0x04010000 str:"VI GOS[#0] set to VM GOS[4] base 0xc2104000"
     kworker/0:1-758   [000] ....   240.055031: rtos_queue_send_from_isr_failed: tstamp:7877051702 queue:0x0bcb2e38
     kworker/0:1-758   [000] ....   240.055032: rtos_queue_send_from_isr_failed: tstamp:7877051845 queue:0x0bcb76a0
     kworker/0:1-758   [000] ....   240.055034: rtos_queue_send_from_isr_failed: tstamp:7877051990 queue:0x0bcb9220
     kworker/0:1-758   [000] ....   240.055035: rtos_queue_send_from_isr_failed: tstamp:7877052129 queue:0x0bcb9fe0
     kworker/0:1-758   [000] ....   240.055037: rtos_queue_send_from_isr_failed: tstamp:7877052266 queue:0x0bcbada0
     kworker/0:1-758   [000] ....   240.055040: rtcpu_vinotify_event: tstamp:7877146239 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:7245343840 data:0x10000000
     kworker/0:1-758   [000] ....   240.055042: rtcpu_vinotify_event: tstamp:7877146392 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:7245352000 data:0x31000001
     kworker/0:1-758   [000] ....   240.055043: rtcpu_vinotify_event: tstamp:7877146545 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:7245354144 data:0x07020001
     kworker/0:1-758   [000] ....   240.055044: rtcpu_vinotify_event: tstamp:7877146675 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:7245387520 data:0x10000000
     kworker/0:1-758   [000] ....   240.055046: rtcpu_vinotify_event: tstamp:7877146823 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:7245395776 data:0x31000002
     kworker/0:1-758   [000] ....   240.222945: rtos_queue_peek_from_isr_failed: tstamp:7881664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   240.390906: rtos_queue_peek_from_isr_failed: tstamp:7886664280 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   240.559031: rtos_queue_peek_from_isr_failed: tstamp:7891664279 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   240.726970: rtos_queue_peek_from_isr_failed: tstamp:7896664277 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   240.839079: rtos_queue_peek_from_isr_failed: tstamp:7901664277 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   241.007097: rtos_queue_peek_from_isr_failed: tstamp:7906664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   241.175225: rtos_queue_peek_from_isr_failed: tstamp:7911664277 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   241.342895: rtos_queue_peek_from_isr_failed: tstamp:7916664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   241.510878: rtos_queue_peek_from_isr_failed: tstamp:7921664277 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   241.679246: rtos_queue_peek_from_isr_failed: tstamp:7926664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   241.847606: rtos_queue_peek_from_isr_failed: tstamp:7931664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   241.958893: rtos_queue_peek_from_isr_failed: tstamp:7936664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   242.126875: rtos_queue_peek_from_isr_failed: tstamp:7941664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   242.295110: rtos_queue_peek_from_isr_failed: tstamp:7946664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   242.462882: rtos_queue_peek_from_isr_failed: tstamp:7951664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   242.630922: rtos_queue_peek_from_isr_failed: tstamp:7956664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   242.798872: rtos_queue_peek_from_isr_failed: tstamp:7961664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   242.966867: rtos_queue_peek_from_isr_failed: tstamp:7966664280 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   243.078903: rtos_queue_peek_from_isr_failed: tstamp:7971664280 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   243.246874: rtos_queue_peek_from_isr_failed: tstamp:7976664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   243.415009: rtos_queue_peek_from_isr_failed: tstamp:7981664277 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   243.582905: rtos_queue_peek_from_isr_failed: tstamp:7986664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   243.751060: rtos_queue_peek_from_isr_failed: tstamp:7991664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   243.918879: rtos_queue_peek_from_isr_failed: tstamp:7996664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   244.086882: rtos_queue_peek_from_isr_failed: tstamp:8001664277 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   244.198884: rtos_queue_peek_from_isr_failed: tstamp:8006664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   244.366876: rtos_queue_peek_from_isr_failed: tstamp:8011664277 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   244.534923: rtos_queue_peek_from_isr_failed: tstamp:8016664277 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   244.702998: rtos_queue_peek_from_isr_failed: tstamp:8021664276 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   244.870896: rtos_queue_peek_from_isr_failed: tstamp:8026664280 queue:0x0bcbbbb8
     kworker/0:1-758   [000] ....   245.038922: rtos_queue_peek_from_isr_failed: tstamp:8031664276 queue:0x0bcbbbb8
 vi-output, vc_m-5430  [000] ....   245.145839: tegra_channel_capture_setup: vnc_id 0 W 736 H 540 fmt c5
     kworker/0:1-758   [000] ....   245.150749: rtos_queue_send_from_isr_failed: tstamp:8036384695 queue:0x0bcb2e38
     kworker/0:1-758   [000] ....   245.150761: rtos_queue_send_from_isr_failed: tstamp:8036384848 queue:0x0bcb76a0
     kworker/0:1-758   [000] ....   245.150766: rtos_queue_send_from_isr_failed: tstamp:8036384993 queue:0x0bcb9220
     kworker/0:1-758   [000] ....   245.150772: rtos_queue_send_from_isr_failed: tstamp:8036385142 queue:0x0bcb9fe0
     kworker/0:1-758   [000] ....   245.150777: rtos_queue_send_from_isr_failed: tstamp:8036385282 queue:0x0bcbada0
     kworker/0:1-758   [000] ....   245.150782: rtos_queue_send_from_isr_failed: tstamp:8036385482 queue:0x0bcb2dd0
     kworker/0:1-758   [000] ....   245.150787: rtos_queue_send_from_isr_failed: tstamp:8036385609 queue:0x0bcb2e38
     kworker/0:1-758   [000] ....   245.150819: rtos_queue_send_from_isr_failed: tstamp:8036385738 queue:0x0bcb7638
     kworker/0:1-758   [000] ....   245.150824: rtos_queue_send_from_isr_failed: tstamp:8036385867 queue:0x0bcb76a0
     kworker/0:1-758   [000] ....   245.150849: rtos_queue_send_from_isr_failed: tstamp:8036385998 queue:0x0bcb91b8
     kworker/0:1-758   [000] ....   245.150853: rtos_queue_send_from_isr_failed: tstamp:8036386124 queue:0x0bcb9220
     kworker/0:1-758   [000] ....   245.150856: rtos_queue_send_from_isr_failed: tstamp:8036386252 queue:0x0bcb9f78
     kworker/0:1-758   [000] ....   245.150860: rtos_queue_send_from_isr_failed: tstamp:8036386378 queue:0x0bcb9fe0
     kworker/0:1-758   [000] ....   245.150863: rtos_queue_send_from_isr_failed: tstamp:8036386505 queue:0x0bcbad38
     kworker/0:1-758   [000] ....   245.150867: rtos_queue_send_from_isr_failed: tstamp:8036386631 queue:0x0bcbada0
     kworker/0:1-758   [000] ....   245.150870: rtos_queue_send_from_isr_failed: tstamp:8036434166 queue:0x0bcb2e38
     kworker/0:1-758   [000] ....   245.150874: rtos_queue_send_from_isr_failed: tstamp:8036434310 queue:0x0bcb76a0
     kworker/0:1-758   [000] ....   245.150877: rtos_queue_send_from_isr_failed: tstamp:8036434454 queue:0x0bcb9220
     kworker/0:1-758   [000] ....   245.150880: rtos_queue_send_from_isr_failed: tstamp:8036434593 queue:0x0bcb9fe0
     kworker/0:1-758   [000] ....   245.150883: rtos_queue_send_from_isr_failed: tstamp:8036434735 queue:0x0bcbada0
     kworker/0:1-758   [000] ....   245.150886: rtos_queue_send_from_isr_failed: tstamp:8036480102 queue:0x0bcb2e38
     kworker/0:1-758   [000] ....   245.150890: rtos_queue_send_from_isr_failed: tstamp:8036480245 queue:0x0bcb76a0
     kworker/0:1-758   [000] ....   245.150893: rtos_queue_send_from_isr_failed: tstamp:8036480387 queue:0x0bcb9220
     kworker/0:1-758   [000] ....   245.150896: rtos_queue_send_from_isr_failed: tstamp:8036480527 queue:0x0bcb9fe0

Many thanks in advance

Andrea

Duplicated with IMX297 raw image acquisition - Jetson & Embedded Systems / Jetson Xavier NX - NVIDIA Developer Forums

suggest we should close this duplicate thread, let’s moving to Topic 238067.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.