RAW12 sensor, v4l2 can capture frames but nvargus can not capture

Hi NV_Team,

We have implement a RAW12 sensor, v4l2 can capture frames but nvargus can not open this sensor.
JetPack6.0

byd@ubuntu:~$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'RG12' (12-bit Bayer RGRG/GBGB)
	Size: Discrete 1920x1300
		Interval: Discrete 0.033s (30.000 fps)
byd@ubuntu:~$ v4l2-ctl --list-devicesNVIDIA Tegra Video Input Device (platform:tegra-camrtc-ca):/dev/media0

vi-output, isx031 3-003d (platform:tegra-capture-vi:0):
/dev/video0
/dev/video1

V4L2 Commands:

byd@ubuntu:~$ v4l2-ctl  -V --set-fmt-video width=1920,height=1300,pixelformat=RG12 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=100  -d /dev/video1
Format Video Capture:
Width/Height      : 1920/1300
Pixel Format      : 'RG12' (12-bit Bayer RGRG/GBGB)
Field             : None
Bytes per Line    : 3840
Size Image        : 4992000
Colorspace        : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization      : Default (maps to Full Range)
Flags             :
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps

NVARGUS Commands:

byd@ubuntu:~$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1300, framerate=30/1'  ! nvvidconv ! 'video/x-raw, format=(string)I420' ! xvimagesink -e
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 1920 x 1300 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 251.188705; Exposure Range min 30000, max 660000000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode  = 0
Output Stream W = 1920 H = 1300
seconds to Run    = 0
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: CANCELLED
Additional debug info:
Argus Error Status
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Execution ended after 0:00:02.712645375
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:732 Setting pipeline to NULL ...
NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:243 (propagating)
GST_ARGUS: Cleaning up
Freeing pipeline ...
=== NVIDIA Libargus Camera Service (0.99.33)=== Listening for connections...=== gst-launch-1.0[8193]: Connection established (FFFF9530B840)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module2
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module3
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
---- imager: No override file found. ----
(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
NvPclStateControllerOpen: Failed ImagerGUID 0. (error 0xA000E)
NvPclOpen: PCL Open Failed. Error: 0xf
SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 725)
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)
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
---- imager: No override file found. ----
(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
NvPclStateControllerOpen: Failed ImagerGUID 1. (error 0xA000E)
NvPclOpen: PCL Open Failed. Error: 0xf
SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 725)
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)
---- imager: No override file found. ----
LSC: LSC surface is not based on full res!
=== gst-launch-1.0[8193]: CameraProvider initialized (0xffff90a37c70)LSC: LSC surface is not based on full res!
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 0 draining session frameStart events 3
(in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 527)
SCF: Error InvalidState: Sensor GUID 4 is in error state. Skipping requests, capture sequence ID = 1 continue draining session frameStart events 2
(in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 541)
SCF: Error InvalidState: Sensor GUID 4 is in error state. Skipping requests, capture sequence ID = 2 continue draining session frameStart events 1
(in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 541)
PowerServiceCore:handleRequests: timePassed = 2650
SCF: Error InvalidState: Sensor 4 already in same state
(in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 0 draining session frameEnd events 3
(in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 644)
SCF: Error InvalidState: Sensor 4 already in same state
(in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 1 draining session frameEnd events 2
(in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 644)
SCF: Error InvalidState: Sensor 4 already in same state
(in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 2 draining session frameEnd events 1
(in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 644)
SCF: Error Timeout: Sending critical error event for Session 4
(in src/api/Session.cpp, function sendErrorEvent(), line 1039)
SCF: Error InvalidState: Sensor GUID 4 is in error state. Skipping requests, capture sequence ID = 3 continue draining session frameStart events 1
(in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameStart(), line 541)
SCF: Error InvalidState: Sensor 4 already in same state
(in src/services/capture/CaptureServiceDeviceSensor.cpp, function setErrorState(), line 100)
SCF: Error InvalidState: Timeout!! Skipping requests on sensor GUID 4, capture sequence ID = 3 draining session frameEnd events 1
(in src/services/capture/FusaCaptureViCsiHw.cpp, function waitCsiFrameEnd(), line 644)
SCF: Error ResourceAlreadyInUse:  (propagating from src/services/capture/FusaCaptureViCsiHw.cpp, function startCaptureInternal(), line 875)
SCF: Error ResourceAlreadyInUse:  (propagating from src/services/capture/CaptureRecord.cpp, function doCSItoMemCapture(), line 536)
SCF: Error ResourceAlreadyInUse:  (propagating from src/services/capture/CaptureRecord.cpp, function issueCapture(), line 483)
SCF: Error ResourceAlreadyInUse:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function issueCaptures(), line 1565)
SCF: Error ResourceAlreadyInUse:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function issueCaptures(), line 1394)
SCF: Error ResourceAlreadyInUse:  (propagating from src/common/Utils.cpp, function workerThread(), line 114)
SCF: Error ResourceAlreadyInUse: Worker thread CaptureScheduler frameStart failed (in src/common/Utils.cpp, function workerThread(), line 133)
SCF: Error Timeout:  (propagating from src/api/Buffer.cpp, function waitForUnlock(), line 644)
SCF: Error Timeout:  (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 430)
SCF: Error OverFlow:  (propagating from src/services/capture/CaptureServiceDevice.cpp, function checkCaptureComplete(), line 1486)
SCF: Error OverFlow:  (propagating from src/common/Utils.cpp, function workerThread(), line 114)
SCF: Error OverFlow: Worker thread CaptureScheduler checkFramePending failed (in src/common/Utils.cpp, function workerThread(), line 133)

Make sure the tegra_sinterface is correct in the sensor mode.

目前使用nvv4l2camerasrc可以预览到画面,如果tegra_sinterface配置有误的话,v4l2能预览吗?

The nvv4l2camerasrc like v4l2-ctl don’t apply the tegra_sinterface like argus.

你好,
我检查了硬件连接和tegra_sinterface配置,且按照下面的对应关系配置,我理解是没有问题的。

sensor mode nvcsi tegra-capture-vi
tegra_sinterface = “serial_a” port-index = <0> port-index = <0>

还有其他需要注意的方向吗?

Based on the logs and your recent confirmation that hardware connections and tegra_sinterface configuration appear correct (serial_a on both nvcsi and tegra-capture-vi port 0), the next diagnostic step is to verify the actual device tree configuration and module registration.

Please provide the following information:

  1. Device tree source for your RAW12 sensor module, specifically:

    • The complete camera-platform node with your sensor’s module definition
    • The tegra_sinterface assignment in your sensor mode configuration
  2. Module registration verification:

    cat /proc/device-tree/tegra-camera-platform/modules
    

    This will show if your sensor module is properly registered in the device tree.

  3. Current ISP/sensor configuration files:

    • Any override files being used (typically in /data/vendor/nvcam/settings/ or /opt/nvidia/nvcam/settings/)
    • The sensor-specific .isp configuration file if one exists
  4. Confirmation of CSI port mapping:

    • Which physical CSI port is your RAW12 sensor connected to?
    • Verify this matches the port-index in your device tree

The error NvPclHwGetModuleList: No module data found suggests the nvargus daemon cannot locate your sensor module’s ISP configuration. This is distinct from the v4l2 path, which doesn’t require this configuration. Once you provide these details, we can identify the exact mismatch in your tegra_sinterface or module configuration.

Check the CID function in the sensor driver is any improper REG setting cause the problem.

You can make all of the CID function to dummy to verify.

1.以下是sensor 的dts配置

isx031_0@3a {
delayed_gain = "true";
nvidia,gmsl-ser-device = <0x38b>;
sensor_model = "isx031";
clock-names = "extperiph1\0pllp_grtba";
clocks = <0x03 0x24 0x03 0x24>;
mclk = "extperiph1";
nvidia,gmsl-dser-device = <0x38a>;
post_crop_frame_drop = "0";
limit_analog_gain = "true";
compatible = "sony,isx031";
physical_h = "4.608";
def-addr = <0x1a>;
use_sensor_mode_id = "false";
status = "okay";
reg = <0x3a>;
use_decibel_gain = "true";
physical_w = "5.760";
fsync-mode = "external";

mode0 {
	discontinuous_clk = "yes";
	readout_orientation = "0";
	exposure_factor = "1000000";
	mclk_khz = "24000";
	phy_mode = "DPHY";
	default_gain = "0";
	dpcm_enable = "false";
	max_gain_val = "480";
	framerate_factor = "1000000";
	min_hdr_ratio = "1";
	num_lanes = "4";
	max_framerate = "30000000";
	min_gain_val = "0";
	pixel_phase = "rggb";
	mode_type = "bayer";
	pix_clk_hz = "160000000";
	step_gain_val = "3";
	cil_settletime = "0";
	default_exp_time = "33334";
	active_h = "1300";
	serdes_pix_clk_hz = "833333333";
	max_exp_time = "660000";
	dynamic_pixel_bit_depth = "12";
	active_w = "1920";
	min_exp_time = "30";
	max_hdr_ratio = "1";
	vc_id = "0";
	min_framerate = "1500000";
	mclk_multiplier = "6.67";
	step_exp_time = "1";
	default_framerate = "30000000";
	csi_pixel_bit_depth = "12";
	step_framerate = "1";
	inherent_gain = "1";
	embedded_metadata_height = "0";
	line_length = "2200";
	tegra_sinterface = "serial_a";
	gain_factor = "10";
};

ports {
	status = "okay";

	port@0 {
		status = "okay";
		reg = <0x00>;

		endpoint {
			bus-width = <0x04>;
			remote-endpoint = <0x38c>;
			vc-id = <0x00>;
			port-index = <0x00>;
			status = "okay";
			phandle = <0x382>;
		};
	};
};

gmsl-link {
	csi-mode = "1x4";
	src-csi-port = "a";
	serdes-csi-link = "a";
	st-vc = <0x00>;
	link-rate = "3gbps";
	vc-id = <0x00>;
	num-lanes = <0x04>;
	dst-csi-port = "a";
	streams = "raw12";
};

};

isx031_1@3b {
delayed_gain = "true";
nvidia,gmsl-ser-device = <0x38d>;
sensor_model = "isx031";
clock-names = "extperiph1\0pllp_grtba";
clocks = <0x03 0x24 0x03 0x24>;
mclk = "extperiph1";
nvidia,gmsl-dser-device = <0x38a>;
post_crop_frame_drop = "0";
limit_analog_gain = "true";
compatible = "sony,isx031";
physical_h = "4.608";
def-addr = <0x1a>;
use_sensor_mode_id = "false";
status = "okay";
reg = <0x3b>;
use_decibel_gain = "true";
physical_w = "5.760";
fsync-mode = "external";

mode0 {
	discontinuous_clk = "yes";
	readout_orientation = "0";
	exposure_factor = "1000000";
	mclk_khz = "24000";
	phy_mode = "DPHY";
	default_gain = "0";
	dpcm_enable = "false";
	max_gain_val = "480";
	framerate_factor = "1000000";
	min_hdr_ratio = "1";
	num_lanes = "4";
	max_framerate = "30000000";
	min_gain_val = "0";
	pixel_phase = "rggb";
	mode_type = "bayer";
	pix_clk_hz = "160000000";
	step_gain_val = "3";
	cil_settletime = "0";
	default_exp_time = "33334";
	active_h = "1300";
	serdes_pix_clk_hz = "833333333";
	max_exp_time = "660000";
	dynamic_pixel_bit_depth = "12";
	active_w = "1920";
	min_exp_time = "30";
	max_hdr_ratio = "1";
	vc_id = "1";
	min_framerate = "1500000";
	mclk_multiplier = "6.67";
	step_exp_time = "1";
	default_framerate = "30000000";
	csi_pixel_bit_depth = "12";
	step_framerate = "1";
	inherent_gain = "1";
	embedded_metadata_height = "0";
	line_length = "2200";
	tegra_sinterface = "serial_a";
	gain_factor = "10";
};

ports {
	status = "okay";

	port@0 {
		status = "okay";
		reg = <0x00>;

		endpoint {
			bus-width = <0x04>;
			remote-endpoint = <0x38e>;
			vc-id = <0x01>;
			port-index = <0x00>;
			status = "okay";
			phandle = <0x384>;
		};
	};
};

gmsl-link {
	csi-mode = "1x4";
	src-csi-port = "a";
	serdes-csi-link = "b";
	st-vc = <0x00>;
	link-rate = "3gbps";
	vc-id = <0x01>;
	num-lanes = <0x04>;
	dst-csi-port = "a";
	streams = "raw12";
};

};

isx031_2@3c {
delayed_gain = "true";
nvidia,gmsl-ser-device = <0x38f>;
sensor_model = "isx031";
clock-names = "extperiph1\0pllp_grtba";
clocks = <0x03 0x24 0x03 0x24>;
mclk = "extperiph1";
nvidia,gmsl-dser-device = <0x38a>;
post_crop_frame_drop = "0";
limit_analog_gain = "true";
compatible = "sony,isx031";
physical_h = "4.608";
def-addr = <0x1a>;
use_sensor_mode_id = "false";
status = "okay";
reg = <0x3c>;
use_decibel_gain = "true";
physical_w = "5.760";
fsync-mode = "external";

mode0 {
	discontinuous_clk = "yes";
	readout_orientation = "0";
	exposure_factor = "1000000";
	mclk_khz = "24000";
	phy_mode = "DPHY";
	default_gain = "0";
	dpcm_enable = "false";
	max_gain_val = "480";
	framerate_factor = "1000000";
	min_hdr_ratio = "1";
	num_lanes = "4";
	max_framerate = "30000000";
	min_gain_val = "0";
	pixel_phase = "rggb";
	mode_type = "bayer";
	pix_clk_hz = "160000000";
	step_gain_val = "3";
	cil_settletime = "0";
	default_exp_time = "33334";
	active_h = "1300";
	serdes_pix_clk_hz = "833333333";
	max_exp_time = "660000";
	dynamic_pixel_bit_depth = "12";
	active_w = "1920";
	min_exp_time = "30";
	max_hdr_ratio = "1";
	vc_id = "2";
	min_framerate = "1500000";
	mclk_multiplier = "6.67";
	step_exp_time = "1";
	default_framerate = "30000000";
	csi_pixel_bit_depth = "12";
	step_framerate = "1";
	inherent_gain = "1";
	embedded_metadata_height = "0";
	line_length = "2200";
	tegra_sinterface = "serial_a";
	gain_factor = "10";
};

ports {
	status = "okay";

	port@0 {
		status = "okay";
		reg = <0x00>;

		endpoint {
			bus-width = <0x04>;
			remote-endpoint = <0x390>;
			vc-id = <0x02>;
			port-index = <0x00>;
			status = "okay";
			phandle = <0x386>;
		};
	};
};

gmsl-link {
	csi-mode = "1x4";
	src-csi-port = "a";
	serdes-csi-link = "c";
	st-vc = <0x00>;
	link-rate = "3gbps";
	vc-id = <0x02>;
	num-lanes = <0x04>;
	dst-csi-port = "a";
	streams = "raw12";
};

};

isx031_3@3d {
delayed_gain = "true";
nvidia,gmsl-ser-device = <0x391>;
sensor_model = "isx031";
clock-names = "extperiph1\0pllp_grtba";
clocks = <0x03 0x24 0x03 0x24>;
mclk = "extperiph1";
nvidia,gmsl-dser-device = <0x38a>;
post_crop_frame_drop = "0";
limit_analog_gain = "true";
compatible = "sony,isx031";
physical_h = "4.608";
def-addr = <0x1a>;
use_sensor_mode_id = "false";
status = "okay";
reg = <0x3d>;
use_decibel_gain = "true";
physical_w = "5.760";
fsync-mode = "external";

mode0 {
	discontinuous_clk = "yes";
	readout_orientation = "0";
	exposure_factor = "1000000";
	mclk_khz = "24000";
	phy_mode = "DPHY";
	default_gain = "0";
	dpcm_enable = "false";
	max_gain_val = "480";
	framerate_factor = "1000000";
	min_hdr_ratio = "1";
	num_lanes = "4";
	max_framerate = "30000000";
	min_gain_val = "0";
	pixel_phase = "rggb";
	mode_type = "bayer";
	pix_clk_hz = "160000000";
	step_gain_val = "3";
	cil_settletime = "0";
	default_exp_time = "33334";
	active_h = "1300";
	serdes_pix_clk_hz = "833333333";
	max_exp_time = "660000";
	dynamic_pixel_bit_depth = "12";
	active_w = "1920";
	min_exp_time = "30";
	max_hdr_ratio = "1";
	vc_id = "3";
	min_framerate = "1500000";
	mclk_multiplier = "6.67";
	step_exp_time = "1";
	default_framerate = "30000000";
	csi_pixel_bit_depth = "12";
	step_framerate = "1";
	inherent_gain = "1";
	embedded_metadata_height = "0";
	line_length = "2200";
	tegra_sinterface = "serial_a";
	gain_factor = "10";
};

ports {
	status = "okay";

	port@0 {
		status = "okay";
		reg = <0x00>;

		endpoint {
			bus-width = <0x04>;
			remote-endpoint = <0x392>;
			vc-id = <0x03>;
			port-index = <0x00>;
			status = "okay";
			phandle = <0x388>;
		};
	};
};

gmsl-link {
	csi-mode = "1x4";
	src-csi-port = "a";
	serdes-csi-link = "d";
	st-vc = <0x00>;
	link-rate = "3gbps";
	vc-id = <0x03>;
	num-lanes = <0x04>;
	dst-csi-port = "a";
	streams = "raw12";
};

};

2.以下是将device-tree反编译后,modules部分的配置

tegra-camera-platform {
tpg_max_iso = <0x3bc400>;
vi_bw_margin_pct = <0x19>;
max_lane_speed = <0x2625a0>;
vi_peak_byte_per_pixel = <0x02>;
num_csi_lanes = <0x04>;
compatible = "nvidia, tegra-camera-platform";
min_bits_per_pixel = <0x0c>;
isp_bw_margin_pct = <0x19>;
isp_peak_byte_per_pixel = <0x05>;
phandle = <0x3a7>;

modules {
	status = "okay";

	module1 {
		badge = "isx031_topleft";
		position = "topleft";
		status = "okay";
		orientation = "0";

		drivernode0 {
			pcl_id = "v4l2_sensor";
			status = "okay";
			sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/i2c@3190000/isx031_1@3b";
		};
	};

	module2 {
		badge = "isx031_bottomright";
		position = "bottomright";
		status = "okay";
		orientation = "0";

		drivernode0 {
			pcl_id = "v4l2_sensor";
			status = "okay";
			sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/i2c@3190000/isx031_2@3c";
		};
	};

	module0 {
		badge = "isx031_bottomleft";
		position = "bottomleft";
		status = "okay";
		orientation = "0";
		phandle = <0x375>;

		drivernode0 {
			pcl_id = "v4l2_sensor";
			status = "okay";
			sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/i2c@3190000/isx031_0@3a";
			phandle = <0x376>;
		};

		drivernode1 {
			pcl_id = "v4l2_lens";
			status = "disabled";
			phandle = <0x377>;
		};
	};

	module3 {
		badge = "isx031_topright";
		position = "topright";
		status = "okay";
		orientation = "0";

		drivernode0 {
			pcl_id = "v4l2_sensor";
			status = "okay";
			sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/i2c@3190000/isx031_3@3d";
		};
	};
};

};
  1. .isp使用了空文件

  2. CS连接了第一路接口

  3. 补充日志

NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: numBuiltinModules 4 11
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module2
OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module3
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: isx031_bottomleft
NvPclHwPrintModuleDefinition -- Position: 0
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: isx031 3-003a
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: isx031_topleft
NvPclHwPrintModuleDefinition -- Position: 3
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName:
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: isx031_bottomright
NvPclHwPrintModuleDefinition -- Position: 4
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName: isx031 3-003c
NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
NvPclHwGetModuleList: No module data found
NvPclHwPrintModuleDefinition -- Name: isx031_topright
NvPclHwPrintModuleDefinition -- Position: 5
NvPclHwPrintModuleDefinition -- CalibrationData Found: 1
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].Name: v4l2_sensor
NvPclHwPrintCameraSubModule -- HwCamSubModule[0].DevName:
NvPclHwGetModuleList: OFParserListModules Succeeded
NvPclModuleListInitialize: numBuiltinModules 4 22
NvPclModuleListInitialize: NvPclModule list[0]: isx031_bottomleft position 0 numBuiltinModules 4
NvPclModuleListInitialize: NvPclModule list[1]: isx031_topleft position 3 numBuiltinModules 4
NvPclModuleListInitialize: NvPclModule list[2]: isx031_bottomright position 4 numBuiltinModules 4
NvPclModuleListInitialize: NvPclModule list[3]: isx031_topright position 5 numBuiltinModules 4NvPclHwScanExternalCameras -- adding video1 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclModuleListInitialize: numPlugableModules 2 +++
NvPclHwScanExternalCameras -- adding video1 to discover list
NvPclHwScanExternalCameras -- adding video0 to discover list
NvPclHwAddModules isVirtual 1 ^^^^^^^^
NvPclHwScanExternalCameras -- adding video1 to discover list
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 directoryOFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
setHotplugCallback: Registered new callback client
NvPclSetHotplugCallback: --------------
 hotPlugfunc: reading from inotify FD, Thread waiting
NvPclOpen: ++++++++++++++++++++++
NvPclStateControllerOpen: Found GUID 0 match at index[0]
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa09355c0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa096bcc0
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa096ab20
NvPclHwInitializeModule: allocate overrides pathname @ 0xaaaaf05d4e10
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa09eee60
NvPclHwInitializeModule: allocate overrides pathname @ 0xffffa09ef3d0
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
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: override file [/var/nvidia/nvcam/settings/camera_overrides.isp] has correct owner and modeLoadOverridesContents: NvOsStat(/var/nvidia/nvcam/settings/camera_overrides.isp) returned error 0, Stat.size 0 (should be > 0)



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/isx031_bottomleft.isp] 6/16
CheckOverridesPermissions: stat(/data/vendor/nvcam/settings/isx031_bottomleft.isp) call failed
LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/isx031_bottomleft.isp] 7/16
CheckOverridesPermissions: stat(/opt/nvidia/nvcam/settings/isx031_bottomleft.isp) call failed
LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/isx031_bottomleft.isp] 8/16
CheckOverridesPermissions: stat(/var/nvidia/nvcam/settings/isx031_bottomleft.isp) call failed
---- imager: No override file found. ----


What I mean is the sensor control function like xxx_set_exposure/xxx_set_frame_rate

Thanks

调试过程中,CID函数中没有设置任何寄存器,一直都是空函数。

Get the trace log to check.

modprobe rtcpu_debug

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 3 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace

Launch camera

cat /sys/kernel/debug/tracing/trace

Thanks

您好,trace log如下:

★一般★camera_trace.log (7.3 KB)

What stands out in your trace:

  • After stream-on, you get vi_task_submit and the PHY interrupts.
  • But you do not get the normal frame events like FS, CHANSEL_PXL_SOF, FE, or tegra_channel_capture_frame.
  • You only see VIFALC_TDSTATE / VIFALC_ACTIONLST, then you stop the stream.

So the practical read is:

  1. NVCSI link setup got at least as far as deskew/PHY bring-up.
  2. No valid image packets/frames followed, so VI never saw frame start.
  3. This is more likely a sensor/deserializer start or deskew sequencing issue than a VI register problem.

For that maybe have some delay in the sensor mode initilize to try.

Thanks

你好,现在有数据出来了,但是仍然有报错,请帮忙分析一下log
★一般★log7_28.txt (70.9 KB)

This short-frame event is consistent with too few embedded lines / embedded data incomplete.

So please check:

  • embedded_data_height
  • whether the sensor/deserializer is actually outputting embedded lines
  • whether VI expects embedded data when the stream does not send it.

你好,我确认了嵌入行的配置后仍然无法使用argus预览,为了排除是因为嵌入行配置不对导致无法使用argus预览,我将sensor端的嵌入行关闭了,并且将embedded_metadata_height配置成了0,trace log中目前不会报short-frame的问题了,也有处理数据的log,例如fs/fe,但是仍然没有画面。

What’s the new trace log?

你好,这是最新的trace log:

★一般★trace_log_813.txt (32.6 KB)

Try nvargus_nvraw to capture the JPEG to confirm.

Thanks

你好,我使用nvargus_nvraw抓图时,概率性会成功抓图,但是大部分时候是失败的,附件分别有失败时的log、成功时的log,还有失败时nvargus-daemon的log

★一般★trace_log_814.txt (16.4 KB)