Gstnvarguscamerasrc.cpp, execute:751 Redistribute latency

I used a TP2854 chip to consolidate the data from four analog cameras and connected it to the CAM0 interface via the MIPI interface. I followed the driver code in nv_imx219.c to modify the source code for the TP2854. I2C communication is normal, and the device node can be registered successfully. However, when testing with the gstreamer command, I cannot obtain the correct output.
my cmd:

gst-launch-1.0 nvarguscamerasrc num-buffers=200 ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=25/1, format=NV12' ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=test.mp4 -e

The following error is displayed:

[   63.623322] tp2854_mipi 9-0044: tp2854_open:
Setting pipeline to PAUSED ...
[   63.898571] falcon 154c0000.nvenc: Direct firmware load for nvhost_nvenc080.fw failed with error -2
[   63.898584] falcon 154c0000.nvenc: Falling back to sysfs fallback for: nvhost_nvenc080.fw
[   63.901136] falcon 154c0000.nvenc: looking for firmware in subdirectory
Opening in BLOCKING MODE 
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:751 Redistribute latency...
No cameras available
NvMMLiteOpen : Block : BlockType = 4 
===== NvVideo: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
Got EOS from element "pipeline0".
Execution ended after 0:00:00.016656128
Setting pipeline to NULL ...
Freeing pipeline ...

I would like to know how to proceed from here. I also have a question: when porting files prefixed with “nv_”, can I only use nvarguscamerasrc to obtain data?

Information about the development board I am using:

uname -a
Linux xx 5.10.120-rt70-tegra #10 SMP PREEMPT RT Fri Feb 2 11:51:16 CST 2024 aarch64 aarch64 aarch64 GNU/Linux

sudo apt-cache show nvidia-jetpack
Package: nvidia-jetpack
Version: 5.1.2-b104
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-jetpack-runtime (= 5.1.2-b104), nvidia-jetpack-dev (= 5.1.2-b104)

Additional:
The document at Sensor Software Driver Programming — Jetson Linux Developer Guide documentation shows two programming paths: Camera Core Library Interface and Direct V4L2 Interface. However, I found that in the Kernel 5.10 code, all camera drivers start with “nv_”, and these codes are not the same as the general V4L2 structure. Can a solution like TP2854 be added to the driver in a way similar to the “Direct V4L2 Interface”?

Get the trace log to check if more clue.

https://elinux.org/Jetson/l4t/Camera_BringUp#Steps_to_enable_more_debug_messages

The log I captured using the log tool is here. I am not very familiar with orin nx. The following is the log I captured:

  1. if i use this command
echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 2 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/trace

gst-launch-1.0 nvarguscamerasrc num-buffers=200 ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=25/1, format=NV12' ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=test.mp4 -e

cat /sys/kernel/debug/tracing/trace

results:

# tracer: nop
#
# entries-in-buffer/entries-written: 0/0   #P:8
#
#                                _-------=> irqs-off
#                               / _------=> need-resched
#                              | / _-----=> need-resched-lazy
#                              || / _----=> hardirq/softirq
#                              ||| / _---=> preempt-depth
#                              |||| / _--=> preempt-lazy-depth
#                              ||||| / _-=> migrate-disable
#                              |||||| /     delay
#           TASK-PID     CPU#  |||||||  TIMESTAMP  FUNCTION
#              | |         |   |||||||      |         |
Setting pipeline to PAUSED ...
Opening in BLOCKING MODE 
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:751 No cameras availableRedistribute latency...

NvMMLiteOpen : Block : BlockType = 4 
===== NvVideo: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
Got EOS from element "pipeline0".
Execution ended after 0:00:00.004949284
Setting pipeline to NULL ...
Freeing pipeline ...
# tracer: nop
#
# entries-in-buffer/entries-written: 14/14   #P:8
#
#                                _-------=> irqs-off
#                               / _------=> need-resched
#                              | / _-----=> need-resched-lazy
#                              || / _----=> hardirq/softirq
#                              ||| / _---=> preempt-depth
#                              |||| / _--=> preempt-lazy-depth
#                              ||||| / _-=> migrate-disable
#                              |||||| /     delay
#           TASK-PID     CPU#  |||||||  TIMESTAMP  FUNCTION
#              | |         |   |||||||      |         |
  nvargus-daemon-3383    [003] .......   359.166306: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.166364: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.167173: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.167204: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.178927: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.178939: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.179297: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.179305: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.179313: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.179343: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.179355: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3383    [003] .......   359.179395: tegra_channel_close: vi-output, tp2854_mipi 10-0044
     kworker/4:4-199     [004] .......   359.283083: rtcpu_isp_falcon_task_start: tstamp:3246630607 ch:0 task:HANDLE_EVENT
     kworker/4:4-199     [004] .......   359.283088: rtcpu_isp_falcon_task_end: tstamp:3246630647 task:HANDLE_EVENT

if i use /usr/sbin/nvargus-daemon i got:

=== NVIDIA Libargus Camera Service (0.99.33)=== Listening for connections...=== gst-launch-1.0[3538]: Connection established (FFFFBB9C4900)Thread 1 getting next capture
Thread 1 is waiting
Thread 2 getting next capture
Thread 2 is waiting
Thread 3 getting next capture
Thread 3 is waiting
Thread 4 getting next capture
Thread 4 is waiting
Thread 5 getting next capture
Thread 5 is waiting
Thread 6 getting next capture
Thread 6 is waiting
Thread 7 getting next capture
Thread 7 is waiting
Thread 8 getting next capture
Thread 8 is waiting
Thread 9 getting next capture
Thread 9 is waiting
Thread 10 getting next capture
Thread 10 is waiting
Thread 11 getting next capture
Thread 11 is waiting
Thread 12 getting next capture
Thread 12 is waiting
Starting services...
Worker thread IspHw frameComplete start
Worker thread CaptureScheduler checkFramePending start
Worker thread CaptureScheduler frameStart start
Worker thread V4L2CaptureScheduler checkCaptureComplete start
Worker thread V4L2CaptureScheduler issueCaptures start
Worker thread PS handleRequests start
getInstance: s_instance(0xffffb464a590)
getInstance: s_instance(0xffffb464a590)
subscribe: SensorType(gyroscope)
subscribe: create SensorType(gyroscope) sensor(0xffffb44bb680)
subscribe: SensorType(accelerometer)
subscribe: create SensorType(accelerometer) sensor(0xffffb449a9a0)
AC plugin not present: dlopen "acplugin.so", acplugin.so: cannot open shared object file: No such file or directory
Services are started
NvPclSetHotplugCallback: ++++++++++++++++++++++
---- Imager: Calibration blob file handling supported in this build ----
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: numBuiltinModules 2 11
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
NvPclHwMatchPartNum: Found calibration Part#: RBP194:"RBP194"
NvPclHwPrintModuleDefinition -- Name: jakku_front_RBP194
NvPclHwPrintModuleDefinition -- Position: 1
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: tp2854_mipi 9-0044
NvPclHwPrintCameraSubModule -- HwCamSubModule[1].Name: v4l2_lens
NvPclHwPrintCameraSubModule -- HwCamSubModule[1].DevName: 
NvPclHwMatchPartNum: Found calibration Part#: RBP194:"RBP194"
NvPclHwPrintModuleDefinition -- Name: jakku_rear_RBP194
NvPclHwPrintModuleDefinition -- Position: 0
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: tp2854_mipi 10-0044
NvPclHwPrintCameraSubModule -- HwCamSubModule[1].Name: v4l2_lens
NvPclHwPrintCameraSubModule -- HwCamSubModule[1].DevName: 
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: numBuiltinModules 2 22
NvPclModuleListInitialize: NvPclModule list[0]: jakku_front_RBP194 position 1 numBuiltinModules 2
NvPclModuleListInitialize: NvPclModule list[1]: jakku_rear_RBP194 position 0 numBuiltinModules 2
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclModuleListInitialize: numPlugableModules 1 +++
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwAddModules isVirtual 1 ^^^^^^^^
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwAddModules isVirtual 1 ^^^^^^^^
NvPclHwAddModules isVirtual 0 ^^^^^^^^
NvPclHwAddModules isVirtual 0 ^^^^^^^^
NvPclModuleListInitialize: numPlugableModules 0 ---
getHotplugMonitor: Getting hotplug monitor instance
 initializeHotplug++
 hotPlugfunc ++ 
 addWatch: Watch added wd='1'
CheckProcDTExists: INFO: accessing /proc/device-tree/tegra-virtual-camera-platform/modules; No such file or directory
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
setHotplugCallback: Registered new callback client
NvPclSetHotplugCallback: ----------------------
 hotPlugfunc: reading from inotify FD, Thread waiting 
numSources: numSources 2 

numSources: numSources 2 

numSources: numSources 2 

getSource: index 0 and numSources 2

numSources: numSources 2 

numSources: numSources 2 


 addSourceByIndex: index 0 and guid 1ud 

NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 1 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb4585fa0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb46490b0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb44b6670
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb458e8a0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb4737ae0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb46c7d90
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16
CheckOverridesPermissions: stat(/Calib/camera_override.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/settings/camera_overrides.isp] 2/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/camera_overrides.isp] 5/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/settings/jakku_front_RBP194.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/jakku_front_RBP194.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/jakku_front_RBP194.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/jakku_front_RBP194.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/jakku_front_RBP194.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/jakku_front_RBP194.isp) call failed
---- imager: No override file found. ----
Imager: looking for override file [/mnt/factory/camera/factory.bin] 1/16
Imager: looking for override file [/Calib/factory.bin] 2/16
Imager: looking for override file [/Calib/calibration.bin] 3/16
Imager: looking for override file [(null)] 4/16
Imager: looking for override file [(null)] 5/16
Imager: looking for override file [(null)] 6/16
Imager: looking for override file [(null)] 7/16
Imager: looking for override file [(null)] 8/16
Imager: looking for override file [(null)] 9/16
Imager: looking for override file [(null)] 10/16
Imager: looking for override file [(null)] 11/16
Imager: looking for override file [(null)] 12/16
Imager: looking for override file [(null)] 13/16
Imager: looking for override file [(null)] 14/16
Imager: looking for override file [(null)] 15/16
Imager: looking for override file [(null)] 16/16
Imager: looking for override file [/data/vendor/nvcam/settings/factory.bin] 1/16
Imager: looking for override file [/data/vendor/nvcam/settings/jakku_front_RBP194.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/jakku_front_RBP194.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/jakku_front_RBP194.bin] 4/16
Imager: looking for override file [(null)] 5/16
Imager: looking for override file [(null)] 6/16
Imager: looking for override file [(null)] 7/16
Imager: looking for override file [(null)] 8/16
Imager: looking for override file [(null)] 9/16
Imager: looking for override file [(null)] 10/16
Imager: looking for override file [(null)] 11/16
Imager: looking for override file [(null)] 12/16
Imager: looking for override file [(null)] 13/16
Imager: looking for override file [(null)] 14/16
Imager: looking for override file [(null)] 15/16
Imager: looking for override file [(null)] 16/16
NvPclCreateDriver: Found NvPcl Driver Hal dev_name match (v4l2_sensor)
NvPclCreateDriver: Found a Driver name match (v4l2_sensor)
NvPclCreateDriver: Found NvPcl Driver Hal dev_name match (v4l2_lens)
NvPclCreateDriver: Found a Driver name match (v4l2_lens)
NvPclConnectDrivers: hImager was NULL, creating new imager
NvPclInitializeDrivers: v4l2_sensor ++++++++++++++++++
OFDPropertyGetString: could not read property [devnode-bus]
(NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
(NvCamV4l2) Error ModuleNotPresent:  (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
(NvOdmDevice) Error ModuleNotPresent:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 111)
NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
NvPclStartPlatformDrivers: Failed to start module drivers
NvPclDriver_V4L2_Focuser_Stub_Close: Invalid NULL input pPclDriver
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb458e8a0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb4737ae0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb46c7d90
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb4585fa0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb46490b0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb44b6670
NvPclStateControllerOpen: Failed ImagerGUID 1. (error 0xA000E)
NvPclStateControllerClose: Module jakku_front_RBP194 closed
NvPclOpen: PCL Open Failed. Error: 0xf
NvPclClose: ++++++++++++++++++++++
NvPclClose: ----------------------
NvPclOpen: ----------------------
SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 726)
SCF: Error BadParameter:  (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 453)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 347)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function getSource(), line 519)
numSources: numSources 2 

numSources: numSources 2 

getSource: index 1 and numSources 2

numSources: numSources 2 

numSources: numSources 2 


 addSourceByIndex: index 1 and guid 0ud 

NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 0 match at index[1]
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb46c6fa0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb44b6670
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb46490b0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb4585fa0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb46c7d90
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffb4737ae0
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16
CheckOverridesPermissions: stat(/Calib/camera_override.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/settings/camera_overrides.isp] 2/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/camera_overrides.isp] 5/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/camera_overrides.isp) call failed
LoadOverridesFile: looking for override file [/data/vendor/nvcam/settings/jakku_rear_RBP194.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/jakku_rear_RBP194.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/jakku_rear_RBP194.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/jakku_rear_RBP194.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/jakku_rear_RBP194.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/jakku_rear_RBP194.isp) call failed
---- imager: No override file found. ----
Imager: looking for override file [/mnt/factory/camera/factory.bin] 1/16
Imager: looking for override file [/Calib/factory.bin] 2/16
Imager: looking for override file [/Calib/calibration.bin] 3/16
Imager: looking for override file [(null)] 4/16
Imager: looking for override file [(null)] 5/16
Imager: looking for override file [(null)] 6/16
Imager: looking for override file [(null)] 7/16
Imager: looking for override file [(null)] 8/16
Imager: looking for override file [(null)] 9/16
Imager: looking for override file [(null)] 10/16
Imager: looking for override file [(null)] 11/16
Imager: looking for override file [(null)] 12/16
Imager: looking for override file [(null)] 13/16
Imager: looking for override file [(null)] 14/16
Imager: looking for override file [(null)] 15/16
Imager: looking for override file [(null)] 16/16
Imager: looking for override file [/data/vendor/nvcam/settings/factory.bin] 1/16
Imager: looking for override file [/data/vendor/nvcam/settings/jakku_rear_RBP194.bin] 2/16
Imager: looking for override file [/opt/nvidia/nvcam/settings/jakku_rear_RBP194.bin] 3/16
Imager: looking for override file [/var/nvidia/nvcam/settings/jakku_rear_RBP194.bin] 4/16
Imager: looking for override file [(null)] 5/16
Imager: looking for override file [(null)] 6/16
Imager: looking for override file [(null)] 7/16
Imager: looking for override file [(null)] 8/16
Imager: looking for override file [(null)] 9/16
Imager: looking for override file [(null)] 10/16
Imager: looking for override file [(null)] 11/16
Imager: looking for override file [(null)] 12/16
Imager: looking for override file [(null)] 13/16
Imager: looking for override file [(null)] 14/16
Imager: looking for override file [(null)] 15/16
Imager: looking for override file [(null)] 16/16
NvPclCreateDriver: Found NvPcl Driver Hal dev_name match (v4l2_sensor)
NvPclCreateDriver: Found a Driver name match (v4l2_sensor)
NvPclCreateDriver: Found NvPcl Driver Hal dev_name match (v4l2_lens)
NvPclCreateDriver: Found a Driver name match (v4l2_lens)
NvPclConnectDrivers: hImager was NULL, creating new imager
NvPclInitializeDrivers: v4l2_sensor ++++++++++++++++++
OFDPropertyGetString: could not read property [devnode-bus]
OFDPropertyGetString: could not read property [use_decibel_gain]
OFDPropertyGetString: could not read property [delayed_gain]
OFDPropertyCopyToLong: could not read property [has-eeprom]
OFDPropertyGetString: could not read property [supports-alt-exp]
OFDPropertyGetString: could not read property [sync_sensor]
OFDPropertyGetString: could not read property [type]
loadSubType: Sensor type missing in DT, 206
OFDPropertyCopyToLong: could not read property [set_mode_delay_ms]
OFDPropertyCopyToLong: could not read property [mode0.vc_id]
OFDPropertyCopyToLong: could not read property [mode0.dynamic_pixel_bit_depth]
OFDPropertyCopyToLongLong: could not read property [mode0.serdes_pix_clk_hz]
OFDPropertyCopyToFloat: could not read property [mode0.gain_step_pitch]
OFDPropertyCopyToLong: could not read property [mode0.mclk_khz]
(NvOdmDevice) Error SymbolNotFound:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function loadModeProperties(), line 877)
(NvOdmDevice) Error SymbolNotFound:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function loadModeList(), line 664)
(NvOdmDevice) Error SymbolNotFound:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 128)
NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
NvPclStartPlatformDrivers: Failed to start module drivers
NvPclDriver_V4L2_Focuser_Stub_Close: Invalid NULL input pPclDriver
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb4585fa0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb46c7d90
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb4737ae0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb46c6fa0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb44b6670
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0xffffb46490b0
NvPclStateControllerOpen: Failed ImagerGUID 0. (error 0x30009)
NvPclStateControllerClose: Module jakku_rear_RBP194 closed
NvPclOpen: PCL Open Failed. Error: 0xf
NvPclClose: ++++++++++++++++++++++
NvPclClose: ----------------------
NvPclOpen: ----------------------
SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 726)
SCF: Error BadParameter:  (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 453)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 347)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function getSource(), line 519)
numSources: numSources 2 

=== gst-launch-1.0[3538]: CameraProvider initialized (0xffffb46c8330)=== gst-launch-1.0[3538]: CameraProvider destroyed (0xffffb46c8330)Stopping services...
Worker thread CaptureScheduler frameStart stop
Worker thread CaptureScheduler checkFramePending stop
Worker thread IspHw frameComplete stop
Worker thread V4L2CaptureScheduler issueCaptures stop
Worker thread V4L2CaptureScheduler checkCaptureComplete stop
NvPclShutdown: ++++++++++++++++++++++
NvPclModuleListShutdown: Client still conntected, skipping shutdown
NvPclShutdown: ----------------------
Worker thread PS handleRequests stop
unsubscribe: SensorType(gyroscope)
unsubscribe: gyroscope sensor(0xffffb44bb680)
unsubscribe: SensorType(accelerometer)
unsubscribe: accelerometer sensor(0xffffb449a9a0)
Services are stopped
closeInstance: ms_instance((nil))
NvPclRemoveHotplugCallback: ++++++++++++++++++++++
getHotplugMonitor: Getting hotplug monitor instance
 shutdownHotplug: Requesting thread exit
 hotPlugfunc: Read 16 bytes from inotify FD
 hotPlugfunc: A File was Modified 00008000 NAME :  CREATE : 00000100, DELETE : 00000200 IGNORED : 00008000 CLOSE_WRITE : 00000008
 hotPlugfunc: Exit thread
 hotPlugfunc: close failure error: 'Bad file descriptor' (9)
 hotPlugfunc -- 
 shutdownHotplug -- : shutdown of hotplug is complete 
Removed callback client
NvPclRemoveHotplugCallback: ----------------------
FiberScheduler: shutting down; 0 fibers still in map

FiberScheduler: thread 9 exiting
FiberScheduler: thread 8 exiting
FiberScheduler: thread 7 exiting
FiberScheduler: thread 1 exiting
FiberScheduler: thread 2 exiting
FiberScheduler: thread 5 exiting
FiberScheduler: thread 6 exiting
FiberScheduler: thread 12 exiting
FiberScheduler: thread 4 exiting
FiberScheduler: thread 12 has been joined
FiberScheduler: thread 3 exiting
FiberScheduler: thread 11 exiting
FiberScheduler: thread 10 exiting
FiberScheduler: thread 11 has been joined
FiberScheduler: thread 10 has been joined
FiberScheduler: thread 9 has been joined
FiberScheduler: thread 8 has been joined
FiberScheduler: thread 5 has been joined
FiberScheduler: thread 7 has been joined
FiberScheduler: thread 6 has been joined
FiberScheduler: thread 4 has been joined
FiberScheduler: thread 3 has been joined
FiberScheduler: thread 2 has been joined
FiberScheduler: thread 1 has been joined
=== gst-launch-1.0[3538]: Connection closed (FFFFBB9C4900)=== gst-launch-1.0[3538]: Connection cleaned up (FFFFBB9C4900)
  1. if i use v4l2 command
echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 2 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace

v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap=3 --stream-to=./out.yuv --stream-skip=9 --stream-count=1

cat /sys/kernel/debug/tracing/trace

results:
many logs,i took part of it

root@xxx-0010:~# v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap=3 --stream-to=./out.yuv --stream-skip=9 --stream-count=1
[ 1529.688522] tp2854_mipi 10-0044: tp2854_power_on: power on
[ 1529.704014] bwmgr API not supported
[ 1529.713491] tp2854_mipi 10-0044: tp2854_set_mode: start 
[ 1529.713495] tp2854_mipi 10-0044: tp2854_set_mode: mode is 0 
[ 1529.721487] tp2854_mipi 10-0044: tp2854_start_streaming:tp2854_common_ops run  
^C[ 1532.202832] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 1532.202848] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 1532.203736] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 1532.203739] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 1532.203743] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 1532.203745] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0

root@xxx-0010:~# [ 1532.203939] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 1532.204079] tp2854_mipi 10-0044: tp2854_stop_streaming:tp2854_common_ops run  
[ 1532.207195] bwmgr API not supported
[ 1532.224481] tp2854_mipi 10-0044: tp2854_power_off: power off
# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 187636/187636   #P:8
#
#                                _-------=> irqs-off
#                               / _------=> need-resched
#                              | / _-----=> need-resched-lazy
#                              || / _----=> hardirq/softirq
#                              ||| / _---=> preempt-depth
#                              |||| / _--=> preempt-lazy-depth
#                              ||||| / _-=> migrate-disable
#                              |||||| /     delay
#           TASK-PID     CPU#  |||||||  TIMESTAMP  FUNCTION
#              | |         |   |||||||      |         |
     kworker/4:4-199     [004] .......   933.018714: rtcpu_string: tstamp:29766294626 id:0x04010000 str:"VM0 deactivating."
        v4l2-ctl-3617    [000] .......   944.726108: tegra_channel_open: vi-output, tp2854_mipi 10-0044
        v4l2-ctl-3617    [000] .......   944.731098: tegra_channel_set_power: tp2854_mipi 10-0044 : 0x1
        v4l2-ctl-3617    [000] .......   944.731110: camera_common_s_power: status : 0x1
        v4l2-ctl-3617    [004] .......   944.741259: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
        v4l2-ctl-3617    [004] .......   944.741265: csi_s_power: enable : 0x1
        v4l2-ctl-3617    [004] .......   944.742004: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt c4
        v4l2-ctl-3617    [004] .......   944.751164: tegra_channel_set_stream: enable : 0x1
        v4l2-ctl-3617    [004] .......   944.764323: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
        v4l2-ctl-3617    [004] .......   944.764325: csi_s_stream: enable : 0x1
        v4l2-ctl-3617    [004] .......   944.764642: tegra_channel_set_stream: tp2854_mipi 10-0044 : 0x1
     kworker/4:4-199     [004] .......   944.794463: rtcpu_string: tstamp:30133996423 id:0x04010000 str:"VM0 activating."
     kworker/4:4-199     [004] .......   944.794466: rtcpu_vinotify_event: tstamp:30134669658 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:964293869056 data:0x759e300010000000
     kworker/4:4-199     [004] .......   944.794466: rtcpu_vinotify_event: tstamp:30134669811 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:964293875520 data:0x0000000031000001
     kworker/4:4-199     [004] .......   944.794466: rtcpu_vinotify_event: tstamp:30134669966 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:964293926336 data:0x759e2d0010000000
     kworker/4:4-199     [004] .......   944.794466: rtcpu_vinotify_event: tstamp:30134670099 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:964293932864 data:0x0000000031000002
     kworker/4:4-199     [004] .......   944.794468: rtcpu_nvcsi_intr: tstamp:30135108241 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000004
     kworker/4:4-199     [004] .......   944.794468: rtcpu_nvcsi_intr: tstamp:30135109365 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000004
     kworker/4:4-199     [004] .......   944.794468: rtcpu_nvcsi_intr: tstamp:30135110491 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000004
     kworker/4:4-199     [004] .......   944.794468: rtcpu_nvcsi_intr: tstamp:30135111620 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000004
     kworker/4:4-199     [004] .......   944.794469: rtcpu_nvcsi_intr: tstamp:30135112744 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000004
     kworker/4:4-199     [004] .......   944.794469: rtcpu_nvcsi_intr: tstamp:30135113872 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000004
     kworker/4:4-199     [004] .......   944.794469: rtcpu_nvcsi_intr: tstamp:30135115002 class:GLOBAL type:STREAM_NOVC phy:0 cil:0 st:2 vc:0 status:0x00000001
     kworker/4:4-199     [004] .......   944.794469: rtcpu_nvcsi_intr: tstamp:30135115002 class:GLOBAL type:PHY_INTR0 ph

do you have any ideas?

The trace log tell the SOT error that could be MIPI timing issue.
Please review the pix_clk_hz in device tree. And may need to probe the output signal.

Thanks

I modified pix_clk_hz

echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 2 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/trace

gst-launch-1.0 nvarguscamerasrc num-buffers=200 ! 'video/x-raw(memory:NVMM), width=1280, height=720, framerate=25/1, format=NV12' ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=test.mp4 -e

this gst-launch-1.0 command’s results:

# gst-launch-1.0 nvarguscamerasrc num-buffers=200 ! 'video/x-raw(memory:NVMM), width=1280, height=720, framerate=25/1, format=NV12' ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=test.mp4 -e
[  165.298196] tp2854_mipi 10-0044: tp2854_open:
Setting pipeline to PAUSED ...
[  165.604616] falcon 154c0000.nvenc: Direct firmware load for nvhost_nvenc080.fw failed with error -2
[  165.604628] falcon 154c0000.nvenc: Falling back to sysfs fallback for: nvhost_nvenc080.fw
[  165.606695] falcon 154c0000.nvencOpe: lning in BookLOCKING Mr fODEirmwar e i
n subdirectory
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
NvMMLiteOpen : Block : BlockType = 4 
===== NvVideo: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
   Camera index = 0 
   Camera mode  = 0 
   Output Stream W = 1280 H = 720 
   seconds to Run    = 0 
   Frame Rate = 59.999999 
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
[  165.744179] tp2854_mipi 10-0044: tp2854_power_on: power on
[  165.758213] bwmgr API not supported
[  165.766089] tp2854_mipi 10-0044: tp2854_set_mode: start 
[  165.766094] tp2854_mipi 10-0044: tp2854_set_mode: mode is 0 
[  165.773798] tp2854_mipi 10-0044: tp2854_set_gain:no this function!
[  165.773804] tp2854_mipi 10-0044: tp2854_set_exposure:no this function!
[  165.773807] tp2854_mipi 10-0044: tp2854_set_frame_rate:no this function!
[  165.773810] tp2854_mipi 10-0044: tp2854_start_streaming:tp2854_common_ops run  
[  165.777497] bwmgr API not supported
[  165.777652] tp2854_mipi 10-0044: tp2854_set_frame_rate:no this function!
[  165.793789] tp2854_mipi 10-0044: tp2854_set_frame_rate:no this function!
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:694 NvBufSurfaceFromFd Failed.[  .41118
4] tp2854_mipi 10-0044: tp2Err854or _stop_generastrteding. /:tpdvs/git/dirty/git-master4_comm_lion_nuxops ru/multimedn  ia/
nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:247 (propagating)
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: CANCELLED
Additional debug info:
Argus Error Status
EOS on shutdown enabled -- waiting for EOS after Error
Waiting for EOS...
[  168.415468] bwmgr API not supported
[  168.424170] tp2854_mipi 10-0044: tp2854_power_off: power off
[  168.429424] tp2854_mipi 10-0044: tp2854_power_on: power on
[  168.444198] bwmgr API not supported
[  168.454331] tp2854_mipi 10-0044: tp2854_set_mode: start 
[  168.454334] tp2854_mipi 10-0044: tp2854_set_mode: mode is 0 
[  168.462022] tp2854_mipi 10-0044: tp2854_set_gain:no this function!
[  168.462030] tp2854_mipi 10-0044: tp2854_set_exposure:no this function!
[  168.462036] tp2854_mipi 10-0044: tp2854_set_frame_rate:no this function!
[  168.462041] tp2854_mipi 10-0044: tp2854_start_streaming:tp2854_common_ops run  
[  168.465771] tp2854_mipi 10-0044: tp2854_set_frame_rate:no this function!
[  168.481956] tp2854_mipi 10-0044: tp2854_set_frame_rate:no this function!
[  170.970362] tp2854_mipi 10-0044: tp2854_stop_streaming:tp2854_common_ops run  
[  170.975015] bwmgr API not supported
[  170.983532] tp2854_mipi 10-0044: tp2854_power_off: power off

command blocked here, functions like tp2854_set_frame_rate are empty, I just use them as placeholders
then i get the trace log:

# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 59/59   #P:8
#
#                                _-------=> irqs-off
#                               / _------=> need-resched
#                              | / _-----=> need-resched-lazy
#                              || / _----=> hardirq/softirq
#                              ||| / _---=> preempt-depth
#                              |||| / _--=> preempt-lazy-depth
#                              ||||| / _-=> migrate-disable
#                              |||||| /     delay
#           TASK-PID     CPU#  |||||||  TIMESTAMP  FUNCTION
#              | |         |   |||||||      |         |
     kworker/7:2-208     [007] .......    41.089186: rtcpu_string: tstamp:2029086630 id:0x04010000 str:"VM0 deactivating."
 gst-plugin-scan-3402    [004] .......   165.298276: tegra_channel_open: vi-output, tp2854_mipi 10-0044
 gst-plugin-scan-3402    [004] .......   165.298294: tegra_channel_close: vi-output, tp2854_mipi 10-0044
     kworker/7:2-208     [007] .......   165.418015: rtcpu_string: tstamp:5915357159 id:0x04010000 str:"VM0 activating."
  nvargus-daemon-3404    [006] .......   165.536415: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.536495: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.537302: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.537332: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.552014: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.552028: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.552406: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.552414: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.552421: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.552454: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.552470: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3404    [006] .......   165.552512: tegra_channel_close: vi-output, tp2854_mipi 10-0044
 CaptureSchedule-3420    [003] .......   165.743989: tegra_channel_open: vi-output, tp2854_mipi 10-0044
 CaptureSchedule-3420    [003] .......   165.744173: tegra_channel_set_power: tp2854_mipi 10-0044 : 0x1
 CaptureSchedule-3420    [003] .......   165.744177: camera_common_s_power: status : 0x1
 CaptureSchedule-3420    [004] .......   165.754321: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
 CaptureSchedule-3420    [004] .......   165.754325: csi_s_power: enable : 0x1
 CaptureSchedule-3420    [004] .......   165.755044: tegra_channel_set_stream: enable : 0x1
 CaptureSchedule-3420    [004] .......   165.766076: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
 CaptureSchedule-3420    [004] .......   165.766079: csi_s_stream: enable : 0x1
 CaptureSchedule-3420    [004] .......   165.766079: tegra_channel_set_stream: tp2854_mipi 10-0044 : 0x1
     kworker/7:2-208     [007] .......   165.817994: rtcpu_nvcsi_intr: tstamp:5926716336 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000044
     kworker/7:2-208     [007] .......   165.817996: rtcpu_nvcsi_intr: tstamp:5926716336 class:GLOBAL type:PHY_INTR0 phy:1 cil:1 st:0 vc:0 status:0x00000004
     kworker/7:2-208     [007] .......   165.817996: rtcpu_nvcsi_intr: tstamp:5926716336 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000044
     kworker/7:2-208     [007] .......   165.817997: rtcpu_nvcsi_intr: tstamp:5926716336 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:1 st:0 vc:0 status:0x00000004
     kworker/7:2-208     [007] .......   165.817998: rtcpu_vinotify_event: tstamp:5926869296 cch:1 vi:1 tag:VIFALC_TDSTATE channel:0x0b frame:0 vi_tstamp:189658850816 data:0x759da00010000000
     kworker/7:2-208     [007] .......   165.817998: rtcpu_vinotify_event: tstamp:5926869449 cch:1 vi:1 tag:VIFALC_TDSTATE channel:0x0b frame:0 vi_tstamp:189658893504 data:0x0000000031000001
     kworker/7:2-208     [007] .......   165.817998: rtcpu_vinotify_event: tstamp:5927411447 cch:1 vi:1 tag:VIFALC_TDSTATE channel:0x0b frame:0 vi_tstamp:189675100160 data:0x759d9d0010000000
     kworker/7:2-208     [007] .......   165.817998: rtcpu_vinotify_event: tstamp:5927411582 cch:1 vi:1 tag:VIFALC_TDSTATE channel:0x0b frame:0 vi_tstamp:189675143584 data:0x0000000031000002
 CaptureSchedule-3420    [006] .......   168.411168: tegra_channel_set_stream: enable : 0x0
 CaptureSchedule-3420    [006] .......   168.411172: tegra_channel_set_stream: tp2854_mipi 10-0044 : 0x0
 CaptureSchedule-3420    [006] .......   168.411193: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x0
 CaptureSchedule-3420    [006] .......   168.411196: csi_s_stream: enable : 0x0
 CaptureSchedule-3420    [007] .......   168.424152: tegra_channel_set_power: tp2854_mipi 10-0044 : 0x0
 CaptureSchedule-3420    [007] .......   168.424162: camera_common_s_power: status : 0x0
 CaptureSchedule-3420    [007] .......   168.429257: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x0
 CaptureSchedule-3420    [007] .......   168.429260: csi_s_power: enable : 0x0
 CaptureSchedule-3420    [007] .......   168.429411: tegra_channel_set_power: tp2854_mipi 10-0044 : 0x1
 CaptureSchedule-3420    [007] .......   168.429421: camera_common_s_power: status : 0x1
 CaptureSchedule-3420    [000] .......   168.439561: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
 CaptureSchedule-3420    [000] .......   168.439564: csi_s_power: enable : 0x1
 CaptureSchedule-3420    [000] .......   168.439569: tegra_channel_set_stream: enable : 0x1
     kworker/7:2-208     [007] .......   168.453878: rtcpu_nvcsi_intr: tstamp:6010022160 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000089
     kworker/7:2-208     [007] .......   168.453879: rtcpu_nvcsi_intr: tstamp:6010022160 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000089
 CaptureSchedule-3420    [007] .......   168.454323: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
 CaptureSchedule-3420    [007] .......   168.454324: csi_s_stream: enable : 0x1
 CaptureSchedule-3420    [007] .......   168.454325: tegra_channel_set_stream: tp2854_mipi 10-0044 : 0x1
 CaptureSchedule-3420    [002] .......   170.970341: tegra_channel_set_stream: enable : 0x0
 CaptureSchedule-3420    [002] .......   170.970345: tegra_channel_set_stream: tp2854_mipi 10-0044 : 0x0
 CaptureSchedule-3420    [002] .......   170.970375: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x0
 CaptureSchedule-3420    [002] .......   170.970377: csi_s_stream: enable : 0x0
 CaptureSchedule-3420    [007] .......   170.983517: tegra_channel_set_power: tp2854_mipi 10-0044 : 0x0
 CaptureSchedule-3420    [007] .......   170.983524: camera_common_s_power: status : 0x0
 CaptureSchedule-3420    [007] .......   170.988619: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x0
 CaptureSchedule-3420    [007] .......   170.988621: csi_s_power: enable : 0x0

================================================================

If I change the resolution to get the content, the log will change. I don’t know which one is correct.

gst-launch-1.0 nvarguscamerasrc num-buffers=200 ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=25/1, format=NV12' ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=test.mp4 -e

results:
many logs

cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 260739/260739   #P:8
#
#                                _-------=> irqs-off
#                               / _------=> need-resched
#                              | / _-----=> need-resched-lazy
#                              || / _----=> hardirq/softirq
#                              ||| / _---=> preempt-depth
#                              |||| / _--=> preempt-lazy-depth
#                              ||||| / _-=> migrate-disable
#                              |||||| /     delay
#           TASK-PID     CPU#  |||||||  TIMESTAMP  FUNCTION
#              | |         |   |||||||      |         |
     kworker/6:1-195     [006] .......    57.073184: rtcpu_string: tstamp:2525664192 id:0x04010000 str:"VM0 deactivating."
 gst-plugin-scan-3364    [007] .......    64.278449: tegra_channel_open: vi-output, tp2854_mipi 10-0044
 gst-plugin-scan-3364    [007] .......    64.278467: tegra_channel_close: vi-output, tp2854_mipi 10-0044
     kworker/6:1-195     [006] .......    64.413173: rtcpu_string: tstamp:2754655894 id:0x04010000 str:"VM0 activating."
  nvargus-daemon-3366    [002] .......    64.516343: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.516420: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.517254: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.517285: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.532327: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.532341: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.532750: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.532758: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.532766: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.532803: tegra_channel_close: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.532819: tegra_channel_open: vi-output, tp2854_mipi 10-0044
  nvargus-daemon-3366    [002] .......    64.532860: tegra_channel_close: vi-output, tp2854_mipi 10-0044
 CaptureSchedule-3382    [003] .......    64.740953: tegra_channel_open: vi-output, tp2854_mipi 10-0044
 CaptureSchedule-3382    [003] .......    64.741129: tegra_channel_set_power: tp2854_mipi 10-0044 : 0x1
 CaptureSchedule-3382    [003] .......    64.741132: camera_common_s_power: status : 0x1
 CaptureSchedule-3382    [004] .......    64.751299: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
 CaptureSchedule-3382    [004] .......    64.751303: csi_s_power: enable : 0x1
 CaptureSchedule-3382    [003] .......    64.751771: tegra_channel_set_stream: enable : 0x1
 CaptureSchedule-3382    [003] .......    64.764891: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
 CaptureSchedule-3382    [003] .......    64.764893: csi_s_stream: enable : 0x1
 CaptureSchedule-3382    [003] .......    64.764894: tegra_channel_set_stream: tp2854_mipi 10-0044 : 0x1
     kworker/6:1-195     [006] .......    64.809221: rtcpu_vinotify_event: tstamp:2766880860 cch:1 vi:1 tag:VIFALC_TDSTATE channel:0x0b frame:0 vi_tstamp:88540035328 data:0x759da00010000000
     kworker/6:1-195     [006] .......    64.809223: rtcpu_vinotify_event: tstamp:2767423589 cch:1 vi:1 tag:VIFALC_TDSTATE channel:0x0b frame:0 vi_tstamp:88540225760 data:0x0000000031000001
     kworker/6:1-195     [006] .......    64.809225: rtcpu_nvcsi_intr: tstamp:2767491032 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x16000000
     kworker/6:1-195     [006] .......    64.809225: rtcpu_nvcsi_intr: tstamp:2767491032 class:GLOBAL type:PHY_INTR0 phy:1 cil:1 st:0 vc:0 status:0x02000000
     kworker/6:1-195     [006] .......    64.809225: rtcpu_nvcsi_intr: tstamp:2767491032 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001640
     kworker/6:1-195     [006] .......    64.809226: rtcpu_nvcsi_intr: tstamp:2767491032 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:1 st:0 vc:0 status:0x00000200
     kworker/6:1-195     [006] .......    64.809226: rtcpu_nvcsi_intr: tstamp:2767491989 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x02000040
     kworker/6:1-195     [006] .......    64.809226: rtcpu_nvcsi_intr: tstamp:2767491989 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000044
     kworker/6:1-195     [006] .......    64.809226: rtcpu_nvcsi_intr: tstamp:2767492583 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000044
     kworker/6:1-195     [006] .......    64.809227: rtcpu_nvcsi_intr: tstamp:2767492583 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000044
     kworker/6:1-195     [006] .......    64.809227: rtcpu_nvcsi_intr: tstamp:2767493302 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000044
     kworker/6:1-195     [006] .......    64.809227: rtcpu_nvcsi_intr: tstamp:2767493302 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00001044
     kworker/6:1-195     [006] .......    64.809228: rtcpu_nvcsi_intr: tstamp:2767493903 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x10000044
     kworker/6:1-195     [006] .......    64.809228: rtcpu_nvcsi_intr: tstamp:2767493903 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000040
     kworker/6:1-195     [006] .......    64.809228: rtcpu_nvcsi_intr: tstamp:2767494498 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000044
     kworker/6:1-195     [006] .......    64.809228: rtcpu_nvcsi_intr: tstamp:2767494498 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000044
     kworker/6:1-195     [006] .......    64.809229: rtcpu_nvcsi_intr: tstamp:2767495092 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000044
·················

It doesn’t seem to be working, is this still a mipi problem?

Yes, still the SOT error tell the MIPI timing issue.

thank you for replay.I have some questions
1.I would like to know what is the general reason why SOT cannot be detected?
By the way, how to configure the internal mclk output clock? Is there any reference device tree configuration?
2.PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000089 ,What does this output mean? Where can I find out what these error outputs mean?

  1. The SOT could be ths_settle timing cause like

  2. The mclk can configure in the sensor mode in device tree.(mclk_khz)

			mode0 {
				discontinuous_clk = "no";
				readout_orientation = [30 00];
				exposure_factor = "1000000";
				mclk_khz = "37125";

Check the REG NVCSI_PHY_0_CILA_INTR_0_STATUS_CILA_0 in TRM for the PHY_INTR0 message.

I’m not quite sure if there’s any issue with my other configurations that’s causing me to not be able to output content. So, I’m putting my device tree configuration here. Since I’m using tp2854 and it’s configured for 4-lane output, I noticed that the CAM1 interface on the carrier board supports 4-lane output. Therefore, I connected the interface to CAM1, and the main configuration should be in the i2c_1: i2c@1 section.


#include <dt-bindings/media/camera.h>

/ {
	tegra-capture-vi  {
		num-channels = <2>;
		ports {
			#address-cells = <1>;
			#size-cells = <0>;
			vi_port0: port@0 {
				reg = <0>;
				rbpcv4_tp2854_vi_in0: endpoint {
					port-index = <0>;
					bus-width = <2>;
					remote-endpoint = <&rbpcv4_tp2854_csi_out0>;
				};
			};
			vi_port1: port@1 {
				reg = <1>;
				rbpcv4_tp2854_vi_in1: endpoint {
					port-index = <2>;
					bus-width = <2>;
					remote-endpoint = <&rbpcv4_tp2854_csi_out1>;
				};
			};
		};
	};

	host1x@13e00000 {
		nvcsi@15a00000 {
			num-channels = <2>;
			#address-cells = <1>;
			#size-cells = <0>;
			csi_chan0: channel@0 {
				reg = <0>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					csi_chan0_port0: port@0 {
						reg = <0>;
						rbpcv4_tp2854_csi_in0: endpoint@0 {
							port-index = <0>;
							bus-width = <2>;
							remote-endpoint = <&rbpcv4_tp2854_out0>;
						};
					};
					csi_chan0_port1: port@1 {
						reg = <1>;
						rbpcv4_tp2854_csi_out0: endpoint@1 {
							remote-endpoint = <&rbpcv4_tp2854_vi_in0>;
						};
					};
				};
			};
			csi_chan1: channel@1 {
				reg = <1>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					csi_chan1_port0: port@0 {
						reg = <0>;
						rbpcv4_tp2854_csi_in1: endpoint@2 {
							port-index = <2>;
							bus-width = <2>;
							remote-endpoint = <&rbpcv4_tp2854_out1>;
						};
					};
					csi_chan1_port1: port@1 {
						reg = <1>;
						rbpcv4_tp2854_csi_out1: endpoint@3 {
							remote-endpoint = <&rbpcv4_tp2854_vi_in1>;
						};
					};
				};
			};
		};
	};

	cam_i2cmux {
		i2c_0:i2c@0 {
			tp2854_cam0: rbpcv4_tp2854_a@44 {
				compatible = "tp2854_mipi_compatible";
				/* I2C device address */
				reg = <0x44>;

				/* V4L2 device node location */
				devnode = "video0";

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

				sensor_model = "tp2854";

				use_sensor_mode_id = "true";

				mode0 { /* IMX219_MODE_1920x1080_25FPS */
					mclk_khz = "27000";
					num_lanes = "4";
					tegra_sinterface = "serial_a";
					phy_mode = "DPHY";
					discontinuous_clk = "yes";
					dpcm_enable = "false";
					cil_settletime = "0";
					lane_polarity = "6";

					active_w = "1920";
					active_h = "1080";
					mode_type = "bayer";
					pixel_phase = "rggb";
					csi_pixel_bit_depth = "10";
					readout_orientation = "90";
					line_length = "3448";
					inherent_gain = "1";
					mclk_multiplier = "9.33";
					pix_clk_hz = "182400000";

					gain_factor = "16";
					framerate_factor = "1000000";
					exposure_factor = "1000000";
					min_gain_val = "16"; /* 1.00x */
					max_gain_val = "170"; /* 10.66x */
					step_gain_val = "1";
					default_gain = "16"; /* 1.00x */
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";
					min_framerate = "2000000"; /* 2.0 fps */
					max_framerate = "30000000"; /* 30.0 fps */
					step_framerate = "1";
					default_framerate = "25000000"; /* 30.0 fps */
					min_exp_time = "13"; /* us */
					max_exp_time = "683709"; /* us */
					step_exp_time = "1";
					default_exp_time = "2495"; /* us */

					embedded_metadata_height = "2";
				};

				mode1 { /* IMX219_MODE_1280x720_25FPS */
					mclk_khz = "27000";
					num_lanes = "4";
					tegra_sinterface = "serial_a";
					phy_mode = "DPHY";
					discontinuous_clk = "yes";
					dpcm_enable = "false";
					cil_settletime = "0";
					lane_polarity = "6";

					active_w = "1280";
					active_h = "720";
					mode_type = "bayer";
					pixel_phase = "rggb";
					csi_pixel_bit_depth = "10";
					readout_orientation = "90";
					line_length = "3448";
					inherent_gain = "1";
					mclk_multiplier = "9.33";
					pix_clk_hz = "182400000";

					gain_factor = "16";
					framerate_factor = "1000000";
					exposure_factor = "1000000";
					min_gain_val = "16"; /* 1.00x */
					max_gain_val = "170"; /* 10.66x */
					step_gain_val = "1";
					default_gain = "16"; /* 1.00x */
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";
					min_framerate = "2000000"; /* 2.0 fps */
					max_framerate = "60000000"; /* 60.0 fps */
					step_framerate = "1";
					default_framerate = "25000000"; /* 60.0 fps */
					min_exp_time = "13"; /* us */
					max_exp_time = "683709"; /* us */
					step_exp_time = "1";
					default_exp_time = "2495"; /* us */

					embedded_metadata_height = "2";
				};

				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						rbpcv4_tp2854_out0: endpoint {
							port-index = <0>;
							bus-width = <2>;
							remote-endpoint = <&rbpcv4_tp2854_csi_in0>;
						};
					};
				};
			};
		};
		i2c_1: i2c@1 {
			tp2854_cam1: rbpcv4_tp2854_c@44 {
				compatible = "tp2854_mipi_compatible";
				/* I2C device address */
				reg = <0x44>;

				/* V4L2 device node location */
				devnode = "video1";

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

				sensor_model = "tp2854";

				use_sensor_mode_id = "true";

				mode0 { /* IMX219_MODE_1280x720_25FPS */
					mclk_khz = "27000";
					num_lanes = "4";
					tegra_sinterface = "serial_c";
					phy_mode = "DPHY";
					discontinuous_clk = "yes";
					dpcm_enable = "false";
					cil_settletime = "0";
					lane_polarity = "0";

					active_w = "1280";
					active_h = "720";
					mode_type = "bayer";
					pixel_phase = "rggb";
					csi_pixel_bit_depth = "10";
					readout_orientation = "90";
					line_length = "3448";
					inherent_gain = "1";
					mclk_multiplier = "9.33";
					//pix_clk_hz = "182400000";
					pix_clk_hz =   "27648000";

					gain_factor = "16";
					framerate_factor = "1000000";
					exposure_factor = "1000000";
					min_gain_val = "16"; /* 1.00x */
					max_gain_val = "170"; /* 10.66x */
					step_gain_val = "1";
					default_gain = "16"; /* 1.00x */
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";
					min_framerate = "2000000"; /* 2.0 fps */
					max_framerate = "60000000"; /* 60.0 fps */
					step_framerate = "1";
					default_framerate = "25000000"; /* 60.0 fps */
					min_exp_time = "13"; /* us */
					max_exp_time = "683709"; /* us */
					step_exp_time = "1";
					default_exp_time = "2495"; /* us */

					embedded_metadata_height = "2";
				};

				mode1 { /* IMX219_MODE_1920x1080_25FPS */
					mclk_khz = "27000";
					num_lanes = "4";
					tegra_sinterface = "serial_c";
					phy_mode = "DPHY";
					discontinuous_clk = "yes";
					dpcm_enable = "false";
					cil_settletime = "0";
					lane_polarity = "0";

					active_w = "1920";
					active_h = "1080";
					mode_type = "bayer";
					pixel_phase = "rggb";
					csi_pixel_bit_depth = "10";
					readout_orientation = "90";
					line_length = "3448";
					inherent_gain = "1";
					mclk_multiplier = "9.33";
					//pix_clk_hz = "182400000";
					pix_clk_hz = "118800000";

					gain_factor = "16";
					framerate_factor = "1000000";
					exposure_factor = "1000000";
					min_gain_val = "16"; /* 1.00x */
					max_gain_val = "170"; /* 10.66x */
					step_gain_val = "1";
					default_gain = "16"; /* 1.00x */
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";
					min_framerate = "2000000"; /* 2.0 fps */
					max_framerate = "30000000"; /* 30.0 fps */
					step_framerate = "1";
					default_framerate = "25000000"; /* 30.0 fps */
					min_exp_time = "13"; /* us */
					max_exp_time = "683709"; /* us */
					step_exp_time = "1";
					default_exp_time = "2495"; /* us */

					embedded_metadata_height = "2";
				};

				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						rbpcv4_tp2854_out1: endpoint {
							status = "okay";
							port-index = <2>;
							bus-width = <2>;
							remote-endpoint = <&rbpcv4_tp2854_csi_in1>;
						};
					};
				};
			};
		};
	};

	lens_tp2854@RBPCV3 {
		min_focus_distance = "0.0";
		hyper_focal = "0.0";
		focal_length = "3.04";
		f_number = "2.0";
		aperture = "0.0";
	};
};
/ {
	tcp: tegra-camera-platform {
		compatible = "nvidia, tegra-camera-platform";
		num_csi_lanes = <8>;
		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 = "tp2854_mipi 9-0044";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@0/rbpcv4_tp2854_a@44";
				};
				cam_module0_drivernode1: drivernode1 {
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_tp2854@RBPCV3/";
				};
			};
			cam_module1: module1 {
				badge = "jakku_rear_RBP194";
				position = "rear";
				orientation = "1";
				cam_module1_drivernode0: drivernode0 {
					pcl_id = "v4l2_sensor";
					devname = "tp2854_mipi 10-0044";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@1/rbpcv4_tp2854_c@44";
				};
				cam_module1_drivernode1: drivernode1 {
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_tp2854@RBPCV3/";
				};
			};
		};
	};
};

Here’s shows the media topology:

root@zme-0010:~# media-ctl -p -d /dev/media0
Media controller API version 5.10.120

Media device information
------------------------
driver          tegra-camrtc-ca
model           NVIDIA Tegra Video Input Device
serial          
bus info        
hw revision     0x3
driver version  5.10.120

Device topology
- entity 1: 13e40000.host1x:nvcsi@15a00000- (2 pads, 0 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        pad0: Sink
        pad1: Source

- entity 4: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev1
        pad0: Sink
                <- "tp2854_mipi 10-0044":0 [ENABLED]
        pad1: Source
                -> "vi-output, tp2854_mipi 10-0044":0 [ENABLED]

- entity 7: tp2854_mipi 10-0044 (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev2
        pad0: Source
                [fmt:SRGGB10_1X10/1280x720 field:none colorspace:srgb]
                -> "13e40000.host1x:nvcsi@15a00000-":0 [ENABLED]

- entity 9: vi-output, tp2854_mipi 10-0044 (1 pa[   67.983294] tp2854_mipi 10-0044: tp2854_op   en:
e Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Sink
                <- "13e40000.host1x:nvcsi@15a00000-":1 [ENABLED]

I also found that the error code reported was the phy:1 error. I would like to ask:

  1. I use the CAM1 port. Does phy1 here refer to CSI2_D0 or CSI2_D1, or something else?
  2. There are 4 virtual channels in the output of tp2854. How should I modify it so that it corresponds to video0-3 nodes?

If your sensor output as 4 lane the bus-width should be 4 instead of 2

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