v4l2-ctrl cannot get image when use a new camera

When I use the cmd show below, I cannot get image.

cmd: v4l2-ctl --set-fmt-video=width=1280,height=768,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=100 -d /dev/video0

dmesg:
[ 502.072933] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 128, err_data 131072
[ 504.698948] tegra194-vi5 15c10000.vi: no reply from camera processor
[ 504.699088] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 2500 ms

the message print by rtcpu is show below. I want to know “CHANSEL_NOMATCH” means what, and “data:0x00000549” means what. Thank you.

tracer: nop

entries-in-buffer/entries-written: 2467/2467 #P:8

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

 kworker/1:2-1776  [001] ....   465.644845: rtos_queue_peek_from_isr_failed: tstamp:14738625317 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   465.644851: rtcpu_start: tstamp:14738626444
 kworker/1:2-1776  [001] ....   465.644853: rtos_queue_send_from_isr_failed: tstamp:14738647952 queue:0x0bcb41f8
 kworker/1:2-1776  [001] ....   465.644854: rtos_queue_send_from_isr_failed: tstamp:14738648091 queue:0x0bcb8a60
 kworker/1:2-1776  [001] ....   465.644884: rtos_queue_send_from_isr_failed: tstamp:14738648229 queue:0x0bcba5e0
 kworker/1:2-1776  [001] ....   465.644885: rtos_queue_send_from_isr_failed: tstamp:14738648363 queue:0x0bcbb3a0
 kworker/1:2-1776  [001] ....   465.644886: rtos_queue_send_from_isr_failed: tstamp:14738648497 queue:0x0bcbc160
 kworker/1:2-1776  [001] ....   465.644889: rtcpu_dbg_set_loglevel: tstamp:14738649879 old:0 new:2
 kworker/1:2-1776  [001] ....   465.644890: rtos_queue_send_from_isr_failed: tstamp:14738652152 queue:0x0bcb41f8
 kworker/1:2-1776  [001] ....   465.644891: rtos_queue_send_from_isr_failed: tstamp:14738652287 queue:0x0bcb8a60
 kworker/1:2-1776  [001] ....   465.644891: rtos_queue_send_from_isr_failed: tstamp:14738652426 queue:0x0bcba5e0
 kworker/1:2-1776  [001] ....   465.644892: rtos_queue_send_from_isr_failed: tstamp:14738652558 queue:0x0bcbb3a0
 kworker/1:2-1776  [001] ....   465.644893: rtos_queue_send_from_isr_failed: tstamp:14738652690 queue:0x0bcbc160
 kworker/1:2-1776  [001] ....   465.812836: rtos_queue_peek_from_isr_failed: tstamp:14743625681 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   465.980861: rtos_queue_peek_from_isr_failed: tstamp:14748625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   466.152844: rtos_queue_peek_from_isr_failed: tstamp:14753625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   466.268847: rtos_queue_peek_from_isr_failed: tstamp:14758625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   466.436852: rtos_queue_peek_from_isr_failed: tstamp:14763625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   466.608828: rtos_queue_peek_from_isr_failed: tstamp:14768625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   466.776843: rtos_queue_peek_from_isr_failed: tstamp:14773625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   466.944841: rtos_queue_peek_from_isr_failed: tstamp:14778625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   467.120837: rtos_queue_peek_from_isr_failed: tstamp:14783625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   467.232839: rtos_queue_peek_from_isr_failed: tstamp:14788625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   467.404820: rtos_queue_peek_from_isr_failed: tstamp:14793625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   467.576815: rtos_queue_peek_from_isr_failed: tstamp:14798625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   467.744830: rtos_queue_peek_from_isr_failed: tstamp:14803625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   467.912838: rtos_queue_peek_from_isr_failed: tstamp:14808625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   468.024848: rtos_queue_peek_from_isr_failed: tstamp:14813625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   468.192815: rtos_queue_peek_from_isr_failed: tstamp:14818625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   468.364831: rtos_queue_peek_from_isr_failed: tstamp:14823625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   468.540839: rtos_queue_peek_from_isr_failed: tstamp:14828625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   468.716846: rtos_queue_peek_from_isr_failed: tstamp:14833625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   468.828815: rtos_queue_peek_from_isr_failed: tstamp:14838625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   469.004792: rtos_queue_peek_from_isr_failed: tstamp:14843625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   469.176803: rtos_queue_peek_from_isr_failed: tstamp:14848625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   469.352842: rtos_queue_peek_from_isr_failed: tstamp:14853625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   469.464833: rtos_queue_peek_from_isr_failed: tstamp:14858625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   469.632819: rtos_queue_peek_from_isr_failed: tstamp:14863625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   469.800787: rtos_queue_peek_from_isr_failed: tstamp:14868625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   469.968804: rtos_queue_peek_from_isr_failed: tstamp:14873625679 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   470.140828: rtos_queue_peek_from_isr_failed: tstamp:14878625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   470.312824: rtos_queue_peek_from_isr_failed: tstamp:14883625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   470.424814: rtos_queue_peek_from_isr_failed: tstamp:14888625679 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   470.592806: rtos_queue_peek_from_isr_failed: tstamp:14893625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   470.760804: rtos_queue_peek_from_isr_failed: tstamp:14898625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   470.936785: rtos_queue_peek_from_isr_failed: tstamp:14903625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   471.108823: rtos_queue_peek_from_isr_failed: tstamp:14908625677 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   471.224822: rtos_queue_peek_from_isr_failed: tstamp:14913625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   471.396817: rtos_queue_peek_from_isr_failed: tstamp:14918625678 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   471.456815: rtos_queue_peek_from_isr_failed: tstamp:14919824926 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   502.063170: rtos_queue_peek_from_isr_failed: tstamp:15876434004 queue:0x0bcbcf78
 kworker/1:2-1776  [001] ....   502.063175: rtcpu_start: tstamp:15876435135
 kworker/1:2-1776  [001] ....   502.063199: rtos_queue_send_from_isr_failed: tstamp:15876445229 queue:0x0bcb41f8
 kworker/1:2-1776  [001] ....   502.063200: rtos_queue_send_from_isr_failed: tstamp:15876445368 queue:0x0bcb8a60
 kworker/1:2-1776  [001] ....   502.063201: rtos_queue_send_from_isr_failed: tstamp:15876445504 queue:0x0bcba5e0
 kworker/1:2-1776  [001] ....   502.063201: rtos_queue_send_from_isr_failed: tstamp:15876445646 queue:0x0bcbb3a0
 kworker/1:2-1776  [001] ....   502.063202: rtos_queue_send_from_isr_failed: tstamp:15876445780 queue:0x0bcbc160
 kworker/1:2-1776  [001] ....   502.063204: rtcpu_string: tstamp:15876446181 id:0x04010000 str:"Configuring VI GoS.

"
kworker/1:2-1776 [001] … 502.063309: rtcpu_string: tstamp:15876446356 id:0x04010000 str:"VM GOS[#0] addr=0xb4900000
"
kworker/1:2-1776 [001] … 502.063390: rtcpu_string: tstamp:15876446597 id:0x04010000 str:"VM GOS[#1] addr=0xb4901000
"
kworker/1:2-1776 [001] … 502.063475: rtcpu_string: tstamp:15876446870 id:0x04010000 str:"VM GOS[#2] addr=0xb4902000
"
kworker/1:2-1776 [001] … 502.063554: rtcpu_string: tstamp:15876447090 id:0x04010000 str:"VM GOS[#3] addr=0xb4903000
"
kworker/1:2-1776 [001] … 502.063629: rtcpu_string: tstamp:15876447309 id:0x04010000 str:"VM GOS[#4] addr=0xb4904000
"
kworker/1:2-1776 [001] … 502.063707: rtcpu_string: tstamp:15876447528 id:0x04010000 str:"VM GOS[#5] addr=0xb4905000
"
kworker/1:2-1776 [001] … 502.063781: rtcpu_string: tstamp:15876455193 id:0x04010000 str:“vi5_hwinit: firmware CL2018101701 protocol versi”
kworker/1:2-1776 [001] … 502.063783: rtcpu_string: tstamp:15876455316 id:0x04010000 str:"on 2.2
"
kworker/1:2-1776 [001] … 502.063896: rtos_queue_send_from_isr_failed: tstamp:15876468258 queue:0x0bcb41f8
kworker/1:2-1776 [001] … 502.063898: rtos_queue_send_from_isr_failed: tstamp:15876468411 queue:0x0bcb8a60
kworker/1:2-1776 [001] … 502.063898: rtos_queue_send_from_isr_failed: tstamp:15876468553 queue:0x0bcba5e0
kworker/1:2-1776 [001] … 502.063899: rtos_queue_send_from_isr_failed: tstamp:15876468686 queue:0x0bcbb3a0
kworker/1:2-1776 [001] … 502.063900: rtos_queue_send_from_isr_failed: tstamp:15876468818 queue:0x0bcbc160
kworker/1:2-1776 [001] … 502.063901: rtcpu_string: tstamp:15876469634 id:0x04010000 str:"VI GOS[#0] set to VM GOS[4] base 0xb4904000
"
kworker/1:2-1776 [001] … 502.063996: rtos_queue_send_from_isr_failed: tstamp:15876528094 queue:0x0bcb41f8
kworker/1:2-1776 [001] … 502.063997: rtos_queue_send_from_isr_failed: tstamp:15876528231 queue:0x0bcb8a60
kworker/1:2-1776 [001] … 502.063998: rtos_queue_send_from_isr_failed: tstamp:15876528370 queue:0x0bcba5e0
kworker/1:2-1776 [001] … 502.063998: rtos_queue_send_from_isr_failed: tstamp:15876528502 queue:0x0bcbb3a0
kworker/1:2-1776 [001] … 502.063999: rtos_queue_send_from_isr_failed: tstamp:15876528634 queue:0x0bcbc160
kworker/1:2-1776 [001] … 502.064003: rtcpu_nvcsi_intr: tstamp:15876531289 class:GLOBAL type:PHY_INTR0 phy:0 cil:0 st:0 vc:0 status:0x00000001
kworker/1:2-1776 [001] … 502.064004: rtcpu_vinotify_event: tstamp:15876992279 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:14125815968 data:0x10000000
kworker/1:2-1776 [001] … 502.064005: rtcpu_vinotify_event: tstamp:15876992410 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:14125819840 data:0x31000001
kworker/1:2-1776 [001] … 502.064006: rtcpu_vinotify_event: tstamp:15876992572 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:14125820832 data:0x07020001
kworker/1:2-1776 [001] … 502.064006: rtcpu_vinotify_event: tstamp:15876992714 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:14125857280 data:0x10000000
kworker/1:2-1776 [001] … 502.064007: rtcpu_vinotify_event: tstamp:15876992916 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:14125861184 data:0x31000002
kworker/1:2-1776 [001] … 502.123147: rtcpu_vinotify_error: tstamp:15877434602 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15877431634 data:0x00000549
kworker/1:2-1776 [001] … 502.123151: rtcpu_vinotify_event: tstamp:15877534644 tag:FS channel:0x00 frame:0 vi_tstamp:15877431364 data:0x00000010
kworker/1:2-1776 [001] … 502.123153: rtcpu_vinotify_event: tstamp:15877534790 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:15877431366 data:0x00000000
kworker/1:2-1776 [001] … 502.123153: rtcpu_vinotify_event: tstamp:15877534915 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15877431634 data:0x00000549
kworker/1:2-1776 [001] … 502.123159: rtos_queue_send_from_isr_failed: tstamp:15877710097 queue:0x0bcb41f8
kworker/1:2-1776 [001] … 502.123160: rtos_queue_send_from_isr_failed: tstamp:15877710238 queue:0x0bcb8a60
kworker/1:2-1776 [001] … 502.123161: rtos_queue_send_from_isr_failed: tstamp:15877710377 queue:0x0bcba5e0
kworker/1:2-1776 [001] … 502.123162: rtos_queue_send_from_isr_failed: tstamp:15877710509 queue:0x0bcbb3a0
kworker/1:2-1776 [001] … 502.123163: rtos_queue_send_from_isr_failed: tstamp:15877710643 queue:0x0bcbc160
kworker/1:2-1776 [001] … 502.123164: rtcpu_vinotify_event: tstamp:15878077296 tag:FE channel:0x00 frame:0 vi_tstamp:15877695121 data:0x00000020
kworker/1:2-1776 [001] … 502.123164: rtcpu_vinotify_event: tstamp:15878077426 tag:CHANSEL_SHORT_FRAME channel:0x01 frame:0 vi_tstamp:15877695122 data:0x01000000
kworker/1:2-1776 [001] … 502.123165: rtcpu_vinotify_event: tstamp:15878077591 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:14165022528 data:0x01020001
kworker/1:2-1776 [001] … 502.123166: rtcpu_vinotify_event: tstamp:15878077720 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:15877695124 data:0x00000000
kworker/1:2-1776 [001] … 502.123167: rtcpu_vinotify_error: tstamp:15878215202 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15878212240 data:0x00000549
kworker/1:2-1776 [001] … 502.123168: rtcpu_vinotify_event: tstamp:15878478974 tag:FS channel:0x00 frame:0 vi_tstamp:15878211970 data:0x00000010
kworker/1:2-1776 [001] … 502.123187: rtcpu_vinotify_event: tstamp:15878479101 tag:ATOMP_FS channel:0x00 frame:0 vi_tstamp:15878211973 data:0x00000000
kworker/1:2-1776 [001] … 502.123188: rtcpu_vinotify_event: tstamp:15878479262 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15878212240 data:0x00000549
kworker/1:2-1776 [001] … 502.123189: rtcpu_vinotify_event: tstamp:15878479385 tag:FE channel:0x00 frame:0 vi_tstamp:15878475727 data:0x00000020
kworker/1:2-1776 [001] … 502.123190: rtcpu_vinotify_error: tstamp:15878996366 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15878993537 data:0x00000549
kworker/1:2-1776 [001] … 502.123191: rtcpu_vinotify_event: tstamp:15878999268 tag:CHANSEL_SHORT_FRAME channel:0x01 frame:0 vi_tstamp:15878475728 data:0x01000000
kworker/1:2-1776 [001] … 502.123191: rtcpu_vinotify_event: tstamp:15878999397 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:14190007840 data:0x01020001
kworker/1:2-1776 [001] … 502.123192: rtcpu_vinotify_event: tstamp:15878999560 tag:ATOMP_FE channel:0x00 frame:0 vi_tstamp:15878475730 data:0x00000000
kworker/1:2-1776 [001] … 502.123193: rtcpu_vinotify_event: tstamp:15878999703 tag:FS channel:0x00 frame:0 vi_tstamp:15878993263 data:0x00000010
kworker/1:2-1776 [001] … 502.123195: rtcpu_vinotify_event: tstamp:15878999861 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15878993537 data:0x00000549
kworker/1:2-1776 [001] … 502.179167: rtcpu_vinotify_event: tstamp:15879542086 tag:FE channel:0x00 frame:0 vi_tstamp:15879257021 data:0x00000020
kworker/1:2-1776 [001] … 502.179170: rtcpu_vinotify_error: tstamp:15879777663 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15879774830 data:0x00000549
kworker/1:2-1776 [001] … 502.179171: rtcpu_vinotify_event: tstamp:15880084327 tag:FS channel:0x00 frame:0 vi_tstamp:15879774555 data:0x00000010
kworker/1:2-1776 [001] … 502.179172: rtcpu_vinotify_event: tstamp:15880084450 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15879774830 data:0x00000549
kworker/1:2-1776 [001] … 502.179173: rtcpu_vinotify_event: tstamp:15880084608 tag:FE channel:0x00 frame:0 vi_tstamp:15880038313 data:0x00000020
kworker/1:2-1776 [001] … 502.179173: rtcpu_vinotify_error: tstamp:15880559297 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15880556468 data:0x00000549
kworker/1:2-1776 [001] … 502.179174: rtcpu_vinotify_event: tstamp:15880627261 tag:FS channel:0x00 frame:0 vi_tstamp:15880556198 data:0x00000010
kworker/1:2-1776 [001] … 502.179175: rtcpu_vinotify_event: tstamp:15880627401 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15880556468 data:0x00000549
kworker/1:2-1776 [001] … 502.235129: rtcpu_vinotify_event: tstamp:15881170072 tag:FE channel:0x00 frame:0 vi_tstamp:15880819954 data:0x00000020
kworker/1:2-1776 [001] … 502.235132: rtcpu_vinotify_error: tstamp:15881340246 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15881337417 data:0x00000549
kworker/1:2-1776 [001] … 502.235134: rtos_queue_peek_from_isr_failed: tstamp:15881434368 queue:0x0bcbcf78
kworker/1:2-1776 [001] … 502.235135: rtcpu_vinotify_event: tstamp:15881712374 tag:FS channel:0x00 frame:0 vi_tstamp:15881337146 data:0x00000010
kworker/1:2-1776 [001] … 502.235154: rtcpu_vinotify_event: tstamp:15881712498 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15881337417 data:0x00000549
kworker/1:2-1776 [001] … 502.235155: rtcpu_vinotify_event: tstamp:15881712659 tag:FE channel:0x00 frame:0 vi_tstamp:15881600905 data:0x00000020
kworker/1:2-1776 [001] … 502.235156: rtcpu_vinotify_error: tstamp:15882121150 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15882118367 data:0x00000549
kworker/1:2-1776 [001] … 502.235157: rtcpu_vinotify_event: tstamp:15882121582 tag:FS channel:0x00 frame:0 vi_tstamp:15882118097 data:0x00000010
kworker/1:2-1776 [001] … 502.235158: rtcpu_vinotify_event: tstamp:15882634402 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15882118367 data:0x00000549
kworker/1:2-1776 [001] … 502.235158: rtcpu_vinotify_event: tstamp:15882634524 tag:FE channel:0x00 frame:0 vi_tstamp:15882381854 data:0x00000020
kworker/1:2-1776 [001] … 502.291137: rtcpu_vinotify_error: tstamp:15882902469 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15882899660 data:0x00000549
kworker/1:2-1776 [001] … 502.291141: rtcpu_vinotify_event: tstamp:15883177448 tag:FS channel:0x00 frame:0 vi_tstamp:15882899389 data:0x00000010
kworker/1:2-1776 [001] … 502.291142: rtcpu_vinotify_event: tstamp:15883177570 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15882899660 data:0x00000549
kworker/1:2-1776 [001] … 502.291143: rtcpu_vinotify_event: tstamp:15883177728 tag:FE channel:0x00 frame:0 vi_tstamp:15883163147 data:0x00000020
kworker/1:2-1776 [001] … 502.291144: rtcpu_vinotify_error: tstamp:15883684136 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15883681301 data:0x00000549
kworker/1:2-1776 [001] … 502.291145: rtcpu_vinotify_event: tstamp:15883719586 tag:FS channel:0x00 frame:0 vi_tstamp:15883681027 data:0x00000010
kworker/1:2-1776 [001] … 502.291145: rtcpu_vinotify_event: tstamp:15883719726 tag:CHANSEL_NOMATCH channel:0x01 frame:0 vi_tstamp:15883681301 data:0x00000549

Hi,

From provided log it could be possible that the sensor output stream has a different resolution than expected. Does the image sensor is being configured correctly to output frames with a 1280x768 resolution?

What is the output of this command?

v4l2-ctl -d /dev/video0 --list-formats-ext

This issues are common too when embedded_metadata_height is not set correctly in the camera device tree. I recommend taking a look to this link: https://docs.nvidia.com/jetson/l4t/#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Fcamera_sensor_prog.html%23

-Jafet

Hi,

The command “v4l2-ctl -d /dev/video0 --list-formats-ext” output like this:

~$ v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘RG10’
Name : 10-bit Bayer RGRG/GBGB
Size: Discrete 1280x768
Interval: Discrete 0.025s (40.000 fps)

The information is the same with we expected.

And we set embedded_metadata_height = 0 now, we tried embedded_metadata_height = 1 and embedded_metadata_height = 2, the error is the same and we cannot get v4l2 image.

Hi, Our camera connect to xavier like this: sensor->ub953->ub960->xavier. The image to ub960 is 1280*768 and the format is raw10. Our dtsi is like this:

mode0 { // UB960_MODE_1280X768
mclk_khz = “25000”;
num_lanes = “4”;
tegra_sinterface = “serial_a”;
vc_id = “0”;
phy_mode = “DPHY”;
discontinuous_clk = “yes”;
dpcm_enable = “false”;
cil_settletime = “0”;
mode_type = “bayer”;
csi_pixel_bit_depth = “10”;
pixel_phase = “rggb”;

active_w = “1280”;
active_h = “768”;
readout_orientation = “0”;
line_length = “1600”;
inherent_gain = “1”;
mclk_multiplier = “12.8”;
pix_clk_hz = “320000000”;

min_gain_val = “1.0”;
max_gain_val = “177”;
gain_step_pitch = “0.1”;
min_hdr_ratio = “1”;
max_hdr_ratio = “1”;
min_framerate = “1.5”;
max_framerate = “60”;
min_exp_time = “16.165”;
max_exp_time = “165770”;
exp_time_1h = “8”;
embedded_metadata_height = “0”;
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
liub960_ub960_out0: endpoint {
vc-id = <0>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&liub960_csi_in0>;
};
};
};

I think “embedded_metadata_height” means insert several lines in every frame image data, is it right?

We have already closed this function by setting sensor registers, and set embedded_metadata_height=0 in dtsi, but xavier report “NOMATCH”.

So could it be something else?

Where can I see the interpretation of this error number “0x549”?

Be sure to set “serdes_pix_clk_hz” to match the pixel rate of the CSI output of your deserializer and set pixl_clk_hz to the pixel clock of your image sensor.

“embedded_metadata_height” should be set to the number of embedded data lines that you sensor outputs. This may be zero. An embedded data line is a “line” that is not image data. There is a CSI line type field that denotes this. If what you enter in the device tree for this value does not match what Xavier see then you will have problems.

In your log I see CHANSEL_SHORT_FRAME errors which indicate that an end of frame (EOF) CSI packet was received but the Xavier saw fewer lines than “active_h”.

Thanks for your reply.

Now I find the NOMATCH event 0x549 indicate a line with data type = 0x2A received, but no VI channel is programmed to capture this data type. Our image data type is 0x2b(raw10), so we will go to find why the sensor send a line with data type=0x2a.

By the way, now we are using vc-id, one sensor connect to ub960 through one vc-id, and then connect to xavier.

One vc-id channel can only process one data type? If there is another type data we don’t know, the image data will be discarded?

Do you have any idea for this matter? Thank you.

Someone from Nvidia can provide a definitive answer but I believe that you are correct: only one data type is allowed for each VC-id. The one exception is embedded metadata lines.I believe the data type for this kind of line is 0x12.