Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To connect the Emcraft OV5640 camera to the kit, plug the camera cable into the CSI1 CSI2 on the back side of the carrier board. The following picture illustrates connection of the camera to the kit:

...

For correct functioning of the Emcraft OV5640 camera with NAVQ+ kit BSP release 1.1.7-387 or higher is required. To enable support for the camera in software follow the below steps that enable correct DTB configuration for Linux kernel:

...

Connect NAVQ+ kit to a host via a USB-to-serial adapter, then open a serial terminal program on the host, and set “115200, 8N, 1” serial properties for the NAVQ+ port.

...

.

...

Issue the below commands in the U-Boot prompt:

Code Block
=> setenv fdtfile imx8mp-navq-ov5640-ov5645.dtb
=> saveenv
=> reset

After the last command is invoked the board will reset, and OV5640 camera will be ready for use on the CSI1 port.

4. Finding Camera Device Nodes

...

Code Block
user@imx8mpnavq:~$ v4l2-ctl --list-devices | grep -A1 mxc-isi-cap
mxc-isi-cap (platform:32e0000032e02000.isi:cap_devic):
        /dev/video3video4

In the above output, the /dev/video3video4 device node corresponds to the camera connected to the CSI1 CSI2 slot.

5. Streaming Video to HDMI Display

...

Code Block
user@imx8mpnavq:~$ cheese -d /dev/video3video4

At this point you should be getting GUI window with video stream displayed in real-time on your HDMI display:

...

Code Block
user@imx8mpnavq:~$ gst-launch-1.0 v4l2src device='/dev/video3video4' num-buffers=1 ! jpegenc ! filesink location=capture1.jpeg

...

Code Block
user@imx8mpnavq:~$ gst-launch-1.0 v4l2src device='/dev/video3video4' ! queue ! 'video/x-raw,widtgh=1920,height=1080' ! v4l2h264enc ! mpegtsmux ! filesink location=video.mp4