New imx477 B0262 cameras fail in libcamera-raw, no /dev video on Raspberry Pi 4 Bullseye

Hi everyone, hoping someone can help me here. I received 4 new imx477 cameras (model/product number B0262) and none of them work on my Raspberry Pi 4. The OS doesn’t even recognize them properly - there’s no video handle showing up in /dev/ for the new cameras.

When I try libcamera-raw --camera 0 I get:

ERROR: *** failed to start camera ***

The weird part is my old UC-698 Rev. B camera works perfectly fine on this same setup. So it doesn’t look like a general Pi problem. Any idea what could be going on with the new batch?

Hi, sorry to hear that. Let’s try to narrow it down.

Can you tell me a bit about your setup?

  • Which host/board are you running this on? (Pi 3, Pi 4, CM4…)
  • Which OS release (Bullseye, Bookworm…)?
  • What does dpkg -l | grep libcamera show for you?

Also, just to confirm the symptom: with the new camera connected, does libcamera-raw --list-cameras show the sensor at all, or nothing? That helps us tell apart a detection/overlay problem from a streaming problem.

Sure, here’s what I have.

Host: raspberrypi4 (pi@raspi4b)
OS: Raspberry Pi OS Bullseye
Camera sensor: imx477, model B0262

dpkg -l | grep libcamera gives me:

ii  libcamera-apps        0~git20220228+0dc5ea0-1  armhf  libcamera-apps
ii  libcamera-tools       0~git20211020+f4070274-3 armhf  complex camera support library (tools)
ii  libcamera0:armhf      0~git20220510+22656360-1 armhf  complex camera support library

I can run --list-cameras next if that helps.

Thanks, that helps. Yes, please run these two with the new camera connected and paste the full output:

libcamera-raw --list-cameras
libcamera-raw --camera 0

Also, when you get a chance, please generate a bug report so we can look at your config too:

camera-bug-report -t 5 -o bug_new.txt -c "libcamera-still -t 1000 -o test.jpg"

OK, here we go.

libcamera-raw --list-cameras (new camera):

[0:01:27.857236314] [932]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
[0:01:27.910902733] [933]  WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'imx477'
[0:01:27.911094118] [933]  WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[0:01:27.911258374] [933] ERROR CameraSensor camera_sensor.cpp:591 'imx477 10-001a': Camera sensor does not support test pattern modes.
[0:01:27.971918706] [933]  INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
Available cameras
-----------------
0 : imx477 [4056x3040] (/base/soc/i2c0mux/i2c@1/imx477@1a)
    Modes: 'SRGGB10_CSI2P' : 1332x990
           'SRGGB12_CSI2P' : 2028x1080 2028x1520 4056x3040

So the sensor does show up here. But when I try libcamera-raw --camera 0 it fails:

[0:01:44.957489293] [963]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
[0:01:45.005798028] [964]  WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'imx477'
[0:01:45.005903490] [964]  WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[0:01:45.005989268] [964] ERROR CameraSensor camera_sensor.cpp:591 'imx477 10-001a': Camera sensor does not support test pattern modes.
[0:01:45.059861487] [964]  INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media3 and ISP device /dev/media0
Stream configuration adjusted
[0:01:45.062498102] [963]  INFO Camera camera.cpp:1029 configuring streams: (0) 640x480-YUV420 (1) 2028x1520-SBGGR12_CSI2P
[0:01:45.063406523] [964]  INFO RPI raspberrypi.cpp:760 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
[0:01:45.847490727] [964] ERROR V4L2 v4l2_videodevice.cpp:1852 /dev/video14[15:cap]: Failed to start streaming: No such file or directory
ERROR: *** failed to start camera ***

The camera-bug-report command also threw some extra errors before generating the file:

libEGL warning: DRI3: failed to query the version
libEGL warning: DRI2: failed to authenticate
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  155 ()
  Minor opcode of failed request:  1
  Serial number of failed request:  16
  Current serial number in output stream:  16
Bug report generated to bug.txt

Attaching bug_new.txt and bug_old.txt below. For comparison, my OLD UC-698 Rev. B camera actually works with libcamera-raw --camera 0:

[0:01:18.026822865] [921]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
[0:01:18.075441987] [922]  WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'imx477'
[0:01:18.075547002] [922]  WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[0:01:18.075633018] [922] ERROR CameraSensor camera_sensor.cpp:591 'imx477 10-001a': Camera sensor does not support test pattern modes.
[0:01:18.129027059] [922]  INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
Stream configuration adjusted
[0:01:18.131940871] [921]  INFO Camera camera.cpp:1029 configuring streams: (0) 640x480-YUV420 (1) 2028x1520-SBGGR12_CSI2P
[0:01:18.133700073] [922]  INFO RPI raspberrypi.cpp:760 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
Raw stream: 2028x1520 stride 3072 format SBGGR12_CSI2P

Yeah, this is the part that’s really confusing me - same Pi, same software, old camera fine, new ones fail.

Attachments:
bug_old.txt
bug_new.txt

Thank you, this is very helpful. I went through the config data in your bug report and I can already see the problem.

Your config file is missing the camera overlay settings for the IMX477. Specifically, it does NOT contain:

dtoverlay=imx477
camera_auto_detect=0

That would explain why the sensor gets partially registered but the new cameras don’t come up correctly while your old UC-698 Rev. B does. On the old camera path, the auto-detection happens to line up with an overlay that works, but with the new sensors the required overlay is just not being applied.

The fix is to force the IMX477 overlay manually and disable auto-detection, then reboot. Please do:

  1. sudo nano /boot/config.txt
  2. Find the line camera_auto_detect=1 and change it to camera_auto_detect=0
  3. Add dtoverlay=imx477 under [all] or [pi4]
  4. Save the file and reboot.

After the reboot, please run libcamera-raw --camera 0 again and let us know if it captures.

OK, I made those changes:

  • set camera_auto_detect=0
  • added dtoverlay=imx477

and rebooted. Good news: the device now shows up (it’s detected now). But I still can’t grab an image. libcamera-raw --camera 0 still fails with ERROR: *** failed to start camera ***.

Here’s the full output after the config change:

[0:07:04.510449726] [1376]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
[0:07:04.564452754] [1377]  WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'imx477'
[0:07:04.564562735] [1377]  WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[0:07:04.564650623] [1377] ERROR CameraSensor camera_sensor.cpp:591 'imx477 10-001a': Camera sensor does not support test pattern modes.
[0:07:04.634020989] [1377]  INFO RPI raspberrypi.cpp:1356 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
Stream configuration adjusted
[0:07:04.636701659] [1376]  INFO Camera camera.cpp:1029 configuring streams: (0) 640x480-YUV420 (1) 2028x1520-SBGGR12_CSI2P
[0:07:04.637649247] [1377]  INFO RPI raspberrypi.cpp:760 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
[0:07:05.406416263] [1377] ERROR V4L2 v4l2_videodevice.cpp:1852 /dev/video14[15:cap]: Failed to start streaming: No such file or directory
ERROR: *** failed to start camera ***

Still the same V4L2 Failed to start streaming error. Attaching the new bug report: bug_new2.txt

Environment is still pi@raspi4b on Raspberry Pi 4, sensor imx477 model B0262.

Thanks for testing that and for the new bug report.

To summarize where we are:

  • Adding dtoverlay=imx477 and setting camera_auto_detect=0 got the new cameras properly detected, so that part of the config was definitely missing/wrong.
  • However, the streaming failure is still there: the sensor registers fine (Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a ...), but the capture node fails at /dev/video14[15:cap]: Failed to start streaming: No such file or directory, which is the reason you still get ERROR: *** failed to start camera ***.
  • The old UC-698 Rev. B camera continues to work on the same Pi, so this is specific to the new IMX477 modules rather than the host or the libcamera stack.

So the overlay fix resolved detection, but the streaming//dev/video14 error is a separate issue that we still need to dig into. For now the workaround is the config change above (detection is fixed), but image capture on the new cameras is not solved yet.

Please keep the bug_new2.txt and your original bug reports handy - we may need to compare the media pipeline node layout between the working old camera and the failing new ones next.