Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Compute Module • Need help on CM4S with CAM1,CAM0 setup in config.txt

$
0
0
I spend many hours to fix it but not success so far. Am I do anything wrong ?

Code:

pi@raspberrypi:~ $ rpicam-hello --listNo cameras available!
I refered document fromhttps://www.raspberrypi.com/documentati ... era-module

#CAM0
dtoverlay=cm-swap-i2c0-gpio0
dtparam=cam0_reg_gpio=45
dtoverlay=imx219,cam0

#CAM1
dtoverlay=cm-swap-i2c10-gpio28
dtparam=cam1_reg_gpio=39
dtoverlay=ov5647,cam1

I am using old dual camera "stereopi" compute module board. here is schematic https://github.com/realizator/stereopi- ... ereoPi.pdf

Here are CAM0, CAM1 setup refer below.

CAM0 (*I physically connected Camera Module v1,OV5647 to CAM0)
SDA > GPIO0
SCL > GPIO1
IO0 > GPIO45 (*Enable Pin)
IO1 > GPIO44

CAM1 (*I physically connected Camera Module v2, IMX219 to CAM0)
SDA > GPIO28
SCL > GPIO29
IO0 > GPIO39 (*Enable Pin)
IO1 > GPIO37

My setup :
OS : Raspberry Pi OS (64-bit), Kernel 6.6, 12 (Bookworm)

Code:

pi@raspberrypi:~ $ uname -aLinux raspberrypi 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux
Here is EEPROM information

Code:

pi@raspberrypi:~ $ sudo rpi-eeprom-updateBOOTLOADER: up to date   CURRENT: Tue Feb 11 05:00:13 PM UTC 2025 (1739293213)    LATEST: Tue Feb 11 05:00:13 PM UTC 2025 (1739293213)   RELEASE: default (/usr/lib/firmware/raspberrypi/bootloader-2711/default)            Use raspi-config to change the release.    LATEST: 
Here is my config.txt

Code:

#dtparam=i2c_arm=on#dtparam=i2s=on#dtparam=spi=on# Enable audio (loads snd_bcm2835)dtparam=audio=on# Additional overlays and parameters are documented# /boot/firmware/overlays/README# Automatically load overlays for detected cameras#camera_auto_detect=1# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3dmax_framebuffers=2# Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscandisable_overscan=1# Run as fast as firmware / board allowsarm_boost=1[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[cm5]dtoverlay=dwc2,dr_mode=host[all] dtoverlay=cm-swap-i2c10-gpio28dtparam=cam1_reg_gpio=39 dtoverlay=ov5647,cam1 dtoverlay=cm-swap-i2c0-gpio0 dtparam=cam1_reg_gpio=45dtoverlay=imx219,cam0
9bca0207-7d90-4a2d-99a4-16f932a85f3f.jpg
89254f0f-619b-4406-9ca5-668dbd6dbf21.jpg

Statistics: Posted by Amornthep — Tue Jun 17, 2025 5:28 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles