Difference between revisions of "GX Camera on Orange Pi's RK35XX Boards"

From wiki_veye
Jump to navigation Jump to search
(Created page with "[https://wiki.veye.cc/index.php/MV_Camera_on_Orange_Pi%27s_RK35XX_Boards English] '''<big>怎样在Orange Pi的RK35XX板子上使用MV系列和RAW系列相机</big>''' ===...")
 
Line 1: Line 1:
[https://wiki.veye.cc/index.php/MV_Camera_on_Orange_Pi%27s_RK35XX_Boards English]
+
[https://wiki.veye.cc/index.php/MV_Camera_on_Orange_Pi%27s_RK35XX_Boards/zh 查看中文]
  
 +
===Overview===
 +
The MV series and RAW series cameras are cameras designed for AI applications in the industrial field. They use the MIPI CSI-2 interface and are particularly suitable for use with embedded computing platforms. They have rich data formats and triggering features, extremely low latency, high bandwidth, and reliable stability.
  
'''<big>怎样在Orange Pi的RK35XX板子上使用MV系列和RAW系列相机</big>'''
+
This article takes OrangePi CM4 and OrangePi CM5 and CM5 tablet board as an example to introduce how to connect MV and RAW series cameras to the RK3566/3K3568 and RK3588S/RK3588 system.
===概述===
 
MV系列和RAW系列相机是为工业领域的AI应用推出的相机。其使用MIPI CSI-2接口,尤其适合嵌入式运算平台使用。它具备丰富的数据格式和触发特性,极低的延时,极高的带宽和可靠的稳定性。
 
  
本文以Orange Pi的CM4和CM5以及CM5 tablet主板为例,介绍怎样将MV和RAW系列摄像机接入RK3566/3K3568和RK3588S/RK3588系统。
+
We provide drivers for the Linux operating system (using Ubuntu as an example).
 
+
====Camera Module List====
我们提供了Linux操作系统下的驱动。
 
====支持的模组====
 
 
{| class="wikitable"
 
{| class="wikitable"
!系列
+
!Series
!型号
+
!Model
!状态
+
!Status
 
|-
 
|-
|MV系列
+
|MV series
 
|MV-MIPI-IMX178M
 
|MV-MIPI-IMX178M
|完成
+
|Done
 
|-
 
|-
|MV系列
+
|MV series
 
|MV-MIPI-SC130M
 
|MV-MIPI-SC130M
|完成
+
|Done
 +
|-
 +
|MV series
 +
|MV-MIPI-IMX296M
 +
|Done
 
|-
 
|-
|MV系列
+
|MV series
 
|MV-MIPI-IMX287M
 
|MV-MIPI-IMX287M
|完成
+
|Done
|-
 
|MV系列
 
|MV-MIPI-IMX296M
 
|完成
 
 
|-
 
|-
|MV系列
+
|MV series
 
|MV-MIPI-IMX265M
 
|MV-MIPI-IMX265M
|完成
+
|Done
 
|-
 
|-
|MV系列
+
|MV series
 
|MV-MIPI-IMX264M
 
|MV-MIPI-IMX264M
|完成
+
|Done
 
|-
 
|-
|MV系列
+
|MV series
|MV-MIPI-IMXGMAX4002M
+
|MV-MIPI-GMAX4002M
|完成
+
|Done
 
|-
 
|-
|RAW系列
+
|RAW series
 
|RAW-MIPI-SC132M
 
|RAW-MIPI-SC132M
|完成
+
|Done
 
|-
 
|-
|RAW系列
+
|RAW series
 
|RAW-MIPI-IMX462M
 
|RAW-MIPI-IMX462M
|完成
+
|Done
 
|-
 
|-
|RAW系列
+
|RAW series
 
|RAW-MIPI-AR0234M
 
|RAW-MIPI-AR0234M
|完成
+
|Done
 
|-
 
|-
|RAW系列
+
|RAW series
 
|RAW-MIPI-SC535M
 
|RAW-MIPI-SC535M
|完成
+
|Done
 
|}
 
|}
===硬件准备及安装===
 
我们使用Orange Pi的CM4和CM5的官方底板,这两个底板提供了兼容树莓派的15Pin端子。对于RAW系列相机,无需使用转接板即可将我们的相机安装到其主板上。对于MV系列相机,则需要使用[[ADP-MV1 Adapter Board Data Sheet/zh|ADP-MV1]]转接板进行连接。
 
  
====相机与OrangePi CM4的连接====
+
===Hardware Setup===
ADP-MV1和OrangePi之间使用15P的FFC异面线连接,注意接触面方向。请注意,只有下图所示的CAM1支持VEYE相机。
+
We use the official baseboards of the Orange Pi CM4 and CM5, which feature a 15-pin header compatible with Raspberry Pi. For the RAW series cameras, our cameras can be directly mounted onto the baseboard without the need for an adapter board. For the MV series cameras, the ADP-MV1 adapter board is required for connection.
[[File:OrangePi CM4 to MV cam.jpg|center|thumb|600x600px|OrangePi CM4 to MV cam]]
+
 
[[File:OrangePi CM4 to RAW cam.jpg|center|thumb|600x600px|OrangePi CM4 to RAW CAM]]
+
====Camera Connection to Orange Pi CM4====
<br />
+
The ADP-MV1 is connected to the OrangePi CM4 via a 15-pin FFC cable with opposite surface alignment; please pay attention to the orientation of the contact surfaces.
 +
 
 +
Note that only the CAM1 shown in the image below supports MV and RAW cameras.[[File:OrangePi CM4 to MV cam.jpg|center|thumb|600x600px|OrangePi CM4 to MV cam|link=http://wiki.veye.cc/index.php/File:OrangePi_CM4_to_MV_cam.jpg]][[File:OrangePi CM4 to RAW cam.jpg|center|thumb|600x600px|OrangePi CM4 to RAW cam|link=http://wiki.veye.cc/index.php/File:OrangePi_CM4_to_RAW_cam.jpg]]<br />
 +
====Camera Connection to Orange Pi CM5====
 +
The OrangePi CM5 supports up to four cameras. The following diagram shows the hardware connection method for simultaneously connecting multiple cameras.[[File:OrangePi CM5 to all cam overview.jpg|center|thumb|600x600px|OrangePi CM5 to all cam overview|link=http://wiki.veye.cc/index.php/File:OrangePi_CM5_to_all_cam_overview.jpg]][[File:OrangePi CM5 to all cam backview.jpg|center|thumb|600x600px|OrangePi CM5 to all cam backview|link=http://wiki.veye.cc/index.php/File:OrangePi_CM5_to_all_cam_backview.jpg]]<br />
  
====相机与OrangePi CM5的连接====
+
====Camera Connection to Orange Pi CM5 tablet====
OrangePi CM5最多支持4个VEYE摄像头,下图是同时连接多种摄像头的硬件连接方法展示。[[File:OrangePi CM5 to all cam overview.jpg|center|thumb|600x600px|OrangePi CM5 to all cam overview|link=http://wiki.veye.cc/index.php/File:OrangePi_CM5_to_all_cam_overview.jpg]][[File:OrangePi CM5 to all cam backview.jpg|center|thumb|600x600px|OrangePi CM5 to all cam backview|link=http://wiki.veye.cc/index.php/File:OrangePi_CM5_to_all_cam_backview.jpg]]<br />
+
Due to differences in connector formats, we have successfully interfaced modules for both CAM2 and CAM3 on the OrangePi CM5 tablet. The diagram below illustrates the connection methods for the RAW series and MV series.
====相机与OrangePi CM5 tablet的连接====
 
由于接插件格式的差异,OrangePi CM5 tablet上我们调通了CAM2和CAM3两个接口的模组,下图是连接RAW系列和MV系列的连接方法。
 
[[File:OrangePi CM5 tablet to MV cam.jpg|center|thumb|600x600px|OrangePi CM5 tablet to RAW cam]]
 
<br />
 
[[File:OrangePi CM5 tablet to MV cam .jpg|center|thumb|600x600px|OrangePi CM5 tablet to MV cam ]]
 
 
<br />
 
<br />
 +
[[File:OrangePi CM5 tablet to MV cam.jpg|link=http://wiki.veye.cc/index.php/File:OrangePi%20CM5%20tablet%20to%20MV%20cam.jpg|center|thumb|600x600px|OrangePi CM5 tablet to RAW cam]]
 +
[[File:OrangePi CM5 tablet to MV cam .jpg|link=http://wiki.veye.cc/index.php/File:OrangePi%20CM5%20tablet%20to%20MV%20cam%20.jpg|center|thumb|600x600px|OrangePi CM5 tablet to MV cam]]
  
===github库介绍===
+
===Introduction to github repositories===
 
https://github.com/veyeimaging/rk35xx_veye_bsp
 
https://github.com/veyeimaging/rk35xx_veye_bsp
  
 
https://github.com/veyeimaging/rk35xx_orangepi
 
https://github.com/veyeimaging/rk35xx_orangepi
  
包括以下主要内容:
+
includes:
 
 
*driver和dts源码
 
*i2c通信工具集
 
*应用层demo
 
  
此外,在[https://github.com/veyeimaging/rk35xx_orangepi/releases releases]中,提供了编译好的烧写镜像和linux内核的deb安装包。
+
*driver source code
 +
*i2c toolkits
 +
*application demo
  
国内用户可以访问gitee仓库:
+
In addition, a compiled linux kernel installation package  is provided in the [https://github.com/veyeimaging/rk35xx_orangepi/releases releases].
 +
===Upgrade the Ubuntu system===
 +
We provide a flashing image for the release system, as well as a deb package for the Linux kernel.
  
https://gitee.com/veyeimaging/rk35xx_veye_bsp
+
Refer to the [http://www.orangepi.org/orangepiwiki/index.php/Orange_Pi_CM4 OrangePi CM4 user manual] or the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-CM5.html OrangePi CM5 user manual] for instructions on flashing the system. Alternatively, you can use the general <code>dpkg</code> command to install the deb package.
 
+
===Check system status===
https://gitee.com/veyeimaging/rk35xx_orangepi
+
Run the following command to confirm whether the camera is probed.
 
 
国内用户可通过百度云下载:https://pan.baidu.com/s/1LdK0n_uCx1yGej4PB8-bxg?pwd=yft9<nowiki/>。
 
 
 
===更新主板的Ubuntu系统===
 
我们提供了发布系统的烧写镜像,同时提供了linux内核的deb安装包。
 
 
 
参考OrangePi CM4[http://www.orangepi.cn/orangepiwiki/index.php/Orange_Pi_CM4 用户手册],或者OrangePi CM5的[http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-CM5.html 用户手册]烧写系统。当然,也可以使用通用的dpkg命令,安装deb包。
 
===系统状态检测===
 
完成系统安装后,系统上电。在主板端执行以下命令来检测是否正确连接相机。
 
  
 
<code>sudo dmesg | grep mvcam</code>
 
<code>sudo dmesg | grep mvcam</code>
 
====CM4====
 
====CM4====
CM4只支持通过cam1接口,接入相机。以RAW-MIPI-SC132M为例,dmesg信息中包含如下内容:
+
The CM4 supports camera connection only through the CAM1 interface. Taking the RAW-MIPI-SC132M as an example, the <code>dmesg</code> output contains the following information:
 +
 
 +
The output message appears as shown below:
  
 
<code>mvcam 1-003b: camera is: RAW-MIPI-SC132M</code>
 
<code>mvcam 1-003b: camera is: RAW-MIPI-SC132M</code>
Line 113: Line 103:
 
<code>mvcam 1-003b: firmware version: 0x1040000</code>
 
<code>mvcam 1-003b: firmware version: 0x1040000</code>
  
执行如下命令,检查video设备节点
+
*Run the following command to check the presence of video node.
  
 
<code>ls /dev/video0</code>
 
<code>ls /dev/video0</code>
  
可以看到
+
The output message appears as shown below.
  
 
<code>video0</code>
 
<code>video0</code>
  
正确识别摄像头之后,相机被识别为/dev/video0。
 
 
====CM5====
 
====CM5====
CM5 支持接入4个相机,以RAW-MIPI-SC132M为例,dmesg信息中包含如下内容:
+
The CM5 supports the connection of up to four cameras. Taking the RAW-MIPI-SC132M as an example, the <code>dmesg</code> output contains the following information:
  
 
<code>mvcam 3-003b: camera is: RAW-MIPI-SC132M</code>
 
<code>mvcam 3-003b: camera is: RAW-MIPI-SC132M</code>
Line 140: Line 129:
  
 
<code>mvcam 6-003b: firmware version: 0x1040000</code>
 
<code>mvcam 6-003b: firmware version: 0x1040000</code>
 
 
====CM5 tablet====
 
====CM5 tablet====
CM5 支持接入2个相机,以RAW-MIPI-SC132M为例,dmesg信息中包含如下内容:
+
The CM5 supports the connection of up to two cameras. Taking the RAW-MIPI-SC132M as an example, the <code>dmesg</code> output contains the following information:
  
 
<code>mvcam 6-003b: camera is: RAW-MIPI-SC132M</code>
 
<code>mvcam 6-003b: camera is: RAW-MIPI-SC132M</code>
Line 151: Line 139:
  
 
<code>mvcam 7-003b: firmware version: 0x1040000</code>
 
<code>mvcam 7-003b: firmware version: 0x1040000</code>
===相机应用开发指南===
 
[[MV Camera Application Development Guide on Rochchip/zh|应用开发指南]]
 
  
===参考资料===
+
===Camera Application Development Guide===
 +
[[MV Camera Application Development Guide on Rochchip|Application Development Guide]]
 +
 
 +
===References===
  
 
*OrangePi CM4
 
*OrangePi CM4
Line 163: Line 152:
  
 
http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-CM5.html
 
http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-CM5.html
 +
===Document History===
  
*OrangePi CM5 tablet
+
*2025-12-29
 
 
http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-CM5-Tablet-Board.html
 
===本文修改记录===
 
 
 
*2025-12-26
 
 
 
增加应用开发指南篇章
 
 
 
*2025-09-16
 
 
 
增加CM5 tablet的支持。
 
 
 
*2025-01-09
 
  
发布第一个版本。
+
Release 1st version.

Revision as of 11:20, 29 December 2025

查看中文

1 Overview

The MV series and RAW series cameras are cameras designed for AI applications in the industrial field. They use the MIPI CSI-2 interface and are particularly suitable for use with embedded computing platforms. They have rich data formats and triggering features, extremely low latency, high bandwidth, and reliable stability.

This article takes OrangePi CM4 and OrangePi CM5 and CM5 tablet board as an example to introduce how to connect MV and RAW series cameras to the RK3566/3K3568 and RK3588S/RK3588 system.

We provide drivers for the Linux operating system (using Ubuntu as an example).

1.1 Camera Module List

Series Model Status
MV series MV-MIPI-IMX178M Done
MV series MV-MIPI-SC130M Done
MV series MV-MIPI-IMX296M Done
MV series MV-MIPI-IMX287M Done
MV series MV-MIPI-IMX265M Done
MV series MV-MIPI-IMX264M Done
MV series MV-MIPI-GMAX4002M Done
RAW series RAW-MIPI-SC132M Done
RAW series RAW-MIPI-IMX462M Done
RAW series RAW-MIPI-AR0234M Done
RAW series RAW-MIPI-SC535M Done

2 Hardware Setup

We use the official baseboards of the Orange Pi CM4 and CM5, which feature a 15-pin header compatible with Raspberry Pi. For the RAW series cameras, our cameras can be directly mounted onto the baseboard without the need for an adapter board. For the MV series cameras, the ADP-MV1 adapter board is required for connection.

2.1 Camera Connection to Orange Pi CM4

The ADP-MV1 is connected to the OrangePi CM4 via a 15-pin FFC cable with opposite surface alignment; please pay attention to the orientation of the contact surfaces.

Note that only the CAM1 shown in the image below supports MV and RAW cameras.

OrangePi CM4 to MV cam
OrangePi CM4 to RAW cam


2.2 Camera Connection to Orange Pi CM5

The OrangePi CM5 supports up to four cameras. The following diagram shows the hardware connection method for simultaneously connecting multiple cameras.

OrangePi CM5 to all cam overview
OrangePi CM5 to all cam backview


2.3 Camera Connection to Orange Pi CM5 tablet

Due to differences in connector formats, we have successfully interfaced modules for both CAM2 and CAM3 on the OrangePi CM5 tablet. The diagram below illustrates the connection methods for the RAW series and MV series.

OrangePi CM5 tablet to RAW cam
OrangePi CM5 tablet to MV cam

3 Introduction to github repositories

https://github.com/veyeimaging/rk35xx_veye_bsp

https://github.com/veyeimaging/rk35xx_orangepi

includes:

  • driver source code
  • i2c toolkits
  • application demo

In addition, a compiled linux kernel installation package is provided in the releases.

4 Upgrade the Ubuntu system

We provide a flashing image for the release system, as well as a deb package for the Linux kernel.

Refer to the OrangePi CM4 user manual or the OrangePi CM5 user manual for instructions on flashing the system. Alternatively, you can use the general dpkg command to install the deb package.

5 Check system status

Run the following command to confirm whether the camera is probed.

sudo dmesg | grep mvcam

5.1 CM4

The CM4 supports camera connection only through the CAM1 interface. Taking the RAW-MIPI-SC132M as an example, the dmesg output contains the following information:

The output message appears as shown below:

mvcam 1-003b: camera is: RAW-MIPI-SC132M

mvcam 1-003b: firmware version: 0x1040000

  • Run the following command to check the presence of video node.

ls /dev/video0

The output message appears as shown below.

video0

5.2 CM5

The CM5 supports the connection of up to four cameras. Taking the RAW-MIPI-SC132M as an example, the dmesg output contains the following information:

mvcam 3-003b: camera is: RAW-MIPI-SC132M

mvcam 3-003b: firmware version: 0x1040000

mvcam 4-003b: camera is: RAW-MIPI-SC132M

mvcam 4-003b: firmware version: 0x1040000

mvcam 5-003b: camera is: RAW-MIPI-SC132M

mvcam 5-003b: firmware version: 0x1040000  

mvcam 6-003b: camera is: RAW-MIPI-SC132M

mvcam 6-003b: firmware version: 0x1040000

5.3 CM5 tablet

The CM5 supports the connection of up to two cameras. Taking the RAW-MIPI-SC132M as an example, the dmesg output contains the following information:

mvcam 6-003b: camera is: RAW-MIPI-SC132M

mvcam 6-003b: firmware version: 0x1040000

mvcam 7-003b: camera is: RAW-MIPI-SC132M

mvcam 7-003b: firmware version: 0x1040000

6 Camera Application Development Guide

Application Development Guide

7 References

  • OrangePi CM4

http://www.orangepi.cn/orangepiwiki/index.php/Orange_Pi_CM4

  • OrangePi CM5

http://www.orangepi.cn/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-CM5.html

8 Document History

  • 2025-12-29

Release 1st version.