Use pi camera on Raspberry pi with archlinux-arm

For Raspbian there is raspi-config to enable the camera on a raspberry pi. On a system without raspi-config the changes are:

  • Changes in /boot/config.txt:

gpu_mem=128
start_file=start_x.elf
fixup_file=fixup_x.dat
initramfs initramfs-linux.img followkernel
cma_lwm= cma_hwm= cma_offline_start=

Not reboot for the change to get loaded.

  • To check if the camera is working:

/opt/vc/bin/vcgencmd get_camera

this should result in: supported=1 detected=1

Finally shoot an image:

/opt/vc/bin/raspistill -o image.jpg --nopreview

NOTE

This post is from 2020 and the camera config changed a bit since then, see https://www.raspberrypi.com/documentation/computers/config_txt.html