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.

TDA4VM: TDA4:J721EXCPXEVM,imx390怎么去捕获图片或者视频流

Part Number: TDA4VM
Other Parts Discussed in Thread: PCM3168A, J721EXCPXEVM

Hi, Ti
I would like to ask you a question. I am debugging ub960-ub953-imx390 now. The sensor has been loaded successfully, but how to capture pictures or video streams? Can you tell me some commands?

IMX390 Camera 0 detected
    device = /dev/video-imx390-cam0
    name = imx390
    format = [fmt:SRGGB12_1X12/1936x1100 field: none]
    subdev_id = /dev/v4l-imx390-subdev0
    isp_required = yes
    ldc_required = yes

Media controller API version 6.1.80

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

Device topology
- entity 1: 4500000.ticsi2rx (17 pads, 17 links, 1 route)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        routes:
                0/0 -> 2/0 [ACTIVE]
        pad0: Sink
                [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                <- "cdns_csi2rx.4504000.csi-bridge":1 [ENABLED,IMMUTABLE]
        pad1: Source
                -> "4500000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
        pad2: Source
                [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                -> "4500000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
        pad3: Source
                -> "4500000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
        pad4: Source
                -> "4500000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
        pad5: Source
                -> "4500000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
        pad6: Source
                -> "4500000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]
        pad7: Source
                -> "4500000.ticsi2rx context 6":0 [ENABLED,IMMUTABLE]
        pad8: Source
                -> "4500000.ticsi2rx context 7":0 [ENABLED,IMMUTABLE]
        pad9: Source
                -> "4500000.ticsi2rx context 8":0 [ENABLED,IMMUTABLE]
        pad10: Source
                -> "4500000.ticsi2rx context 9":0 [ENABLED,IMMUTABLE]
        pad11: Source
                -> "4500000.ticsi2rx context 10":0 [ENABLED,IMMUTABLE]
        pad12: Source
                -> "4500000.ticsi2rx context 11":0 [ENABLED,IMMUTABLE]
        pad13: Source
                -> "4500000.ticsi2rx context 12":0 [ENABLED,IMMUTABLE]
        pad14: Source
                -> "4500000.ticsi2rx context 13":0 [ENABLED,IMMUTABLE]
        pad15: Source
                -> "4500000.ticsi2rx context 14":0 [ENABLED,IMMUTABLE]
        pad16: Source
                -> "4500000.ticsi2rx context 15":0 [ENABLED,IMMUTABLE]

- entity 19: cdns_csi2rx.4504000.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/1936x1100 field:none]
                <- "ds90ub960 5-003d":4 [ENABLED,IMMUTABLE]
        pad1: Source
                [stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
                -> "4500000.ticsi2rx":0 [ENABLED,IMMUTABLE]
        pad2: Source
        pad3: Source
        pad4: Source

- entity 25: ds90ub960 5-003d (6 pads, 2 links, 1 route)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev2
        routes:
                0/0 -> 4/0 [ACTIVE]
        pad0: Sink
                [stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
                <- "ds90ub953 5-0044":1 [ENABLED,IMMUTABLE]
        pad1: Sink
        pad2: Sink
        pad3: Sink
        pad4: Source
                [stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
                -> "cdns_csi2rx.4504000.csi-bridge":0 [ENABLED,IMMUTABLE]
        pad5: Source

- entity 34: ds90ub953 5-0044 (2 pads, 2 links, 1 route)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev3
        routes:
                0/0 -> 1/0 [ACTIVE]
        pad0: Sink
                [stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
                <- "imx390 7-001a":0 [ENABLED,IMMUTABLE]
        pad1: Source
                [stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
                -> "ds90ub960 5-003d":0 [ENABLED,IMMUTABLE]

- entity 39: imx390 7-001a (1 pad, 1 link, 2 routes)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev4
        routes:
                0/0 -> 0/0 [ACTIVE]
                0/0 -> 0/1 [INACTIVE]
        pad0: Source
                [stream:0 fmt:SRGGB12_1X12/1920x1290@1/30 field:none colorspace:smpte170m]
                -> "ds90ub953 5-0044":0 [ENABLED,IMMUTABLE]

- entity 45: 4500000.ticsi2rx context 0 (1 pad, 1 link, 0 route)
             type Node subtype V4L flags 0
             device node name /dev/video2
        pad0: Sink
                <- "4500000.ticsi2rx":1 [ENABLED,IMMUTABLE]

- entity 51: 4500000.ticsi2rx context 1 (1 pad, 1 link, 0 route)
             type Node subtype V4L flags 0
             device node name /dev/video3
        pad0: Sink
                <- "4500000.ticsi2rx":2 [ENABLED,IMMUTABLE]

- entity 57: 4500000.ticsi2rx context 2 (1 pad, 1 link, 0 route)
             type Node subtype V4L flags 0
             device node name /dev/video4
        pad0: Sink
                <- "4500000.ticsi2rx":3 [ENABLED,IMMUTABLE]

- entity 63: 4500000.ticsi2rx context 3 (1 pad, 1 link, 0 route)
             type Node subtype V4L flags 0
             device node name /dev/video5
        pad0: Sink
                <- "4500000.ticsi2rx":4 [ENABLED,IMMUTABLE]

- entity 69: 4500000.ticsi2rx context 4 (1 pad, 1 link, 0 route)
             type Node subtype V4L flags 0
             device node name /dev/video6
        pad0: Sink
                <- "4500000.ticsi2rx":5 [ENABLED,IMMUTABLE]

- entity 75: 4500000.ticsi2rx context 5 (1 pad, 1 link, 0 route)
             type Node subtype V4L flags 0
             device node name /dev/video7
        pad0: Sink
                <- "4500000.ticsi2rx":6 [ENABLED,IMMUTABLE]

- entity 81: 4500000.ticsi2rx context 6 (1 pad, 1 link, 0 route)
             type Node subtype V4L flags 0
             device node name /dev/video8
        pad0: Sink
                <- "4500000.ticsi2rx":7 [ENABLED,IMMUTABLE]

- entity 87: 4500000.ticsi2rx context 7 (1 pad, 1 link, 0 route)
             type Node subtype V4L flags 0
             device node name /dev/video9
        pad0: Sink
                <- "4500000.ticsi2rx":8 [ENABLED,IMMUTABLE]

- entity 93: 4500000.ticsi2rx context 8 (1 pad, 1 link, 0 route)
             type Node subtype V4L flags 0
             device node name /dev/video10
        pad0: Sink
                <- "4500000.ticsi2rx":9 [ENABLED,IMMUTABLE]

- entity 99: 4500000.ticsi2rx context 9 (1 pad, 1 link, 0 route)
             type Node subtype V4L flags 0
             device node name /dev/video11
        pad0: Sink
                <- "4500000.ticsi2rx":10 [ENABLED,IMMUTABLE]

- entity 105: 4500000.ticsi2rx context 10 (1 pad, 1 link, 0 route)
              type Node subtype V4L flags 0
              device node name /dev/video12
        pad0: Sink
                <- "4500000.ticsi2rx":11 [ENABLED,IMMUTABLE]

- entity 111: 4500000.ticsi2rx context 11 (1 pad, 1 link, 0 route)
              type Node subtype V4L flags 0
              device node name /dev/video13
        pad0: Sink
                <- "4500000.ticsi2rx":12 [ENABLED,IMMUTABLE]

- entity 117: 4500000.ticsi2rx context 12 (1 pad, 1 link, 0 route)
              type Node subtype V4L flags 0
              device node name /dev/video14
        pad0: Sink
                <- "4500000.ticsi2rx":13 [ENABLED,IMMUTABLE]

- entity 123: 4500000.ticsi2rx context 13 (1 pad, 1 link, 0 route)
              type Node subtype V4L flags 0
              device node name /dev/video15
        pad0: Sink
                <- "4500000.ticsi2rx":14 [ENABLED,IMMUTABLE]

- entity 129: 4500000.ticsi2rx context 14 (1 pad, 1 link, 0 route)
              type Node subtype V4L flags 0
              device node name /dev/video16
        pad0: Sink
                <- "4500000.ticsi2rx":15 [ENABLED,IMMUTABLE]

- entity 135: 4500000.ticsi2rx context 15 (1 pad, 1 link, 0 route)
              type Node subtype V4L flags 0
              device node name /dev/video17
        pad0: Sink
                <- "4500000.ticsi2rx":16 [ENABLED,IMMUTABLE]

I use the   yavta -c Fcapture -s 1936x1100 -f SRGGB12 /dev/video2 command to report a kernel crash,Can you help me to see what the problem is, I have delayed for a long time

yavta -c -Fcapture -s 1936x1100 -f SRGGB12 /dev/video2
Device /dev/video2 opened.
Device `j721e-csi2rx' on `platform:4510000.ticsi2rx' (driver 'j721e-csi2rx') supports video, capture, without mplanes.
Video format set: SRGGB12 (32314752) 1936x1100 (stride 3872) field none buffer size 4259200
Video format: SRGGB12 (32314752) 1936x1100 (stride 3872) field none buffer size 4259200
8 buffers requested.
[   66.517857] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010

Buffer 0/0 mapped at address 0xffffa9110000.
length: 4259200 o[   66.527940] Mem abort info:
ffset: 4259840 timestamp type/source: mono/EoF
Buffer 1/0 mappe[   66.536276]   ESR = 0x0000000096000006
d at address 0xffffa8d00000.
length: 4259200 offset: 8519680 ti[   66.545560]   EC = 0x25: DABT (current EL), IL = 32 bits
mestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0xff[   66.556404]   SET = 0, FnV = 0
ffa88f0000.
length: 4259200 offset: 12779520 timestamp type/sou[   66.564995]   EA = 0, S1PTW = 0
rce: mono/EoF
Buffer 3/0 mapped at address 0xffffa84e0000.
len[   66.573675]   FSC = 0x06: level 2 translation fault
gth: 4259200 offset: 17039360 timestamp type/source: mono/EoF
B[   66.584083] Data abort info:
uffer 4/0 mapped at address 0xffffa80d0000.
length: 4259200 off[   66.592501]   ISV = 0, ISS = 0x00000006
set: 21299200 timestamp type/source: mono/EoF
Buffer 5/0 mapped[   66.601891]   CM = 0, WnR = 0
 at address 0xffffa7cc0000.
length: 4259200 offset: 25559040 ti[   66.610387] user pgtable: 4k pages, 48-bit VAs, pgdp=00000008ad95f000
mestamp type/source: mono/EoF
Buffer 6/0 mapped at address 0xff[   66.622354] [0000000000000010] pgd=08000008ae91b003, p4d=08000008ae91b003, pud=08000008b72a2003, pmd=0000000000000000
ffa78b0000.
length: 4259200 offset: 29818880 timestamp type/sou[   66.638682] Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
[   66.650261] Modules linked in: imx390 xhci_plat_hcd pci_endpoint_test ds90ub953 ti_am335x_adc kfifo_buf irq_pruss_intc cdns_csi2rx pru_rproc rpmsg_ctrl rpmsg_char cdns_pltfrm omap_rng cdns3 cdns_usb_common snd_soc_j721e_evm crct10dif_ce display_connector phy_can_transceiver overlay cfg80211 bluetooth ecdh_generic ecc ti_k3_r5_remoteproc rfkill k3_j72xx_bandgap pruss ti_am335x_tscadc cdns_mhdp8546 tidss drm_display_helper vxd_dec vxe_enc j721e_csi2rx drm_dma_helper videobuf2_dma_sg ds90ub960 videobuf2_dma_contig drm_kms_helper v4l2_mem2mem videobuf2_memops v4l2_fwnode syscopyarea ti_j721e_ufs videobuf2_v4l2 sysfillrect pvrsrvkm(O) i2c_atr ti_k3_dsp_remoteproc sysimgblt v4l2_async videobuf2_common fb_sys_fops sa2ul virtio_rpmsg_bus rpmsg_ns videodev ti_k3_common snd_soc_davinci_mcasp m_can_platform cdns_dphy_rx snd_soc_pcm3168a_i2c m_can snd_soc_ti_udma mc snd_soc_pcm3168a pci_j721e_host snd_soc_ti_edma can_dev snd_soc_ti_sdma pci_j721e pcie_cadence_host pcie_cadence rti_wdt cdns3_ti
[   66.650379]  ina2xx optee_rng rng_core cryptodev(O) fuse drm drm_panel_orientation_quirks ipv6
[   66.745739] CPU: 0 PID: 1812 Comm: yavta Tainted: G           O       6.1.80-ti-g2e423244f8c0 #1
[   66.754503] Hardware name: Texas Instruments J721e EVM (DT)
[   66.760058] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   66.767001] pc : ub960_get_frame_desc+0x10c/0x360 [ds90ub960]
[   66.772741] lr : ub960_get_frame_desc+0xdc/0x360 [ds90ub960]
[   66.852856] Call trace:
[   66.855289]  ub960_get_frame_desc+0x10c/0x360 [ds90ub960]
[   66.860675]  csi2rx_get_frame_desc+0x80/0xc0 [cdns_csi2rx]
[   66.866149]  ti_csi2rx_get_vc+0x104/0x124 [j721e_csi2rx]
[   66.871449]  ti_csi2rx_start_streaming+0x120/0x290 [j721e_csi2rx]
[   66.877528]  vb2_start_streaming+0x68/0x15c [videobuf2_common]
[   66.883352]  vb2_core_streamon+0x90/0x190 [videobuf2_common]
[   66.889000]  vb2_ioctl_streamon+0x5c/0xb0 [videobuf2_v4l2]
[   66.894478]  v4l_streamon+0x24/0x30 [videodev]
[   66.898933]  __video_do_ioctl+0x18c/0x3dc [videodev]
[   66.903903]  video_usercopy+0x21c/0x6d0 [videodev]
[   66.908699]  video_ioctl2+0x18/0x30 [videodev]
[   66.913148]  v4l2_ioctl+0x40/0x60 [videodev]
[   66.917425]  __arm64_sys_ioctl+0xa8/0xf0
[   66.921341]  invoke_syscall+0x48/0x114
[   66.925079]  el0_svc_common.constprop.0+0xd4/0xfc
[   66.929768]  do_el0_svc+0x20/0x30
[   66.933070]  el0_svc+0x28/0xa0
[   66.936114]  el0t_64_sync_handler+0xbc/0x140
[   66.940371]  el0t_64_sync+0x18c/0x190
[   66.944023] Code: 6b070007 1a8020fa 8b1a0ec0 f9405401 (f9400820)
[   66.950099] ---[ end trace 0000000000000000 ]---
rce: mono/EoF
Buffer 7/0 mapped at address 0xffffa74a0000.

Looking forward to your reply very much!

  • 您好,Alice

    我是想适配ox03c10,在imx390的驱动上修改为ox03c10的驱动,我按照您提供的FAQ中的方式,在最后一步test camera中,执行./apps_python/app_edgeai.py configs/imx390_cam_example.yaml,没有成功,log如下:

    libtidl_onnxrt_EP loaded 0x23835740
    Final number of subgraphs created are : 1, - Offloaded Nodes - 283, Total Nodes - 283
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=5) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
      1209.955756 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
      1209.955836 s:  VX_ZONE_INIT:Enabled
      1209.955843 s:  VX_ZONE_ERROR:Enabled
      1209.955849 s:  VX_ZONE_WARNING:Enabled
      1209.956414 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-0
      1209.956536 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-1
      1209.956629 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-2
      1209.956720 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-3
      1209.956729 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
      1209.957249 s:  VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
    ==========[INPUT PIPELINE(S)]==========
    
    [PIPE-0]
    
    v4l2src device=/dev/video-imx390-cam0 io-mode=5 pixel-aspect-ratio=None ! queue leaky=2 ! capsfilter caps="video/x-bayer, width=(int)1936, height=(int)1100, format=(string)rggb12;" ! tiovxisp dcc-isp-file=/opt/imaging/imx390/linear/dcc_viss.bin sensor-name=SENSOR_SONY_IMX390_UB953_D3 format-msb=11 ! capsfilter caps="video/x-raw, format=(string)NV12;" ! tiovxldc dcc-file=/opt/imaging/imx390/linear/dcc_ldc.bin sensor-name=SENSOR_SONY_IMX390_UB953_D3 ! capsfilter caps="video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080;" ! tiovxmultiscaler name=split_01
    split_01. ! queue ! capsfilter caps="video/x-raw, width=(int)1280, height=(int)720;" ! tiovxdlcolorconvert out-pool-size=4 ! capsfilter caps="video/x-raw, format=(string)RGB;" ! appsink max-buffers=2 drop=True name=sen_0
    split_01. ! queue ! capsfilter caps="video/x-raw, width=(int)1168, height=(int)748;" ! tiovxmultiscaler target=1 ! capsfilter caps="video/x-raw, width=(int)416, height=(int)416;" ! tiovxdlpreproc out-pool-size=4 data-type=3 tensor-format=1 ! capsfilter caps="application/x-tensor-tiovx;" ! appsink max-buffers=2 drop=True name=pre_0
    
    
    ==========[OUTPUT PIPELINE]==========
    
    appsrc do-timestamp=True format=3 block=True name=post_0 ! tiovxdlcolorconvert ! capsfilter caps="video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720;" ! queue ! mosaic_0.sink_0
    
    tiovxmosaic target=1 background=/tmp/background_0 name=mosaic_0 src::pool-size=4
    sink_0::startx="<320>" sink_0::starty="<150>" sink_0::widths="<1280>" sink_0::heights="<720>"
    ! capsfilter caps="video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080;" ! queue ! tiperfoverlay title=IMX390 Camera ! kmssink sync=False max-lateness=5000000 qos=True processing-deadline=15000000 driver-name=tidss connector-id=40 plane-id=31 force-modesetting=True
    
     +--------------------------------------------------------------------------+
     | IMX390 Camera                                                            |
     +--------------------------------------------------------------------------+
     +--------------------------------------------------------------------------+
     | Input Src: /dev/video-imx390-cam0                                        |
     | Model Name: ONR-OD-8200-yolox-nano-lite-mmdet-coco-416x416               |
     | Model Type: detection                                                    |
     +--------------------------------------------------------------------------+
     +--------------------------------------------------------------------------+
    
     +--------------------------------------------------------------------------+
     | IMX390 Camera                                                            |
     +--------------------------------------------------------------------------+
     +--------------------------------------------------------------------------+
     | Input Src: /dev/video-imx390-cam0                                        |
     | Model Name: ONR-OD-8200-yolox-nano-lite-mmdet-coco-416x416               |
     | Model Type: detection                                                    |
     +--------------------------------------------------------------------------+
     +--------------------------------------------------------------------------+
    
    
      1212.507568 s:  VX_ZONE_WARNING:[vxReleaseContext:1325] Found a reference 0xffffafe138e0 of type 00000817 at external count 1, internal count 0, releasing it
      1212.507631 s:  VX_ZONE_WARNING:[vxReleaseContext:1327] Releasing reference (name=raw_image_115) now as a part of garbage collection
      1212.507645 s:  VX_ZONE_WARNING:[vxReleaseContext:1325] Found a reference 0xffffaff11f58 of type 00000813 at external count 1, internal count 0, releasing it
      1212.507652 s:  VX_ZONE_WARNING:[vxReleaseContext:1327] Releasing reference (name=object_array_116) now as a part of garbage collection
      1212.508258 s:  VX_ZONE_WARNING:[vxReleaseContext:1325] Found a reference 0xffffaff12100 of type 00000813 at external count 1, internal count 0, releasing it
      1212.508266 s:  VX_ZONE_WARNING:[vxReleaseContext:1327] Releasing reference (name=object_array_122) now as a part of garbage collection
      1212.508859 s:  VX_ZONE_WARNING:[vxReleaseContext:1325] Found a reference 0xffffaff125f8 of type 00000813 at external count 1, internal count 0, releasing it
      1212.508867 s:  VX_ZONE_WARNING:[vxReleaseContext:1327] Releasing reference (name=object_array_124) now as a part of garbage collection
      1212.509463 s:  VX_ZONE_WARNING:[vxReleaseContext:1325] Found a reference 0xffffaff127a0 of type 00000813 at external count 1, internal count 0, releasing it
      1212.509472 s:  VX_ZONE_WARNING:[vxReleaseContext:1327] Releasing reference (name=object_array_126) now as a part of garbage collection
      1212.510066 s:  VX_ZONE_WARNING:[vxReleaseContext:1325] Found a reference 0xffffaff12948 of type 00000813 at external count 1, internal count 0, releasing it
      1212.510073 s:  VX_ZONE_WARNING:[vxReleaseContext:1327] Releasing reference (name=object_array_128) now as a part of garbage collection
      1212.510676 s:  VX_ZONE_WARNING:[vxReleaseContext:1325] Found a reference 0xffffaff12af0 of type 00000813 at external count 1, internal count 0, releasing it
      1212.510684 s:  VX_ZONE_WARNING:[vxReleaseContext:1327] Releasing reference (name=object_array_130) now as a part of garbage collection
      1212.511385 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:115] De-Initialization Done for HOST !!!
      1212.515901 s:  VX_ZONE_INIT:[tivxDeInitLocal:204] De-Initialization Done !!!
    APP: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... Done !!!
    IPC: Deinit ... !!!
    IPC: DeInit ... Done !!!
    MEM: Deinit ... !!!
    DDR_SHARED_MEM: Alloc's: 83 alloc's of 138289471 bytes
    DDR_SHARED_MEM: Free's : 83 free's  of 138289471 bytes
    DDR_SHARED_MEM: Open's : 0 allocs  of 0 bytes
    MEM: Deinit ... Done !!!
    APP: Deinit ... Done !!!
    

    执行v4l2-ctl -d2 --set-fmt-video=width=1920,height=1280,pixelformat=RG12  --stream-mmap,显示:

    root@j721e-evm:/opt/edgeai-gst-apps# v4l2-ctl -d2 --set-fmt-video=width=1920,height=1280,pixelformat=RG12  --stream-mmap
                    VIDIOC_STREAMON returned -1 (Broken pipe)
    

    执行yavta /dev/video19 -c1 -n4 -s1920x1280 -fSRGGB12 -F1.raw(video19是 /dev/video-imx390-cam0 -> /dev/video19)

    Device /dev/video19 opened.
    Device `j721e-csi2rx' on `platform:4500000.ticsi2rx' (driver 'j721e-csi2rx') supports video, capture, without mplanes.
    Video format set: SRGGB12 (32314752) 1920x1280 (stride 3840) field none buffer size 4915200
    Video format: SRGGB12 (32314752) 1920x1280 (stride 3840) field none buffer size 4915200
    4 buffers requested.
    length: 4915200 offset: 0 timestamp type/source: mono/EoF
    Buffer 0/0 mapped at address 0xffff85c60000.
    length: 4915200 offset: 4915200 timestamp type/source: mono/EoF
    Buffer 1/0 mapped at address 0xffff857b0000.
    length: 4915200 offset: 9830400 timestamp type/source: mono/EoF
    Buffer 2/0 mapped at address 0xffff85300000.
    length: 4915200 offset: 14745600 timestamp type/source: mono/EoF
    Buffer 3/0 mapped at address 0xffff84e50000.
    Unable to start streaming: Broken pipe (32).
    4 buffers released.
    

    请问这个原因是什么,感谢您的帮助

  • 您好,

          这种报错通常是格式不匹配, 下面的用户手册的配置您参考一下

          Demo Configuration file — Processor SDK Linux for Edge AI Documentation

         如前面回复,不同的评估板适用的SDK不一样。

           类似的问题的帖子请参考

         TDA4VM: About some problems encountered by OX03C10+MAX96717+MAX96712 - Processors forum - Processors - TI E2E support forums

  • 感谢,已解决

  • 您好,Alice

          请问下,edgeai-tiovx-kernels等模块应用程序应该在哪里编译,因为我在虚拟机上编译会报错,却很多头文件,但是在开发板上可以编译通过。这个是为什么呢,那假如应该是在开发板上编译,那我改动的代码从哪去保存呢

        谢谢

  • 您好,

          我查看了文档,但是文档中描述的似乎也是开发板端的改动和编译,一旦我重烧系统,我的改动就丢了吧,所以我怎么把我的代码保存到我pc端呢,谢谢

  • 您好,

        就比如说,我在/opt/edgeai-tiovx-modules和edgeai-gst-plugins里增加了ox03c10的sensor相关代码,在板子上跑通了,但是这个代码怎么在我的pc端commit保存呢

  • 您好,