UCTRONICS B0333 IMX462 camera not detected on Raspberry Pi 4 Bullseye

Hi everyone, I’ve got a UCTRONICS B0333 (IMX462) Arducam Pivariety camera on a Raspberry Pi 4 Model B Rev 1.1 running Raspbian bullseye 6.1.21-v8+. I followed the quick start guide at Quick Start Guide - Arducam Wiki but I’ve never got it to work. It just isn’t detected. Here’s what dmesg shows when I grep for the camera:

dmesg | grep -E “imx477|imx219|arducam”

[ 0.077993] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/arducam_pivariety@c
[ 8.724274] arducam-pivariety 10-000c: pivariety_read: Reading register 0x103 failed
[ 8.724316] arducam-pivariety 10-000c: probe failed

I also looked at 16MP autofocus camera is not being detected but no luck. Any ideas?

Thanks for the dmesg output. That ‘pivariety_read: Reading register 0x103 failed’ line means the probe is failing at the I2C read stage, so before we change anything it’s best to capture a full camera bug report. Could you run the bug report tool after a reboot and share the file?

wget -O arducam-camera-bug-report https://github.com/ketai-dhr/arducam-camera-bug-report/releases/download/tools/arducam-camera-bug-report
chmod +x ./arducam-camera-bug-report
./arducam-camera-bug-report

It creates arducam-bug-report.txt in the current directory. Please attach that to your reply so I can check the full picture.

Done. Rebooted and ran the tool, and I’ve attached arducam-bug-report.txt to this post. Still seeing the same thing in dmesg after the reboot:

[ 0.077993] platform fe801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/arducam_pivariety@c
[ 8.724274] arducam-pivariety 10-000c: pivariety_read: Reading register 0x103 failed
[ 8.724316] arducam-pivariety 10-000c: probe failed

Thanks, I’ve looked at the report. Let’s try simplifying the dtoverlay. The media-controller=0 parameter can cause this kind of detection problem on these boards. Edit /boot/config.txt:

sudo nano /boot/config.txt

Then at the bottom change this line:

dtoverlay=arducam-pivariety,media-controller=0

to:

dtoverlay=arducam-pivariety

Save and reboot the Pi, then check dmesg again.

Tried that. Changed the line in /boot/config.txt from dtoverlay=arducam-pivariety,media-controller=0 to dtoverlay=arducam-pivariety and rebooted. Still not detected, same probe failure in dmesg. I’ve attached a fresh bug report after the change.

Thanks for the new report. Since the software side looks unchanged, can you post a couple of photos of the physical connection? One of the Raspberry Pi end and one of the camera module end, so we can check the cable orientation.

Sure, I’ve attached 3 photos — the Pi end and the camera module end.

Thanks, that’s enough to spot it. The cable is connected the wrong way around (reversed). Please reverse/flip the wire and try again. After that, check dmesg for the arducam_pivariety probe.

That was it. Reversed the cable and the camera is now detected and working. Thanks for the help!