Forums - GMSL Camera

14 posts / 0 new
Last post
GMSL Camera
hs
Join Date: 20 Aug 21
Posts: 7
Posted: Thu, 2021-08-26 12:55

Hi,

I would like to access GMSL camera LI-AR0231-GMSL2-CFM-176H-010 that connected to GMSL1 connector on Navigation Mezzanine.

I could access main camera and tracking camera using your sample code:

sample-apps-for-Qualcomm-Robotics-RB5-platform/Gstreamer-Applications/gst_camera/ispcam_display

Could you show me how to access GMSL camera using/modifying ispcam_display code?

Thanks,

hs

  • Up0
  • Down0
jlowman
Join Date: 25 Aug 21
Posts: 16
Posted: Thu, 2021-08-26 15:11

I'll look into this.  Are you using LE or LU?

  • Up0
  • Down0
hs
Join Date: 20 Aug 21
Posts: 7
Posted: Fri, 2021-08-27 06:23

I am using LU.

Thanks,

  • Up0
  • Down0
jlowman
Join Date: 25 Aug 21
Posts: 16
Posted: Fri, 2021-08-27 12:27

I am trying to aquire a compatible GMSL camera module, I don't have it on site.

I believe the command camx-hal3-test is accessible through adb shell.

If you run this command I believe you should see more "cameras" that what you have connected.  So if you disconnected all other cameras I believe it will still display cameras which I believe are the GMSL camera drivers.  camx-hal3-test always list cameras starting from 0 so the camera number is not necessarily the true camera number used in gstreamer.

The GMSL camera looks like it is YUV 1920x1080 fps 28.5 if I recall correctly.

The ISP camera program is just trying to connect to "camera" using gstreamer without position.  I believe you will have to modify the gstreamer command to access a specific camera position.  Also change the gstreamer camera video parameters to match the properties of the GMSL camera.  

Then you can try to stream from it.  I believe the GMSL will be cameras 4 or 5 (there are 7 camera positions on an RB5).   See if you can get it to talk.  Or you can try using camx-hal3-test to pass configuration to the cameras enumerated by the command and see if you can get the camera to talk using the test command.

  • Up0
  • Down0
hs
Join Date: 20 Aug 21
Posts: 7
Posted: Fri, 2021-08-27 13:10

 

I tried camx-hal3-test, it shows Camera 0 to 3.

I tried to add id=4 and 5 using 

A:id=4,psize=1920x1080

Then camx-hal3.test was crashed.

-----------------------------------------------------------

sh-4.4# camx-hal3-test
Enter Camera Testing
 
            ======================= Camera Test Version  =======================
             CAMTEST_SHA1    : 7e9df477c96af73aed2cc67dd2635cf78b02a09f
             CAMTEST_BUILD_TS: 6/21/2021 18:46:48
             CAMTESTHOSTNAME : user-Precision-T1700 user-Precision-T1700 2001-b031-140c-0f00-0002-0000-0000-0113.hinet-ip6.hinet.net
             CAMBUILD_IP     : 172.17.0.1/16
            =====================================================================
Camera: 0 face:1
Camera: 1 face:2
Camera: 2 face:1
Camera: 3 face:1
CAM0>>A:id=4,psize=1920x1080
Test camera:A:id=4,psize=1920x1080
camera:4
preview size:1920x1080
add a camera :4
=========>>>catch signal 11 <<< from tid:17994======
Run cmd: cat /proc/17994/maps | grep '/usr' | grep 'r-xp' | tee /data/misc/camera/trace_17994[11].txt
556d0b9000-556d0d4000 r-xp 00000000 08:07 4138                           /usr/bin/camx-hal3-test
7fa514d000-7fa514e000 r-xp 00000000 08:07 24971                          /usr/lib/camera/com.qti.sensor.max9296a_ar0231.so
:
:
-----------------------------------------------------------
 

 

I tried to use gstreamer but it also does not work. 

qtiqmmfsrc camera=0 and 1 worked fine for main camera and tracking camera.

-----------------------------------------------------------
root@qrb5165-rb5:~/work/sample-apps-for-Qualcomm-Robotics-RB5-platform/tflite_posenet# gst-launch-1.0 -e qtiqmmfsrc camera=4 name=qmmf ! video/x-h264,format=NV12, width=1280, height=720,framerate=30/1 ! h264parse config-interval=1 ! mpegtsmux name=muxer ! queue ! tcpserversink port=8900 host=10.1.20.196
gbm_create_device(156): Info: backend name is: msm_drm
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...
-----------------------------------------------------------
 
I tried camera=2 to 5, I got same results.
 
I feel like the camera is not turning on. It doesn't get warm.
Are there any command to turn it on?
Or are there any dipsw setting on Navigation Mezzanine for GMSL camera?
DIPSW1 :4 and 5 are ON
DIPSW2 : 2 is ON
I did not touch those dipsw since I opened the box.
 
 
 
 
  • Up0
  • Down0
jlowman
Join Date: 25 Aug 21
Posts: 16
Posted: Tue, 2021-08-31 13:15

With hal3_test, the gmsl camera would be one of the cameras 0-3.  Hal3_test generates camera number independent of the system numbers.

With gstreamers you can enable debug output GST_DEBUG=  set it to the logging level you want.

If you collect kernel logs with only the GMSL camera connected  I can look into the log and see what is happening.

  • Up0
  • Down0
hs
Join Date: 20 Aug 21
Posts: 7
Posted: Wed, 2021-09-01 08:16
Hi,
 
I found a document 80-PV086-300.pdf
 
I followed 5.4.2.4 on page 47.
 
I tried RAW Preview Only, YUV Preview Only, YUV Snapshot.
camx-hal3-test does not complain.
I saw 9V DC power on coax cable when I use id=2 or 3. So I am sure id=2 and 3 are GMSL.
 
 
camx-hal3-test does not complain, but no files are created in /data/misc/camera/ for both id=2 and id=3.
I saw image files when I used id=0 and 1 (Main camera and Tracking camera).
 
When I tried YUV Video streaming/ Live Snapshot example on page 49, cam3-hal-test crashed.
I tried id=2 and id=3, both same result.
 
I connected a LI-AR0231-GMSL2-CFM-176H-010 to GMSL1 connector.
 
forceDualIFEOn=TRUE line is exist in /vendor/etc/camera/camxoverridesettings.txt
 
Do you have any idea?
 
 
--------------------------------------------------------------------------------------
root@qrb5165-rb5:~# camx-hal3-test
Enter Camera Testing
 
            ======================= Camera Test Version  =======================
             CAMTEST_SHA1    : 7e9df477c96af73aed2cc67dd2635cf78b02a09f
             CAMTEST_BUILD_TS: 6/21/2021 18:46:48
             CAMTESTHOSTNAME : user-Precision-T1700 user-Precision-T1700 2001-b031-140c-0f00-0002-0000-0000-0113.hinet-ip6.hinet.net
             CAMBUILD_IP     : 172.17.0.1/16
            =====================================================================
Camera: 0 face:1
Camera: 1 face:2
Camera: 2 face:1
Camera: 3 face:1
CAM0>>A:id=2,psize=1920x1080,pformat=yuv420
Test camera:A:id=2,psize=1920x1080,pformat=yuv420
camera:2
preview size:1920x1080
preview format:yuv420
add a camera :2
gbm_create_device(156): Info: backend name is: msm_drm
preview:1920x1080 35
CAM2>>P:1
Test camera:P:1
preview dump:1/0 for cameraid:2.
CAM2>>s:1
Test camera:s:1
snapshot request:1
CAM2>>Q
Test camera:Q
quit
Exiting application!
root@qrb5165-rb5:~# ls /data/misc/camera
dv3_argmax_int32.tflite  mle_tflite.config  posenet_mobilenet_v1_075_481_641_quant.tflite
root@qrb5165-rb5:~#
--------------------------------------------------------------------------------------
 
 
--------------------------------------------------------------------------------------
root@qrb5165-rb5:~# camx-hal3-test
Enter Camera Testing
 
            ======================= Camera Test Version  =======================
             CAMTEST_SHA1    : 7e9df477c96af73aed2cc67dd2635cf78b02a09f
             CAMTEST_BUILD_TS: 6/21/2021 18:46:48
             CAMTESTHOSTNAME : user-Precision-T1700 user-Precision-T1700 2001-b031-140c-0f00-0002-0000-0000-0113.hinet-ip6.hinet.net
             CAMBUILD_IP     : 172.17.0.1/16
            =====================================================================
Camera: 0 face:1
Camera: 1 face:2
Camera: 2 face:1
Camera: 3 face:1
CAM0>>A:id=3,psize=1920x1080,pformat=yuv_ubwc,vsize=1920x1080,ssize=1928x1208,sformat=jpeg,fpsrange=30-30,codectype=0
Test camera:A:id=3,psize=1920x1080,pformat=yuv_ubwc,vsize=1920x1080,ssize=1928x1208,sformat=jpeg,fpsrange=30-30,codectype=0
camera:3
preview size:1920x1080
preview format:yuv_ubwc
video size:1920x1080
 video format:yuv420
snapshot size:1928x1208
snapshot format:jpeg
FPS_RANGE: min:30 max:30
codec type: 0
add a camera :3
preview stream max buffers: 12
video stream max buffers: 18
gbm_create_device(156): Info: backend name is: msm_drm
preview:1920x1080 34
video:1920x1080 35
snapshot:1928x1208 33
CAM3>>=========>>>catch signal 11 <<< from tid:5951======
Run cmd: cat /proc/5828/maps | grep '/usr' | grep 'r-xp' | tee /data/misc/camera/trace_5828[11].txt
557d427000-557d442000 r-xp 00000000 08:07 4138                           /usr/bin/camx-hal3-test
7f5320d000-7f55660000 r-xp 00000000 08:07 26515                          /usr/lib/libllvm-qcom.so
7f780b1000-7f7838e000 r-xp 00000000 08:07 26169                          /usr/lib/libCB.so
7f78400000-7f78417000 r-xp 00000000 08:07 26204                          /usr/lib/libOpenCL.so
7f78c12000-7f78c2d000 r-xp 00000000 08:07 26288                          /usr/lib/libcamxifestriping.so
7f78c3e000-7f78c5a000 r-xp 00000000 08:07 26290                          /usr/lib/libcamxtintlessalgo.so
7f78c80000-7f78cbd000 r-xp 00000000 08:07 26510                          /usr/lib/libipebpsstriping.so
7f78cce000-7f78cd2000 r-xp 00000000 08:07 26286                          /usr/lib/libcamxexternalformatutils.so
7f78ce3000-7f78d02000 r-xp 00000000 08:07 25100                          /usr/lib/com.qti.feature2.swmf.so
7f78d14000-7f78d33000 r-xp 00000000 08:07 25099                          /usr/lib/com.qti.feature2.stub.so
7f78d45000-7f78d67000 r-xp 00000000 08:07 25098                          /usr/lib/com.qti.feature2.serializer.so
7f78d7a000-7f78da1000 r-xp 00000000 08:07 25097                          /usr/lib/com.qti.feature2.rt.so
7f78db4000-7f78dd2000 r-xp 00000000 08:07 25096                          /usr/lib/com.qti.feature2.rawhdr.so
7f78de5000-7f78e00000 r-xp 00000000 08:07 25095                          /usr/lib/com.qti.feature2.qcfa.so
7f78e12000-7f78e3a000 r-xp 00000000 08:07 25094                          /usr/lib/com.qti.feature2.mfsr.so
7f78e4d000-7f78e6b000 r-xp 00000000 08:07 25093                          /usr/lib/com.qti.feature2.memcpy.so
7f78e7d000-7f78e9c000 r-xp 00000000 08:07 25092                          /usr/lib/com.qti.feature2.hdr.so
7f78eae000-7f78ed1000 r-xp 00000000 08:07 25090                          /usr/lib/com.qti.feature2.generic.so
7f78ee4000-7f78f07000 r-xp 00000000 08:07 25089                          /usr/lib/com.qti.feature2.fusion.so
7f78f1a000-7f78f3e000 r-xp 00000000 08:07 25088                          /usr/lib/com.qti.feature2.frameselect.so
7f78f51000-7f78f74000 r-xp 00000000 08:07 25087                          /usr/lib/com.qti.feature2.demux.so
7f78f86000-7f78fae000 r-xp 00000000 08:07 25086                          /usr/lib/com.qti.feature2.anchorsync.so
7f78fc0000-7f79032000 r-xp 00000000 08:07 25091                          /usr/lib/com.qti.feature2.gs.so
7f91451000-7f91452000 r-xp 00000000 08:07 26509                          /usr/lib/libion.so.0.0.0
7f91464000-7f915fc000 r-xp 00000000 08:07 26487                          /usr/lib/libgsl.so
7f9160f000-7f91621000 r-xp 00000000 08:07 26237                          /usr/lib/libadreno_utils.so
7f95e84000-7f95e85000 r-xp 00000000 08:07 24971                          /usr/lib/camera/com.qti.sensor.max9296a_ar0231.so
7f95e97000-7f95e98000 r-xp 00000000 08:07 24979                          /usr/lib/camera/com.qti.sensor.ov9282.so
7f95eaa000-7f95eab000 r-xp 00000000 08:07 24954                          /usr/lib/camera/com.qti.sensor.cmk_imx577.so
7f95ebc000-7f96087000 r-xp 00000000 08:07 26160                          /usr/lib/hw/com.qti.chi.override.so
7f961a9000-7f961ab000 r-xp 00000000 08:07 25052                          /usr/lib/camera/components/com.qti.hvx.binning.so
7f961bc000-7f961be000 r-xp 00000000 08:07 25051                          /usr/lib/camera/components/com.qti.hvx.addconstant.so
7f961cf000-7f961e0000 r-xp 00000000 08:07 25079                          /usr/lib/camera/components/com.qtistatic.stats.pdlib.so
7f961f2000-7f96205000 r-xp 00000000 08:07 25078                          /usr/lib/camera/components/com.qtistatic.stats.awb.so
7f96216000-7f9622a000 r-xp 00000000 08:07 25077                          /usr/lib/camera/components/com.qtistatic.stats.af.so
7f9623b000-7f9624e000 r-xp 00000000 08:07 25076                          /usr/lib/camera/components/com.qtistatic.stats.aec.so
7f96260000-7f96271000 r-xp 00000000 08:07 25075                          /usr/lib/camera/components/com.qti.stats.statsgenerator.so
7f96282000-7f96293000 r-xp 00000000 08:07 25074                          /usr/lib/camera/components/com.qti.stats.pdlibwrapper.so
7f962a4000-7f962b9000 r-xp 00000000 08:07 25073                          /usr/lib/camera/components/com.qti.stats.pdlibsony.so
7f962ca000-7f964f4000 r-xp 00000000 08:07 25072                          /usr/lib/camera/components/com.qti.stats.pdlib.so
7f9650a000-7f9651e000 r-xp 00000000 08:07 25071                          /usr/lib/camera/components/com.qti.stats.localhistogram.so
7f96530000-7f96543000 r-xp 00000000 08:07 25070                          /usr/lib/camera/components/com.qti.stats.hafoverride.so
7f96555000-7f96742000 r-xp 00000000 08:07 25069                          /usr/lib/camera/components/com.qti.stats.haf.so
7f96759000-7f9676b000 r-xp 00000000 08:07 25068                          /usr/lib/camera/components/com.qti.stats.awbwrapper.so
7f9677d000-7f9699b000 r-xp 00000000 08:07 25067                          /usr/lib/camera/components/com.qti.stats.awb.so
7f969b3000-7f96b63000 r-xp 00000000 08:07 25066                          /usr/lib/camera/components/com.qti.stats.asd.so
7f96b78000-7f96b89000 r-xp 00000000 08:07 25065                          /usr/lib/camera/components/com.qti.stats.afwrapper.so
7f96b9a000-7f96d55000 r-xp 00000000 08:07 25064                          /usr/lib/camera/components/com.qti.stats.afd.so
7f96d6a000-7f96f5c000 r-xp 00000000 08:07 25063                          /usr/lib/camera/components/com.qti.stats.af.so
7f96f72000-7f96f83000 r-xp 00000000 08:07 25062                          /usr/lib/camera/components/com.qti.stats.aecwrapper.so
7f96f94000-7f971c2000 r-xp 00000000 08:07 25061                          /usr/lib/camera/components/com.qti.stats.aec.so
7f971da000-7f971de000 r-xp 00000000 08:07 25060                          /usr/lib/camera/components/com.qti.node.stich.so
7f971ef000-7f971f4000 r-xp 00000000 08:07 25059                          /usr/lib/camera/components/com.qti.node.remosaic.so
7f97205000-7f97209000 r-xp 00000000 08:07 25058                          /usr/lib/camera/components/com.qti.node.memcpy.so
7f9721a000-7f9723e000 r-xp 00000000 08:07 25057                          /usr/lib/camera/components/com.qti.node.gpu.so
7f97250000-7f97256000 r-xp 00000000 08:07 25056                          /usr/lib/camera/components/com.qti.node.dummysat.so
7f97267000-7f9726c000 r-xp 00000000 08:07 25055                          /usr/lib/camera/components/com.qti.node.dummyrtb.so
7f9727d000-7f97282000 r-xp 00000000 08:07 25054                          /usr/lib/camera/components/com.qti.node.depth.so
7f98aef000-7f98af1000 r-xp 00000000 08:07 26733                          /usr/lib/libtime_genoff.so.1.0.0
7f98b02000-7f98b13000 r-xp 00000000 08:07 26399                          /usr/lib/libdsutils.so.1.0.0
7f98b25000-7f98b50000 r-xp 00000000 08:07 26389                          /usr/lib/libdiag.so.1.0.0
7f98dd6000-7f98ddf000 r-xp 00000000 08:07 26634                          /usr/lib/libqmi_client_qmux.so.1.0.0
7f98e25000-7f9908c000 r-xp 00000000 08:07 26602                          /usr/lib/libprotobuf.so.13.0.0
7f990aa000-7f990ab000 r-xp 00000000 08:07 26636                          /usr/lib/libqmi_common_so.so.1.0.0
7f990bc000-7f990c0000 r-xp 00000000 08:07 26640                          /usr/lib/libqmi_encdec.so.1.0.0
7f990d1000-7f990de000 r-xp 00000000 08:07 26630                          /usr/lib/libqmi_cci.so.1.0.0
7f990ef000-7f9920e000 r-xp 00000000 08:07 26704                          /usr/lib/libsnsapi.so.1.0.0
7f9922a000-7f99231000 r-xp 00000000 08:07 26563                          /usr/lib/libofflinelog.so
7f99242000-7f99278000 r-xp 00000000 08:07 26239                          /usr/lib/libadsprpc.so
7f9928e000-7f99a3c000 r-xp 00000000 08:07 26159                          /usr/lib/hw/camera.qcom.so
7f9ab5c000-7f9ab63000 r-xp 00000000 08:07 21005                          /usr/lib/aarch64-linux-gnu/libffi.so.6.0.4
7f9ab74000-7f9ab82000 r-xp 00000000 08:07 26779                          /usr/lib/libwayland-server.so.0
7f9ab94000-7f9abe8000 r-xp 00000000 08:07 26265                          /usr/lib/libbinder.so.0.0.0
7f9adf3000-7f9af68000 r-xp 00000000 08:07 22150                          /usr/lib/aarch64-linux-gnu/libstdc++.so.6.0.25
7f9af87000-7f9afa1000 r-xp 00000000 08:07 3132                           /opt/qcom/usr/lib/libgbm.so.gbm
7f9afb3000-7f9afd4000 r-xp 00000000 08:07 26283                          /usr/lib/libcamera_metadata.so.0.0.0
7f9afe7000-7f9aff0000 r-xp 00000000 08:07 26518                          /usr/lib/liblog.so.0.0.0
7f9b001000-7f9b01b000 r-xp 00000000 08:07 26766                          /usr/lib/libutils.so.0.0.0
7f9b02d000-7f9b03a000 r-xp 00000000 08:07 26381                          /usr/lib/libcutils.so.0.0.0
7f9b04c000-7f9b04e000 r-xp 00000000 08:07 26722                          /usr/lib/libsync.so.0.0.0
7f9b05f000-7f9b066000 r-xp 00000000 08:07 20773                          /usr/lib/aarch64-linux-gnu/libatomic.so.1.2.0
7f9b08d000-7f9b189000 r-xp 00000000 08:07 21144                          /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0.5600.4
7f9b29f000-7f9b2a0000 r-xp 00000000 08:07 25085                          /usr/lib/chilog.so
7f9b2b2000-7f9b2b7000 r-xp 00000000 08:07 26364                          /usr/lib/libcom.qti.chinodeutils.so
7f9b2c8000-7f9b2ce000 r-xp 00000000 08:07 25053                          /usr/lib/camera/components/com.qti.node.customhwnode.so
Dump stack start...
backtrace() returned 21 addresses
[00] camx-hal3-test(_ZN16QCamxHAL3TestLog4dumpEPc+0x30) [0x557d43c390]
[01] camx-hal3-test(_ZN16QCamxHAL3TestLog14signal_handlerEi+0x1bc) [0x557d43c704]
[02] linux-vdso.so.1(__kernel_rt_sigreturn+0) [0x7f9b30b584]
[03] /usr/lib/hw/com.qti.chi.override.so(_ZNK15ChiFeature2Base22SubmitRequestToSessionEP24ChiFeature2RequestObject+0x57c) [0x7f9601c43c]
[04] /usr/lib/com.qti.feature2.rt.so(_ZNK19ChiFeature2RealTime23OnExecuteProcessRequestEP24ChiFeature2RequestObject+0x7f8) [0x7f78d88860]
[05] /usr/lib/hw/com.qti.chi.override.so(_ZN15ChiFeature2Base27HandleExecuteProcessRequestEP24ChiFeature2RequestObject+0x154) [0x7f9601b354]
[06] /usr/lib/hw/com.qti.chi.override.so(_ZN15ChiFeature2Base16OnProcessRequestEP24ChiFeature2RequestObjecth+0x1d8) [0x7f9601acb8]
[07] /usr/lib/hw/com.qti.chi.override.so(_ZN15ChiFeature2Base14ProcessRequestEP24ChiFeature2RequestObject+0x138) [0x7f96019c08]
[08] /usr/lib/hw/com.qti.chi.override.so(_ZN16ChiFeature2Graph29ProcessUpstreamFeatureRequestEP31ChiFeature2UsecaseRequestObjectP20ChiFeature2GraphNode+0xc3c) [0x7f96008b24]
[09] /usr/lib/hw/com.qti.chi.override.so(_ZN16ChiFeature2Graph16WalkBackFromLinkEP31ChiFeature2UsecaseRequestObjectP24ChiFeature2GraphLinkData+0x22c) [0x7f96007b34]
[10] /usr/lib/hw/com.qti.chi.override.so(_ZN16ChiFeature2Graph19WalkAllExtSinkLinksEP31ChiFeature2UsecaseRequestObject+0x2f0) [0x7f96002fe0]
[11] /usr/lib/hw/com.qti.chi.override.so(_ZN23ChiFeature2GraphManager21ExecuteProcessRequestEP31ChiFeature2UsecaseRequestObject+0x2c8) [0x7f95ff4848]
[12] /usr/lib/hw/com.qti.chi.override.so(_ZN15Feature2Wrapper21ExecuteProcessRequestEP23camera3_capture_request+0x93c) [0x7f95feaa6c]
[13] /usr/lib/hw/com.qti.chi.override.so(_ZN21AdvancedCameraUsecase21ExecuteCaptureRequestEP23camera3_capture_request+0x438) [0x7f95fb3490]
[14] /usr/lib/hw/com.qti.chi.override.so(_ZN7Usecase21ProcessCaptureRequestEP23camera3_capture_request+0x800) [0x7f95f8da00]
[15] /usr/lib/hw/com.qti.chi.override.so(_ZN15ExtensionModule22OverrideProcessRequestEPK14camera3_deviceP23camera3_capture_requestPv+0x5f0) [0x7f95f74240]
[16] /usr/lib/hw/camera.qcom.so(_ZN4CamX9HALDevice21ProcessCaptureRequestEPNS_21Camera3CaptureRequestE+0xac) [0x7f9945a394]
[17] /usr/lib/hw/camera.qcom.so(+0x1c4888) [0x7f99452888]
[18] camx-hal3-test(_ZN19QCamxHAL3TestDevice24ProcessOneCaptureRequestEPiS0_+0x308) [0x557d434008]
[19] camx-hal3-test(_Z23doprocessCaptureRequestPv+0x300) [0x557d4344a0]
[20] /lib/aarch64-linux-gnu/libpthread.so.0(+0x7088) [0x7f9b273088]
Dump stack end...
Run cmd: ls -l /proc/5828/fd > /data/misc/camera/fd_5828[11].txt
Run cmd: cat /proc/5828/maps > /data/misc/camera/maps_5828[11].txt
Run cmd: cat /proc/meminfo > /data/misc/camera/meminfo_5828[11].txt
Run cmd: ps -T > /data/misc/camera/ps_5828[11].txt
Run cmd: top -b -n 1 > /data/misc/camera/top_5828[11].txt
--------------------------------------------------------------------------------------
 
  • Up0
  • Down0
jlowman
Join Date: 25 Aug 21
Posts: 16
Posted: Fri, 2021-09-03 10:44

hal3-test crashes on lots of things.  If you fail to release the last camera before starting a new camera it will crash.   If you can run hal3-test and don't crash but don't get any results it's possible that the parameters for the camera are incorrect.  It's easiest to look at both the ADB and /dev/kmsg logs to see what is happening.

Assuming that you don't crash the command by attaching to two cameras at the same time.  The command with take the parameters and then talk to the system and try to find a matching mode exposed by the camera driver.  If you pass incorrect parameters its possible that it simply silently fail without notification.  

If hal3-test crashes or if gstreamer crashes I recommend rebooting as the crash may have included parts of the camera system which may not recover fully.

Be careful when checking the output voltage on GMSL you can short and damage the chip.

gstreamer while hard to configure can also be helpful in that you can set the GST_DEBUG parameter to 1/2/3 and get a ton of information then filter through that and find the point of failure.

I'll try to pull the driver code and see if I can find the correct sensor parameters.  Camera commands tend to be very sensitive to the parameters that are passed and can be inconsistent in response depending on the point of failure.

  • Up0
  • Down0
hs
Join Date: 20 Aug 21
Posts: 7
Posted: Fri, 2021-09-03 14:35

Hi jlowman,

Thanks.

I tried to watch /dev/kmsg during test. Please see below. I rebooted before every try.

I also have /dev/kmsg dump between cam-hal3-test and its prompt. But it is pretty long, so I did not put it here.

It looks camera rejects or ignored i2c requests.

Are there any way to identify "id" for camera on "GMSL1" connector ?

 

TRY 1

-----------------------------------------------------------------------------------------------------------------------------------------
Reboot, camx-hal3-test from adb shell
 
A:id=2,psize=1920x1080,pformat=yuv420
 
/dev/kmsg
-----------------------------------------------------------------------------------------------------------------------------------------
6,3325,392308842,-;qcom,camera ac50000.qcom,cci:qcom,cam-sensor4: Linked as a consumer to regulator.57
 SUBSYSTEM=platform
 DEVICE=+platform:ac50000.qcom,cci:qcom,cam-sensor4
6,3326,392356245,-;CAM_INFO: CAM-HFI: cam_hfi_resume: 679 Resume IO1 : [0x10c00000 0xcf300000] IO2 [0xe0200000 0x1ed00000]
6,3327,392360287,-;camx-hal3-test (2902) used greatest stack depth: 9264 bytes left
6,3328,392648356,-;CAM_INFO: CAM-SENSOR: cam_sensor_driver_cmd: 872 CAM_ACQUIRE_DEV Success, sensor_id:0x9407,sensor_slave_addr:0x90
6,3329,392911619,-;CAM_ERR: CAM-CCI: cam_cci_irq: 264 Base:ffffff8019865000, M1_Q1 NACK ERROR: 0x40000000
6,3330,392912099,-;CAM_ERR: CAM-CCI: cam_cci_read: 1329 ERROR with Slave 0xe4:
6,3331,392912138,-;CAM_ERR: CAM-CCI: cam_cci_read_bytes: 1613 failed to read rc:-22
6,3332,392912187,-;CAM_ERR: CAM-SENSOR: cam_sensor_i2c_read_data: 867 failed: seq read I2C settings: -22
6,3333,392912200,-;CAM_ERR: CAM-SENSOR: cam_sensor_apply_settings: 1301 Failed to apply settings: -22
6,3334,392912211,-;CAM_ERR: CAM-SENSOR: cam_sensor_driver_cmd: 1065 cannot apply read settings
 
 
TRY 2
-----------------------------------------------------------------------------------------------------------------------------------------
Reboot, camx-hal3-test from adb shell
 
A:id=2,psize=1928x1208,pformat=raw12
 
/dev/kmsg
-----------------------------------------------------------------------------------------------------------------------------------------
6,3190,115452375,-;qcom,camera ac50000.qcom,cci:qcom,cam-sensor4: Linked as a consumer to regulator.57
 SUBSYSTEM=platform
 DEVICE=+platform:ac50000.qcom,cci:qcom,cam-sensor4
6,3191,115788107,-;CAM_INFO: CAM-SENSOR: cam_sensor_driver_cmd: 872 CAM_ACQUIRE_DEV Success, sensor_id:0x9407,sensor_slave_addr:0x90
6,3192,116050596,-;CAM_ERR: CAM-CCI: cam_cci_irq: 264 Base:ffffff801987d000, M1_Q1 NACK ERROR: 0x40000000
6,3193,116051158,-;CAM_ERR: CAM-CCI: cam_cci_read: 1329 ERROR with Slave 0xe4:
6,3194,116051190,-;CAM_ERR: CAM-CCI: cam_cci_read_bytes: 1613 failed to read rc:-22
6,3195,116051248,-;CAM_ERR: CAM-SENSOR: cam_sensor_i2c_read_data: 867 failed: seq read I2C settings: -22
6,3196,116051268,-;CAM_ERR: CAM-SENSOR: cam_sensor_apply_settings: 1301 Failed to apply settings: -22
6,3197,116051280,-;CAM_ERR: CAM-SENSOR: cam_sensor_driver_cmd: 1065 cannot apply read settings
 
 
TRY 3
-----------------------------------------------------------------------------------------------------------------------------------------
Reboot, camx-hal3-test from adb shell
 
A:id=3,psize=1920x1080,pformat=yuv420
 
/dev/kmsg
-----------------------------------------------------------------------------------------------------------------------------------------
6,3164,258576012,-;qcom,camera ac50000.qcom,cci:qcom,cam-sensor5: Linked as a consumer to regulator.57
 SUBSYSTEM=platform
 DEVICE=+platform:ac50000.qcom,cci:qcom,cam-sensor5
6,3165,258617639,-;CAM_INFO: CAM-HFI: cam_hfi_resume: 679 Resume IO1 : [0x10c00000 0xcf300000] IO2 [0xe0200000 0x1ed00000]
6,3166,258620776,-;camx-hal3-test (2807) used greatest stack depth: 9488 bytes left
6,3167,258901024,-;CAM_INFO: CAM-SENSOR: cam_sensor_driver_cmd: 872 CAM_ACQUIRE_DEV Success, sensor_id:0x9407,sensor_slave_addr:0x90
6,3168,259014182,-;CAM_ERR: CAM-CCI: cam_cci_irq: 264 Base:ffffff8018f8d000, M1_Q1 NACK ERROR: 0x40000000
6,3169,259014708,-;CAM_ERR: CAM-CCI: cam_cci_read: 1329 ERROR with Slave 0xc4:
6,3170,259014747,-;CAM_ERR: CAM-CCI: cam_cci_read_bytes: 1613 failed to read rc:-22
6,3171,259014802,-;CAM_ERR: CAM-SENSOR: cam_sensor_i2c_read_data: 867 failed: seq read I2C settings: -22
6,3172,259014829,-;CAM_ERR: CAM-SENSOR: cam_sensor_apply_settings: 1301 Failed to apply settings: -22
6,3173,259014840,-;CAM_ERR: CAM-SENSOR: cam_sensor_driver_cmd: 1065 cannot apply read settings
 
 
TRY 4
-----------------------------------------------------------------------------------------------------------------------------------------
Reboot, camx-hal3-test from adb shell
 
A:id=3,psize=1928x1208,pformat=raw12
 
/dev/kmsg
-----------------------------------------------------------------------------------------------------------------------------------------
6,3136,106937477,-;qcom,camera ac50000.qcom,cci:qcom,cam-sensor5: Linked as a consumer to regulator.57
 SUBSYSTEM=platform
 DEVICE=+platform:ac50000.qcom,cci:qcom,cam-sensor5
6,3143,107272590,-;CAM_INFO: CAM-SENSOR: cam_sensor_driver_cmd: 872 CAM_ACQUIRE_DEV Success, sensor_id:0x9407,sensor_slave_addr:0x90
6,3144,107382945,-;CAM_ERR: CAM-CCI: cam_cci_irq: 264 Base:ffffff8018fbd000, M1_Q1 NACK ERROR: 0x40000000
6,3145,107383188,-;CAM_ERR: CAM-CCI: cam_cci_read: 1329 ERROR with Slave 0xc4:
6,3146,107383228,-;CAM_ERR: CAM-CCI: cam_cci_read_bytes: 1613 failed to read rc:-22
6,3147,107383275,-;CAM_ERR: CAM-SENSOR: cam_sensor_i2c_read_data: 867 failed: seq read I2C settings: -22
6,3148,107383288,-;CAM_ERR: CAM-SENSOR: cam_sensor_apply_settings: 1301 Failed to apply settings: -22
6,3149,107383299,-;CAM_ERR: CAM-SENSOR: cam_sensor_driver_cmd: 1065 cannot apply read settings
 
 
 
FOR ALL TRY,
After A command,
both P:0 and s:0 commands output nothing on /dev/kmsg
 
 
 
  • Up0
  • Down0
jlowman
Join Date: 25 Aug 21
Posts: 16
Posted: Thu, 2021-09-09 14:28

The i2 errors most likely indicate that the system is trying to configure the camera but there is no camera present on that connection or that the system can't talk to the camera.

  • Up0
  • Down0
jlowman
Join Date: 25 Aug 21
Posts: 16
Posted: Thu, 2021-09-09 14:28

The i2 errors most likely indicate that the system is trying to configure the camera but there is no camera present on that connection or that the system can't talk to the camera.

  • Up0
  • Down0
hs
Join Date: 20 Aug 21
Posts: 7
Posted: Mon, 2021-09-13 10:28

Hi,

Does it mean current LU firmware for RB5 does not support LI-AR0231-GMSL2-CFM-176H-010 ?

 

 

 

 

  • Up0
  • Down0
max.goncharuk
Join Date: 29 Oct 21
Posts: 3
Posted: Mon, 2021-11-15 06:35

Hi HS,

have you finally make this GMSL camera work with RB5? I'm looking now some options to connect cameras to Vizion mezzanine .

Regards, Max.

  • Up0
  • Down0
hs
Join Date: 20 Aug 21
Posts: 7
Posted: Mon, 2021-11-15 09:16

Hi Max,

No luck. I tried to dig into lower level source code but all lower level camera access code is closed source. I just found binary only.

I guess my camera is broken.

I couldn't find a way to determine if the camera was dead or alive.

Please let me know if your camera worked with RB5.

 

Thanks,

 

 

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.