OV5647 camera error

Hi, I’m running V1.1.1

root@rubikpi:~# cat /etc/os-release 
ID=qcom-wayland
NAME="Qualcomm Linux"
VERSION="1.3-ver.1.1"
VERSION_ID=1.3-ver.1.1
PRETTY_NAME="Qualcomm Linux 1.3-ver.1.1"

and I’ve followed the camera setup instructions here: Peripherals and Interfaces | RUBIK Pi Documentation

I understand that you’ve only listed IMX based cameras on that page but when I bought the product, since it mentioned raspberrypi 4/5 compatible cameras, I assumed OV5647 would also be supported.

Now when I’m trying to use that camera, I’m getting the following error:

root@rubikpi:~# gst-launch-1.0 -e qtiqmmfsrc camera=0 name=camsrc video_0::type=preview ! video/x-raw\(memory:GBM\),format=NV12,width=1920,height=1080,framerate=30/1,compression=ubwc,interlace-mode=progressive,colorimetry=bt601 ! queue ! v4l2h264enc capture-io-mode=5 output-io-mode=5 ! queue ! h264parse ! mp4mux ! queue ! filesink location="/opt/mux0.mp4"    
GBM_INFO::msmgbm_mapper(262)::gbm mapper instantiated

gbm_create_device(224): Info: backend name is: msm_drm
Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstQmmfSrc:camsrc: Failed to Open Camera!
Additional debug info:
/usr/src/debug/qcom-gstreamer1.0-plugins-oss-qmmfsrc/1.0-r0/gst-plugin-qmmfsrc/qmmf_source.c(1049): qmmfsrc_change_state (): /GstPipeline:pipeline0/GstQmmfSrc:camsrc
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...
GBM_INFO::~msmgbm_mapper(269)::gbm mapper de-instantiated

Is this simply due to OV5647 not being supported?
Thanks in advance

Dear customer,
Currently, RUBIK Pi 3 is compatible with three Raspberry Pi cameras:
IMX477,IMX708,IMX219
If necessary, please conduct tests using the corresponding camera.

thanks. I switched to a IMX291, works fine.

Okay, thank you for your reply.

Hi, I have attempted connecting IMX219 (Pi camera 2), yet to my suprise, there seems to be just 1 kernel module in 1.1.1 image:

root@rubikpi:~# ls -l /lib/modules/6.6.52/kernel/drivers/media/i2c/
total 960
-rw-r–r–. 2 root root 518233 Jan 1 1970 imx412.ko
-rw-r–r–. 2 root root 461961 Jan 1 1970 ir-kbd-i2c.ko
root@rubikpi:~# find /lib/modules/6.6.52/kernel/drivers/ -name imx.ko
/lib/modules/6.6.52/kernel/drivers/media/i2c/imx412.ko
root@rubikpi:~# modinfo imx412
filename: /lib/modules/6.6.52/kernel/drivers/media/i2c/imx412.ko
license: GPL
description: Sony imx412 sensor driver
alias: of:NTCsony,imx577C*
alias: of:NTCsony,imx577
alias: of:NTCsony,imx412C*
alias: of:NTCsony,imx412
depends: videodev,v4l2-async,v4l2-fwnode,mc
intree: Y
name: imx412
vermagic: 6.6.52 SMP preempt mod_unload aarch64
sig_id: PKCS#7
signer:
sig_key:
sig_hashalgo: unknown
signature:
root@rubikpi:~#

Moreover, I cannot find anything useful, related to pi camera v2 nor v3 in opkg packages. Any hints how to make it run ? As there’s critical error in gstreamer due to missing device when following tutorial here:

Please disregard, it worked in the other port. Yet, I will need to port other camera. imx219 was just to test the setup. Where are actual drivers if it’s not kernel module like in raspberry pi ? Has anyone attempted imx296 or ar0234 (or other global shutter) ?

Dear customer,
1.Is the current issue that the IMX219 functions correctly when connected to CAM1, but fails to preview, snapshot, or record when connected to CAM2?
2.Is the image you flashed onto the Rubik Pi the official release from TC?
3.Additionally, please share the specific error messages along with a complete log.

Hi, thanks for repy. Actually I have successfuly started IMX218, and yes it was with “oifficial” image (for now) to test know-good setup as reference point. Yet as I mentioned in reply to own post starting “disregard…” IMX218 (original raspberry pi cam v2) was just to test if it works with setup known to be good. My goal is to use some global shutter one (decent resolution, so I have Arducam AR0234 or Raspberry IMX296). I have started separate post, not to litter OV5647 thread with other sensors.

Cheers,
Michał.

Dear customer,
Thank you for your response.
Additionally, TC has successfully completed the OV5647 camera bring-up on Linux, and it is scheduled to be included in next month’s official software release.