JETSON NX with OV9281 can stream but picture is abnormal

1. VERSION
root@nvidia-desktop:/work/0519# cat /etc/nv_tegra_release
# R32 (release), REVISION: 6.1, GCID: 27863751, BOARD: t186ref, EABI: aarch64, DATE: Mon Jul 26 19:36:31 UTC 2021

2. CAN stream,but picure is abnormal
gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! “video/x-raw(memory:NVMM),format=(string)UYVY, width=(int)1920, height=(int)1080” ! nvvidconv ! “video/x-raw(memory:NVMM),format=(string)NV12” ! nvoverlaysink sync=false

3.Pixel Format:"RG10"
root@nvidia-desktop:/work/0519# v4l2-ctl --device=/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 1280x800
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 640x400
Interval: Discrete 0.017s (60.000 fps)
4.devicetree
cam_i2cmux {
i2c_0:i2c@0 {
ov9281_cam0: rbpcv2_ov9281_a@60 {
compatible = “nvidia,ov9281”;
reg = <0x60>;
clocks = <&bpmp_clks TEGRA194_CLK_EXTPERIPH1>;
clock-names = “extperiph1”;
mclk = “extperiph1”;

			devnode = "video0";

			/* Physical dimensions of sensor */
			physical_w = "3.680";
			physical_h = "2.760";

			sensor_model = "ov9281";
			use_sensor_mode_id = "true";         
			fsync = "none";/*none/slave/master/slave-trigger*/				
 
			mode0 {
				mclk_khz = "24000";
				num_lanes = "2";
				tegra_sinterface = "serial_a";
				phy_mode = "DPHY";
				discontinuous_clk = "no";
				dpcm_enable = "false";
				cil_settletime = "0";

				active_w = "1280";
				active_h = "800";
				pixel_t = "bayer_rggb10";
				readout_orientation = "90";
				line_length = "0";
				inherent_gain = "1";
				mclk_multiplier = "9.33";
				
				pix_clk_hz = "800000000";

				gain_factor = "1000";
				framerate_factor = "1000";
				exposure_factor = "1000000";
				min_gain_val = "1"; /* 1.00x */
				max_gain_val = "48000"; /* 10.66x */
				step_gain_val = "100";
				default_gain = "0"; /* 1.00x */
				min_hdr_ratio = "1";
				max_hdr_ratio = "1";
				min_framerate = "1"; /* 2.0 fps */
				max_framerate = "60000"; /* 60.0 fps */
				step_framerate = "100";
				default_framerate = "60000"; /* 60.0 fps */
				min_exp_time = "1"; /* us */
				max_exp_time = "16777215"; /* us */
				step_exp_time = "1";
				default_exp_time = "10896"; /* us */

				embedded_metadata_height = "0";
			};

			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
					rbpcv2_ov9281_out0: endpoint {
						port-index = <0>;
						bus-width = <2>;
						remote-endpoint = <&rbpcv2_ov9281_csi_in0>;
					};
				};
			};
		};
	};

tcp: tegra-camera-platform {
	compatible = "nvidia, tegra-camera-platform";
	num_csi_lanes = <2>;
	max_lane_speed = <1500000>;
	min_bits_per_pixel = <10>;
	vi_peak_byte_per_pixel = <2>;
	vi_bw_margin_pct = <25>;
	max_pixel_rate = <240000>;
	isp_peak_byte_per_pixel = <5>;
	isp_bw_margin_pct = <25>;
	   ......
	}

5. the picture below is abnormal

My Questions is:
a. Why is the color abnormal and how to modify and test
b.Play with the nvarguscamerasrc plugin, showing no camera.Why is this?
gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! ‘video/x-raw(memory:NVMM),width=1280, height=800, framerate=21/1, format=NV12’ ! nvvidconv flip-method=0 ! ‘video/x-raw,width=960, height=616’ ! nvvidconv ! nvegltransform ! nveglglessink -e

Setting pipeline to PAUSED …

Using winsys: x11
Pipeline is live and does not need PREROLL …
Got context from element ‘eglglessink0’: gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Setting pipeline to PLAYING …
New clock: GstSystemClock
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:725 No cameras available
Got EOS from element “pipeline0”.
Execution ended after 0:00:00.320788485
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

Looking forward to your reply ,thank you !

Suppose nvv4l2camerasrc unable support Bayer format sensor. Only support USB or YUV camera.
Also nvarguscamerasrc only support Bayer sensor only and exclusive with nvv4l2camerasrc.
Check if any others sensor connect to system by v4l2-ctl --list-devices.

Play with the nvarguscamerasrc plugin, showing no camera.Why is this?

Could be your sensor driver or device tree. Didn’t get much information to tell what going on.

1. serial output:
nvidia-desktop login: [ 2714.024280] tegra194-isp5 14800000.isp: isp_capture_init++
[ 2714.025553] tegra194-isp5 14800000.isp: chan flags 1
[ 2714.025669] tegra194-isp5 14800000.isp: queue depth 4
[ 2714.025758] tegra194-isp5 14800000.isp: request size 1088
[ 2714.026573] tegra194-isp5 14800000.isp: isp_capture_setup: descr buffer handle 0x403
[ 2714.026754] tegra194-isp5 14800000.isp: isp_capture_setup: descr buffer handle 1028
[ 2714.028401] t194-nvcsi 15a00000.nvcsi: settle time reading from props
[ 2714.029752] t194-nvcsi 15a00000.nvcsi: settle time reading from props
[ 2714.029899] t194-nvcsi 15a00000.nvcsi: csi5_mipi_cal
[ 2714.030017] t194-nvcsi 15a00000.nvcsi: csi_port:0
[ 2714.030243] t194-nvcsi 15a00000.nvcsi: settle time reading from props
[ 2714.030368] t194-nvcsi 15a00000.nvcsi: csi5_mipi_cal
[ 2714.030467] t194-nvcsi 15a00000.nvcsi: csi_port:2
[ 2714.033037] tegra194-isp5 14800000.isp: 6 GoS tables configured.
[ 2714.033176] tegra194-isp5 14800000.isp: gos[0] = 0xc2100000
[ 2714.033271] tegra194-isp5 14800000.isp: gos[1] = 0xc2101000
[ 2714.033367] tegra194-isp5 14800000.isp: gos[2] = 0xc2102000
[ 2714.033462] tegra194-isp5 14800000.isp: gos[3] = 0xc2103000
[ 2714.036960] tegra194-isp5 14800000.isp: gos[4] = 0xc2104000
[ 2714.042715] tegra194-isp5 14800000.isp: gos[5] = 0xc2105000
[ 2714.048147] tegra194-isp5 14800000.isp: isp_capture_ivc_send_control: sending chan_id 67 msg_id 32
[ 2714.057761] tegra194-isp5 14800000.isp: isp_capture_ivc_send_control: response chan_id 67 msg_id 33
[ 2714.075515] [RCE] Configuring ISP GoS.
[ 2714.075691] [RCE] VM GOS[#0] addr=0xc2100000
[ 2714.075837] [RCE] VM GOS[#1] addr=0xc2101000
[ 2714.079491] [RCE] VM GOS[#2] addr=0xc2102000
[ 2714.084041] [RCE] VM GOS[#3] addr=0xc2103000
[ 2714.087945] [RCE] VM GOS[#4] addr=0xc2104000
[ 2714.092517] [RCE] VM GOS[#5] addr=0xc2105000
[ 2714.097482] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 290
[ 2714.106902] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 304
[ 2714.122798] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 353
[ 2714.127329] t194-nvcsi 15a00000.nvcsi: csi5_power_on
[ 2714.134311] t194-nvcsi 15a00000.nvcsi: csi5_power_off
[ 2714.141713] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 290
[ 2714.148098] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 304
[ 2714.163821] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 353
[ 2714.168882] t194-nvcsi 15a00000.nvcsi: csi5_power_on
[ 2714.174304] t194-nvcsi 15a00000.nvcsi: csi5_power_off
[ 2714.251942] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 290
[ 2714.252169] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 304
[ 2714.257742] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 353
[ 2714.257972] t194-nvcsi 15a00000.nvcsi: csi5_power_on
[ 2714.258551] t194-nvcsi 15a00000.nvcsi: csi5_power_off
[ 2714.260939] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 290
[ 2714.261171] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 304
[ 2714.266749] hzhy /home/share/work/4.sources/sources/kernel/nvidia/drivers/media/i2c/ov9281.c ov9281_power_on 353
[ 2714.266947] t194-nvcsi 15a00000.nvcsi: csi5_power_on
[ 2714.268425] t194-nvcsi 15a00000.nvcsi: csi5_power_off
[ 2714.454804] tegra194-isp5 14800000.isp: isp_capture_ivc_send_control: sending chan_id 0 msg_id 34
[ 2714.455241] tegra194-isp5 14800000.isp: isp_capture_ivc_send_control: response chan_id 0 msg_id 35
[ 2714.456567] tegra194-isp5 14800000.isp: isp_capture_ivc_send_control: sending chan_id 0 msg_id 36
[ 2714.456865] tegra194-isp5 14800000.isp: isp_capture_ivc_send_control: response chan_id 0 msg_id 37
[ 2714.457416] tegra194-isp5 14800000.isp: isp_capture_shutdown–
[ 2716.311181] usb 1-2.1: usb_suspend_both: status 0

2.
root@nvidia-desktop:/work# cat /sys/kernel/debug/tracing/trace

tracer: nop

entries-in-buffer/entries-written: 142/142 #P:4

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

 kworker/0:3-9527  [000] ....  2601.349722: rtos_queue_peek_from_isr_failed: tstamp:81766452849 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2601.517691: rtos_queue_peek_from_isr_failed: tstamp:81771452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2601.685686: rtos_queue_peek_from_isr_failed: tstamp:81776452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2601.797715: rtos_queue_peek_from_isr_failed: tstamp:81781452845 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2601.965659: rtos_queue_peek_from_isr_failed: tstamp:81786452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2602.133640: rtos_queue_peek_from_isr_failed: tstamp:81791452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2602.301628: rtos_queue_peek_from_isr_failed: tstamp:81796452842 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2602.469615: rtos_queue_peek_from_isr_failed: tstamp:81801452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2602.637597: rtos_queue_peek_from_isr_failed: tstamp:81806452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2602.805595: rtos_queue_peek_from_isr_failed: tstamp:81811452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2602.917579: rtos_queue_peek_from_isr_failed: tstamp:81816452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2603.085562: rtos_queue_peek_from_isr_failed: tstamp:81821452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2603.253550: rtos_queue_peek_from_isr_failed: tstamp:81826452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2603.421593: rtos_queue_peek_from_isr_failed: tstamp:81831452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2603.589520: rtos_queue_peek_from_isr_failed: tstamp:81836452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2603.757504: rtos_queue_peek_from_isr_failed: tstamp:81841452845 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2603.925484: rtos_queue_peek_from_isr_failed: tstamp:81846452847 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2604.037477: rtos_queue_peek_from_isr_failed: tstamp:81851452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2604.205472: rtos_queue_peek_from_isr_failed: tstamp:81856452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2604.373444: rtos_queue_peek_from_isr_failed: tstamp:81861452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2604.541428: rtos_queue_peek_from_isr_failed: tstamp:81866452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2604.709418: rtos_queue_peek_from_isr_failed: tstamp:81871452847 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2604.877403: rtos_queue_peek_from_isr_failed: tstamp:81876452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2605.045390: rtos_queue_peek_from_isr_failed: tstamp:81881452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2605.157377: rtos_queue_peek_from_isr_failed: tstamp:81886452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2605.325358: rtos_queue_peek_from_isr_failed: tstamp:81891452849 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2605.493353: rtos_queue_peek_from_isr_failed: tstamp:81896452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2605.661331: rtos_queue_peek_from_isr_failed: tstamp:81901452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2605.829320: rtos_queue_peek_from_isr_failed: tstamp:81906452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2605.997324: rtos_queue_peek_from_isr_failed: tstamp:81911452846 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2606.165296: rtos_queue_peek_from_isr_failed: tstamp:81916452845 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2606.277297: rtos_queue_peek_from_isr_failed: tstamp:81921452845 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2606.389267: rtos_queue_peek_from_isr_failed: tstamp:81924914415 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2714.075469: rtos_queue_peek_from_isr_failed: tstamp:85288887763 queue:0x0bcbbbb8
 kworker/0:3-9527  [000] ....  2714.075477: rtcpu_start: tstamp:85288889357
 kworker/0:3-9527  [000] ....  2714.075480: rtos_queue_send_from_isr_failed: tstamp:85289378405 queue:0x0bcb2e38
 kworker/0:3-9527  [000] ....  2714.075481: rtos_queue_send_from_isr_failed: tstamp:85289378555 queue:0x0bcb76a0
 kworker/0:3-9527  [000] ....  2714.075482: rtos_queue_send_from_isr_failed: tstamp:85289378706 queue:0x0bcb9220
 kworker/0:3-9527  [000] ....  2714.075483: rtos_queue_send_from_isr_failed: tstamp:85289378852 queue:0x0bcb9fe0
 kworker/0:3-9527  [000] ....  2714.075484: rtos_queue_send_from_isr_failed: tstamp:85289379000 queue:0x0bcbada0
 kworker/0:3-9527  [000] ....  2714.075486: rtcpu_string: tstamp:85289379473 id:0x04010000 str:"Configuring ISP GoS.

"
kworker/0:3-9527 [000] … 2714.075683: rtcpu_string: tstamp:85289379655 id:0x04010000 str:" VM GOS[#0] addr=0xc2100000
"
kworker/0:3-9527 [000] … 2714.075828: rtcpu_string: tstamp:85289379909 id:0x04010000 str:" VM GOS[#1] addr=0xc2101000
"
kworker/0:3-9527 [000] … 2714.079479: rtcpu_string: tstamp:85289380154 id:0x04010000 str:" VM GOS[#2] addr=0xc2102000
"
kworker/0:3-9527 [000] … 2714.084027: rtcpu_string: tstamp:85289380406 id:0x04010000 str:" VM GOS[#3] addr=0xc2103000
"
kworker/0:3-9527 [000] … 2714.087935: rtcpu_string: tstamp:85289380639 id:0x04010000 str:" VM GOS[#4] addr=0xc2104000
"
nvargus-daemon-9695 [002] … 2714.090554: tegra_channel_open: vi-output, ov9281 9-0060
nvargus-daemon-9695 [002] … 2714.090566: tegra_channel_set_power: ov9281 9-0060 : 0x1
nvargus-daemon-9695 [002] … 2714.090573: camera_common_s_power: status : 0x1
kworker/0:3-9527 [000] … 2714.092507: rtcpu_string: tstamp:85289380874 id:0x04010000 str:" VM GOS[#5] addr=0xc2105000
"
nvargus-daemon-9695 [002] … 2714.127314: tegra_channel_set_power: 15a00000.nvcsi–2 : 0x1
nvargus-daemon-9695 [002] … 2714.127319: csi_s_power: enable : 0x1
nvargus-daemon-9695 [003] … 2714.133249: tegra_channel_close: vi-output, ov9281 9-0060
nvargus-daemon-9695 [003] … 2714.133256: tegra_channel_set_power: ov9281 9-0060 : 0x0
nvargus-daemon-9695 [003] … 2714.133262: camera_common_s_power: status : 0x0
nvargus-daemon-9695 [003] … 2714.134297: tegra_channel_set_power: 15a00000.nvcsi–2 : 0x0
nvargus-daemon-9695 [003] … 2714.134300: csi_s_power: enable : 0x0
nvargus-daemon-9695 [003] … 2714.140933: tegra_channel_open: vi-output, ov9281 10-0060
nvargus-daemon-9695 [003] … 2714.140942: tegra_channel_set_power: ov9281 10-0060 : 0x1
nvargus-daemon-9695 [003] … 2714.140946: camera_common_s_power: status : 0x1
nvargus-daemon-9695 [003] … 2714.168870: tegra_channel_set_power: 15a00000.nvcsi–1 : 0x1
nvargus-daemon-9695 [003] … 2714.168874: csi_s_power: enable : 0x1
nvargus-daemon-9695 [003] … 2714.173960: tegra_channel_close: vi-output, ov9281 10-0060
nvargus-daemon-9695 [003] … 2714.173964: tegra_channel_set_power: ov9281 10-0060 : 0x0
nvargus-daemon-9695 [003] … 2714.173968: camera_common_s_power: status : 0x0
nvargus-daemon-9695 [000] … 2714.174291: tegra_channel_set_power: 15a00000.nvcsi–1 : 0x0
nvargus-daemon-9695 [000] … 2714.174295: csi_s_power: enable : 0x0
kworker/0:3-9527 [000] … 2714.207366: rtos_queue_peek_from_isr_failed: tstamp:85293888129 queue:0x0bcbbbb8
nvargus-daemon-9695 [000] … 2714.251483: tegra_channel_open: vi-output, ov9281 9-0060
nvargus-daemon-9695 [000] … 2714.251491: tegra_channel_set_power: ov9281 9-0060 : 0x1
nvargus-daemon-9695 [000] … 2714.251498: camera_common_s_power: status : 0x1
nvargus-daemon-9695 [000] … 2714.257958: tegra_channel_set_power: 15a00000.nvcsi–2 : 0x1
nvargus-daemon-9695 [000] … 2714.257962: csi_s_power: enable : 0x1
nvargus-daemon-9695 [000] … 2714.258221: tegra_channel_close: vi-output, ov9281 9-0060
nvargus-daemon-9695 [000] … 2714.258226: tegra_channel_set_power: ov9281 9-0060 : 0x0
nvargus-daemon-9695 [000] … 2714.258230: camera_common_s_power: status : 0x0
nvargus-daemon-9695 [000] … 2714.258543: tegra_channel_set_power: 15a00000.nvcsi–2 : 0x0
nvargus-daemon-9695 [000] … 2714.258545: csi_s_power: enable : 0x0
nvargus-daemon-9695 [001] … 2714.260617: tegra_channel_open: vi-output, ov9281 10-0060
nvargus-daemon-9695 [001] … 2714.260626: tegra_channel_set_power: ov9281 10-0060 : 0x1
nvargus-daemon-9695 [001] … 2714.260632: camera_common_s_power: status : 0x1
nvargus-daemon-9695 [001] … 2714.266937: tegra_channel_set_power: 15a00000.nvcsi–1 : 0x1
nvargus-daemon-9695 [001] … 2714.266940: csi_s_power: enable : 0x1
nvargus-daemon-9695 [001] … 2714.267229: tegra_channel_close: vi-output, ov9281 10-0060
nvargus-daemon-9695 [001] … 2714.267233: tegra_channel_set_power: ov9281 10-0060 : 0x0
nvargus-daemon-9695 [001] … 2714.267238: camera_common_s_power: status : 0x0
nvargus-daemon-9695 [000] … 2714.268414: tegra_channel_set_power: 15a00000.nvcsi–1 : 0x0
nvargus-daemon-9695 [000] … 2714.268418: csi_s_power: enable : 0x0
kworker/0:3-9527 [000] … 2714.375374: rtos_queue_peek_from_isr_failed: tstamp:85298888130 queue:0x0bcbbbb8
kworker/0:3-9527 [000] … 2714.487411: rtos_queue_send_from_isr_failed: tstamp:85302085421 queue:0x0bcb2e38
kworker/0:3-9527 [000] … 2714.487416: rtos_queue_send_from_isr_failed: tstamp:85302085573 queue:0x0bcb76a0
kworker/0:3-9527 [000] … 2714.487417: rtos_queue_send_from_isr_failed: tstamp:85302085726 queue:0x0bcb9220
kworker/0:3-9527 [000] … 2714.487418: rtos_queue_send_from_isr_failed: tstamp:85302085888 queue:0x0bcb9fe0
kworker/0:3-9527 [000] … 2714.487418: rtos_queue_send_from_isr_failed: tstamp:85302086039 queue:0x0bcbada0
kworker/0:3-9527 [000] … 2714.487419: rtos_queue_send_from_isr_failed: tstamp:85302091977 queue:0x0bcb2e38
kworker/0:3-9527 [000] … 2714.487420: rtos_queue_send_from_isr_failed: tstamp:85302092125 queue:0x0bcb76a0
kworker/0:3-9527 [000] … 2714.487421: rtos_queue_send_from_isr_failed: tstamp:85302092274 queue:0x0bcb9220
kworker/0:3-9527 [000] … 2714.487422: rtos_queue_send_from_isr_failed: tstamp:85302092422 queue:0x0bcb9fe0
kworker/0:3-9527 [000] … 2714.487422: rtos_queue_send_from_isr_failed: tstamp:85302092567 queue:0x0bcbada0
kworker/0:3-9527 [000] … 2714.487423: rtos_queue_send_from_isr_failed: tstamp:85302146689 queue:0x0bcb2e38
kworker/0:3-9527 [000] … 2714.487424: rtos_queue_send_from_isr_failed: tstamp:85302146840 queue:0x0bcb76a0
kworker/0:3-9527 [000] … 2714.487425: rtos_queue_send_from_isr_failed: tstamp:85302146990 queue:0x0bcb9220
kworker/0:3-9527 [000] … 2714.487425: rtos_queue_send_from_isr_failed: tstamp:85302147137 queue:0x0bcb9fe0

What’s below command show?

v4l2-ctl --list-devices
v4l2-ctl --list-formats-ext
v4l2-ctl --stream-mmap -c bypass_mode=0

root@nvidia-desktop:~# v4l2-ctl --list-devices
vi-output, ov9281 9-0060 (platform:15c10000.vi:0):
/dev/video0

vi-output, ov9281 10-0060 (platform:15c10000.vi:2):
/dev/video1

USB2.0 PC CAMERA (usb-3610000.xhci-2.1):
/dev/video2

root@nvidia-desktop:~# v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘RG10’
Name : 10-bit Bayer RGRG/GBGB
Size: Discrete 1280x800
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 640x400
Interval: Discrete 0.017s (60.000 fps)

root@nvidia-desktop:~# v4l2-ctl --stream-mmap -c bypass_mode=0
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 69.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 68.50 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 68.43 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 68.50 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 68.40 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 68.50 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 68.42 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 68.41 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 68.44 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 68.40 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 68.45 fps

OK, on your XNX have two CSI camera and one USB camera.

  1. Try v4l2src for the USB camera.
  2. Dump the device tree to check the context of the tegra_camera_platform{} for the no camera issue.

1.USB camera format
nvidia@nvidia-desktop:/work/0520$ v4l2-ctl --device=/dev/video2 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘YUYV’
Name : YUYV 4:2:2
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 176x144
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 160x120
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
2. can play well, I have chaged nvv4l2camerasrc to supoort YUY2;
gst-launch-1.0 nvv4l2camerasrc device=/dev/video2 ! “video/x-raw(memory:NVMM),format=YUY2,width=640,height=480,framerate=30/1” ! nvvidconv ! “video/x-raw(memory:NVMM),format=NV12” ! nvoverlaysink

3.can play well too
gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! nvvidconv ! ‘video/x-raw(memory:NVMM),format=NV12’ ! nvoverlaysink

4.picture is ok,below

Dump the device tree to check the context of the tegra_camera_platform{} for the no camera issue.?
I have listed devicetree at the beginning and I am not very clear how to do it (Dump the device tree to check the context of the tegra_camera_platform)。Can you help me.thank you.

Is there a problem with the device tree configuration and I use the official default driver (nvidia/drivers/media/i2c/ov9281.c),
Is there a problem with the driver and device tree?

tcp: tegra-camera-platform {
compatible = “nvidia, tegra-camera-platform”;
num_csi_lanes = <4>;
max_lane_speed = <1500000>;
min_bits_per_pixel = <10>;
vi_peak_byte_per_pixel = <2>;
vi_bw_margin_pct = <25>;
max_pixel_rate = <240000>;
isp_peak_byte_per_pixel = <5>;
isp_bw_margin_pct = <25>;

	modules {
		cam_module0: module0 {
			badge = "jakku_front_RBP194";
			position = "front";
			orientation = "1";
			cam_module0_drivernode0: drivernode0 {
				pcl_id = "v4l2_sensor";
				devname = "ov9282 9-0060";
				proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@0/rbpcv2_ov9282_a@60";
			};
			cam_module0_drivernode1: drivernode1 {
				pcl_id = "v4l2_lens";
				proc-device-tree = "/proc/device-tree/lens_ov9282@RBPCV2/";
			};
		};
		cam_module1: module1 {
			badge = "jakku_rear_RBP194";
			position = "rear";
			orientation = "1";
			cam_module1_drivernode0: drivernode0 {
				pcl_id = "v4l2_sensor";
				devname = "ov9282 10-0060";
				proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@1/rbpcv2_ov9282_c@60";
			};
			cam_module1_drivernode1: drivernode1 {
				pcl_id = "v4l2_lens";
				proc-device-tree = "/proc/device-tree/lens_ov9282@RBPCV2/";
			};
		};
	};
};

root@nvidia-desktop:/work/0520# media-ctl -p /dev/media0
Media controller API version 0.1.0

Media device information

driver tegra194-vi5
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 0.0.0

Device topology

  • entity 1: ov9281 9-0060 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev0
    pad0: Source
    [fmt:SBGGR10_1X10/1280x800 field:none colorspace:srgb]
    → “15a00000.nvcsi–2”:0 [ENABLED]

  • entity 3: 15a00000.nvcsi–2 (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev1
    pad0: Sink
    ← “ov9281 9-0060”:0 [ENABLED]
    pad1: Source
    → “vi-output, ov9281 9-0060”:0 [ENABLED]

  • entity 6: vi-output, ov9281 9-0060 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video0
    pad0: Sink
    ← “15a00000.nvcsi–2”:1 [ENABLED]

  • entity 18: ov9281 10-0060 (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev2
    pad0: Source
    [fmt:SBGGR10_1X10/1280x800 field:none colorspace:srgb]
    → “15a00000.nvcsi–1”:0 [ENABLED]

  • entity 20: 15a00000.nvcsi–1 (2 pads, 2 links)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev3
    pad0: Sink
    ← “ov9281 10-0060”:0 [ENABLED]
    pad1: Source
    → “vi-output, ov9281 10-0060”:0 [ENABLED]

  • entity 23: vi-output, ov9281 10-0060 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video1
    pad0: Sink
    ← “15a00000.nvcsi–1”:1 [ENABLED]

The strings are incorrect. It should be ov9281 instead of ov9282

modules {
cam_module0: module0 {
badge = “jakku_front_RBP194”;
position = “front”;
orientation = “1”;
cam_module0_drivernode0: drivernode0 {
pcl_id = “v4l2_sensor”;
devname = “ov9281 9-0060”;
proc-device-tree = “/proc/device-tree/cam_i2cmux/i2c@0/rbpcv2_ov9281_a@60”;
};
cam_module0_drivernode1: drivernode1 {
pcl_id = “v4l2_lens”;
proc-device-tree = “/proc/device-tree/lens_ov9281@RBPCV2/”;
};
};
cam_module1: module1 {
badge = “jakku_rear_RBP194”;
position = “rear”;
orientation = “1”;
cam_module1_drivernode0: drivernode0 {
pcl_id = “v4l2_sensor”;
devname = “ov9281 10-0060”;
proc-device-tree = “/proc/device-tree/cam_i2cmux/i2c@1/rbpcv2_ov9281_c@60”;
};
cam_module1_drivernode1: drivernode1 {
pcl_id = “v4l2_lens”;
proc-device-tree = “/proc/device-tree/lens_ov9281@RBPCV2/”;
};

v4l2-ctl -d /dev/video1 -w --verbose --set-fmt-video=width=1280,height=800,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=gray1.raw

Complete and good image when opened with PS。gray1.raw is:

Is OV9281 either in Bayer RG10 format or in grey format?Why can you play it with nvv4l2camerasrc, although the picture is abnormal

How can I stream normal video? can give some advices,thank you !

I don’t know what about of this sensor. Maybe consult with vendor to get more precise information.

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