Arducam B0350 driver install error on Raspberry Pi: cannot stat arducam.ko for 5.15.32-v7+

Hi, hoping someone can help me get the driver installed for the B0350 Arducam Synchronized Stereo Camera Bundle Kit. I’m following the Pivariety kernel driver install doc (https://www.arducam.com/docs/cameras-for-raspberry-pi/pivariety/how-to-install-kernel-driver-for-pivariety-camera/) but the install script fails every time.

I’m on a Raspberry Pi (hostname raspberrypi, user arnold). The package I have is arducam_pivariety_v4l2.tar.gz.

What I ran:

arnold@raspberrypi:~ $ tar -zxvf arducam_pivariety_v4l2.tar.gz Release/
arnold@raspberrypi:~ $ cd Release/
./install_driver.sh

The tarball extracted fine, this is what’s inside Release/:

Release/uninstall_driver.sh
Release/install_driver.sh
Release/arducam_camera_selector.sh
Release/bin/
Release/bin/5.10.63-v7+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.17-v7+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.52-v7l+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.60+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.63+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.92-v8+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.52-v7+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.63-v8+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.92+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.17-v7l+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.17+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.17-v8+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.52+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.92-v7l+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.92-v7+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.60-v7+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.63-v7l+/ (arducam.dtbo, arducam.ko)
Release/bin/5.10.60-v7l+/ (arducam.dtbo, arducam.ko)

And this is the install output:

Installing Arducam-Pivariety-V4L2-Driver…

install: cannot stat ‘./bin/5.15.32-v7+/arducam.ko’: No such file or directory
install: cannot stat ‘./bin/5.15.32-v7+/arducam.dtbo’: No such file or directory
reboot now?(y/n):

I stopped at that prompt because the two install errors looked like it didn’t actually copy anything. Any idea what I’m doing wrong? I’ve attached a couple of screenshots of the steps I took as well.

Hi Arnold, thanks for the detailed report. Before we can tell you why the install is failing we need to know exactly what your system is running, because the driver in that tarball is kernel-version specific.

Can you run this and paste the output:

uname -a

Also, one question so we can pin down the platform: are you still using the camera on a Pi 3?

Sure, here you go:

Linux raspberrypi 5.15.32-v7+ #1538 SMP Thu Mar 31 19:38:48 BST 2022 armv7l GNU/Linux

And yes, it’s a Raspberry Pi 3B+.

Thanks, that’s helpful. I remember you previously did some configuration with an IMX477 camera on this setup, so I suspect there may be something conflicting left behind in config.txt that’s getting in the way of the new camera/driver.

Can you send me a couple of things:

  1. cat /boot/config.txt
  2. dmesg

With those I can see what’s currently being loaded at boot and whether the old camera settings are interfering.

Ok, I decided to just start clean instead of guessing. I reformatted the SD card and did a fresh install of Raspbian 32-bit 5.15 Bullseye, then tried the driver installation again from scratch.

Unfortunately it still fails the same way. I’ve attached three text files with everything:

  1. ‘8MP Syncronized Stereo Camera Bundle kit.txt’ — the installation commands I used and the errors I got back.
  2. ‘dmesg.txt’ — the output of the dmesg command.
  3. ‘config.txt’

Hopefully the error file shows what’s going on. Happy to run anything else you need.

Got the files, thanks. I can see the problem now, and it’s not config.txt — it’s the driver package itself.

The package you installed is the one for the 5.10.17 kernel, but your fresh Bullseye install is running 5.15. That’s why the script keeps looking for ./bin/5.15.32-v7+/ and failing with:

install: cannot stat ‘./bin/5.15.32-v7+/arducam.ko’: No such file or directory
install: cannot stat ‘./bin/5.15.32-v7+/arducam.dtbo’: No such file or directory

The tarball simply doesn’t contain a 5.15 folder — all it ships is the 5.10.x builds, so there’s nothing for the script to copy. The driver and the kernel have to match.

Grab the correct package for the 5.15.y kernel instead:

wget https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/Arducam_pivariety_v4l2_v1.0/arducam_kernel_driver_5.15.y.tar.gz

Then extract it and run install_driver.sh from that directory like before, and reboot when it asks. That should install the matching arducam.ko/arducam.dtbo for 5.15.32-v7+.

So to sum up where we are: the failures were caused purely by a kernel/driver version mismatch (5.10.17 driver package on a 5.15 Bullseye system), not by your camera config or hardware. Use the 5.15.y driver package from the link above and let us know how the install goes.