Line 91: |
Line 91: |
| | | |
| [[VEYE MIPI 290/327 for Raspberry Pi/zh#.E8.A7.86.E9.A2.91.E6.8E.A7.E5.88.B6.E8.BD.AF.E4.BB.B6.E5.8C.85.E4.BD.BF.E7.94.A8|VEYE系列参数控制软件包使用说明]]<br />[[CS-MIPI-X for Raspberry Pi/zh#.E8.A7.86.E9.A2.91.E6.8E.A7.E5.88.B6.E8.BD.AF.E4.BB.B6.E5.8C.85.E4.BD.BF.E7.94.A8|CS系列参数控制软件包使用说明]] | | [[VEYE MIPI 290/327 for Raspberry Pi/zh#.E8.A7.86.E9.A2.91.E6.8E.A7.E5.88.B6.E8.BD.AF.E4.BB.B6.E5.8C.85.E4.BD.BF.E7.94.A8|VEYE系列参数控制软件包使用说明]]<br />[[CS-MIPI-X for Raspberry Pi/zh#.E8.A7.86.E9.A2.91.E6.8E.A7.E5.88.B6.E8.BD.AF.E4.BB.B6.E5.8C.85.E4.BD.BF.E7.94.A8|CS系列参数控制软件包使用说明]] |
| + | |
| + | === CM4的补充说明 === |
| + | cm4支持两路摄像头同时使用,采用上面的步骤安装的dtbo将只能使用CAM1。如需使用两路摄像头,请按如下步骤: |
| + | |
| + | ==== 更新dt-blob.bin ==== |
| + | 点击[https://www.raspberrypi.org/documentation/hardware/computemodule/dt-blob-dualcam.bin 链接]下载dt-blob-dualcam.bin,改名为dt-blob.bin文件,将文件放在/boot下。 |
| + | |
| + | <code>sudo cp dt-blob-dualcam.bin /boot/dt-blob.bin</code> |
| + | |
| + | ==== 更新双摄像头的dtbo ==== |
| + | 以csimx307,5.10.17-v7l+版本kernel为例: |
| + | |
| + | <code>sudo cp raspberrypi_v4l2/release/driver_bin/5.10.17-v7l+/csimx307-dual-cm4.dtbo /boot/overlays/csimx307.dtbo</code> |
| + | |
| + | <code>sudo reboot</code> |
| + | |
| + | ==== 设备文件说明 ==== |
| + | CM4模块采用两路I2C分别与两个摄像头通信。 |
| + | |
| + | <code>./camera_i2c_config</code> |
| + | {| class="wikitable" |
| + | !description |
| + | !i2c bus num |
| + | !video node |
| + | |- |
| + | |CAM0 |
| + | |0 |
| + | |video0 |
| + | |- |
| + | |CAM1 |
| + | |10 |
| + | |video2 |
| + | |} |
| + | 注:只连一路,无论CAM0还是CAM1,都是video0。 |
| + | |
| + | ==== gstreamer应用范例 ==== |
| + | <code>export DISPLAY=:0</code> |
| + | |
| + | * CAM0视频预览(VEYE-MIPI-327,CS-MIPI-IMX307 @1080p mode) |
| + | |
| + | <code>gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080,framerate=(fraction)30/1" ! videoconvert ! fpsdisplaysink videosink=autovideosink sync=false text-overlay=false -v</code> |
| + | |
| + | * CAM1视频预览(VEYE-MIPI-327,CS-MIPI-IMX307 @1080p mode) |
| + | |
| + | <code>gst-launch-1.0 v4l2src device=/dev/video2 ! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080,framerate=(fraction)30/1" ! videoconvert ! fpsdisplaysink videosink=autovideosink sync=false text-overlay=false -v</code> |
| + | |
| === 源代码编译方法 === | | === 源代码编译方法 === |
| 本节主要参考资料为[https://www.raspberrypi.org/documentation/linux/kernel/building.md 官方piOS编译方法]。我们采用交叉编译的方法,5.4.72版本32bitOS为例进行说明。 | | 本节主要参考资料为[https://www.raspberrypi.org/documentation/linux/kernel/building.md 官方piOS编译方法]。我们采用交叉编译的方法,5.4.72版本32bitOS为例进行说明。 |