Line 182: |
Line 182: |
| <code>sudo wget <nowiki>https://datasheets.raspberrypi.com/cmio/dt-blob-dualcam.bin</nowiki> -O /boot/dt-blob.bin</code> | | <code>sudo wget <nowiki>https://datasheets.raspberrypi.com/cmio/dt-blob-dualcam.bin</nowiki> -O /boot/dt-blob.bin</code> |
| | | |
− | ==== 更新双摄像头的dtbo ==== | + | ==== 对于Buster系统(kernel5.10) ==== |
− | 以csimx307为例:
| + | 更新双摄像头的dtbo,以csimx307为例: |
| | | |
| <code>sudo cp raspberrypi_v4l2/release/driver_bin/$(uname -r)/csimx307-dual-cm4.dtbo /boot/overlays/csimx307.dtbo</code> | | <code>sudo cp raspberrypi_v4l2/release/driver_bin/$(uname -r)/csimx307-dual-cm4.dtbo /boot/overlays/csimx307.dtbo</code> |
| | | |
| <code>sudo reboot</code> | | <code>sudo reboot</code> |
| + | |
| + | ==== 对于Bullseye系统(kernel5.15+) ==== |
| + | 手动编辑<code>/boot/config.txt</code>文件,增加一行<code>dtoverlay=veye_mvcam,cam0</code>,如下所示: |
| + | |
| + | <code>[all]</code> |
| + | |
| + | <code>dtparam=i2c_vc=on</code> |
| + | |
| + | <code>dtoverlay=veye_mvcam</code> |
| + | |
| + | <code>dtoverlay=veye_mvcam,cam0</code> |
| | | |
| ==== 设备文件说明 ==== | | ==== 设备文件说明 ==== |
Line 202: |
Line 213: |
| |CAM1 | | |CAM1 |
| |10 | | |10 |
− | |video2 | + | |video2(Buster),video1(Bullseye) |
| |} | | |} |
| 注:只连一个摄像头,无论CAM0还是CAM1,都是video0。 | | 注:只连一个摄像头,无论CAM0还是CAM1,都是video0。 |
Line 215: |
Line 226: |
| * CAM1视频预览(VEYE-MIPI-327,CS-MIPI-IMX307 @1080p mode) | | * CAM1视频预览(VEYE-MIPI-327,CS-MIPI-IMX307 @1080p mode) |
| | | |
− | <code>gst-launch-1.0 v4l2src io-mode=dmabuf device=/dev/video2 ! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080,framerate=(fraction)30/1" ! v4l2convert capture-io-mode=dmabuf output-io-mode=dmabuf ! autovideosink sync=false -v</code> | + | <code>gst-launch-1.0 v4l2src io-mode=dmabuf device=/dev/video1 ! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080,framerate=(fraction)30/1" ! v4l2convert capture-io-mode=dmabuf output-io-mode=dmabuf ! autovideosink sync=false -v</code> |
| | | |
| === 从源代码编译驱动方法 === | | === 从源代码编译驱动方法 === |