Changes

Jump to navigation Jump to search
no edit summary
Line 6: Line 6:  
Dahlia is a compact carrier board providing easy access to the most common features of the Verdin family. A very convenient platform for software development and demonstration purposes, the board is compatible with all current and future Verdin SoMs.
 
Dahlia is a compact carrier board providing easy access to the most common features of the Verdin family. A very convenient platform for software development and demonstration purposes, the board is compatible with all current and future Verdin SoMs.
   −
We developed the driver using the Verdin iMX8M Plus + Dahlia carrier board as an example. In addition, we have also specifically designed an [[ADP-TWG]] adapter board for signal conversion.<br />In general, you only need to use the Image file that we provided. Of course, you can also modify or recompile the driver according to our open source code.
+
We developed the driver using the Verdin iMX8M Plus + Dahlia carrier board as an example. In addition, we have also specifically designed an [[ADP-TWG]] adapter board for signal conversion.<br />
 +
 
 +
In general, you only need to use the Image file that we provided. Of course, you can also modify or recompile the driver according to our open source code.
 +
 
 +
Now, we have added support for Verdin iMX8M Mini. Except for areas specifically mentioned, iMX8M Mini is consistent with iMX8M Plus.
 
====Camera module list====
 
====Camera module list====
 
{| class="wikitable"
 
{| class="wikitable"
Line 29: Line 33:  
|Done
 
|Done
 
|ADP-TWG
 
|ADP-TWG
|}VEYE and CS series camera modules are camera module with ISP functions build in. It output UYVYdata using MIPI-CSI2. We provide '''V4L2 interface''' for video streaming apps , and '''Video Control Toolkits (which is Shell Script)''' to control the camera module directly, which is called DRA(Directly Register Access).
+
|}VEYE and CS series camera modules are camera module with ISP functions build in. It output UYVY data using MIPI-CSI2. We provide '''V4L2 interface''' for video streaming apps , and '''Video Control Toolkits (which is Shell Script)''' to control the camera module directly, which is called DRA(Directly Register Access).
 +
 
 +
Specifically, for iMX8M Mini, the driver's default configuration sets the camera's output data format to YUVY.
 
=== Hardware Setup ===
 
=== Hardware Setup ===
 
We use [[ADP-TWG]] to connnect camera to Dahlia board.  
 
We use [[ADP-TWG]] to connnect camera to Dahlia board.  
Line 45: Line 51:  
[[File:ADP-TWG Connect Toradex Dahlia.jpg|center|thumb|800x800px|ADP-TWG Connect to Toradex Dahlia]]
 
[[File:ADP-TWG Connect Toradex Dahlia.jpg|center|thumb|800x800px|ADP-TWG Connect to Toradex Dahlia]]
 
<br />
 
<br />
=== Burn Verdin i.MX8M Plus system ===
+
=== Burn Verdin i.MX8M Plus/Mini system ===
 
Toradex provides various types of images for the board. Here, we only provide the "Toradex Embedded Linux - Yocto Project Reference Images” type of image for direct burning. If you want other types of burning images, please refer to the following chapter and compile and port the driver through the source code.
 
Toradex provides various types of images for the board. Here, we only provide the "Toradex Embedded Linux - Yocto Project Reference Images” type of image for direct burning. If you want other types of burning images, please refer to the following chapter and compile and port the driver through the source code.
 
==== BSP package introduction ====
 
==== BSP package introduction ====
Line 108: Line 114:     
As you can see, the VEYE-MIPI-IMX327S module has been successfully probed and mounted on i2c-2.
 
As you can see, the VEYE-MIPI-IMX327S module has been successfully probed and mounted on i2c-2.
 +
 +
===== For  iMX8M Plus =====
    
*Run the following command to check the presence of video node.
 
*Run the following command to check the presence of video node.
Line 167: Line 175:  
In fact, the camera only provides UYVY data format, and the ISI module in i.MX 8M Plus provides data format conversion function, so /dev/video3 has so many output formats.
 
In fact, the camera only provides UYVY data format, and the ISI module in i.MX 8M Plus provides data format conversion function, so /dev/video3 has so many output formats.
   −
==== Video Stream test ====
+
===== For  iMX8M Mini =====
 +
 
 +
*Run the following command to check the presence of video node.
 +
 
 +
<code>ls /dev/video*</code>
 +
 
 +
The output message appears as shown below.
 +
 
 +
<code>video0</code>
 +
 
 +
* List the formats supported by the camera
 +
 
 +
<code>v4l2-ctl --list-formats-ext -d /dev/video0</code>
 +
 
 +
<code>ioctl: VIDIOC_ENUM_FMT</code>
 +
 
 +
<code>        Type: Video Capture</code>
 +
 
 +
<code>        [0]: 'YUYV' (YUYV 4:2:2)</code>
 +
 
 +
<code>                Size: Discrete 1920x1080</code>
 +
 
 +
Due to the absence of the ISI module in i.MX 8M Mini, /dev/video0 can only directly output the data format from the camera.
 +
 
 +
<br />
 +
==== Video Stream test on i.MX 8M Plus ====
    
===== Preview (VEYE-MIPI-CAM@1080p mode) =====
 
===== Preview (VEYE-MIPI-CAM@1080p mode) =====
Line 184: Line 217:  
===== Playback of saved video file =====
 
===== Playback of saved video file =====
 
<code>gst-launch-1.0 filesrc location=filename.mp4 ! queue ! decodebin ! videoconvert ! autovideosink</code>
 
<code>gst-launch-1.0 filesrc location=filename.mp4 ! queue ! decodebin ! videoconvert ! autovideosink</code>
 +
 +
==== Video Stream test on i.MX 8M Mini ====
 +
 +
===== Preview (VEYE-MIPI-CAM@1080p mode) =====
 +
<code>gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,width=1920,height=1080,framerate=(fraction)30/1' ! waylandsink</code>
 +
 +
===== Snap a picture (VEYE-MIPI-CAM@1080p mode) =====
 +
<code>gst-launch-1.0 v4l2src num-buffers=1 device=/dev/video0 ! 'video/x-raw, width=1920,height=1080' ! jpegenc ! filesink location=test_image.jpg</code>
 +
 +
===== v4l2grab snap a picture =====
 +
<code>./v4l2grab -d /dev/video0 -W 1920 -H 1080 -I 30 -o picture.jpg</code>
    
====I2C Control Toolkits Manual====
 
====I2C Control Toolkits Manual====
Line 201: Line 245:     
Toradex provides a method for building the compilation system, and here we will provide an example that is feasible.
 
Toradex provides a method for building the compilation system, and here we will provide an example that is feasible.
 +
 +
Please note that in the descriptions below, replace "imx8mp" with "imx8mm" according to your actual situation.
    
==== Build Toradex standard Image ====
 
==== Build Toradex standard Image ====
Line 253: Line 299:     
* [https://developer.toradex.com/hardware/verdin-som-family/modules/verdin-imx8m-plus/ Verdin iMX8M Plus]
 
* [https://developer.toradex.com/hardware/verdin-som-family/modules/verdin-imx8m-plus/ Verdin iMX8M Plus]
 +
*[https://developer.toradex.com/hardware/verdin-som-family/modules/verdin-imx8m-mini/ Verdin iMX8M Mini]
    
* [https://www.toradex.com/products/carrier-board/dahlia-carrier-board-kit dahlia-carrier-board-kit]
 
* [https://www.toradex.com/products/carrier-board/dahlia-carrier-board-kit dahlia-carrier-board-kit]
* [https://developer.toradex.com/easy-installer/toradex-easy-installer/loading-toradex-easy-installer#verdinsomfamily Toradex Easy Installer]<br />
+
* [https://developer.toradex.com/easy-installer/toradex-easy-installer/loading-toradex-easy-installer#verdinsomfamily Toradex Easy Installer]
 +
 
 +
=== History ===
 +
 
 +
* 2023-12-05
 +
 
 +
Added support for Verdin iMX8M Mini.
 +
 
 +
<br />

Navigation menu