@keven.wu-Q ,
As per the 'Quectel_SC206E_Series_Linux_Camera_Driver_Dedebug print probe success for my AR0234 camera sensor.
[ 98.477042] CAM_INFO: CAM-SENSOR: cam_sensor_driver_cmd: 876 Probe success,slot:1,slave_addr:0x20,sensor_id:0xa56
I did the following changes:
As my camera is connected on the CSI1 lines (similar pinout as J0402 Front cam for Smart_EVB_G5), So, I modified I2C slave address and chip ID address and value in ‘src/vendor/qcom/proprietary/chi-cdk/oem/qcom/sensor/quec_s5k4h7_2lane/s5k4h7_2lane_sensor.xml’ file and able to get probe success.
But unable to start video streaming.
I run following commands:
gst-launch-1.0 -e qtiqmmfsrc camera=1 name=qmmf ! video/x-raw,format=NV12,width=640,height=480,framerate=30/1 ! waylandsink x=0 y=0 width=640 height=480
Following are the Error Logs>
root@qrbx210-rbx:~# gst-launch-1.0 -e qtiqmmfsrc camera=1 name=qmmf ! video/x-raw,format=NV12,width=640,height=480,framerate=30/1 ! waylandsink x=0 y=0 width=640 height=480
(gst-plugin-scanner:2528): GLib-GObject-CRITICAL **: 08:01:43.359: g_param_spec_internal: assertion ‘!(flags & G_PARAM_STATIC_NAME) || is_canonical (name)’ failed
(gst-plugin-scanner:2528): GLib-GObject-CRITICAL **: 08:01:43.360: g_param_spec_internal: assertion ‘!(flags & G_PARAM_STATIC_NAME) || is_canonical (name)’ failed
[ 97.548653] msm_vidc: high: 00000001: …d: Opening video instance: 0000000000000000, 1
[ 97.559678] msm_vidc: high: 00000001: …d: Closed video instance: 0000000000000000
[ 97.567777] msm_vidc: high: 00000001: …e: Opening video instance: 0000000000000000, 0
[ 97.578065] msm_vidc: high: 00000001: …e: Closed video instance: 0000000000000000
[ 97.586194] CAM_ERR: CAM-CPAS: cam_cpas_subdev_ioctl: 749 Invalid command -2140645888 for CPAS!
[ 97.595358] CAM_ERR: CAM-CORE: cam_subdev_ioctl: 78 Invalid command -2140645888 for cam-isp
[ 97.604344] CAM_ERR: CAM-CSIPHY: cam_csiphy_subdev_ioctl: 134 Wrong ioctl : -2140645888
[ 97.612758] CAM_ERR: CAM-CSIPHY: cam_csiphy_subdev_ioctl: 134 Wrong ioctl : -2140645888
[ 97.621272] CAM_ERR: CAM-SENSOR: cam_sensor_subdev_ioctl: 101 Invalid ioctl cmd: -2140645888
[ 97.630162] CAM_ERR: CAM-CORE: cam_subdev_ioctl: 78 Invalid command -2140645888 for cam-ope
[ 97.639136] CAM_INFO: CAM-SMMU: cam_smmu_need_force_alloc_cached: 383 force_cache_allocs=0
[ 97.647915] CAM_WARN: CAM-CRM: cam_req_mgr_close: 195 release invoked associated userspace process has died, open_cnt: 1
[ 97.658936] CAM_WARN: CAM-CPAS: __cam_cpas_subdev_close: 706 device already closed, open_cnt: 0
GBM_INFO::msmgbm_mapper(160)::gbm mapper instantiated
gbm_create_device(225): Info: backend name is: msm_drm
Setting pipeline to PAUSED …
gbm_create_device(225): Info: backend name is: msm_drm
[ 97.966728] CAM_INFO: CAM-SMMU: cam_smmu_need_force_alloc_cached: 383 force_cache_allocs=0
[ 98.296912] CAM_ERR: CAM-CCI: cam_cci_irq: 304 Base:0000000000000000,cci: 0, M0_Q1 NACK ERROR: 0x10000000
[ 98.307101] CAM_ERR: CAM-CCI: cam_cci_read: 1389 ERROR with Slave 0x40:
[ 98.313873] CAM_ERR: CAM-CCI: cam_cci_read_bytes_v_1_2: 1640 failed to read rc:-22
[ 98.321803] CAM_ERR: CAM-SENSOR: cam_cci_i2c_read: 35 rc = -22
[ 98.327864] CAM_WARN: CAM-SENSOR: cam_sensor_match_id: 774 read id: 0x0 expected id 0x4308:
[ 98.336440] CAM_INFO: CAM-SENSOR: cam_sensor_driver_cmd: 861 Not a hot plug sensor, match sensor id failed
[ 98.376369] CAM_ERR: CAM-SENSOR: cam_sensor_subdev_ioctl: 90 Failed in Driver cmd: -19
[ 98.477042] CAM_INFO: CAM-SENSOR: cam_sensor_driver_cmd: 876 Probe success,slot:1,slave_addr:0x20,sensor_id:0xa56
[ 98.841409] CAM_WARN: CAM-CRM: cam_req_mgr_close: 195 release invoked associated userspace process has died, open_cnt: 1
[ 98.852510] CAM_WARN: CAM-CPAS: __cam_cpas_subdev_close: 706 device already closed, open_cnt: 0
[ 98.861970] binder: release 2524:2526 transaction 63 in, still active
[ 98.868496] binder: send failed reply for transaction 63 to 2527:2527
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstQmmfSrc:qmmf: Camera service has died !
Additional debug info:
/home/qcm2290_linux_r60_r004-SC206E_rl/build-qti-distro-rb-debug/tmp-glibc/work/aarch64-oe-linux/gstreamer1.0-plugins-qti-oss-qmmfsrc/1.0-r0/gst-plugin-qmmfsrc/qmmf_source.c(499): qmmfsrc_event_callback (): /GstPipeline:pipeline0/GstQmmfSrc:qmmf
Setting pipeline to NULL …
Freeing pipeline …
GBM_INFO::~msmgbm_mapper(167)::gbm mapper de-instantiated
Following are the logs in EVK for Front CAM(s5k4h7_2lane_sensor) after successful prob.
[ 1319.374779] CAM_INFO: CAM-SENSOR: cam_sensor_driver_cmd: 955 CAM_ACQUIRE_DEV Success, sensor_id:0x487b,sensor_slave_addr:0x5a
[ 1319.581661] CAM_INFO: CAM-OPE: cam_ope_mgr_acquire_hw: 2782 OPE: 0 acquire succesfull rc 0
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
In my case, I am not getting “CAM_ACQUIRE_DEV Success” for my camera sensor.
And if i searched the source this print is coming from the ‘camxcslhwinternaleeprom.cpp’ file.
Can you suggest me to get similar CAM_ACQUIRE_DEV Success print for my camera also?
Also, I didn’t observe any I2C activity after the read Chip ID command. So did i miss any other configuration?