New IMX477 modules detected via I2C but libcamera streaming fails on Raspberry Pi 4B

Hi, I just got a batch of ten Mini IMX477 HQ camera modules and none of them seem to work properly. What’s odd is that the modules I bought a few months ago work fine on the exact same setup. The kernel detects the sensor over I2C, but libcamera refuses to start streaming. I’m getting:

ERROR: *** failed to start camera ***
/dev/video14[15:cap]: Failed to start streaming: No such file or directory

Anyone know why an older module works with my current configuration but these new ones don’t? Also, I tried removing camera_auto_detect entirely and that doesn’t work either. Why does it seem to need to be explicitly set to 0? Any help appreciated.

Happy to dig into this with you. A few things would help a lot:

  1. What platform and OS are you running? (Pi 4B, CM4, Bullseye, etc.)
  2. Output of uname -a
  3. Output of cat /etc/os-release
  4. Output of cat /proc/meminfo
  5. Your /boot/config.txt
  6. Full dmesg output

If you can paste those (or attach the files), I can start narrowing it down. The screen output of the sensor being detected but libcamera failing is a common symptom of a config mismatch, so config.txt is probably the key one.

Sure, here’s what I’ve got.

Platform: Raspberry Pi 4B / CM4
Module: Raspberry Pi Cameras, Model B0262
OS: Debian GNU/Linux 11 (bullseye)

uname -a:
Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

cat /etc/os-release:
PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
NAME=“Debian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=debian
HOME_URL=“https://www.debian.org/”
SUPPORT_URL=“Debian -- User Support”
BUG_REPORT_URL=“https://bugs.debian.org/”

cat /proc/meminfo:
MemTotal: 7999964 kB
MemFree: 7343632 kB
MemAvailable: 7541804 kB
CmaTotal: 327680 kB
CmaFree: 287504 kB

I’ll attach config.txt and dmesg next.

Thanks. Can you confirm two more things for me:

  1. In /boot/config.txt, what does your camera_auto_detect line look like right now (paste it exactly, including any #)?
  2. Run v4l2-ctl --list-devices and confirm whether /dev/video14 actually shows up.

Also, when you say removing camera_auto_detect doesn’t work, do you mean you deleted the line entirely, or commented it out? Those behave differently, so I want to be precise here.

Here you go.

/boot/config.txt has this line (commented out):
#camera_auto_detect=1

The only setting that lets anything work is:
camera_auto_detect=0

And yes, /dev/video14 is definitely present. v4l2-ctl --list-devices shows it.

For the ‘removing’ test, I deleted the line completely, and it still wouldn’t start. Only setting it explicitly to 0 works. That’s the part that’s confusing me — why does it have to be explicitly set to 0?

Got it, that’s useful. Now let’s capture the actual failure with full logging. Please run:

LIBCAMERA_LOG_LEVELS=0 libcamera-hello -t 0 -v

and paste the complete output. I want to see the sensor registration lines and the exact V4L2 error, not just the short version.

Ran it as you asked:

$ LIBCAMERA_LOG_LEVELS=0 libcamera-hello -t 0 -v

and it fails with:

[0:01:16.636582935] [1064] ERROR V4L2 v4l2_videodevice.cpp:1794 /dev/video14[15:cap]: Failed to start streaming: No such file or directory
ERROR: *** failed to start camera ***

Full log below.

Here’s the full libcamera output:

libcamera v0.0.0+3424-e68e0f1e
WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for ‘imx477’
WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
ERROR CameraSensor camera_sensor.cpp:551 ‘imx477 10-001a’: Camera sensor does not support test pattern modes.
INFO RPI raspberrypi.cpp:1317 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media2 and ISP device /dev/media0
DEBUG RPI raspberrypi.cpp:1105 Unable to acquire a Unicam instance
INFO RPI raspberrypi.cpp:747 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
ERROR V4L2 v4l2_videodevice.cpp:1794 /dev/video14[15:cap]: Failed to start streaming: No such file or directory
Closing Libcamera application(frames displayed 0, dropped 0)
Camera stopped!
Camera closed
ERROR: *** failed to start camera ***

So the camera does register as /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam /dev/media2 and ISP /dev/media0.

That confirms the sensor is being detected and registered correctly, so this isn’t an I2C/wiring problem. The “Failed to start streaming” from /dev/video14 combined with a successful registration is pointing at the detection path being wrong.

Just to be thorough — have you re-confirmed the older modules still stream fine on this same Pi 4B with the same command?

Yes, confirmed. The modules I bought a few months ago work correctly with the same command on the same Raspberry Pi 4B. Kernel logs show the IMX477 detected fine on the new ones too. /dev/video14 exists, v4l2-ctl --list-devices shows it. And like I said, deleting camera_auto_detect entirely didn’t help — only camera_auto_detect=0 works.

That lines up with what I suspected. The key is your config line:

#camera_auto_detect=1

It’s commented out, so auto-detect isn’t actually being applied the way you expect. For these updated modules on Bullseye, you need to explicitly disable auto-detection. Try this:

  1. Edit the file: sudo nano /boot/config.txt
  2. Find that line and change it to: camera_auto_detect=0
  3. Save and reboot.

Give that a shot and let me know how you get on.

Did exactly that — set camera_auto_detect=0 in /boot/config.txt via sudo nano and rebooted.

Looks like that works. Camera comes up and streams now.

But I’d still love to understand why. Why does it need to be explicitly 0 instead of just removing the line?

Good question, and here’s the reasoning.

The dtoverlay and camera detection behavior is governed by the upstream protocol. For these modules, the camera_auto_detect parameter needs to be set to 0 because the signal transmission was updated specifically to adapt to the Bullseye system. On Bullseye, the camera no longer needs to be automatically detected the same way, so auto-detect actually gets in the way of the updated module.

That’s also why simply deleting the line doesn’t work — the detection path still gets exercised by default. Setting camera_auto_detect=0 explicitly tells the stack to skip auto-detection entirely and use the configured overlay for the sensor, which is what the updated signal transmission expects on Bullseye.

That makes sense now. So the short version: on Bullseye with these updated modules, camera_auto_detect=0 is required, and removing the line doesn’t cut it because the detection path is still applied by default. Thanks for the help.

Exactly right. To summarize where we landed:

  • The sensor itself is detected fine over I2C and registered (imx477@1a → /dev/media2, /dev/media0, /dev/video14 present).
  • Streaming failed because camera auto-detection wasn’t correctly configured — the line in /boot/config.txt was commented out as #camera_auto_detect=1.
  • Fix: edit /boot/config.txt (sudo nano), set camera_auto_detect=0, then reboot.
  • Reason: on Bullseye the signal transmission was updated specifically to adapt to Bullseye, so the camera no longer needs to be auto-detected — hence auto-detect must be explicitly disabled rather than removed. The dtoverlay and detection behavior follow the upstream protocol.

If anything starts misbehaving again after an OS update, re-check that line first.