Arducam IMX298 on CM4 bullseye, segmentation fault on libcamera-still -t 5000

Hello!
I’m currently trying to use a pivariety camera IMX298 on a CM4 running on bullseye. The camera seems to be detected by libcamera but not by the compute module. Moreover, every time that I am trying to take a picture, I get a segmentation fault.

  • Camera module number : Arducam pivariety IMX298

  • system related information

uname -a
Linux raspberrypi 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)
NAME=“Debian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=debian

cat /boot/config.txt
#Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2c_vc=on
#dtparam=i2s=on
#dtparam=spi=on
[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]
[pi4]
#Run as fast as firmware / board allows
arm_boost=1
[all]
dtoverlay=arducam-pivariety

  • System log

dmesg | grep arducam
[ 6.977496] arducam-pivariety 10-000c: firmware version: 0x10001
[ 7.410981] arducam-pivariety 10-000c: Consider updating driver arducam-pivariety to match on endpoints

  • Application Log
    My camera is connected to the I2c1 port. The camera isn’t detected by the CM4:

i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –

and yet, the libcamera can detect it :

libcamera-still --list-cameras
0 : arducam-pivariety [4656x3496] (/base/soc/i2c0mux/i2c@1/arducam_pivariety@c)
Modes: ‘SRGGB10_CSI2P’ : 1280x720 [50.02 fps - (0, 0)/4640x3464 crop]
1280x800 [45.05 fps - (0, 0)/4640x3464 crop]
1920x1080 [30.01 fps - (0, 0)/4640x3464 crop]
2320x1732 [20.01 fps - (0, 0)/4640x3464 crop]
2592x1944 [20.01 fps - (0, 0)/4640x3464 crop]
3264x2464 [15.00 fps - (0, 0)/4640x3464 crop]
3840x2160 [15.00 fps - (0, 0)/4640x3464 crop]
4640x3472 [10.00 fps - (0, 0)/4640x3472 crop]

  • Error Log
    My problem is that whenever I want to take a picture, i get the following error :

libcamera-still -t 5000
Made X/EGL preview window
[1:22:42.009198908] [6765] INFO Camera camera_manager.cpp:299 libcamera v0.0.0+4185-8c2b3b43
[1:22:42.027316936] [6767] WARN CameraSensorProperties camera_sensor_properties.cpp:205 No static properties available for ‘arducam-pivariety’
[1:22:42.027386509] [6767] WARN CameraSensorProperties camera_sensor_properties.cpp:207 Please consider updating the camera sensor properties database
[1:22:42.041043043] [6767] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file ‘arducam-pivariety.json’ not found for IPA module ‘raspberrypi’
[1:22:42.381066511] [6767] INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/arducam_pivariety@c to Unicam device /dev/media2 and ISP device /dev/media4
[1:22:42.381889741] [6765] INFO Camera camera.cpp:1028 configuring streams: (0) 2328x1748-YUV420
[1:22:42.448184366] [6767] INFO RPI raspberrypi.cpp:805 Sensor: /base/soc/i2c0mux/i2c@1/arducam_pivariety@c - Selected sensor format: 2320x1732-SRGGB10_1X10 - Selected unicam format: 2320x1732-pRAA
[1:22:42.493998143] [6771] WARN IPARPI raspberrypi.cpp:810 Could not set AF_MODE - no AF algorithm
Segmentation fault

I don’t know where this could be coming from. I hope that someone could help me with this issue.
Thanks in advance for your help!
Best regards

Hi, Hugo!

Apparently I also have some problems similar to yours, I even checked that we have similar outputs from the terminal. Do you happen to have a solution to this? I checked online but it seems that this problem has not been resolved yet.

Hi Ignis,
At the time, I was using the last version of libcamera (0.12 in my memory). It was just a version issue, I went back to libcamera version 0.10 and it worked.

Thank you for your fast reply!

Just to make sure we are on the same page. Did you follow this website during the installation? (Quick Start - Arducam Wiki)

Are we using the same camera module? (16MP IMX298 - Arducam Wiki) I am using this one and apparently it has been discontinued.

I am running this on a Raspberry Pi 4B and raspberrypi 6.1.21 but still can’t run it. Do you happen to know how to downgrade the libcamera? I am new to all of this.

Do you happen to remember which version of libcamera you used? I managed to find the 0.0.10 versions of the libcamera-dev and libcamera-apps, but I’m not so sure about the libcamera itself since the name of the file seems to not mention the version type (Releases · ArduCAM/Arducam-Pivariety-V4L2-Driver · GitHub).