agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
505 stars 395 forks source link

Raspberry 5 camera doesn't work #1303

Open al1img opened 3 months ago

al1img commented 3 months ago

Camera doesn't work on Raspberry 5

Steps to reproduce the issue:

  1. Set MACHINE = "raspberrypi5"
  2. Add libcamera-apps to the target image: IMAGE_INSTALL:append = "libcamera-apps"

Describe the results you received:

libcamera-hello displays image from camera.

Describe the results you expected:

[0:17:43.474887809] [833]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5-dirty (2024-03-30T18:04:07+00:00)
Preview window unavailable
ERROR: *** no cameras available ***

Additional information you deem important (e.g. issue happens only occasionally):

Camera is detected by kernel:

[    2.130214] platform 1f00110000.csi: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/i2c@88000/ov5647@36
[    5.397222] rp1-cfe 1f00110000.csi: found subdevice /axi/pcie@120000/rp1/i2c@88000/ov5647@36
[    5.463006] rp1-cfe 1f00110000.csi: Using sensor ov5647 6-0036 for capture

Additional details (revisions used, host distro, etc.):

I've also tried switching libcamera recipe to https://github.com/raspberrypi/libcamera repo. Result is the same: no cameras available.