Changes

Jump to navigation Jump to search
Line 19: Line 19:  
|VEYE series
 
|VEYE series
 
|VEYE-MIPI-IMX385
 
|VEYE-MIPI-IMX385
|Processing
+
|Done
 
|ADP-TWG
 
|ADP-TWG
 
|-
 
|-
Line 43: Line 43:  
=== Upgrade Mendel Linux system ===
 
=== Upgrade Mendel Linux system ===
   −
==== overview ====
+
==== Overview ====
This section describes how to update the MYD-JX8MX system to support our camera module. To support our camera module, we need to update two parts of the system, '''Image''' and '''dtb'''.
+
This section describes how to update the Coral dev board system to support our camera module. To support our camera module, we need to update two parts of the system, '''Image''' and '''dtb'''.
    
In the Image, we added the camera driver, while the dtb indicates the camera model used. In general, you only need to use the Image and dtb, that we have prebuilt(in deb format), and you don't need to build from source when it is not necessary.
 
In the Image, we added the camera driver, while the dtb indicates the camera model used. In general, you only need to use the Image and dtb, that we have prebuilt(in deb format), and you don't need to build from source when it is not necessary.
Line 95: Line 95:  
<code>deft-kid                (192.168.0.122)</code>
 
<code>deft-kid                (192.168.0.122)</code>
   −
* install linux image dtb
+
* push deb file to coral board
    
<code>cd google_coral_i.mx/linux-image-deb/</code>
 
<code>cd google_coral_i.mx/linux-image-deb/</code>
   −
<code>mdt install ./linux-image-4.14.98-imx_12-2_arm64.deb</code>
+
<code>mdt push linux-image-4.14.98-imx_12-2_arm64.deb</code>
 
  −
Pay attention to the log information, it can be installed correctly normally.
      
* Log in Coral board via mdt
 
* Log in Coral board via mdt
    
<code>mdt shell</code>
 
<code>mdt shell</code>
 +
 +
* Install deb file
 +
 +
<code>sudo dpkg -i linux-image-4.14.98-imx_12-2_arm64.deb</code>
 +
 +
Pay attention to the log information, it can be installed correctly normally.
    
* Overwrite the dtb file  
 
* Overwrite the dtb file  
    
In coral board shell,
 
In coral board shell,
 +
 +
<code>cd /boot/</code>
    
<code>sudo cp fsl-imx8mq-phanbell-<camera_name>.dtb fsl-imx8mq-phanbell.dtb</code>
 
<code>sudo cp fsl-imx8mq-phanbell-<camera_name>.dtb fsl-imx8mq-phanbell.dtb</code>
Line 175: Line 181:  
<code>v4l2-ctl --list-formats-ext -d /dev/video0</code>
 
<code>v4l2-ctl --list-formats-ext -d /dev/video0</code>
   −
==== Video Stream test ====
+
==== Gstreamer usage examples ====
 +
 
 +
===== Install gstreamer tools =====
 +
<code>sudo apt-get update</code>
 +
 
 +
<code>sudo apt-get install gstreamer1.0-tools gstreamer1.0-alsa gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav</code>
 +
 
 +
If you have built the entire mendel tree, there is another way:
 +
 
 +
On Host PC:
 +
 
 +
<code>source build/setup.sh</code>
 +
 
 +
<code>j product</code>
 +
 
 +
<code>cd packages/bsp/</code>
 +
 
 +
<code>mdt install ./gstreamer1.0-tools_1.14.4+imx-3_arm64.deb</code>
 +
 
 +
===== Gstreamer test =====
 
<code>export DISPLAY=:0</code>
 
<code>export DISPLAY=:0</code>
   Line 215: Line 240:     
<code>./v4l2grab -d /dev/video0 -W 1920 -H 1080 -I 30 -o picture.jpg</code>
 
<code>./v4l2grab -d /dev/video0 -W 1920 -H 1080 -I 30 -o picture.jpg</code>
 +
 +
==== I2C Control Toolkits Manual ====
 +
Because of the high degree of freedom of our camera parameters, we do not use V4L2 parameters to control, but use scripts to configure parameters.
 +
 +
https://github.com/veyeimaging/nxp_i.mx_veye_bsp/tree/main/i2c_cmd
 +
 +
using -b option to identify which bus you want to use. (The i2c bus is 1 on coral dev board.)
 +
 +
*VEYE series
 +
 +
Video Control Toolkits Manual :[http://wiki.veye.cc/index.php/VEYE-MIPI-290/327_i2c/ VEYE-MIPI-327 I2C]
 +
 +
*CS series
 +
 +
Video Control Toolkits Manual :[http://wiki.veye.cc/index.php/CS-MIPI-X_i2c CS-MIPI-X I2C]
 
=== Build the drivers from source ===
 
=== Build the drivers from source ===
 +
The following operations are done on Ubuntu Host PC.
 +
 +
==== Set up the Host PC environment ====
 +
Refer to this page to set up the development environment:https://coral.googlesource.com/docs/+/refs/heads/master/GettingStarted.md.
 +
 +
==== Build google standard  version kernel ====
 +
Complete the Build the tree steps according to the guide above.
 +
 +
==== Patch code ====
 +
 +
* Driver source code
 +
 +
<code>git clone <nowiki>https://github.com/veyeimaging/nxp_i.mx_veye_bsp.git</nowiki></code>
 +
 +
The source code path of the camera driver is: ''linux/drivers/media/platform/mxc/capture'', replace the source code of the camera driver in the corresponding directory. The kernel version is 4.14.98 now.
 +
 +
Merge the Config and Makefile  in the same path. Add the corresponding camera driver.
 +
 +
*dts file and pakages build config file
 +
 +
<code>git clone <nowiki>https://github.com/veyeimaging/google_coral_i.mx.git</nowiki></code>
 +
 +
The path of the dts file is: ''linux/arch/arm64/boot/dts/freescale'', places the dts file in this path.
 +
 +
Modify the Config and Makefile  in the same path. Add the corresponding dts option.
 +
 +
The path of packages build is :''packages/linux-imx/debian/,''places the ''defconfig'' and ''rules'' in this path''.''
 +
 +
==== Build ====
 +
<code>m docker-linux-imx</code>
 +
 +
==== Install the new kernel ====
 +
<code>j product</code>
 +
 +
<code>cd packages/bsp/</code>
 +
 +
<code>mdt install ./linux-image-4.14.98-imx_12-2_arm64.deb</code>
    
=== References ===
 
=== References ===

Navigation menu