Skip to content

Raspberry Pi Camera module not detected! #1679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Mr-mongoose-com opened this issue Jan 14, 2022 · 8 comments
Open

Raspberry Pi Camera module not detected! #1679

Mr-mongoose-com opened this issue Jan 14, 2022 · 8 comments

Comments

@Mr-mongoose-com
Copy link

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
Copy link
Contributor

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
Copy link

6by9 commented Jan 17, 2022

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
Copy link
Contributor

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
Copy link

6by9 commented Jan 17, 2022

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
Copy link

6by9 commented Feb 7, 2022

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

popcornmix added a commit that referenced this issue Mar 1, 2022
kernel: overlays:fixes probing of Hifiberry DAC2 HD
See: raspberrypi/linux#4904

kernel: overlays: Add overlays for WaveShare 2-Channel Isolated CAN FD HAT
See: raspberrypi/linux#4907

kernel: configs: Add CONFIG_TINYDRM_HX8357D=m
kernel: overlays: Add drm parameter to pitft35-resistive
See: https://forums.raspberrypi.com/viewtopic.php?t=330088

kernel: ARM: dts: Add GPIO line names for downstream RPis
See: raspberrypi/linux#2760

firmware: board_info: Handle misprogrammed 3B rev 1.2s

firmware: mmal: Add mapping for IL OMX_IndexParamBrcmEnableIJGTableScaling param

firmware: Handle overlay parameters embedded in overlay_map.dtb
See: raspberrypi/linux#4860

firmware: firmware: Add HDMI_PORTS trait

firmware: arm_dt: Fix rpi-poe overlay parameters
See: #1689

firmware: jpeghw: Skip APP0 AVI1 headers, regardless of length
See: https://forums.raspberrypi.com/viewtopic.php?p=1975448

firmware: camera_subsystem: Report ignored interfaces due to libcamera
See: #1679

firmware: Export os_prefix, overlay_prefix, rsts and boot-mode on all models

firmware: vcfw/hdmi_i2c: Initialise all instances from hdmi_i2c_init
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this issue Mar 1, 2022
kernel: overlays:fixes probing of Hifiberry DAC2 HD
See: raspberrypi/linux#4904

kernel: overlays: Add overlays for WaveShare 2-Channel Isolated CAN FD HAT
See: raspberrypi/linux#4907

kernel: configs: Add CONFIG_TINYDRM_HX8357D=m
kernel: overlays: Add drm parameter to pitft35-resistive
See: https://forums.raspberrypi.com/viewtopic.php?t=330088

kernel: ARM: dts: Add GPIO line names for downstream RPis
See: raspberrypi/linux#2760

firmware: board_info: Handle misprogrammed 3B rev 1.2s

firmware: mmal: Add mapping for IL OMX_IndexParamBrcmEnableIJGTableScaling param

firmware: Handle overlay parameters embedded in overlay_map.dtb
See: raspberrypi/linux#4860

firmware: firmware: Add HDMI_PORTS trait

firmware: arm_dt: Fix rpi-poe overlay parameters
See: raspberrypi/firmware#1689

firmware: jpeghw: Skip APP0 AVI1 headers, regardless of length
See: https://forums.raspberrypi.com/viewtopic.php?p=1975448

firmware: camera_subsystem: Report ignored interfaces due to libcamera
See: raspberrypi/firmware#1679

firmware: Export os_prefix, overlay_prefix, rsts and boot-mode on all models

firmware: vcfw/hdmi_i2c: Initialise all instances from hdmi_i2c_init
@MarkusAaJohannessen
Copy link

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

@popcornmix
Copy link
Contributor

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

@Torxed
Copy link

Torxed commented Aug 13, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants