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:
- 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)
- 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?