Line 202: |
Line 202: |
| <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> |
| | | |
− | ==== Upgrade dual camera version dtbo file ==== | + | ==== For Buster OS(kernel5.10) ==== |
− | Use csimx307 as an example: | + | Upgrade dual camera version dtbo file, Use csimx307 as an example. |
| | | |
| <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> |
| + | |
| + | ==== For Bullseye OS(kernel5.15) ==== |
| + | Edit file<code>/boot/config.txt</code>,Add one line<code>dtoverlay=[camera],cam0</code>. |
| + | |
| + | Take veyecam2m as an example. |
| + | |
| + | <code>[all]</code> |
| + | |
| + | <code>dtparam=i2c_vc=on</code> |
| + | |
| + | <code>dtoverlay=veyecam2m</code> |
| + | |
| + | <code>dtoverlay=veyecam2m,cam0</code> |
| | | |
| ==== Device node description ==== | | ==== Device node description ==== |
− | The CM4 module uses two I2C channels to communicate with the two cameras respectively. | + | The CM4 module uses two I2C channels to communicate with the two cameras, respectively. |
| {| class="wikitable" | | {| class="wikitable" |
| ! description | | ! description |
Line 222: |
Line 235: |
| |CAM1 | | |CAM1 |
| |10 | | |10 |
− | |video2 | + | |video2(Buster),video1(Bullseye) |
| |} | | |} |
| Note: If there is only one camera, video node is always video0. | | Note: If there is only one camera, video node is always video0. |
Line 235: |
Line 248: |
| *CAM1 preview(VEYE-MIPI-327,CS-MIPI-IMX307 @1080p mode) | | *CAM1 preview(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> |
| === Source code compilation === | | === Source code compilation === |
| Please refer to: [[Build drivers from source for rpi]]. | | Please refer to: [[Build drivers from source for rpi]]. |