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

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

$
0
0
My initial thought is that you also want "dtparam=cam1_reg=on" and "dtparam=cam0_reg=on" to enable the regulators.
"dtparam=cam1_reg=on" and ""dtparam=cam1_reg" (*without "=on") did the same. it able to enable the regulator.
I also read the schematic that:
- CAM0_IO1 is GPIO 39, and CAM0_IO0 is GPIO 44
- CAM1_IO1 is GPIO 37, and CAM1_IO0 is GPIO 45
Many thanks for found out. This is my fault. The correct are CAM0_IO0 = GPIO44, CAM1_IO0=GPIO45
Neither "cm-swap-i2c0-gpio0" nor "cm-swap-i2c10-gpio28" exist as overlays.
"cm-swap-i2c0" does, and can take an override of "i2c10-gpio28" and "i2c0-gpio0". I believe you want both of those to give "dtoverlay=cm-swap-i2c0,i2c10-gpio28,i2c0-gpio0"
What does ""cm-swap-i2c0" meaning ? Can you explaing more on this.

Finally. I am manage to make it works only imx219 camera, not both. **But I found out really strange behaviour below.

1. to make CAM0 (imx219) works. I need setup both CAM0, CAM1 in config.txt

Code:

#CAM1dtparam=cam1_regdtparam=cam1_reg_gpio=45dtoverlay=i2c10-gpio28dtoverlay=ov5647,cam1#CAM0dtparam=cam0_regdtparam=cam0_reg_gpio=44dtoverlay=i2c0-gpio0dtoverlay=imx219,cam0

Code:

pi@raspberrypi:~ $ rpicam-hello --listAvailable cameras-----------------0 : imx219 [3280x2464 10-bit RGGB] (/base/soc/i2c0mux/i2c@0/imx219@10)    Modes: 'SRGGB10_CSI2P' : 640x480 [103.33 fps - (1000, 752)/1280x960 crop]                             1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]                             1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]                             3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]           'SRGGB8' : 640x480 [103.33 fps - (1000, 752)/1280x960 crop]                      1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]                      1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]                      3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
"dmesg" shown "ov5647 10-0036: probe with driver ov5647 failed with error -5"

Code:

[    4.289868] bcm2835-codec bcm2835-codec: Device registered as /dev/video18[    4.289899] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx[    4.298555] bcm2835-codec bcm2835-codec: Device registered as /dev/video31[    4.298596] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image[    4.512229] ov5647 10-0036: ov5647_read: i2c read error, reg: 300a = -5[    4.516988] ov5647 10-0036: probe with driver ov5647 failed with error -5
2.Once I have only CAM0 in config.txt. It won't work.

Code:

#CAM0dtparam=cam0_regdtparam=cam0_reg_gpio=44dtoverlay=i2c0-gpio0dtoverlay=imx219,cam0

Code:

pi@raspberrypi:~ $ rpicam-hello --listNo cameras available!
"dmesg" has reported "ifailed to read chip id 219"

Code:

[    3.089498] imx219 0-0010: Error reading reg 0x0000: -5[    3.089518] imx219 0-0010: error -EIO: failed to read chip id 219[    3.089856] imx219 0-0010: probe with driver imx219 failed with error -5
It seem my "ov5647" camera module is from 3rd party company, not official one. Is there some issue with chip ID ?

Any "xclk clock frequency" setup conflct between "ov5647" & "imx219" in kernel driver ?

Statistics: Posted by Amornthep — Wed Jun 18, 2025 6:43 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles