User:Krystianch

From Alpine Linux

Raspberry Pi cameras

Todo: This is a work-in-progress page. rpicam-apps is not in aports yet.


Preparation

Libcamera needs udev for the camera to be detected.

setup-devd udev

Remount boot media read/write.

mount -o rw,remount /media/mmcblk0p1/

We need to apply an appropriate device tree overlay for the camera. This line enables automatic detection of the camera and applies appropriate overlay.

echo "camera_auto_detect=1" >> /media/mmcblk0p1/usercfg.txt

echo "dtoverlay=vc4-kms-v3d,cma-512" >> /media/mmcblk0p1/usercfg.txt

Raspberry Pi's libcamera fork is needed as of now.

apk add raspberrypi-libcamera raspberrypi-libcamera-raspberrypi rpicam-apps

Installation

apk add rpicam-apps