Cameras for Raspberry Pi

  1. Home
  2. Docs
  3. Cameras for Raspberry Pi
  4. 64MP Camera Modules
  5. 64MP Camera-Troubleshooting

64MP Camera-Troubleshooting

1. Which driver should I install for Arducam 64MP camera

wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh
./install_pivariety_pkgs.sh -p 64mp_pi_hawk_eye_kernel_driver

2. Can I use the native libcamera of raspberry pi?

At present, we modify the libcamera apps to achieve the autofocus function of the camera. Please download the libcamera apps with our scripts:

wget -O  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh
./install_pivariety_pkgs.sh -p libcamera_dev
./install_pivariety_pkgs.sh -p libcamera_apps

3. 64MP Failed to allocate buffers on RPI 4 Model B

Input cat /proc/meminfo to check your memory:        

cat /proc/meminfo

Please make sure your memory is like this(notice the Cmatotal and Cmafree):

[email protected]:~ $ cat /proc/meminfo 
MemTotal:        3885548 kB
MemFree:         1878740 kB
MemAvailable:    2564492 kB
Buffers:           32980 kB
Cached:          1173748 kB
SwapCached:            0 kB
Active:           144920 kB
Inactive:        1205828 kB
Active(anon):       1424 kB
Inactive(anon):   624592 kB
Active(file):     143496 kB
Inactive(file):   581236 kB
Unevictable:      416296 kB
Mlocked:              16 kB
SwapTotal:        102396 kB
SwapFree:         102396 kB
Dirty:               320 kB
Writeback:             0 kB
AnonPages:        560352 kB
Mapped:           404152 kB
Shmem:            481996 kB
KReclaimable:      35536 kB
Slab:              72112 kB
SReclaimable:      35536 kB
SUnreclaim:        36576 kB
KernelStack:        5872 kB
PageTables:        13160 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2045168 kB
Committed_AS:    3730456 kB
VmallocTotal:   259653632 kB
VmallocUsed:       12960 kB
VmallocChunk:          0 kB
Percpu:              688 kB
CmaTotal:         524288 kB
CmaFree:          398204 kB

If not, please add the following messages under [pi4] manually:

dtoverlay=vc4-kms-v3d,cma-512

4. Error messages like this:

Cannot find the corresponding package, please send the following information to [email protected]

Hardware Revision: b03111

Kernel Version: 5.4.83-v7l+

How to fix it

Try a fresh install of Raspberry Pi OS:

Do not run rpi-update!

5. “failed to import” error

ec74b034 bb2f 4083 a86e e6c578c9ae14

How to fix it:

For Raspbian Bullseye users running on Pi Zero ~ Pi 3, please execute the follows:

1. Open a terminal
2. Run sudo raspi-config
3. Navigate to Advanced Options
4. Enable Glamor graphic acceleration
5. Reboot your Pi

Meanwhile, you also need to execute the following steps:

1. Open a terminal
2. Run sudo raspi-config
3. Navigate to Advanced Options
4. Navigate to GL Driver
5. Select GL (Full KMS)
6. Reboot your Pi

6. Errors and warnings with libcamera and 64MP Camera

When you input the libcamera command, you may receive the following error and warn. Don’t worry, it doesn’t influence using the camera.

$ libcamera-still --list-cameras
[0:03:09.258171526] [1099]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3572-e13ccdd5
[0:03:09.272355158] [1100]  WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'arducam_64mp'
[0:03:09.272435819] [1100]  WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[0:03:09.273040038] [1100] ERROR CameraSensor camera_sensor.cpp:591 'arducam_64mp 10-001a': Camera sensor does not support test pattern modes.
[0:03:09.321538440] [1100]  WARN RPI raspberrypi.cpp:1263 Mismatch between Unicam and CamHelper for embedded data usage!
[0:03:09.322578610] [1100] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:03:09.322925809] [1100]  INFO RPI raspberrypi.cpp:1386 Registered camera /base/soc/i2c0mux/[email protected]/[email protected] to Unicam device /dev/media3 and ISP device /dev/media2
Available cameras
-----------------
0 : arducam_64mp [9248x6944] (/base/soc/i2c0mux/[email protected]/[email protected])
    Modes: 'SRGGB10_CSI2P' : 1280x720 1920x1080 2312x1736 3840x2160 4624x3472 9152x6944

7. “Failed to allocate buffers” on Pi 0-Pi 3

Please check if you have added the dtoverlay=vc4-kms-v3d,cma-512 in the config file.

If you have added it, please run cat /boot/config.txt

cat /boot/config.txt

Please check if the dtoverlay=vc4-kms-v3d,cma-512 is under the [pi4]. If so, please manually move it under [all].

8. v4l2-ctl set focus_absolute failed

We no longer use mmal, and switch to libcamera, the following is our example about libcamera.

Was this article helpful to you? Yes No 3