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

Camera board • Unable to get ov5647 Camera working on Rpi 5

$
0
0
For a project I want to use stereo cameras so I bought a rpi 5 with Debian GNU/Linux 12 (bookworm). I connected an ov5647 camera to the CAM/DISP 0 port. Unfortunately I can not seem to fix the folloing error when I try libcamera-hello:

Code:

[0:09:28.464453166] [1588]  INFO Camera camera_manager.cpp:325 libcamera v0.3.2+99-1230f78d[0:09:28.478155330] [1591]  INFO RPI pisp.cpp:695 libpisp version v1.0.7 28196ed6edcf 29-08-2024 (16:33:32)[0:09:28.497260057] [1591]  INFO RPI pisp.cpp:1154 Registered camera /base/axi/pcie@120000/rp1/i2c@88000/ov5647@36 to CFE device /dev/media2 and ISP device /dev/media1 using PiSP variant BCM2712_C0Made X/EGL preview window[0:09:29.483425252] [1588]  WARN V4L2 v4l2_pixelformat.cpp:346 Unsupported V4L2 pixel format RPBPMode selection for 1296:972:12:P    SGBRG10_CSI2P,640x480/0 - Score: 3296    SGBRG10_CSI2P,1296x972/0 - Score: 1000    SGBRG10_CSI2P,1920x1080/0 - Score: 1349.67    SGBRG10_CSI2P,2592x1944/0 - Score: 1567Stream configuration adjusted[0:09:29.483708199] [1588]  INFO Camera camera.cpp:1197 configuring streams: (0) 1296x972-YUV420 (1) 1296x972-GBRG_PISP_COMP1[0:09:29.483819533] [1591]  INFO RPI pisp.cpp:1450 Sensor: /base/axi/pcie@120000/rp1/i2c@88000/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected CFE format: 1296x972-PC1gterminate called after throwing an instance of 'std::runtime_error'  what():  failed to import fd 28Aborted

The camera seems to be detected:

Code:

Available cameras-----------------0 : ov5647 [2592x1944 10-bit GBRG] (/base/axi/pcie@120000/rp1/i2c@88000/ov5647@36)    Modes: 'SGBRG10_CSI2P' : 640x480 [58.92 fps - (16, 0)/2560x1920 crop]                             1296x972 [43.25 fps - (0, 0)/2592x1944 crop]                             1920x1080 [30.62 fps - (348, 434)/1928x1080 crop]                             2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]
After many hours of trying to fix things using the forums and chatgpt my /boot/firmware/config.txt currently looks like this:

Code:

# For more options and information see# http://rptl.io/configtxt# Some settings may impact device functionality. See link above for details# Uncomment some or all of these to enable the optional hardware interfacesdtparam=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 camerascamera_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 driver#dtoverlay=vc4-kms-v3ddtoverlay=vc4-fkms-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]# Enable OV5647 camera module#dtoverlay=ov5647dtoverlay=ov5647,media-controller=1# Set GPU memory allocation (minimum recommended for the camera)gpu_mem=512
If someone encountered a similar issue or has a suggestion to fix this, any help would be appreciated!

Statistics: Posted by S98Arne — Fri Jan 17, 2025 2:58 pm — Replies 1 — Views 29



Viewing all articles
Browse latest Browse all 4780

Trending Articles