Issue Running Raspberry Pi Camera Module 3 with libcamera on Raspberry Pi 5 + Ubuntu 24.04

Jacopo Mondi jacopo.mondi at ideasonboard.com
Mon Nov 4 11:05:57 CET 2024


Hi Meryem

On Sat, Nov 02, 2024 at 06:56:28PM +0300, Meryem Koc wrote:
> Hello libcamera Development Team,
>
> I'm encountering significant challenges trying to get the Raspberry Pi
> Camera Module 3 working with libcamera on a Raspberry Pi 5 running Ubuntu
> 24.04. Despite numerous troubleshooting attempts, I have not been able to
> capture any output from the camera, and the issue seems to be worsening.
>
> *System Information:*
>
>    - *Device:* Raspberry Pi 5
>    - *Operating System:* Ubuntu 24.04
>    - *Camera Module:* Raspberry Pi Camera Module 3
>
> *Steps I’ve Tried:*
>
>    1. I attempted to install the *libcamera-dev* and *libcamera-apps* packages,
>    but I found they were unavailable on Ubuntu 24.04.
>    2. I modified the config.txt file by adding dtoverlay=imx708 and
>    disabling auto-detection with camera_auto_detect=0.
>    3. Running the libcamera-hello command in the terminal resulted in the
>    camera not being detected.
>    4. Initially, Qcam was able to detect the camera, but now no application
>    can detect it at all.
>    5. I have tried various reboots and checked connections, but none have
>    yielded a positive outcome.
>
> When I tested the camera on Raspberry Pi OS, it worked without any issues,
> so it seems specific to Ubuntu 24.04 and libcamera.
>
> *Questions:*
>
>    - Could there be compatibility issues with this combination of Raspberry
>    Pi 5, Ubuntu 24.04, and the Raspberry Pi Camera Module 3?
>    - Is there a specific libcamera configuration or alternative method that
>    you recommend for this setup?
>    - Do you have any suggestions for alternative drivers or support
>    packages?
>
> I would greatly appreciate any guidance you can provide. Thank you in
> advance for your assistance.

You should check which version of libcamera ubuntu pacakges.
Specifically on your use case, the Pi5 support is not merged in
mainline libcamera yet, so the tree from raspberry pi
https://github.com/raspberrypi/libcamera
should be used. I doubt Ubuntu packages that version but I can't tell.

You should compile libcamera (and libpisp
https://github.com/raspberrypi/libpisp) manually to get support for
Pi5 (and probably you'll have to re-compile rpicam-apps as well once
you have updated libcamera)

I suggest you go through:
https://www.raspberrypi.com/documentation/computers/camera_software.html#building-libcamera

>
> Best regards,
> Meryem


More information about the libcamera-devel mailing list