Raspberry Pi camera modules not being detected on libcamera0.5

Bug #2110144 reported by Pragyansh Chaturvedi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libcamera (Ubuntu)
Fix Released
Undecided
Pragyansh Chaturvedi

Bug Description

With the latest version of libcamera in Ubuntu, the camera modules on a Raspberry Pi are no longer being detected.

libcamera 0.5.0-1:

cam -l returns an empty list
qcam does not list any sensors as well.

libcamera 0.4.0-5ubuntu1:

cam -l lists the connected sensors and qcam works fine.

Related branches

Revision history for this message
Pragyansh Chaturvedi (r41k0u) wrote :

I have narrowed this down to the new PiSP driver upstreamed in libcamera. They are matching the wrong entity names for CFE devices.
https://gitlab.freedesktop.org/camera/libcamera/-/blame/v0.5.0/src/libcamera/pipeline/rpi/pisp/pisp.cpp#L883
Curiously, Raspberry Pi's fork of libcamera still uses the old match strings, even when they upstreamed these changes to Debian: https://github.com/raspberrypi/libcamera/blob/d83ff0a4ae4503bc56b7ed48cd142c3dd423ad3b/src/libcamera/pipeline/rpi/pisp/pisp.cpp#L883

This might suggest that there may be changes to the camera related devicetree overlays in the future. For now the fix will be to try for both older and newer match strings

Revision history for this message
Dave Jones (waveform) wrote :

Sponsored for questing (with some minor header alterations on the patches to indicate their origin)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libcamera - 0.5.0-1ubuntu2

---------------
libcamera (0.5.0-1ubuntu2) questing; urgency=medium

  * d/p/fix_pisp_cfe_entities.patch: Allow both old and new CFE
    entity match strings so camera modules can be detected on
    Raspberry Pi 5 using libcamera0.5 (LP: #2110144)

libcamera (0.5.0-1ubuntu1) questing; urgency=medium

  * d/p/add_syncmode_and_tensors.patch: Add SyncMode controls
    and CNN Tensors to enable rpicam-apps (LP: #2109901)
    - This patch adds the SyncMode IPA controls and the IMX500 tesnors
      and camera data required for rpicam-apps on the Raspberry Pi.

 -- Pragyansh Chaturvedi <email address hidden> Wed, 07 May 2025 21:15:01 +0530

Changed in libcamera (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.