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/[email protected]/[email protected])
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/[email protected]/[email protected] 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/[email protected]/[email protected] - 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