HCL:Raspberry Pi Camera Modules
Multiple Camera modules are available for the Raspberry Pi. The following method has been tested with:
- Camera Module V1 (based on OmniVision OV5647)
- Camera Module V2 (based on Sony IMX219)
And should work with other camera modules as well, as long as they are supported by the raspberrypi-firmware.
The tc358743-based HDMI module does not work as expected, though. See: https://bugzilla.suse.com/show_bug.cgi?id=1192809
Connecting the module
The module is connected with a flat cable to the Raspberry Pi Camera module.
Video of the connection with a Raspberry Pi 1: https://www.youtube.com/watch?v=GImeVqHQzsE
Software configuration
The camera needs to be enabled on boot, at the firmware level.
You first need to install:
raspberrypi-firmware-extra
package on your Raspberry Pi 1, 2 or 3 to getstart_x.elf
installed.- or
raspberrypi-firmware-extra-pi4
package on your Raspberry Pi 4 to getstart4x.elf
installed.
Now, you need to edit /boot/efi/config.txt
, by adding start_x=1
and updating gpu_mem value gpu_mem=128
.
Please note that using /boot/efi/extraconfig.txt
does not work. See boo#1192047 for details
After a reboot you will see the V4L2 /dev/video0
device available.
Software usage
Now a standard V4L2 device is available, you can use any software which supports V4L2 standard, such as VLC, ffmpeg, streamer (from v4l-tools), fswebcam, etc.
Example with fswebcam:
fswebcam -r 1280x1024 --no-banner image1.jpeg