This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A7-Q1: set the camera for imx623

Part Number: AM62A7-Q1

Tool/software:

using the sensor IMX623 output setting is 1920*1536 raw12 30fps.

and add the imx623.c driver into project.

right now check with the MIPI CSI input that the UB960 will output the MIPI signal.

the register share that the signal is already send out from UB960.


root@am62axx-evm:/opt/edgeai-gst-apps# i2ctransfer -y 2 w1@0x30 0x73  r4
0x06 0x14 0x0b 0x58

but how to modify the app and driver to receive the signal.  check with the information here is below:

I need to update the raw and image size in the application. but  after power on. the received information below share.





root@am62axx-evm:/opt/edgeai-gst-apps#  media-ctl -p
Media controller API version 6.6.58

Media device information
------------------------
driver          j721e-csi2rx
model           TI-CSI2RX
serial          
bus info        platform:30102000.ticsi2rx
hw revision     0x1
driver version  6.6.58

Device topology
- entity 1: 30102000.ticsi2rx (7 pads, 7 links, 1 route)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
    routes:
        0/0 -> 1/0 [ACTIVE]
    pad0: Sink
        [stream:0 fmt:SRGGB8_1X8/1920x1080 field:none]
        <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
    pad1: Source
        [stream:0 fmt:SRGGB8_1X8/1920x1080 field:none]
        -> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
    pad2: Source
        -> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
    pad3: Source
        -> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
    pad4: Source
        -> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
    pad5: Source
        -> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
    pad6: Source
        -> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]

- entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev1
    routes:
        0/0 -> 1/0 [ACTIVE]
    pad0: Sink
        [stream:0 fmt:SRGGB8_1X8/1920x1080 field:none]
        <- "imx219 2-003c":0 [ENABLED,IMMUTABLE]
    pad1: Source
        [stream:0 fmt:SRGGB8_1X8/1920x1080 field:none]
        -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
    pad2: Source
    pad3: Source
    pad4: Source



  • Hi Meng,

    root@am62axx-evm:/opt/edgeai-gst-apps#  media-ctl -p

    Did you provide the complete log? The log indicated that the sensor wasn't probed.

    Please check the AM62A Linux Academy on how to enable a new CSI-2 sensor  (scroll to "Enable A New CSI-2 Sensor") and see if you miss anything.

    Regards,

    Jianzhong

  • Hello Mr Xu Jianzhong:


    i have already set the imx623 driver. and link the imx623 to  v4l2. 

    and I have check with register with the UB960.  It show that the UB960 have output the MIPI signal. 

    Here is the Log file when i run the application :


    [00:13:09.000.000139]:ERROR:[inferenceThread:0302] Could not get 'input' buffer from Gstreamer   790.111518 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffffa9e07cf0 of type 00000817 a
    root@am62axx-evm:/opt/edgeai-gst-apps#



    below is the log after implement "media-ctl -p" 
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial          
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  6.6.58

    Device topology
    - entity 1: 30102000.ticsi2rx (7 pads, 7 links, 1 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev0
            routes:
                    0/0 -> 1/0 [ACTIVE]
            pad0: Sink
                    [stream:0 fmt:SRGGB12_1X12/1920x1536 field:none]
                    <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:SRGGB12_1X12/1920x1536 field:none]
                    -> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
            pad2: Source
                    -> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
            pad3: Source
                    -> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
            pad4: Source
                    -> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
            pad5: Source
                    -> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
            pad6: Source
                    -> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]

    - entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev1
            routes:
                    0/0 -> 1/0 [ACTIVE]
            pad0: Sink
                    [stream:0 fmt:SRGGB12_1X12/1920x1536 field:none]
                    <- "imx219 2-003c":0 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:SRGGB12_1X12/1920x1536 field:none]
                    -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
            pad2: Source
            pad3: Source
            pad4: Source

    - entity 15: imx219 2-003c (1 pad, 1 link, 0 routes)
                 type V4L2 subdev subtype Sensor flags 0
                 device node name /dev/v4l-subdev2
            pad0: Source
                    [stream:0 fmt:SRGGB12_1X12/1920x1536 field:none colorspace:raw xfer:none quantization:full-range
                     crop.bounds:(8,8)/3280x2464
                     crop:(688,700)/1920x1536]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]

    - entity 21: 30102000.ticsi2rx context 0 (1 pad, 1 link)

  • and I have check with register with the UB960.  It show that the UB960 have output the MIPI signal. 

    Are you using an FPD-Link camera module? I don't see ub960 or ub953 in the "media-ctl -p" output. Please check the AM62A Academy on using cameras (scroll to FPD-Link Camera).

    Regards,

    Jianzhong

  • Hello Mr Xu Jianzhong:


           the evm board support raw8 and raw10 camera(imx219). and after i change the camera setting to raw12. application can not running.   

           I have implement a test step to compare what the different with raw 10 and raw12. Here is the step:

    for Raw10 Image(Work OK):
           1. Update the UB953 register to allow the 953 to generate pattern image. with 1920*1080@raw10
           2. download the linux driver into the project.
           3. using below command to set the v4l2 driver

    media-ctl -V '"imx219 2-003c":0 [fmt:SRGGB10_1X10/1920x1080 field:none]'
    media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0 [fmt:SRGGB10_1X10/1920x1080 field:none]'
    media-ctl -V '"30102000.ticsi2rx":0 [fmt:SRGGB10_1X10/1920x1080 field:none]'

           4. change the app_edgeai file to change the ISP file dcc_viss&dcc_2a file and formatmsb = 9. and change the .yaml to rggb10

          and download the software. and running the software.  It can work and calor bar is correct

    for Raw12 Image(Work NOK):
           1. Update the UB953 register to allow the 953 to generate pattern image. with 1920*1080@raw12

    and add MEDIA_BUS_FMT_SRGGB12_1X12 in to imx219_mbus_formats into imx219.c
           2. download the linux driver into the project.
           3. using below command to set the v4l2 driver

    media-ctl -V '"imx219 2-003c":0 [fmt:SRGGB12_1X12/1920x1080 field:none]'
    media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0 [fmt:SRGGB12_1X12/1920x1080 field:none]'
    media-ctl -V '"30102000.ticsi2rx":0 [fmt:SRGGB12_1X12/1920x1080 field:none]'

           4. change the app_edgeai file to change the ISP file dcc_viss&dcc_2a file and formatmsb = 11. and change the .yaml to rggb12

          and download the software. and running the software.  There are no color bar display
          and by the way. To check the register in  show that video is correct send out.


         Did there are some guide to show how video input to SOC. and what kind of step can i check with the SOC . I am sure that there are no issue in Serdes and Senor. and the reception for MIPI CSI is not correct.

  • Hi Meng,

    When you switch to Raw12, I would recommend you to first validate the CSI capture by just using v4l2-ctl or yavta to capture. That way, you'll isolate any issues of ISP configuration.

    Regards,

    Jianzhong

  • Hello Xu Jianzhong:

          I have check the problem. It come from the ISP issue. I using the default ISP find that i create in my PC. Video work ok. 

          But when I using the isp file that send by TI local support department. No Camera can be display.

          Can you share we the ISP file(dcc_2a.bin & dcc_viss.bin).  thanks very much


  • HI Meng,

    I am confused what sensor you are using. Are you using imx623 or imx219? If you are using imx623, please provide the log of gstreamer with GST_DEBUG=2

    Regards,

    Adam

  • Hello Adam:

    we are using imx623 for production.name is  IMX219 camera is IMX623.

    the trace,log is empty while using GST_DEBUG=2 .


    Here is the  log that the system during app exit

    [   54.769001] imx219 2-003c: imx219_set_stream imx219_set_stream
    [   54.774868] imx219 2-003c: Kemeng: imx219_stop_streaming Enter
    [   54.781189] imx219 2-003c: Kemeng: imx219_power_off set imx219->reset_gpio 0
    [00:00:59.000.000143]:ERROR:[inferenceThread:0302] Could not get 'input' buffer from Gstreamer    60.303347 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xfff
    f97217cf0 of type 00000817 at external count 1, internal count 0, releasing it
        60.303400 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=raw_image_92) now as a part of garbage collection
        60.303433 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff9720b460 of type 00000816 at external count 1, internal count 0, releasing it
        60.303446 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=user_data_object_105) now as a part of garbage collection
        60.303506 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff9720bd20 of type 00000816 at external count 1, internal count 0, releasing it
        60.303521 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=user_data_object_117) now as a part of garbage collection
        60.303606 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff9723f150 of type 0000080f at external count 1, internal count 0, releasing it
        60.303621 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=image_162) now as a part of garbage collection
        60.303644 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff972bc200 of type 00000813 at external count 1, internal count 0, releasing it
        60.303656 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=object_array_170) now as a part of garbage collection
        60.303679 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff9720c5e0 of type 00000816 at external count 1, internal count 0, releasing it
        60.303691 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=user_data_object_171) now as a part of garbage collection
        60.303711 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff972bc3b0 of type 00000813 at external count 1, internal count 0, releasing it
        60.303723 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=object_array_204) now as a part of garbage collection
        60.303743 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff97218f30 of type 00000817 at external count 1, internal count 0, releasing it
        60.303756 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=raw_image_205) now as a part of garbage collection
        60.304271 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff972bc560 of type 00000813 at external count 1, internal count 0, releasing it
        60.304285 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=object_array_206) now as a part of garbage collection
        60.304306 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff9720c810 of type 00000816 at external count 1, internal count 0, releasing it
        60.304319 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=user_data_object_207) now as a part of garbage collection
        60.304338 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff972bc710 of type 00000813 at external count 1, internal count 0, releasing it
        60.304350 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=object_array_208) now as a part of garbage collection
        60.304369 s:  VX_ZONE_WARNING: [vxReleaseContext:1275] Found a reference 0xffff9723f6f0 of type 0000080f at external count 1, internal count 0, releasing it
        60.304382 s:  VX_ZONE_WARNING: [vxReleaseContext:1277] Releasing reference (name=image_209) now as a part of garbage collection
    APP: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... Done !!!
        60.310216 s: IPC: Deinit ... !!!
        60.310755 s: IPC: DeInit ... Done !!!
        60.310804 s: MEM: Deinit ... !!!
        60.310987 s: DDR_SHARED_MEM: Alloc's: 54 alloc's of 76067100 bytes
        60.311004 s: DDR_SHARED_MEM: Free's : 54 free's  of 76067100 bytes
        60.311015 s: DDR_SHARED_MEM: Open's : 0 allocs  of 0 bytes
        60.311029 s: MEM: Deinit ... Done !!!
    APP: Deinit ... Done !!!
    root@am62axx-evm:/opt/edgeai-gst-apps#
    root@am62axx-evm:/opt/edgeai-gst-apps#





  • If you run like GST_DEBUG=2 gst-lauch-1.0 xxx the log will just be printed.

    Regards,

    Adam

  • . I using the default ISP find that i create in my PC. Video work ok. 

    What is the dcc Id you used when generate the dcc bins?

    Regards,

    Adam