alliedvision / linux_nvidia_jetson

Allied Vision CSI-2 camera driver for NVIDIA Jetson Systems.
104 stars 41 forks source link

One one camera out of two is initialized on Jetson B01 #8

Open dk-teknologisk-mlnn opened 3 years ago

dk-teknologisk-mlnn commented 3 years ago

I am trying to connect two alvium 1500 cameras on jetson nano B01 with two Mipi CSI connectors. I tried the preinstalled 4.2.2 SD image from Allied Vision webpage, and I tried the newest jetpack 4.4 pathced with the alvium precompiled drivers. The 4.2.2 image does not acknowledge the existance of the second csi (as seen by dmesg | grep csi). Also trying the connect a Pi Noir 2 camera to the second CSI plug, fails with version 4.2.2. I have to use minimum 4.3 to use the second csi.

Jetpack 4.4 with alvium drivers gives me the following errors related to "dmesg | grep csi": [ 1.739567] avt_csi2 0-003c: i2c read failed (-121) [ 1.744500] avt_csi2 0-003c: avt_csi2_probe: read_cci_registers failed: -121 [ 1.751577] avt_csi2: probe of 0-003c failed with error -121

and for the one that works:

[ 1.764955] avt_csi2 6-003c: cci layout version: 10000 [ 1.764959] avt_csi2 6-003c: cci device capabilities: 117 [ 1.764962] avt_csi2 6-003c: cci device guid: 00012C00329E [ 1.764965] avt_csi2 6-003c: cci gcprm_address: 0x300 [ 1.765328] avt_csi2 6-003c: bcrm version (driver): 0x10000 (maj: 0x1 min: 0x0) [ 1.765333] avt_csi2 6-003c: bcrm version (camera): 0x10000 (maj: 0x1 min: 0x0) [ 1.776863] avt_csi2 6-003c: wrong GENCP CRC value! calculated = 0xdf6b807f, received = 0xee4b04d6 [ 1.776868] avt_csi2 6-003c: gcprm layout version: 10000 [ 1.776871] avt_csi2 6-003c: gcprm out buf addr: c00 [ 1.776874] avt_csi2 6-003c: gcprm out buf size: 400 [ 1.776877] avt_csi2 6-003c: gcprm in buf addr: 800 [ 1.776880] avt_csi2 6-003c: gcprm in buf size: 400 [ 1.776886] avt_csi2 6-003c: gcprm version (driver): 0x10000 (maj: 0x1 min: 0x0) [ 1.776890] avt_csi2 6-003c: gcprm version (camera): 0x10000 (maj: 0x1 min: 0x0) [ 1.779243] avt_csi2 6-003c: ioctl_queryctrl:2281: control 'Contrast' not supported by firmware [ 1.779690] avt_csi2 6-003c: ioctl_queryctrl:2423: control 'Saturation' not supported by firmware [ 1.780139] avt_csi2 6-003c: ioctl_queryctrl:2499: control 'Hue' not supported by firmware [ 1.780585] avt_csi2 6-003c: ioctl_queryctrl:2359: control 'White balance Auto' not supported by firmware [ 1.781032] avt_csi2 6-003c: ioctl_queryctrl:2394: control 'White balance' not supported by firmware [ 1.781477] avt_csi2 6-003c: ioctl_queryctrl:2573: control 'Red balance' not supported by firmware [ 1.781924] avt_csi2 6-003c: ioctl_queryctrl:2658: control 'Blue balance' not supported by firmware [ 1.791124] avt_csi2 6-003c: ioctl_queryctrl:2743: control 'Sharpness' not supported by firmware [ 2.402064] avt_csi2 6-003c: sensor_common_parse_control_props:default_gain:property missing [ 2.410544] avt_csi2 6-003c: sensor_common_parse_control_props:default_framerate:property missing [ 2.419425] avt_csi2 6-003c: sensor_common_parse_control_props:default_exp_time:property missing [ 2.691743] avt_csi2 6-003c: sensor avt_csi2 6-003c registered [ 2.858045] vi 54080000.vi: subdev nvcsi--2 bound [ 2.858059] vi 54080000.vi: subdev avt_csi2 6-003c bound [ 2.862636] vi 54080000.vi: subdev nvcsi--1 bound

The part here: [ 2.858045] vi 54080000.vi: subdev nvcsi--2 bound [ 2.862636] vi 54080000.vi: subdev nvcsi--1 bound shows that both ports are seen. In the image 4.2.2, it only sees nvcsi--1.

i2cdetect -l i2c-3 unknown 7000c700.i2c N/A i2c-1 unknown 7000c400.i2c N/A i2c-6 unknown Tegra I2C adapter N/A i2c-4 unknown 7000d000.i2c N/A i2c-2 unknown 7000c500.i2c N/A i2c-0 unknown 7000c000.i2c N/A i2c-5 unknown 7000d100.i2c N/A