Arducam + RPi 3 B + FluidPi/Klipper

As the title says, trying to get this camera working with my setup: Arducam Motorized Focus Pi Camera, Autofocus for Raspberry Pi Camera Module, Motorized Lens, Software Precise Manual Focus, OV5647 5MP 1080P

I had this camera working on the same Pi when it was flashed with OctoPi running OCtoPrint, so I know the camera is not faulty.

I followed this guide: Motorized Focus Camera - Arducam
And then tried this: /docs/cameras-for-raspberry-pi/native-raspberry-pi-cameras/how-to-use-arducam-motorized-focus-camera-with-octopi-to-monitor-3d-printers/
And then this: /docs/cameras-for-raspberry-pi/native-raspberry-pi-cameras/5mp-ov5647-motorized-focus-camera-modules/

I even attempted to manually compile the driver with a patch I found on the Pivarity giuthub.
Can anyone steer me in the right direction?

Here are some log outputs if they help:

pi@fluiddpi:~ $ raspistill -t 0
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component \'vc.ril.camera\' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component \'vc.ril.camera\' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly


pi@fluiddpi:~ $ libcamera-still -t 5000 -o test.jpg
libcamera-still: error while loading shared libraries: libcamera.so.0: cannot open shared object file: No such file or directory


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


pi@fluiddpi:~ $ vcgencmd get_camera
supported=1 detected=0

Anyone? I also reached out to Arducam support, but no response.

Can you provide this information?

DMESG: DMESG - Pastebin.com

Linux fluiddpi 5.10.103-v7+ #1530 SMP Tue Mar 8 13:02:44 GMT 2022 armv7l GNU/Linux

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

HOME_URL=""

SUPPORT_URL=""

BUG_REPORT_URL=""

MemTotal: 762660 kB

MemFree: 315160 kB

MemAvailable: 607280 kB

Buffers: 55524 kB

Cached: 270152 kB

SwapCached: 0 kB

Active: 158224 kB

Inactive: 225600 kB

Active(anon): 460 kB

Inactive(anon): 58344 kB

Active(file): 157764 kB

Inactive(file): 167256 kB

Unevictable: 16 kB

Mlocked: 16 kB

SwapTotal: 102396 kB

SwapFree: 102396 kB

Dirty: 28 kB

Writeback: 0 kB

AnonPages: 58164 kB

Mapped: 62652 kB

Shmem: 656 kB

KReclaimable: 24312 kB

Slab: 40784 kB

SReclaimable: 24312 kB

SUnreclaim: 16472 kB

KernelStack: 1248 kB

PageTables: 1960 kB

NFS_Unstable: 0 kB

Bounce: 0 kB

WritebackTmp: 0 kB

CommitLimit: 483724 kB

Committed_AS: 389280 kB

VmallocTotal: 1294336 kB

VmallocUsed: 12460 kB

VmallocChunk: 0 kB

Percpu: 528 kB

CmaTotal: 65536 kB

CmaFree: 63556 kB

# For more options and information see

# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode

#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console

# goes off screen, and negative if there is too much border

#overscan_left=16

#overscan_right=16

#overscan_top=16

#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus

# overscan.

#framebuffer_width=1280

#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output

#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)

#hdmi_group=1

#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in

# DMT (computer monitor) modes

#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or

# no display

#config_hdmi_boost=4

# uncomment for composite PAL

#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.

#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces

dtparam=i2c_arm=on

#dtparam=i2s=on

dtparam=spi=on

# Uncomment this to enable infrared communication.

#dtoverlay=gpio-ir,gpio_pin=17

#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)

dtparam=audio=on

# Automatically load overlays for detected cameras

start_x=1

# Automatically load overlays for detected DSI displays

display_auto_detect=1

# Enable DRM VC4 V3D driver

#dtoverlay=vc4-kms-v3d

max_framebuffers=2

# Disable compensation for displays with overscan

disable_overscan=1

[cm4]

# Enable host mode on the 2711 built-in XHCI USB controller.

# This line should be removed if the legacy DWC2 controller is required

# (e.g. for USB device mode) or if USB support is not required.

otg_mode=1

[all]

#dtoverlay=vc4-fkms-v3d

[pi4]

dtoverlay=vc4-fkms-v3d

# Run as fast as firmware / board allows

arm_boost=1

[all]

# enable raspicam

start_x=1

gpu_mem=256

dtoverlay=arducam

dtparam=i2c_vc=on

DMESG: DMESG - Pastebin.com

Linux fluiddpi 5.10.103-v7+ #1530 SMP Tue Mar 8 13:02:44 GMT 2022 armv7l GNU/Linux

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

MemTotal: 762660 kB

MemFree: 315160 kB

MemAvailable: 607280 kB

Buffers: 55524 kB

Cached: 270152 kB

SwapCached: 0 kB

Active: 158224 kB

Inactive: 225600 kB

Active(anon): 460 kB

Inactive(anon): 58344 kB

Active(file): 157764 kB

Inactive(file): 167256 kB

Unevictable: 16 kB

Mlocked: 16 kB

SwapTotal: 102396 kB

SwapFree: 102396 kB

Dirty: 28 kB

Writeback: 0 kB

AnonPages: 58164 kB

Mapped: 62652 kB

Shmem: 656 kB

KReclaimable: 24312 kB

Slab: 40784 kB

SReclaimable: 24312 kB

SUnreclaim: 16472 kB

KernelStack: 1248 kB

PageTables: 1960 kB

NFS_Unstable: 0 kB

Bounce: 0 kB

WritebackTmp: 0 kB

CommitLimit: 483724 kB

Committed_AS: 389280 kB

VmallocTotal: 1294336 kB

VmallocUsed: 12460 kB

VmallocChunk: 0 kB

Percpu: 528 kB

CmaTotal: 65536 kB

CmaFree: 63556 kB

# For more options and information see

# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode

#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console

# goes off screen, and negative if there is too much border

#overscan_left=16

#overscan_right=16

#overscan_top=16

#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus

# overscan.

#framebuffer_width=1280

#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output

#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)

#hdmi_group=1

#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in

# DMT (computer monitor) modes

#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or

# no display

#config_hdmi_boost=4

# uncomment for composite PAL

#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.

#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces

dtparam=i2c_arm=on

#dtparam=i2s=on

dtparam=spi=on

# Uncomment this to enable infrared communication.

#dtoverlay=gpio-ir,gpio_pin=17

#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)

dtparam=audio=on

# Automatically load overlays for detected cameras

start_x=1

# Automatically load overlays for detected DSI displays

display_auto_detect=1

# Enable DRM VC4 V3D driver

#dtoverlay=vc4-kms-v3d

max_framebuffers=2

# Disable compensation for displays with overscan

disable_overscan=1

[cm4]

# Enable host mode on the 2711 built-in XHCI USB controller.

# This line should be removed if the legacy DWC2 controller is required

# (e.g. for USB device mode) or if USB support is not required.

otg_mode=1

[all]

#dtoverlay=vc4-fkms-v3d

[pi4]

dtoverlay=vc4-fkms-v3d

# Run as fast as firmware / board allows

arm_boost=1

[all]

# enable raspicam

start_x=1

gpu_mem=256

dtoverlay=arducam

dtparam=i2c_vc=on

It looks like you have enabled the legacy camera stack, please comment out dtoverlay=arducam in /boot/config.txt, 5MP is officially supported, no need to install arducam driver.

@wong Thanks you, simple fix and it worked! Appreciate the help!