Hi, I just got a new UC-698 Rev.B camera and I can’t get it to work on my Raspberry Pi. /dev/video0 shows up, but I can’t grab an image at all — it just fails with the error below.
Environment:
Raspberry Pi OS Bullseye
libcamera v0.0.0+3544-22656360 (imx477 sensor)
Running libcamera-raw --camera 0 gives me this:
[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 ***
I already ran ls /dev/video* and video0 is there, and I tried libcamera-raw --camera 0. The camera looks properly connected — old cameras work fine when connected the exact same way. Any ideas?
Thanks for the detailed log. I went through your bug.txt and honestly the config itself doesn’t look wrong — nothing jumps out as an obvious misconfiguration. Let’s narrow it down. First, can you confirm exactly what ls /dev/video* returns (you should see /dev/video0)? Second, please double-check the connection between the camera board and the sensor — if you can, reseat the ribbon/FPC. That’ll tell us whether the issue is the video device node or the hardware link between the board and the sensor.
ls /dev/video* gives me /dev/video0 (plus the usual video14/video15 etc. when the app runs). The camera is definitely connected properly — I even swapped it with an old camera and the old one works with the same cable and port. So it’s not the connection. One more thing: my config file has some dtoverlay / deoverlay lines in it, not sure if those matter.
Got it, thanks. A couple of things stand out: I see you have some dtoverlay/deoverlay options in your config, and I’m not sure those will help here. Also — are you using the libcamera apps that came with the OS, or did you install any extra libcamera apps/builds at some point? If you didn’t install anything extra, then you’re on the official Raspberry Pi libcamera (it ships with Pi OS, no download needed). Can you confirm which one it is? Extra dtoverlay options and a non-official libcamera build can both interfere.
It’s the official libcamera that came with Raspberry Pi OS Bullseye — I didn’t install anything else. Here’s the odd part: the new cameras just won’t work, but my old cameras work fine, and both are labeled exactly the same on the PCB: UC-698 Rev.B. /dev/video0 is still there and I get the same error as before.
OK, that’s useful. The new camera received a technical update specially adapted for the newer Raspberry Pi system, and during that update some functions from the old version were removed. To be detected by the Pi driver it needs a simple configuration — normally the camera works once that’s done. Since it’s still not working for you, there may be another issue involved. I’d like to run a test on the camera. If we need a remote session, I’ll send you a scheduling link privately and we can go through it over TeamViewer — please install it and let me know.
One more thing — the new cameras won’t work with the old raspistill library (the legacy camera stack) anymore. Is there any way to get backward compatibility? I went ahead and booked a slot for Thursday.
Fair question. I haven’t actually tested the camera with the raspistill command yet — in theory it should still work with the legacy stack on Bullseye, but I want to verify before promising anything. One problem: the Thursday slot you picked falls at a time my engineers aren’t free, so let’s re-coordinate. I’ll test the camera today and we’ll find a time that works for you — can you share your available times?
Sure. I’m in PDT (Pacific Daylight Saving Time), generally free 7am–10pm, ideally 8am–6pm for a video call. And yes please, test it with the legacy stack and let me know whether this camera is actually supposed to work with the old stack at all.
I tested it today. On a Bullseye system with the legacy stack enabled, the camera can’t be used — I confirmed this with our hardware engineer, so it’s expected behavior rather than a bug on your side. For now the camera only works with libcamera, python, etc. I also copied your exact config file onto my own Pi and ran it with libcamera, and the camera worked normally for me. Given that, I’m not sure what’s going on with your unit specifically — it may be a hardware fault. If you still want a session, let’s re-schedule; 6pm PDT works on our side.
I still can’t get it to work — I’ve spent a few hours on this already. And I can’t select the 6pm PDT slot through the link you shared. Can we do today (Wednesday) or tomorrow (Thursday) at 6pm PDT instead?
Heads up — the remote meeting room for tomorrow is occupied, so let’s just do it over TeamViewer instead. Please download/install TeamViewer and send me your ID and password (via private message), and confirm you’re okay with that.
One more thing before then — to rule out any software/config issues, can you flash a clean official Raspberry Pi OS image and test with no modifications at all? Image here: Index of /raspios_full_armhf/images/raspios_full_armhf-2022-04-07 — don’t change anything on it, just test the camera and report back.
To sum up where we are: your config looks fine, and that same config worked with the camera on our test Pi, so the camera itself may be faulty. Also note the new camera isn’t compatible with the legacy stack when it’s enabled — it needs libcamera. The clean-image test will tell us whether anything in your current setup is interfering.