# CSI Camera Issue

**URL:** <https://forums.developer.nvidia.com/t/csi-camera-issue/176817>\
**Category:** Jetson Nano\
**Tags:** camera\
**Created:** [May 2, 2021, 3:57am UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817 "2021-05-02T03:57:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tykmorikawa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tykmorikawa](https://forums.developer.nvidia.com/u/tykmorikawa)\
**Post date:** [May 2, 2021, 3:57am UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/1 "2021-05-02T03:57:22Z")

</div>

When I try to use a CSI camera, LI-IMX219-MIPI-FF-NANO-HI136 V1.3, the error message “Could not read image from camera.” is displayed, although camera connection is confirmed.  
The version of Oven CV is 4.1.1. And when using USB camera, there are no problems.  
Would you please advise the root cause and preventive action? Thank you for your support.

---

<div class="post-metadata">

**Author:** ![Honey\_Patouceul](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/honey_patouceul/32/389777_2.png) [@Honey\_Patouceul](https://forums.developer.nvidia.com/u/Honey_Patouceul)\
**Post date:** [May 2, 2021, 8:22pm UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/2 "2021-05-02T20:22:28Z")

</div>

You may try [this](https://forums.developer.nvidia.com/t/on-board-camera/176807/6) and tell more.

---

<div class="post-metadata">

**Author:** ![Honey\_Patouceul](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/honey_patouceul/32/389777_2.png) [@Honey\_Patouceul](https://forums.developer.nvidia.com/u/Honey_Patouceul)\
**Post date:** [May 2, 2021, 10:47pm UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/3 "2021-05-02T22:47:32Z")

</div>

> [@On board camera](https://forums.developer.nvidia.com/t/on-board-camera/176807/7):
>
> Thank you for your comment. The following is the output to your first suggestion.
> 
> Setting pipeline to PAUSED …  
> ERROR: Pipeline doesn’t want to pause.  
> ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output  
> Additional debug info:  
> xvimagesink.c(1773): gst\_xv\_image\_sink\_open (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:  
> Could not open display (null)  
> Setting pipeline to NULL …  
> Freeing pipeline …
> 
> Regarding your second point, my version has the support as below.
> 
> deo I/O:  
> FFMPEG: YES  
> avcodec: YES (57.107.100)  
> avformat: YES (57.83.100)  
> avutil: YES (55.78.100)  
> swscale: YES (4.8.100)  
> avresample: NO  
> GStreamer: YES (1.14.5)  
> v4l/v4l2: YES (linux/videodev2.h)
> 
> Your any feedback will be highly appreciated.  
> Best Regards.

Seems you don’t have a X server available. If the Jetson has a local monitor but no X server running, you may try instead:

```auto
gst-launch-1.0 -v nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=640, height=480, framerate=30/1' ! nvoverlaysink

```

If the jetson is headless, you would need to connect with ssh -X or -Y for X forwarding from a host having a X server.

---

<div class="post-metadata">

**Author:** ![tykmorikawa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tykmorikawa](https://forums.developer.nvidia.com/u/tykmorikawa)\
**Post date:** [May 3, 2021, 12:32am UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/5 "2021-05-03T00:32:26Z")

</div>

Dear Honey\_Patouceul

Thank you for your comment. The following are displayed.

Setting pipeline to PAUSED …  
Pipeline is live and does not need PREROLL …  
Setting pipeline to PLAYING …  
New clock: GstSystemClock  
/GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1  
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1  
/GstPipeline:pipeline0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1  
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)640, height=(int)480, format=(string)NV12, framerate=(fraction)30/1  
Error generated. /dvs/git/dirty/git-master\_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:645 No cameras available

(gst-launch-1.0:14031): GStreamer-CRITICAL \*\*: 09:27:04.444: gst\_mini\_object\_set\_qdata: assertion ‘object != NULL’ failed  
Got EOS from element “pipeline0”.  
Execution ended after 0:00:00.208869586  
Setting pipeline to PAUSED …  
Setting pipeline to READY …  
Setting pipeline to NULL …  
Freeing pipeline …

Your any feedback will be highly appreciated.  
Best Regards.

---

<div class="post-metadata">

**Author:** ![Honey\_Patouceul](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/honey_patouceul/32/389777_2.png) [@Honey\_Patouceul](https://forums.developer.nvidia.com/u/Honey_Patouceul)\
**Post date:** [May 3, 2021, 10:32am UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/6 "2021-05-03T10:32:43Z")

</div>

> [@tykmorikawa](#):
>
> Error generated. /dvs/git/dirty/git-master\_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:645 No cameras available

As you are using a Leopard Imaging camera, there might be a SDK to be installed with driver.  
I have no experience with LI camera, maybe @SimonZhu can clarify.

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [May 3, 2021, 4:32pm UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/7 "2021-05-03T16:32:52Z")

</div>

Below message tell the device tree configure have problem to load correct sensor driver.  
I would suggest consult to Leopard to get the driver and dtb for this sensor board.

Error generated. /dvs/git/dirty/git-master\_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:645 No cameras available

---

<div class="post-metadata">

**Author:** ![tykmorikawa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tykmorikawa](https://forums.developer.nvidia.com/u/tykmorikawa)\
**Post date:** [May 6, 2021, 5:31am UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/8 "2021-05-06T05:31:10Z")

</div>

The following is the driver recommended by Leopard. Would you please advise which directory should I install the driver into?

> **[IMX219\_R32.1\_Nano\_NV\_One\_20190426\_Driver\_Guide.pdf](https://www.dropbox.com/s/fdf3wvj7oserh11/IMX219_R32.1_Nano_NV_One_20190426_Driver_Guide.pdf?dl=0)**

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [May 6, 2021, 6:53am UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/9 "2021-05-06T06:53:43Z")

</div>

Check the dts context by dump the device tree at run time to confirm the tegra-camera-platform{} is correct.

```auto
sudo dtc -I fs -O dts -o extracted_proc.dts /proc/device-tree

```

---

<div class="post-metadata">

**Author:** ![tykmorikawa](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tykmorikawa](https://forums.developer.nvidia.com/u/tykmorikawa)\
**Post date:** [May 6, 2021, 9:07am UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/10 "2021-05-06T09:07:36Z")

</div>

Thank you for your comment. Could you please supplement the background of your advice? Sorry I am not sure how to react unfortunately. Should I describe your command to get further information? Thank you for your advice.

---

<div class="post-metadata">

**Author:** ![ShaneCCC](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaneccc/32/14043_2.png) [@ShaneCCC](https://forums.developer.nvidia.com/u/ShaneCCC)\
**Post date:** [May 6, 2021, 12:09pm UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/11 "2021-05-06T12:09:09Z")

</div>

The dtc command can dump the device tree as extracted\_proc.dts and you can check the tegra\_camera\_platform{} to confirm the context is correct or not.

---

<div class="post-metadata">

**Author:** ![SimonZhu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/simonzhu/32/12752_2.png) [@SimonZhu](https://forums.developer.nvidia.com/u/SimonZhu)\
**Post date:** [May 8, 2021, 1:58pm UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/12 "2021-05-08T13:58:52Z")

</div>

Hi tykmorikawa,

Sorry for the trouble. I assume you are using the Jetson Nano Developer kit with two MIPI connectors. Actually, the original Nvidia driver should support IMX219 camera directly. You can download the drivers (OS image) from link below and flash it to Nano.  
[L4T | NVIDIA Developer](https://developer.nvidia.com/embedded/linux-tegra)

Please do not use the 20190426 driver which is for an old version of Nano Devkit which includes only one MIPI connectors.

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 15, 2021, 3:37am UTC](https://forums.developer.nvidia.com/t/csi-camera-issue/176817/14 "2021-10-15T03:37:20Z")

</div>

Closed on October 15, 2021, 3:37am UTC


