raspberrypi / firmware

This repository contains pre-compiled binaries of the current Raspberry Pi kernel and modules, userspace libraries, and bootloader/GPU firmware.
5.17k stars 1.68k forks source link

Raspberry Pi Camera module not detected! #1679

Open Mr-mongoose-com opened 2 years ago

Mr-mongoose-com commented 2 years ago

When Raspberry Pi camera module is inserted into the slot beside the headphone jack, with the blue sticker facing the Ethernet port, when running vcgencmd get_camera returns supported=1 detected=0. run sudo raspi-config and the connection to the peripheral is enabled.

popcornmix commented 2 years ago

Unless you are saying this problem only occurs with a an updated version of firmware, it doesn't sound like a firmware issue.

If the camera is not detected, it is likely the camera is faulty, the cable is faulty or it is not connected correctly.

6by9 commented 2 years ago

vcgencmd get_camera only applies if the legacy camera stack is enabled. If using Bullseye with libcamera configured then it will report no cameras detected.

popcornmix commented 2 years ago

Perhaps we should change the output of get_camera with libcamera (e.g. command not supported with libcamera). What's the simplest check that camera is connected in libcamera world?

6by9 commented 2 years ago

Add an "ignored" flag to camera_subsystem_get_attached_devices (exported function, so there will be a few references), and increment that flag for any cameras that are configured for libcamera. Leave it with me, but higher priorities at present.

6by9 commented 2 years ago

Firmware patch created that reports the number of camera interfaces configured for libcamera.

MarkusAaJohannessen commented 2 years ago

I also have this issue. It works with legacy OS, but not with newest version.

popcornmix commented 2 years ago

What does vcgencmd version report on system that doesn't work?

Torxed commented 1 year ago

For those ending up here with newer hardware and newer libcamera versions, vcgencmd equivalent would be:

$ cam --list
$ cam --camera 1 --list-properties
$ cam --camera 1 --list-controls
$ cam --camera 1 --capture=10 --file=./

It's not a 1:1 copy, but it will test functionality and capabilities via the libcamera-tools package.