From 4efe903a671b288ac485f2d2a9c9aabf2eb7b199 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Fri, 8 Aug 2025 22:31:35 +0200 Subject: Adds libcamera bindings --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index d74a71e..dbfbc28 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,25 @@ follow these steps: This configuration ensures that GPIO and PWM operations can be performed without needing root access. +## Libcamera Setup +The upstream libcamera package in Arch Linux ARM (as of August 2025) has +compatibility issues with the Raspberry Pi kernel, preventing detection of +official camera modules. Until this is resolved upstream, you'll need to build +the Raspberry Pi Foundation's supported version: +```console +user@alarm$ sudo pacman -S boost cmake gcc git libdrm libexif libjpeg libpng libtiff meson pkgconf python-jinja python-ply python-yaml +user@alarm$ git clone https://github.com/raspberrypi/libcamera +user@alarm$ cd libcamera +user@alarm$ meson setup build -Dprefix=/usr +user@alarm$ ninja -C build +user@alarm$ sudo ninja -C build install +``` + +References: + +- [RPi Kernel Issue #6983](https://github.com/raspberrypi/linux/issues/6983) +- [Libcamera Installation Guide](https://blog.jirkabalhar.cz/2024/02/raspberry-camera-on-archlinux-arm-in-2024/) + ## Build Instructions: 1. Install [`stack`](https://docs.haskellstack.org/en/stable/). It’s recommended to use [`ghcup`](https://www.haskell.org/ghcup/) for -- cgit v1.2.1