Leopard Imaging 6 camera carrier board not working

I’m trying to use the Leopard Imaging 6-camera carrier board LI-TX1-CB-6CAM 1 with the LI-IMX185-MIPI-CS 2 camera and the TX2 module. The camera is connected on the J1 port.

When I try to run nvgstcapture-1.0 I get the following error:

(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 214)
(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 317)

The following is the output of /var/log/syslog while running nvgstcapture-1.0

Jul 31 18:14:04 tegra-ubuntu argus_daemon[1176]: launchCC abort cc 543 session 0
Jul 31 18:14:04 tegra-ubuntu argus_daemon[1176]: SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 830)
Jul 31 18:14:04 tegra-ubuntu argus_daemon[1176]: (Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Jul 31 18:14:04 tegra-ubuntu argus_daemon[1176]: (Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
Jul 31 18:14:04 tegra-ubuntu kernel: [  550.683606] imx185 40-001a: imx185_s_stream++ enable 0
Jul 31 18:14:04 tegra-ubuntu kernel: [  550.690860] tegra-i2c 3180000.i2c: no acknowledge from address 0x1a
Jul 31 18:14:04 tegra-ubuntu kernel: [  550.709261] imx185 40-001a: imx185_power_off: power off
Jul 31 18:14:04 tegra-ubuntu systemd[1]: argus-daemon.service: Main process exited, code=killed, status=11/SEGV
Jul 31 18:14:04 tegra-ubuntu systemd[1]: argus-daemon.service: Unit entered failed state.
Jul 31 18:14:04 tegra-ubuntu systemd[1]: argus-daemon.service: Failed with result 'signal'.
Jul 31 18:14:04 tegra-ubuntu systemd[1]: argus-daemon.service: Service hold-off time over, scheduling restart.
Jul 31 18:14:04 tegra-ubuntu systemd[1]: Stopped Argus daemon.
Jul 31 18:14:04 tegra-ubuntu systemd[1]: Started Argus daemon.

I used JetPack 3.2.1 and followed the instructions below to install the board drivers in L4T.

6. After boot up TX2, copy 2 images: one called “Image” and another called “zImage” to /boot on TX2.
   sudo cp Image /boot
   sudo cp zImage /boot
7. copy 4.4.38-tegra-leopard.tgz to /lib/modules on TX2.
   sudo cp 4.4.38-tegra-leopard.tgz /lib/modules
   cd /lib/modules
   sudo tar zxvf 4.4.38-tegra-leopard.tgz
8. Copy camera_overrides.isp to TX2 /var/nvidia/nvcam/settings (if there is isp file)
   sudo chmod 664 /var/nvidia/nvcam/settings/camera_overrides.isp
   sudo chown root:root /var/nvidia/nvcam/settings/camera_overrides.isp
9. Reboot TX2.
10. Open a terminal and do "nvgstcapture-1.0”. You will get live video output.

The following is the output of dmesg regarding IMX185 after rebooting the board. It seems it is detecting the camera in J1, but still I cannot bring it up and capture images.

[    2.726760] i2c /dev entries driver
[    2.727968] imx185 40-001a: [IMX185]: probing v4l2 sensor at addr 0x1a.
[    2.728381] imx185 40-001a: imx185_ctrls_init++
[    2.728398] imx185 40-001a: Detected IMX185 sensor
[    2.728421] imx185 41-001a: [IMX185]: probing v4l2 sensor at addr 0x1a.
[    2.728603] imx185 41-001a: imx185_ctrls_init++
[    2.728615] imx185 41-001a: Detected IMX185 sensor
[    2.728638] imx185 42-001a: [IMX185]: probing v4l2 sensor at addr 0x1a.
[    2.728819] imx185 42-001a: imx185_ctrls_init++
[    2.728831] imx185 42-001a: Detected IMX185 sensor
[    2.728855] imx185 43-001a: [IMX185]: probing v4l2 sensor at addr 0x1a.
[    2.729185] imx185 43-001a: imx185_ctrls_init++
[    2.729196] imx185 43-001a: Detected IMX185 sensor
[    2.729220] imx185 44-001a: [IMX185]: probing v4l2 sensor at addr 0x1a.
[    2.729370] imx185 44-001a: imx185_ctrls_init++
[    2.729381] imx185 44-001a: Detected IMX185 sensor
[    2.729401] imx185 45-001a: [IMX185]: probing v4l2 sensor at addr 0x1a.
[    2.729561] imx185 45-001a: imx185_ctrls_init++
[    2.729573] imx185 45-001a: Detected IMX185 sensor

...

[    5.035046] tegra-vi4 15700000.vi: initialized
[    5.036238] tegra-vi4 15700000.vi: subdev 150c0000.nvcsi-0 bound
[    5.036242] tegra-vi4 15700000.vi: subdev imx185 40-001a bound
[    5.036527] tegra-vi4 15700000.vi: subdev 150c0000.nvcsi-1 bound
[    5.036529] tegra-vi4 15700000.vi: subdev imx185 41-001a bound
[    5.036791] tegra-vi4 15700000.vi: subdev 150c0000.nvcsi-2 bound
[    5.036794] tegra-vi4 15700000.vi: subdev imx185 42-001a bound
[    5.037036] tegra-vi4 15700000.vi: subdev 150c0000.nvcsi-3 bound
[    5.037038] tegra-vi4 15700000.vi: subdev imx185 43-001a bound
[    5.037277] tegra-vi4 15700000.vi: subdev 150c0000.nvcsi-4 bound
[    5.037279] tegra-vi4 15700000.vi: subdev imx185 44-001a bound
[    5.037523] tegra-vi4 15700000.vi: subdev 150c0000.nvcsi-5 bound
[    5.037525] tegra-vi4 15700000.vi: subdev imx185 45-001a bound

...

[    8.133503] imx185 41-001a: imx185_open:
[    8.135372] imx185 42-001a: imx185_open:
[    8.140457] imx185 40-001a: imx185_open:
[    8.141830] imx185 43-001a: imx185_open:
[    8.143408] imx185 44-001a: imx185_open:
[    8.146886] imx185 45-001a: imx185_open:
[    8.180264] xhci-tegra 3530000.xhci: cannot find firmware....retry after 1 second
[    8.207597] imx185 44-001a: imx185_power_on: power on
[    8.208228] tegra-pcie 10003000.pcie-controller: PCIE: Enable power rails
[    8.208825] tegra-pcie 10003000.pcie-controller: probing port 0, using 4 lanes
[    8.211024] tegra-pcie 10003000.pcie-controller: probing port 2, using 1 lanes
[    8.228655] imx185 41-001a: imx185_power_on: power on
[    8.235524] imx185 40-001a: imx185_power_on: power on
[    8.235754] imx185 45-001a: imx185_power_on: power on
[    8.242113] imx185 42-001a: imx185_power_on: power on
[    8.247923] imx185 43-001a: imx185_power_on: power on
[    8.250175] imx185 44-001a: imx185_power_off: power off
[    8.250302] imx185 43-001a: imx185_power_off: power off
[    8.250972] imx185 41-001a: imx185_power_off: power off
[    8.251173] imx185 40-001a: imx185_power_off: power off
[    8.251386] imx185 45-001a: imx185_power_off: power off
[    8.259683] imx185 42-001a: imx185_power_off: power off

I also tried this with JetPack 3.3 but the results are the same.

Does anyone know if I’m missing something here?

Thanks

dmesg.log (65.4 KB)
syslog.log (19.8 KB)

Hi jadarve,

Jetpack 3.2.1 includes the L4T OS image is R28.2.1. Our current driver is based on R28.2. It doesn’t work with R28.2.1. Please download the R28.2 OS image from below guide and flash it to TX2. Then install the driver again.

Hi SimonZhu,

I reflashed the OS image with L4T 28.2.0 from the Dropbox link and followed all the steps to patch the Kernel (tegra186-quill-p3310-1000-c03-00-base.dtb, Image, zImage, camera_overrides.isp, and 4.4.38-tegra-leopard). The problem still persists.

nvidia@tegra-ubuntu:~$ more /etc/nv_tegra_release 
# R28 (release), REVISION: 2.0, GCID: 10567845, BOARD: t186ref, EABI: aarch64, DATE: Fri Mar  2 04:57:01 UTC 2018
28dac9361b6fca4c80b4d33450c07d6567fda1e2 */usr/lib/xorg/modules/extensions/libglx.so
3202e46f7fb5a81bd58408a26881c653ef347e83 */usr/lib/xorg/modules/drivers/nvidia_drv.so
6112d187838cf5cb65aa4a58ad5531a6adbc330b */usr/lib/aarch64-linux-gnu/tegra/libtegrav4l2.so
4f11b4b055d3f48698071d739a99978bbbcb7f02 */usr/lib/aarch64-linux-gnu/tegra/libnvrm.so
de247b961707f7a61d83ab712b7da347fae6ca6e */usr/lib/aarch64-linux-gnu/tegra/libargus_socketserver.so
89c35677298da37cb9d4285c795646f28febe05f */usr/lib/aarch64-linux-gnu/tegra/libnvjpeg.so
7220a361260117a39d3e0de93a7fa7102c5973b3 */usr/lib/aarch64-linux-gnu/tegra/libnvomxilclient.so
cb725c103def5f9c8f0e25205b3b39eab4642721 */usr/lib/aarch64-linux-gnu/tegra/libnvidia-egl-wayland.so
df18e4c9c92699e292d1f497426df61ccacad58c */usr/lib/aarch64-linux-gnu/tegra/libnvcamerautils.so
331481e2895586a29de020f40a1a288e2fc8d58b */usr/lib/aarch64-linux-gnu/tegra/libnvrm_graphics.so
906df7fc550179fbce83765d1d1efc0de22f87ca */usr/lib/aarch64-linux-gnu/tegra/libnvosd.so
719a0debac1f25848100512d375b6c2618c270d9 */usr/lib/aarch64-linux-gnu/tegra/libnvddk_2d_v2.so
b205a2519abd648ce534b9f6586383f0b918e814 */usr/lib/aarch64-linux-gnu/tegra/libargus_socketclient.so
b6c677c3ba7be305f80bfc713195df1da2baf204 */usr/lib/aarch64-linux-gnu/tegra/libargus.so
429e26afbfaf88b8ace2e0fa35207a2499cec9e1 */usr/lib/aarch64-linux-gnu/tegra/libnvtestresults.so
de2f8e70a65061d1d3ab6535bb498fbc239a0b40 */usr/lib/aarch64-linux-gnu/tegra/libnvddk_vic.so
b75fb02b45008e421bf1076058f056119042b9e4 */usr/lib/aarch64-linux-gnu/tegra/libnvcamlog.so
e81dc8da523b3ec832e5cfa61b44128805c25035 */usr/lib/aarch64-linux-gnu/tegra/libnvparser.so
4847ac78e8361d4a4056381e38398a0495268879 */usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_image.so
a194c123d27e1b9c85f0c090c2d51d9858e503e2 */usr/lib/aarch64-linux-gnu/tegra/libnvrm_gpu.so
99585b256e0fc1660821344bb4a496dcb68cd709 */usr/lib/aarch64-linux-gnu/tegra/libnvmm_parser.so
a54283f9ed83ef15d6bd433d97e6a53e73176219 */usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_utils.so
b6dd8194edb967d2e77c38c865fd63b4affad27f */usr/lib/aarch64-linux-gnu/tegra/libnvmmlite.so
ddc4f2a90d4c0a031da8c46e5c75323642220799 */usr/lib/aarch64-linux-gnu/tegra/libnvcameratools.so
cde93d596b8976787dc3f5f5bff1a3ec49dc8a13 */usr/lib/aarch64-linux-gnu/tegra/libnvimp.so
ba26a771c2fb02419c01e400e15c20b86db04c77 */usr/lib/aarch64-linux-gnu/tegra/libnvfnet.so
718472ca1114f5072468cbb0da93ee70a372e72e */usr/lib/aarch64-linux-gnu/tegra/libscf.so
28dac9361b6fca4c80b4d33450c07d6567fda1e2 */usr/lib/aarch64-linux-gnu/tegra/libglx.so
1d46c7cb8d58753e87e28d4579d397e5d1b90e36 */usr/lib/aarch64-linux-gnu/tegra/libnvomx.so
e8a0341d4b85e6bdedb72a9cc2203fe573c2dd2a */usr/lib/aarch64-linux-gnu/tegra/libnvmm_contentpipe.so
ae214a66a4fe6ef66c15ea40a0a03dadb8055f72 */usr/lib/aarch64-linux-gnu/tegra/libnvtnr.so
34b21184e90bff5580d6896e47ce932057fd060d */usr/lib/aarch64-linux-gnu/tegra/libnvfnetstorehdfx.so
b5365dc951e955976310c01985b75210b62804e8 */usr/lib/aarch64-linux-gnu/tegra/libnvtvmr.so
8f47a0da6cc1e75b4ebd2ae33f83503249b6d5ee */usr/lib/aarch64-linux-gnu/tegra/libnveglstream_camconsumer.so
7a880dc6419dc8d5f28c63732dde20950b60dfa2 */usr/lib/aarch64-linux-gnu/tegra/libnvfnetstoredefog.so
e173e4825a0175b22766fb510fa4ec48c73e35f3 */usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_video.so
3cfcf8707c18f4b2356be243ff7114a384803234 */usr/lib/aarch64-linux-gnu/tegra/libnvavp.so
1f1969af639eb8ac2f09e4fbeb7e76667cb59fd1 */usr/lib/aarch64-linux-gnu/tegra/libnvll.so
8334d9dc532a016b11624b026df6ea320d9180a3 */usr/lib/aarch64-linux-gnu/tegra/libnvdc.so
532626aba510a1b8d586c04b23011ad7f48ff351 */usr/lib/aarch64-linux-gnu/tegra/libnvcolorutil.so
d5c04359d52a3d594fa091a18653426262a7197a */usr/lib/aarch64-linux-gnu/tegra/libnvapputil.so
1a599b8a1f7e5abbbc8b3e51d3f48bcc5124f51a */usr/lib/aarch64-linux-gnu/tegra/libnvmm.so
340c90216c7662a2ae6df0d9f5db961c9c7b3752 */usr/lib/aarch64-linux-gnu/tegra/libnvos.so
cff74941214470fe164422c6e4e1dbae1f059937 */usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so
5b8ddf3aa6dbab99f55bb22d1ec35318ecac77ef */usr/lib/aarch64-linux-gnu/tegra/libnvodm_imager.so
78341f6d30c9c8e700d85d5e0615c4681ef25b86 */usr/lib/aarch64-linux-gnu/tegra/libnvcam_imageencoder.so
d0cda03c9c8d38a6713f0d37a6608d8d65ec1466 */usr/lib/aarch64-linux-gnu/tegra/libnvwinsys.so
46e3f9ba88faa7ed6fffcf06fbcd1f50be9b35a3 */usr/lib/aarch64-linux-gnu/tegra/libnveglstreamproducer.so
3c48f3b81b1b7b333df5b261dc920736194e1f95 */usr/lib/aarch64-linux-gnu/tegra/libnvexif.so
a2f1e1439435d128b5f3596d6c3ab2333590f05a */usr/lib/aarch64-linux-gnu/tegra/libnvmm_utils.so
1653e5d266b7b030dc882d226b03f0c0157b4f3a */usr/lib/aarch64-linux-gnu/tegra/libnvtx_helper.so
7f8fb47183cbd3d4cacc5eb50fc7869aacdefe40 */usr/lib/aarch64-linux-gnu/libv4l/plugins/libv4l2_nvvideocodec.so
f7d960d08cca90fb7a24458d41fdcc43ce298cf2 */usr/lib/aarch64-linux-gnu/libv4l/plugins/libv4l2_nvvidconv.so

The error when running nvgstcapture-1.0 is:

** Message: <main:5684> iterating capture loop ....
Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 214)
(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 317)
** Message: <_intr_handler:5104> User Interrupted..

dmesg.log (65.5 KB)

Hi jadarve,

Please make sure the IMX185 camera has been set to slave mode (DIPSW1 --> Off), and there is a jumper between T1 and T6. Please see images in link below.

https://www.dropbox.com/sh/cksco0qwgsyupt0/AAB9XhC2E0sIi1unUe6JbDAHa?dl=0

If the camera still doesn’t work, you may need to contact our Support (support@leopardimaging.com) for return and investigation.