Line 176: |
Line 176: |
| | | |
| ==== Video Stream test ==== | | ==== Video Stream test ==== |
| + | |
| + | ===== 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 234: |
| | | |
| <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 === |