I am trying to port a DTS from TX2 to TX2NX. I got it partially working, but when I use nvargus-daemon I get this:
Acquiring SCF Camera device source via index 0 has failed. === gst-plugin-scanner[376509]: CameraProvider initialized (0x7f9c820380)=== gst-plugin-scanner[376509]: CameraProvider destroyed (0x7f9c820380)=== gst-plugin-scanner[376509]: Connection closed (7FA255F0E0)=== gst-plugin-scanner[376509]: Connection cleaned up (7FA255F0E0)=== python3[376460]: Connection established (7FA255F0E0)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
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 107)
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 593)
SCF: Error BadParameter: (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 437)
SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 305)
SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function getSource(), line 471)
Acquiring SCF Camera device source via index 0 has failed. === python3[376460]: CameraProvider initialized (0x7f9d88e190)^C
Also, I get nothing from nvraw:
$ nvargus_nvraw --lps
nvargus_nvraw version 1.11.0
Number of supported sensor entries 0
Entry Source Mode Uniquename Resolution FR BitDepth Mode
Index Index Index CSI Dyn Type
Some dmesg logs:
[ 21.097835] imx334 0-001a: probing v4l2 sensor
[ 21.098095] Board GPIO ctrl [0]
[ 21.104218] Message RAM Configuration
| base addr |0x0c312000|
| sidfc_flssa |0x00000000|
| xidfc_flesa |0x00000040|
| rxf0c_f0sa |0x000000c0|
| rxf1c_f1sa |0x000009c0|
| rxbc_rbsa |0x000009c0|
| txefc_efsa |0x000009c0|
| txbc_tbsa |0x00000a40|
| tmc_tmsa |0x00000ec0|
[ 21.104399] Release 3.2.0 from 19.12.2014
[ 21.107885] net can0: mttcan device registered (regs=000000000e80bfa2, irq=385)
[ 21.108691] imx334 0-001a: tegracam sensor driver:imx334_v2.0.6
[ 21.120478] proc: unrecognized mount option "hidepid=invisible" or missing value
[ 21.180507] tegra-vi4 15700000.vi: subdev imx334 0-001a bound
[ 21.181454] imx334 0-001a: Detected imx334 sensor
...
[276844.980278] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[276844.986726] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
Have you seen something like this before?
My DTS looks like this:
/ {
tcp: tegra-camera-platform {
compatible = "nvidia, tegra-camera-platform";
num_csi_lanes = <4>;
max_lane_speed = <1500000>;
min_bits_per_pixel = <10>;
vi_peak_byte_per_pixel = <2>;
vi_bw_margin_pct = <25>;
max_pixel_rate = <240000>;
isp_peak_byte_per_pixel = <5>;
isp_bw_margin_pct = <25>;
modules {
cam_module0: module0 {
badge = "imx334_front_framos";
position = "front";
orientation = "1";
cam_module0_drivernode0: drivernode0 {
pcl_id = "v4l2_sensor";
devname = "imx334 2-001a";
proc-device-tree = "/proc/device-tree/i2c@3160000/imx334_a@1a";
};
};
};
};
};
And also:
#include <dt-bindings/media/camera.h>
/ {
host1x {
vi_base: vi@15700000 {
num-channels = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
vi_port0: port@0 {
reg = <0>;
imx334_vi_in0: endpoint {
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&imx334_csi_out0>;
};
};
};
};
csi_base: nvcsi@150c0000 {
num-channels = <1>;
#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>;
imx334_csi_in0: endpoint@0 {
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&imx334_out0_0>;
};
};
csi_chan0_port1: port@1 {
reg = <1>;
imx334_csi_out0: endpoint@1 {
remote-endpoint = <&imx334_vi_in0>;
};
};
};
};
};
};
i2c@3160000 {
imx334_a@1a {
compatible = "framos,imx334";
reg = <0x1a>;
devnode = "video0";
physical_w = "15.00";
physical_h = "12.50";
sensor_model ="imx334";
and so on.....
Is there any feedback you can provide on how to address this issue? I am running r32.7.5
Thanks in advance