Arducam Pivariety IMX298 camera probe failed on Raspberry Pi 4B/3B+ Bullseye

Hi, I can’t get an Arducam IMX519 Autofocus Camera Module (16MP) for Raspberry Pi working at all.

I’ve tried it on a Pi 4B and a Pi 3 B+, both with a fresh Bullseye install (downloaded Sunday 5th June). After installing the driver I get “probe failed”, and the Arducam website says that means the camera isn’t detected and to check the connection. I’ve checked the connection on both boards and there’s nothing visibly wrong — cable fully seated, contacts the right way round.

Stuff I’ve already ruled out:

  • Tried several different ribbon cables
  • Connected a different camera and it worked fine
  • An old Camera V2.1 works on both boxes… but NOT once the driver for the new camera is installed

The drivers for the new camera seem to load fine, it’s just the camera itself that’s never accessible. It has never worked once, on either board. I’m out of ideas and starting to think the module is faulty, but happy to try anything you suggest.

Hi,

Let’s start with the driver. Please follow this guide to install the driver for the IMX519:

https://www.arducam.com/docs/cameras-for-raspberry-pi/raspberry-pi-libcamera-guide/

If you’ve already done those steps and still can’t access the camera, please provide the following so we can take a closer look:

  1. uname -a
  2. cat /etc/os-release
  3. cat /boot/config.txt
  4. dmesg

Schmidt From Arducam Support

Thanks Schmidt. I went through the camera instructions again, but I think I might have been on the wrong page — from the 16MP spec I’d been assuming my camera is the Pivariety IMX298 16MP Motorized Focus Camera.

After following the instructions I get:

arducam-pivariety 10-000c: probe failed

The site says “probe failed” means the camera is not detected and to check the camera connection. I’ve checked it again and I really can’t see any problem with the connection.

I’ll post the outputs you asked for next.

OK, go ahead and send the command outputs.

One thing while you’re at it: can you double check the exact model printed on the camera board itself? The driver named in your error (arducam-pivariety) is the Pivariety / V4L2 driver, so I want to be sure we’re chasing the right driver before we go any further.

Here’s the first lot:

$ uname -a
Linux raspberrypi4n 5.15.32-v7l+ #1538 SMP Thu Mar 31 19:39:41 BST 2022 armv7l GNU/Linux
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian

Platform wise, I’m testing on a Pi 4B and a Pi 3 B+, both with brand new Bullseye installs from Sunday 5th June.

Thanks. Now I need the config and the kernel log:

  • cat /boot/config.txt
  • dmesg (or at least dmesg | grep arducam)

Also, could you tell me the exact commands you ran to install the driver? That’ll tell me which install path you ended up on.

Here’s /boot/config.txt:

camera_auto_detect=1
display_auto_detect=1
dtoverlay=vc4-kms-v3d
max_framebuffers=2
dtparam=audio=on
disable_overscan=1

[cm4]
otg_mode=1

[pi4]
arm_boost=1

[all]
dtoverlay=arducam

Good. Can you also paste the install commands you used and the output of dmesg | grep arducam?

That combination will tell us whether the driver stack that got installed matches the camera you actually have.

This is what I ran to install the driver:

wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh
./install_pivariety_pkgs.sh -p kernel_driver

And the dmesg output:

pi@raspberrypi4n:~ $ dmesg | grep arducam
[    8.422067] arducam: loading out-of-tree module taints kernel.
[    8.454432] arducam-pivariety 10-000c: probe failed
pi@raspberrypi4n:~ $

That’s all I get. No other arducam lines in dmesg.

Thanks, that’s the important bit.

install_pivariety_pkgs.sh -p kernel_driver plus dtoverlay=arducam in /boot/config.txt is the Pivariety series setup — that’s why dmesg shows arducam-pivariety loading. The IMX519 is not a Pivariety camera; it runs on the libcamera stack and uses a completely different install path. So what you’ve installed doesn’t match the sensor you’re trying to use, which would explain the probe failure.

Can you take a look at the silkscreen/label on the camera board and tell me what sensor it says on it?

Ah. Well, that explains a lot. It says IMX519 on the board.

So I’ve had the IMX298 driver installed the entire time while trying to bring up an IMX519 camera. Both are 16MP, so when I first set this up I matched on the megapixels and never went back to question it. That was my mistake, sorry for sending you round the houses on this.

No need to apologise — two 16MP sensors makes that an easy mix-up, and it’s exactly why the “probe failed” message pointed at the connection rather than the driver.

To get it working: redo the installation from the IMX519 section of the libcamera guide (the libcamera install path, not the Pivariety kernel driver). You’ll also want to drop the dtoverlay=arducam line from /boot/config.txt since that’s the Pivariety overlay, and use the IMX519 overlay instead, then reboot. If the Pivariety driver is still installed alongside things get messy — that’s likely why your old Camera V2.1 stopped working once the new driver went in.

Give that a go and let us know how it behaves.

That did it. Reinstalled with the IMX519 instructions, removed the dtoverlay=arducam line and rebooted, and the probe error is gone — the camera shows up and works on both the Pi 4B and the 3 B+. Thanks for the help, and sorry again for the confusion.

Great, glad it’s sorted.

Summary for anyone else hitting this: the physical camera was an IMX519, but the IMX298 (Pivariety) driver had been installed, so the camera never probed and the system reported arducam-pivariety 10-000c: probe failed — which reads like a cabling/connection problem but was actually a driver mismatch. Because both sensors are 16MP, the wrong driver is easy to install by mistake.

Fix: install the correct IMX519 driver using the libcamera guide (Redirecting...), and make sure /boot/config.txt uses the IMX519 overlay rather than dtoverlay=arducam. If you hit anything else with the camera, just let me know directly.

Schmidt From Arducam Support