New batch Mini IMX477 cameras: libcamera fails to start streaming on Pi 4

Hi all, hoping someone can help me figure out a batch issue with the Mini IMX477 HQ camera modules.

I bought a set of Mini IMX477 HQ modules earlier this year (model B0262, sourced via UCTRONICS) and those work great with the libcamera-vid / hello apps on my Pi 4. I just received a new batch of ten modules and they’re not working properly. The kernel detects the module over I2C fine, but libcamera can’t start streaming at all.

I get this on screen:

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

and in the log:

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

Kernel logs report the IMX477 is detected correctly, and I’ve confirmed /dev/video14 exists and shows up when running v4l2-ctl --list-devices. Platform is Raspberry Pi 4B / CM4.

What’s odd is the older modules have no problem at all on the same Pi. Has something changed on the newer modules? I need to get all ten units working asap. Thanks!

Hi, thanks for the detailed report - that always helps.

The fact that the sensor enumerates fine on I2C but streaming fails at the ISP video node usually points to something on the config/driver side rather than the module itself, especially since your older units run fine on the same board. Before we can narrow it down we need the exact system situation of the Pi.

Could you please send the output of the following?

  1. System info:
  • uname -a
  • cat /etc/os-release
  • cat /proc/meminfo
  • cat /boot/config.txt
  1. System log:
  • dmesg

Once we have those we can take a proper look.

Sure, here’s the system info you asked for.

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="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

cat /porc/meminfo: (yes I typo’d the path but it still read it)

MemTotal:        7999964 kB
MemFree:         7343632 kB
MemAvailable:    7541804 kB
Buffers:           30612 kB
Cached:           324292 kB
SwapCached:            0 kB
Active:            98168 kB
Inactive:         373868 kB
Active(anon):       1044 kB
Inactive(anon):   185700 kB
Active(file):      97124 kB
Inactive(file):   188168 kB
Unevictable:       58612 kB
Mlocked:              16 kB
SwapTotal:        102396 kB
SwapFree:         102396 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:        175820 kB
Mapped:           159660 kB
Shmem:             69612 kB
KReclaimable:      26328 kB
Slab:              53460 kB
SReclaimable:      26328 kB
SUnreclaim:        27132 kB
KernelStack:        4096 kB
PageTables:         5908 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     4102376 kB
Committed_AS:    1231672 kB
VmallocTotal:  259653632 kB
VmallocUsed:       11284 kB
VmallocChunk:          0 kB
Percpu:              688 kB
CmaTotal:         327680 kB
CmaFree:          287504 kB

libcamera version: libcamera v0.0.0+3424-e68e0f1e

Still seeing the same failure when I try to stream.

Thanks, that’s helpful. One thing worth noting already: your meminfo shows CmaTotal: 327680 kB / CmaFree: 287504 kB, so CMA memory doesn’t look exhausted, which rules out one common cause.

Now can you run the camera with full verbosity so we can see exactly where it falls over? Please run:

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

and paste the complete output here. Also, if you can, attach your /boot/config.txt and a full dmesg dump - those let us check for any overlay or driver mismatch.

Here’s the full run:

Options:
    verbose: 1
    info_text:#%frame (%fps fps) exp %exp ag %ag dg %dg
    timeout: 0
    width: 0, height: 0
    output:
    post_process_file:
    rawfull: 0
    preview: default
    qt-preview: 0
    transform: identity
    roi: all
    metering: centre
    exposure: normal
    ev: 0
    awb: auto
    flush: false
    wrap: 0
    brightness: 0
    contrast: 1
    saturation: 1
    sharpness: 1
    framerate: 30
    denoise: auto
    viewfinder-width: 0
    viewfinder-height: 0
    tuning-file: (libcamera)
    lores-width: 0
    lores-height: 0
    mode: unspecified
    viewfinder-mode: unspecified
Preview window unavailable
Running without preview window
Opening camera...
[0:01:16.048693935] [1063] DEBUG IPAModule ipa_module.cpp:329 ipa_rpi.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_rpi.so is signed
[0:01:16.048810991] [1063] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_rpi.so'
[0:01:16.048880028] [1063] DEBUG IPAModule ipa_module.cpp:329 ipa_vimc.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_vimc.so is signed
[0:01:16.048927991] [1063] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_vimc.so'
[0:01:16.049001917] [1063] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3424-e68e0f1e

Media devices created:

bcm2835-codec (/dev/media3)
bcm2835-isp (/dev/media0)
bcm2835-isp (/dev/media1)
unicam (/dev/media2)

V4L2 controls found for 'imx477 10-001a': Exposure (0x00980911), Horizontal Flip (0x00980914), Vertical Flip (0x00980915), Camera Orientation (0x009a0922), Camera Sensor Rotation (0x009a0923), Vertical Blanking (0x009e0901), Horizontal Blanking (0x009e0902), Analogue Gain (0x009e0903), Red Pixel Value (0x009e0904), Green (Red) Pixel Value (0x009e0905), Blue Pixel Value (0x009e0906), Green (Blue) Pixel Value (0x009e0907), Pixel Rate (0x009f0902), Test Pattern (0x009f0903), Digital Gain (0x009f0905)

[0:01:16.065825380] [1064] WARN CameraSensorProperties camera_sensor_properties.cpp:141 No static properties available for 'imx477'
[0:01:16.065849195] [1064] WARN CameraSensorProperties camera_sensor_properties.cpp:143 Please consider updating the camera sensor properties database
[0:01:16.065871509] [1064] ERROR CameraSensor camera_sensor.cpp:551 'imx477 10-001a': Camera sensor does not support test pattern modes.
[0:01:16.077172732] [1064] DEBUG RPiBlackLevel black_level.cpp:41 Read black levels red 4096 green 4096 blue 4096

ALSC calibrations read for ct 2960, 4850, 5930

[0:01:16.083720398] [1064] INFO RPI raspberrypi.cpp:1317 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media2 and ISP device /dev/media0
[0:01:16.083773843] [1064] DEBUG RPI raspberrypi.cpp:1105 Unable to acquire a Unicam instance

Acquired camera /base/soc/i2c0mux/i2c@1/imx477@1a
Configuring viewfinder… Viewfinder size chosen is 2028x1520

[0:01:16.084781491] [1064] DEBUG RPI raspberrypi.cpp:167 Format: 1332x990 fmt SRGGB10 Score: 3456.22 (best 3456.22)
[0:01:16.084830398] [1064] DEBUG RPI raspberrypi.cpp:167 Format: 2028x1080 fmt SRGGB12 Score: 1083.84 (best 1083.84)
[0:01:16.084855158] [1064] DEBUG RPI raspberrypi.cpp:167 Format: 2028x1520 fmt SRGGB12 Score: 0 (best 0)
[0:01:16.084878361] [1064] DEBUG RPI raspberrypi.cpp:167 Format: 4056x3040 fmt SRGGB12 Score: 887 (best 0)
[0:01:16.084995472] [1064] INFO RPI raspberrypi.cpp:747 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
[0:01:16.086260435] [1064] DEBUG IPARPI raspberrypi.cpp:1133 Applying AGC Exposure: 19989.67us (Shutter lines: 1318, AGC requested 20000.00us) Gain: 1 (Gain Code: 0)

Buffers allocated and mapped; Viewfinder setup complete; Requests created; Starting capture

[0:01:16.113902676] [1068] DEBUG IPARPI raspberrypi.cpp:1133 Applying AGC Exposure: 985.83us (Shutter lines: 65, AGC requested 1000.00us) Gain: 1 (Gain Code: 0)
[0:01:16.113943658] [1068] DEBUG IPARPI raspberrypi.cpp:276 Drop 7 frames on startup
[0:01:16.114539787] [1064] DEBUG RPISTREAM rpi_stream.cpp:134 No buffers available for ISP Output0
[0:01:16.636582935] [1064] 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!; Tearing down requests, buffers and configuration; Camera closed

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

I’ll attach dmesg and config.txt in a second - let me know if I should pull anything else. Thanks again.

A couple more things worth mentioning:

  • The modules I bought a few months ago work perfectly with the exact same command on the exact same Raspberry Pi 4B. Same OS image, same hardware. So it really looks like something changed with these newer units.
  • Kernel logs confirm the IMX477 is detected correctly (I can see it register on I2C).
  • I did already confirm /dev/video14 exists and it shows up when I run v4l2-ctl --list-devices.

So the sensor is there, the video node is there, but streaming still fails. Honestly I followed the Arducam docs step by step and never got it to work. Do you know if the newer modules were changed in some way, and how I can get all ten of them up and running?

Thanks - this is actually a really useful log. Let me point out what stands out:

  • The sensor is enumerated correctly: Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media2 and ISP device /dev/media0.
  • The failure is not at the sensor - it’s at the ISP output/video node: /dev/video14[15:cap]: Failed to start streaming: No such file or directory, right after No buffers available for ISP Output0.
  • There are a couple of warnings/errors worth noting: No static properties available for 'imx477' / Please consider updating the camera sensor properties database, and 'imx477 10-001a': Camera sensor does not support test pattern modes.

So I2C detection OK + a streaming failure specifically at /dev/video14 is pointing us toward a configuration/driver-side issue rather than a straight hardware fault. The “No such file or directory” on an existing node is a classic sign the format/mode negotiation or the media pipeline config doesn’t match what the driver expects.

One more time - can you please attach:

  1. The full dmesg output.
  2. Your /boot/config.txt.

Those two will tell us whether there’s an overlay/DT mismatch or an old driver hanging around. Nothing personal needed in them, just the raw files.

Got it - both attached:

Let me know what you spot in there. I can rerun anything you need on the Pi.

Perfect, thanks for the files.

Here’s where we stand as a summary:

  • The camera is a Mini IMX477 HQ module, model B0262, running on a Raspberry Pi 4B/CM4 with libcamera v0.0.0+3424-e68e0f1e on a 5.15.32 aarch64 kernel.
  • The sensor enumerates fine over I2C (imx477 10-001a), the ISP/Unicam devices come up (/dev/media0, /dev/media2), and /dev/video14 exists.
  • Streaming still dies at the ISP output node: [1064] ERROR V4L2 v4l2_videodevice.cpp:1794 /dev/video14[15:cap]: Failed to start streaming: No such file or directory, which is preceded by No buffers available for ISP Output0 and ultimately surfaces as ERROR: *** failed to start camera ***.
  • Already ruled out: CMA exhaustion (meminfo shows plenty of CmaFree), missing sensor detection, and a missing video node. Your older modules running the same command on the same board also rules out the Pi itself.

At this point the likely area is a configuration/driver-side mismatch (overlay, DT, or sensor-mode negotiation) rather than the modules failing outright, but we can’t confirm it without reading your dmesg.txt and /boot/config.txt in detail. We’re reviewing both now and will come back with the next step.

For anyone following along with the same symptom: the key clue is a streaming failure on /dev/video14 despite the sensor being detected and the node existing - check your config/overlay before assuming the module is dead. I’ll update this thread as soon as we have the root cause and a working fix, since this one isn’t resolved yet.