Line 105: |
Line 105: |
| <code>video0</code> | | <code>video0</code> |
| | | |
− | The camera can be seen connected to the i2c-4.
| + | For ROC-RK3566-PC, the camera is connected to i2c-4, for ROC-RK3588S-PC to i2c-7. |
| | | |
| ==== Samples ==== | | ==== Samples ==== |
Line 118: |
Line 118: |
| | | |
| ====== Snap YUV picture ====== | | ====== Snap YUV picture ====== |
| + | <code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat='NV12' --stream-mmap --stream-count=100 --stream-to=nv12-1920x1080.yuv</code> |
| + | |
| + | For RK3566, also: |
| + | |
| <code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap --stream-count=1 --stream-to=uyvy-1920x1080.yuv</code> | | <code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap --stream-count=1 --stream-to=uyvy-1920x1080.yuv</code> |
− |
| |
− | <code>v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat='NV12' --stream-mmap --stream-count=100 --stream-to=nv12-1920x1080.yuv</code>
| |
| | | |
| Play YUV picture | | Play YUV picture |
Line 134: |
Line 136: |
| <code>cd yavta;make</code> | | <code>cd yavta;make</code> |
| | | |
− | <code>./yavta -c1 -Fuyvy-1920x1080.yuv --skip 0 -f UYVY -s 1920x1080 /dev/video0</code> | + | <code>./yavta -c1 -Fnv12-1920x1080.yuv --skip 0 -f NV12 -s 1920x1080 /dev/video0</code> |
| | | |
| ===== gstreamer ===== | | ===== gstreamer ===== |
Line 148: |
Line 150: |
| In addition, this [https://wiki.t-firefly.com/en/Firefly-Linux-Guide/demo_OpenCV_support.html page] from Firefly has some reference value. | | In addition, this [https://wiki.t-firefly.com/en/Firefly-Linux-Guide/demo_OpenCV_support.html page] from Firefly has some reference value. |
| ==== Compile drivers and dtb from source code ==== | | ==== Compile drivers and dtb from source code ==== |
− | https://github.com/veyeimaging/rk356x_firefly/tree/main/linux/drivers
| |
| | | |
| + | * RK356x |
| + | |
| + | https://github.com/veyeimaging/rk35xx_firefly/tree/main/linux/drivers/rk356x |
| + | |
| + | * RK358x |
| + | |
| + | https://github.com/veyeimaging/rk35xx_firefly/tree/main/linux/drivers/rk358x |
| === i2c script for parameter configuration === | | === i2c script for parameter configuration === |
| 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. | | 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/rk356x_firefly/tree/main/i2c_cmd | + | https://github.com/veyeimaging/rk35xx_firefly/tree/main/i2c_cmd |
| | | |
| using -b option to identify which bus you want to use. | | using -b option to identify which bus you want to use. |