Arducam Pivariety 21MP IMX230

Hi there,

i have raspberry pi 4 B, 4GB varient.

i wan to interface Arducam 21MP IMX230 with pi 4.

followed official instructions. Quick start

unfortunately, getting error for libcamera-hello command.

libcamera-hello
Preview window unavailable
[0:00:45.901056749] [1251]  INFO Camera camera_manager.cpp:299 libcamera v0.0.0+4226-8689dd6b
[0:00:45.936961527] [1253]  WARN CameraSensorProperties camera_sensor_properties.cpp:243 No static properties available for 'arducam-pivariety'
[0:00:45.937021231] [1253]  WARN CameraSensorProperties camera_sensor_properties.cpp:245 Please consider updating the camera sensor properties database
[0:00:45.952268231] [1253] ERROR IPAProxy ipa_proxy.cpp:149 Configuration file 'arducam-pivariety.json' not found for IPA module 'raspberrypi'
[0:00:46.284776119] [1253]  INFO RPI raspberrypi.cpp:1485 Registered camera /base/soc/i2c0mux/i2c@1/arducam_pivariety@c to Unicam device /dev/media3 and ISP device /dev/media0
[0:00:46.285592897] [1251]  INFO Camera camera.cpp:1028 configuring streams: (0) 2672x2008-YUV420
[0:00:46.339167008] [1253]  INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/arducam_pivariety@c - Selected sensor format: 2656x2004-SRGGB10_1X10 - Selected unicam format: 2656x2004-pRAA
[0:00:46.363584360] [1259]  WARN IPARPI raspberrypi.cpp:811 Could not set AF_MODE - no AF algorithm
Segmentation fault

Please help me to fix this.

Once again thanks.

for “vcgencmd get_camera” output

vcgencmd get_camera
supported=1 detected=0, libcamera interfaces=1

for “pkg -l | grep libcamera” command output

pkg -l | grep libcamera
ii  libcamera-apps                       0~git20230309+4def288-1          arm64        libcamera-apps
ii  libcamera-dev:arm64                  0~git20230512+8689dd6b-1         arm64        complex camera support library (development files)
ii  libcamera0:arm64                     0~git20230512+8689dd6b-1         arm64        complex camera support library
ii  python3-libcamera                    0~git20230302+923f5d70-1         arm64        complex camera support library (Python 3 bindings)

kernel verion

uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

@shripad

I may need some time to investigate this issue further. Please wait and I will provide updates on this thread.

Thanks for your quick response.

Okay i’m waiting for your update.

Once again thanks.

@shripad

Please try the link below
https://docs.arducam.com/Raspberry-Pi-Camera/Pivariety-Camera/Firmware-Update/

@Edward

i’m getting error like this. for command “./firmware_update -h”

./firmware_update -h
./firmware_update: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory



@Edward

finally firmware update successfully completed.

result

sudo ./firmware_update -m imx230_lanes2_firmware -i 10
[INFO] Firmware Version: 0x10001
[INFO] Sensor ID: 0x0230
[INFO] ==================First stage==================
[INFO] Write update flag 2.
[INFO] Write checksum.
[INFO] Write update flag.
[INFO] Sending... |=====================================================================================| ETA: 0h00m10s
[INFO] All data has been sent.
[INFO] Updating...
[SUCCESS] Firmware update successful.
[INFO] Firmware Version: 0x10001
[INFO] Sensor ID: 0x0230
[SUCCESS] ==================First stage success==================
[INFO] ==================Second stage==================
[INFO] Write update flag.
[INFO] Write checksum.
[INFO] Sending... |=====================================================================================| ETA: 0h00m02s
[INFO] All data has been sent.
[INFO] Updating...
[SUCCESS] Firmware update successful.
[SUCCESS] ==================Second stage success==================
[SUCCESS] Firmware update successful, please reboot.

command “libcamera-still -t 5000 -n -o test.jpg”

getting test image.

Thank you for your support.

1 Like