This driver package is supporting the official Raspberry Pi 5. Downloads are available under
For Raspberry Pi 3 and 4 modules and compute modules, please use this driver installation
The driver is tested on 64-bit Raspberry Pi OS with Bookworm (Lite or with desktop). The OS can be installed by the official Raspberry Pi Imager from the Raspberry Pi Foundation.
Run the installation with the installation of the needed packages:
sudo apt install ./vc-mipi-driver-bcm2712_0.3.1_arm64.deb
or Run the installation with manual packages:
sudo apt install dkms linux-headers-generic v4l-utils whiptail
sudo dpkg -i ./vc-mipi-driver-bcm2712_0.3.1_arm64.deb
After a reboot the connected sensor(s) should be detected and visible as v4l2 capture devices Under the current Raspberry Pi OS with Bookworm, the sensors are:
Camera | Device | Subdevice |
---|---|---|
Cam0 | /dev/video0 | /dev/v4l-subdev2 |
Cam1 | /dev/video8 | /dev/v4l-subdev5 |
Running dpkg-buildpackage by script creates a Debian package
If different Linux headers are used,
the path can be specified by the environmental variable KERNEL_HEADERS
I.e. if the Linux kernel is built from sources,
the path is set by KERNEL_HEADERS=/path/to/linux-gitrepo
sudo apt-get install debhelper-compat dkms dh-dkms debhelper linux-headers-generic
bash createDebianPackage.sh
- The configuration for the VC MIPI Sensors is in the boot file /boot/firmware/config_vc-mipi-driver-bcm2712.txt. The right lanes configuration for the sensors has to be made. For some sensors, 2 modes are available. If no specific configuration is needed, the "more lanes" configuration is the first choice (i.e. 4 instead 2 lanes)
- Additionally the configuration tool vc-config is installed. By calling
vc-config
it is possible to change the values of the controls and also the region of interest (ROI) - The formats can be adjusted. All formats are displayed, although not all are available which depends on the sensor model.
For Libcamera support, refer to Libcamera Installation Then the ISP with features like Auto White Balancing (AWB) are supported.
The official support tool for the v4l2 driver is V4L2-Test
For starting, you have to add the subdevice properly in order to set the controls by tool:
./v4l2-test stream -e <exposure> -g <gain> -f <pixelformat> -p 1 -d <device> -sd <subdevice>
# Camera 0
./v4l2-test stream -e <exposure> -g <gain> -f <pixelformat> -p 1 -d /dev/video0 -sd /dev/v4l-subdev2
# Camera 1
./v4l2-test stream -e <exposure> -g <gain> -f <pixelformat> -p 1 -d /dev/video8 -sd /dev/v4l-subdev5
For getting the live image on the screen, add the argument --fb
./v4l2-test stream -e <exposure> -g <gain> -f <pixelformat> -d <device> -sd <subdevice> --fb
# Camera 0
./v4l2-test stream -e <exposure> -g <gain> -f <pixelformat> -d /dev/video0 -sd /dev/v4l-subdev2 --fb
# Camera 1
./v4l2-test stream -e <exposure> -g <gain> -f <pixelformat> -d /dev/video8 -sd /dev/v4l-subdev5 --fb
On desktop version, first you have to switch to console mode Ctrl + Alt + F1
The driver offers the basic features of the VC MIPI sensors. This has the advantage that the same functions are available with all sensors. If special functions are required, please contact the support team or your contact at Vision Components GmbH
- The flipping controls are not supported by standard driver