I have a Compute Module 4 with the official I/O Board. On this board I have attached two Raspberry Pi HQ cameras.
I want to use two cameras at the same time.
Last week I triggered the following Bug with the stereo mode of raspistill: https://forum.stereopi.com/viewtopic.php?t=997
I have tried the new libcamera framework. I have gotten all libraries and tools working, but I can only use one camera.
I have changed the source code of the CameraManager to use the second camera, but I think the camera is not recognized.
The output of
Code: Select all
vcgencmd get_camera
Code: Select all
supported=2 detected=1
Code: Select all
v4l2-ctl --list-devices
Code: Select all
bcm2835-codec-decode (platform:bcm2835-codec):
/dev/video10
/dev/video11
/dev/video12
bcm2835-isp (platform:bcm2835-isp):
/dev/video13
/dev/video14
/dev/video15
/dev/video16
mmal service 16.1 (platform:bcm2835-v4l2-0):
/dev/video0
unicam (platform:fe801000.csi):
/dev/video1
/dev/video2
Code: Select all
vcdbg log msg
Code: Select all
029704.277: camsubs: Ignoring camera 0 as unicam device not available
029715.391: camsubs: Looking for camera 1: i2c_port = 0, led gpio = -1, power enable gpio = 133
030016.035: camsubs: Camera not found
030016.206: camsubs: Looking for camera 1: i2c_port = 0, led gpio = -1, power enable gpio = 133
030316.845: camsubs: Camera found OK
viewtopic.php?t=107255
I think I need a dtoverlay to activate the second camera for libcamera framework.
I have the following questions:
Is it possible to use both HQ cameras with libcamera at the same time?
I have found this thread: viewtopic.php?f=43&t=299892&p=1803924&h ... 0#p1803924
As far as I understand, the only thing, what is missing is a dtoverlay for activating the second camera for libcamera framework.
I have never written an own device tree overlay.
Can you point me in the correct direction or provide an example of this?
Any hints are welcome.
Thanks in advance for your help.