Arducam 64mp - no cameras available

  1. Where did you get the camera module(s)? Amazon

  2. Model number of the product(s)? Arducam 64mp

  3. What hardware/platform were you working on? CM4

  4. Instructions you have followed. (link/manual/etc.) arducam_64mp_pi_camera_manual.pdf

  5. Problems you were having? camera not detected

  6. The dmesg log from your hardware?
    $ dmesg | grep arducam
    [ 7.980945] arducam_64mp 0-001a: chip id mismatch: 4136!=ffff
    [ 8.325197] arducam_64mp: probe of 0-001a failed with error -5
    [ 8.457508] arducam_64mp 10-001a: failed to read chip id 4136 with error -5
    [ 8.594792] arducam_64mp: probe of 10-001a: failed with error -5

  7. Troubleshooting attempts you’ve made? Reinstalled a few times, tried reversing both ends of the connectors.

  8. What help do you need? Suggestions on how to proceed.

$ cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : c03140
Serial : 10000000ef3f7328
Model : Raspberry Pi Compute Module 4 Rev 1.0

$ cat /proc/meminfo
MemTotal: 3885412 kB
MemFree: 2712308 kB
MemAvailable: 3407028 kB
Buffers: 24700 kB
Cached: 792068 kB
SwapCached: 0 kB
Active: 231392 kB
Inactive: 732300 kB
Active(anon): 1328 kB
Inactive(anon): 226852 kB
Active(file): 230064 kB
Inactive(file): 505448 kB
Unevictable: 60484 kB
Mlocked: 16 kB
SwapTotal: 102396 kB
SwapFree: 102396 kB
Dirty: 8 kB
Writeback: 0 kB
AnonPages: 207492 kB
Mapped: 176168 kB
Shmem: 81248 kB
KReclaimable: 31908 kB
Slab: 63724 kB
SReclaimable: 31908 kB
SUnreclaim: 31816 kB
KernelStack: 4048 kB
PageTables: 5956 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 2045100 kB
Committed_AS: 1333500 kB
VmallocTotal: 259653632 kB
VmallocUsed: 11824 kB
VmallocChunk: 0 kB
Percpu: 736 kB
CmaTotal: 524288 kB
CmaFree: 472236 kB

$ 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

$ ls /dev/video*
/dev/video10 /dev/video12 /dev/video14 /dev/video16 /dev/video19 /dev/video21 /dev/video23
/dev/video11 /dev/video13 /dev/video15 /dev/video18 /dev/video20 /dev/video22 /dev/video31

$ dpkg -l | grep libcamera
ii libcamera-apps 0.0.10 arm64 libcamera-apps
ii libcamera-dev 0.0.10 arm64 libcamera

$ cat /boot/config.txt

Enable audio (loads snd_bcm2835)

dtparam=audio=on

Automatically load overlays for detected cameras

camera_auto_detect=1

Automatically load overlays for detected DSI displays

display_auto_detect=1

Enable DRM VC4 V3D driver

dtoverlay=vc4-kms-v3d
max_framebuffers=2

Run in 64-bit mode

arm_64bit=1

Disable compensation for displays with overscan

disable_overscan=1

[cm4]
otg_mode=1

[all]
arm_boost=1

[all]
dtoverlay=arducam_64mp
dtoverlay=vc4-kms-v3d,cma-512

[cm4]
dtoverlay=arducam_64mp
dtoverlay=arducam_64mp,cam0

$ libcamera-still -t 1000 -n
[1:00:26.269550838] [2716] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3897-c3c878a9
ERROR: *** no cameras available ***

@gregmote

Are you using the official carrier board? Can you post a hardware connection diagram?

Yup. Standard Raspberry Pi CM4 IO Board.

@gregmote


The flex cable is reversed

my wiring

I tried that before. It does change the dmesg slightly with the “out-of-tree” message.
$ dmesg | grep arducam
[ 7.288856] arducam_64mp: loading out-of-tree module taints kernel.
[ 7.407009] arducam_64mp 0-001a: chip id mismatch: 4136!=ffff
[ 7.568141] arducam_64mp: probe of 0-001a failed with error -5
[ 7.734243] arducam_64mp 10-001a: failed to read chip id 4136, with error -5
[ 7.756267] arducam_64mp: probe of 10-001a failed with error -5

@gregmote

This phenomenon is a little strange, you can contact ([email protected]), I have written a diagnostic script.