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: AM62A7-支持ub960-ub953

Part Number: AM62A7

hi

请问一下怎 样在开发板中支持串行解串器ub954-ub953+sensor(这个不用i2c控制)

ub954是

DS90UB954-Q1EVM 评估板 | TI.com.cn所购买的板子

  • 可以使用Adafruit SAMD来支持这个开发板。

  • 我们要在

    AM62A开发板上调试这个组合的camera

  • 已为你咨询了工程师,这需要一些时间

  • 请问一下,我们这ub954+ub953+camera方案,硬件这边已经可以检测到图像及相应的波形

    解串器显示是1080,1920

    软件上怎样开启或者修改代码,才能获取到YUV图像图像,或者说测试取到YUV图像命令是

    你给的文档好像没有提到我们这种情况需要怎样获取数据

  • 除此之外:

    我们这边读相应csi寄存器

    CSI_RX_IF_VBUS2APB_INTEGRATION_DEBUG

    devmem2 0x30101060
    /dev/mem opened.
    Memory mapped at address 0xffff891ae000.
    Read at address 0x30101060 (0xffff891ae060): 0x10000000

    bit31-28始终是1表示当前状态WAIT_FOR_PACKET

    我们发现在VH平台(这款camera sensor+ds953+ds960调通过)

    如下 VH bit1-0是2,表示当前状态PAYLOAD_DATA

    devmem2 0x04504060
    /dev/mem opened.
    Memory mapped at address 0xffffb1015000.
    Read at address 0x04504060 (0xffffb1015060): 0x20000000

    硬件上均为ti evm板,如下6脚量到有波形,波形与VH调的一致

    接法

  • UB954-Q1 EVM有两个Samtec MIPI连接器,一个在顶部,一个在底部。您正在使用的一个在底部显示在您的图片。要使用这个,您需要填充如下所示的零欧姆电阻(来自UB954-Q1 EVM用户指南)。

    另一种方法是在顶部使用Samtec连接器,而不填充这些电阻,如下所述:

    配置UB954-Q1 EVM:

      配置J16报头选择3.3v
      短跳线J23使用0x3d为I2C地址

    使用此连接AM62A SK到UB954-Q1 EVM:https://mou.sr/3jYCoP0

  • 如前面所说,方法1,电阻已经加了,SOC这边接线可以量到数据,

  • 回到这个问题:

    软件上怎样开启或者修改代码,才能获取到YUV图像图像,或者说测试取到YUV图像命令是

    你给的文档好像没有提到我们这种情况需要怎样获取数据

  • 在没有得到你们回复时,我做了一下测试(没有sensor驱动的情况),如下,

    v4l2-ctl -V --device /dev/video2 --stream-mmap --stream-to=frame.raw --stream-count=1
    Format Video Capture:
    Width/Height : 640/480
    Pixel Format : 'UYVY' (UYVY 4:2:2)
    Field : Any
    Bytes per Line : 1280
    Size Image : 614400
    Colorspace : sRGB
    Transfer Function : Default (maps to sRGB)
    YCbCr/HSV Encoding: Default (maps to ITU-R 601)
    Quantization : Default (maps to Limited Range)
    Flags :
    [ 39.739495] cdns-mipi-dphy 30110000.phy: DPHY wait for lane ready timeout
    [ 39.746300] cdns-csi2rx 30101000.csi-bridge: Failed to configure external DPHY: -110
    VIDIOC_STREAMON returned -1 (Connection timed out)

  •  39.739495] cdns-mipi-dphy 30110000.phy: DPHY wait for lane ready timeout
    [ 39.746300] cdns-csi2rx 30101000.csi-bridge: Failed to configure external DPHY: -110
    VIDIOC_STREAMON returned -1 (Connection timed out)

    dphy驱动有问题?

    我的sdk版本号

    ti-processor-sdk-linux-am62axx-evm-08.06.00.45

  • 请耐心等待

  • 有几个问题想咨询:

    1.

    这个代码替换到我的sdk对应ti-processor-sdk-linux-am62axx-evm-08.06.00.45路径上有很多报错

    还是我不用管这个代码,只需要用自带sdk ti-processor-sdk-linux-am62axx-evm-08.06.00.45的对应文件

    2.

    我这边用

    3.2.2.2. CSI2RX — Processor SDK AM62Ax Documentation

    setenv name_overlays k3-am62a7-sk-csi2-imx219.dtbo,将
    ti-processor-sdk-linux-am62axx-evm-08.06.00.45\board-support\linux-kernel\drivers\media\i2c\imx219.c,将i2c默认成功,从而生成video2等相关节点

    git diff board-support/linux-kernel/drivers/media/i2c/imx219.c
    diff --git a/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx219.c b/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx219.c
    index 0c1ac2ee7..4ddc125cf 100644
    --- a/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx219.c
    +++ b/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx219.c
    @@ -623,7 +623,7 @@ static int imx219_write_reg(struct imx219 *imx219, u16 reg, u32 len, u32 val)
            put_unaligned_be16(reg, buf);
            put_unaligned_be32(val << (8 * (4 - len)), buf + 2);
            if (i2c_master_send(client, buf, len + 2) != len + 2)
    -               return -EIO;
    +               return 0;
    
            return 0;
     }
    @@ -638,6 +638,7 @@ static int imx219_write_regs(struct imx219 *imx219,
    
            for (i = 0; i < len; i++) {
                    ret = imx219_write_reg(imx219, regs[i].address, 1, regs[i].val);
    +               ret = 0;
                    if (ret) {
                            dev_err_ratelimited(&client->dev,
                                                "Failed to write reg 0x%4.4x. error = %d\n",
    @@ -1520,11 +1521,11 @@ static int imx219_probe(struct i2c_client *client)
            ret = imx219_power_on(dev);
            if (ret)
                    return ret;
    -
    +#if 0
            ret = imx219_identify_module(imx219);
            if (ret)
                    goto error_power_off;
    -
    +#endif
            /* Set default mode to max resolution */
            imx219->mode = &supported_modes[0];
    

    对应的i2c cmd注释掉,手动下cmd,手动发i2c cmd初始化解串器,串行器,硬件上已经将信号正确接入soc(飞线量波形和camera厂商确认信号ok了),


    下面soc取数据并显示

    gst-launch-1.0 v4l2src device=/dev/video2 io-mode=5 ! video/x-raw,width=1920,height=1080,format=YUY2  ! kmssink driver-name=tidss sync=false
    

    发现报错了

    root@am62axx-evm:/opt/edgeai-gst-apps# gst-launch-1.0 v4l2src device=/dev/video2 io-mode=5 ! video/x-raw,width=1920,height=1080,format=YUY2 ! kmssink driver-name=tidss sync=false
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    [ 2774.318781] cdns-mipi-dphy 30110000.phy: DPHY wait for lane ready timeout
    [ 2774.325592] cdns-csi2rx 30101000.csi-bridge: Failed to configure external DPHY: -110
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
    Additional debug info:
    ../gst-plugins-good-1.16.3/sys/v4l2/gstv4l2src.c(660): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    Buffer pool activation failed
    Execution ended after 0:00:00.124108960
    Setting pipeline to NULL ...
    Freeing pipeline ...
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# gst-launch-1.0 v4l2src device=/dev/video2 io-mode=5 ! video/x-raw,width=1920,height=1080,format=YUY2 ! kmssink driver-name=tidss sync=false
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    [ 2775.712926] cdns-mipi-dphy 30110000.phy: DPHY wait for lane ready timeout
    [ 2775.719726] cdns-csi2rx 30101000.csi-bridge: Failed to configure external DPHY: -110
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
    Additional debug info:
    ../gst-plugins-good-1.16.3/sys/v4l2/gstv4l2src.c(660): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    Buffer pool activation failed
    Execution ended after 0:00:00.124354480
    Setting pipeline to NULL ...
    Freeing pipeline ...
    这个dphy报错是驱动有问题嘛
    这种应该是通用调试方法,请问为什么dphy会报错
  • 还是我不用管这个代码,只需要用自带sdk ti-processor-sdk-linux-am62axx-evm-08.06.00.45的对应文件

    如果您使用的是SDK 8.6,那么只需查看ti-processor-sdk-linux-am62axx-evm-08.06.00.45中的代码。

    我不完全理解您的第二点。

    您是否介意在启动板后共享“v4l2-ctl——list-devices”和“media-ctl -p”的日志?

  • 那第二点先不提

    按你们的方法来,似乎imx319报错,造成vide节点只有video0 video1

    因为这边的sensor带isp,不需要控制

    [    5.623867] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xe
    [    6.168223] cdns-csi2rx 30101000.csi-bridge: Probed CSI2RX with 4/4 lanes, 4 streams, external D-PHY
    [    6.234559] ds90ub953 4-0044: Found rev 2, mask 0
    [    6.248485] imx390 6-001a: inck rate: 27027027 Hz
    [    6.293744] imx390 6-001a: imx390_read: failed to read reg 0x0330: -121
    [    6.300527] imx390: probe of 6-001a failed with error -121

    root@am62axx-evm:/opt/edgeai-gst-apps# media-ctl -p
    Media controller API version 5.10.168
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial          
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  5.10.168
    
    Device topology
    - entity 1: 30102000.ticsi2rx (7 pads, 0 link, 0 route)
                type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
            pad1: Source
            pad2: Source
            pad3: Source
            pad4: Source
            pad5: Source
            pad6: Source
    
    - entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 1 link, 0 route)
                type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
                    <- "ds90ub960 4-003d":4 [ENABLED,IMMUTABLE]
            pad1: Source
            pad2: Source
            pad3: Source
            pad4: Source
    
    - entity 15: ds90ub960 4-003d (6 pads, 2 links, 0 route)
                 type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
                    <- "ds90ub953 4-0044":1 [ENABLED,IMMUTABLE]
            pad1: Sink
            pad2: Sink
            pad3: Sink
            pad4: Source
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
            pad5: Source
    
    - entity 24: ds90ub953 4-0044 (2 pads, 1 link, 0 route)
                 type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
            pad1: Source
                    -> "ds90ub960 4-003d":0 [ENABLED,IMMUTABLE]
    
    root@am62axx-evm:/opt/edgeai-gst-apps# v4l2-ctl --list-devices
    TI-CSI2RX (platform:30102000.ticsi2rx):
            /dev/media0
    
    wave5-dec (platform:wave5-dec):
            /dev/video0
    
    wave5-enc (platform:wave5-enc):
            /dev/video1
    

  • 那第二点先不提

    按你们的方法来,似乎imx319报错,造成video节点只有video0 video1

    因为这边的sensor带isp,不需要控制

    [    5.623867] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xe
    [    6.168223] cdns-csi2rx 30101000.csi-bridge: Probed CSI2RX with 4/4 lanes, 4 streams, external D-PHY
    [    6.234559] ds90ub953 4-0044: Found rev 2, mask 0
    [    6.248485] imx390 6-001a: inck rate: 27027027 Hz
    [    6.293744] imx390 6-001a: imx390_read: failed to read reg 0x0330: -121
    [    6.300527] imx390: probe of 6-001a failed with error -121

    将imx390重命名后,仍是如此video节点只有video0 video1

    root@am62axx-evm:/opt/edgeai-gst-apps# media-ctl  -p
    Media controller API version 5.10.168
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial          
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  5.10.168
    
    Device topology
    - entity 1: 30102000.ticsi2rx (7 pads, 0 link, 0 route)
                type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
            pad1: Source
            pad2: Source
            pad3: Source
            pad4: Source
            pad5: Source
            pad6: Source
    
    - entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 1 link, 0 route)
                type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
                    <- "ds90ub960 4-003d":4 [ENABLED,IMMUTABLE]
            pad1: Source
            pad2: Source
            pad3: Source
            pad4: Source
    
    - entity 15: ds90ub960 4-003d (6 pads, 2 links, 0 route)
                 type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
                    <- "ds90ub953 4-0044":1 [ENABLED,IMMUTABLE]
            pad1: Sink
            pad2: Sink
            pad3: Sink
            pad4: Source
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
            pad5: Source
    
    - entity 24: ds90ub953 4-0044 (2 pads, 1 link, 0 route)
                 type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
            pad1: Source
                    -> "ds90ub960 4-003d":0 [ENABLED,IMMUTABLE]

    有些报错

    [    6.434515] ds90ub960 4-003d: RX0 STS2 error: 0x4d
    [    6.439374] ds90ub960 4-003d: RX0 CSI error: 0x2
    [    7.588124] am65-cpsw-nuss 8000000.ethernet eth0: PHY [8000f00.mdio:00] driver [TI DP83867] (irq=POLL)
    [    7.601327] am65-cpsw-nuss 8000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    [   11.586408] ds90ub960 4-003d: RX0 STS1 error: 0x33
    [   11.591227] ds90ub960 4-003d: RX0 STS2 error: 0x6d
    [   11.596065] ds90ub960 4-003d: RX0 CSI error: 0xf
    [   24.930370] ds90ub960 4-003d: RX0 STS2 error: 0xc
    [   24.935084] ds90ub960 4-003d: RX0 CSI error: 0x4
    [   25.474440] ds90ub960 4-003d: RX0 STS2 error: 0x6d
    [   25.479265] ds90ub960 4-003d: RX0 CSI error: 0xf
    [   26.018375] ds90ub960 4-003d: RX0 STS2 error: 0x4d
    [   26.023259] ds90ub960 4-003d: RX0 CSI error: 0xc
    [   35.266426] ds90ub960 4-003d: RX0 STS1 error: 0x33
    [   35.274267] ds90ub960 4-003d: RX0 STS2 error: 0x6d
    [   35.284739] ds90ub960 4-003d: RX0 CSI error: 0xf
    [   36.834375] ds90ub960 4-003d: RX0 STS2 error: 0xc
    [   36.839094] ds90ub960 4-003d: RX0 CSI error: 0xc

    注释掉这个报错线程后,手动执行调试的i2c命令(sensor正常输出波形)

    root@am62axx-evm:/opt/edgeai-gst-apps# media-ctl  -p
    Media controller API version 5.10.168
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial          
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  5.10.168
    
    Device topology
    - entity 1: 30102000.ticsi2rx (7 pads, 0 link, 0 route)
                type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
            pad1: Source
            pad2: Source
            pad3: Source
            pad4: Source
            pad5: Source
            pad6: Source
    
    - entity 9: cdns_csi2rx.30101000.csi-bridge (5 pads, 1 link, 0 route)
                type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
                    <- "ds90ub960 4-003d":4 [ENABLED,IMMUTABLE]
            pad1: Source
            pad2: Source
            pad3: Source
            pad4: Source
    
    - entity 15: ds90ub960 4-003d (6 pads, 2 links, 0 route)
                 type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
                    <- "ds90ub953 4-0044":1 [ENABLED,IMMUTABLE]
            pad1: Sink
            pad2: Sink
            pad3: Sink
            pad4: Source
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
            pad5: Source
    
    - entity 24: ds90ub953 4-0044 (2 pads, 1 link, 0 route)
                 type V4L2 subdev subtype Unknown flags 0
            pad0: Sink
            pad1: Source
                    -> "ds90ub960 4-003d":0 [ENABLED,IMMUTABLE]
    
    root@am62axx-evm:/opt/edgeai-gst-apps# v4l2-ctl --list-devices
    TI-CSI2RX (platform:30102000.ticsi2rx):
            /dev/media0
    
    wave5-dec (platform:wave5-dec):
            /dev/video0
    
    wave5-enc (platform:wave5-enc):
            /dev/video1

    但仍然只有2个

  • 重新在uboot输入

    1 setenv name_overlays k3-am62a7-fpdlink-sk-fusion.dtbo k3-j721e-fpdlink-imx390-rcm-0-0.dtbo

    删除掉i2c,改为手动执行脚本初始化des,ser(sensor不用初始化)

    --- a/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx390.c
    +++ b/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx390.c
    @@ -33,6 +33,7 @@ static int imx390_read(struct imx390 *imx390, u16 addr, u32 *val, size_t nbytes)
            __le32 val_le = 0;
    
            ret = regmap_bulk_read(imx390->regmap, addr, &val_le, nbytes);
    +       ret = 0;
            if (ret < 0) {
                    dev_err(imx390->dev, "%s: failed to read reg 0x%04x: %d\n",
                            __func__, addr, ret);
    @@ -49,6 +50,7 @@ static int imx390_write(struct imx390 *imx390, u16 addr, u32 val, size_t nbytes)
            __le32 val_le = cpu_to_le32(val);
    
            ret = regmap_bulk_write(imx390->regmap, addr, &val_le, nbytes);
    +       ret = 0;
            if (ret < 0)
                    dev_err(imx390->dev, "%s: failed to write reg 0x%04x: %d\n",
                            __func__, addr, ret);
    @@ -77,6 +79,7 @@ static int imx390_write_table(struct imx390 *imx390,
            int ret;
    
            ret = regmap_multi_reg_write(imx390->regmap, regs, nr_regs);
    +       ret = 0;
            if (ret < 0)
                    dev_err(imx390->dev,
                            "%s: failed to write reg table (%d)!\n", __func__, ret);
    @@ -408,13 +411,13 @@ static int imx390_detect(struct imx390 *imx390)
            ret = imx390_read(imx390, IMX390_REG_VERSION_ROM_VERSION, &id, 2);
            if (ret < 0)
                    return ret;
    -
    +#if 0
            if (id != IMX390_ROM_VERSION) {
                    dev_err(imx390->dev,
                            "%s: unknown chip ID 0x%04x\n", __func__, id);
                    return -ENODEV;
            }
    -
    +#endif
            dev_dbg(imx390->dev, "%s: detected chip ID 0x%04x\n", __func__, id);
            return 0;
     }
    

    2.

    Media controller API version 5.10.168
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial          
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  5.10.168
    
    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:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "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, 0 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev1
            pad0: Sink
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "ds90ub960 4-003d":4 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
            pad2: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad3: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad4: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
    
    - entity 15: ds90ub960 4-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 4-0044":1 [ENABLED,IMMUTABLE]
            pad1: Sink
            pad2: Sink
            pad3: Sink
            pad4: Source
                    [stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
            pad5: Source
    
    - entity 24: ds90ub953 4-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 6-001a":0 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
                    -> "ds90ub960 4-003d":0 [ENABLED,IMMUTABLE]
    
    - entity 29: imx390 6-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, IMMUTABLE, SOURCE]
                    0/0 -> 0/1 [INACTIVE, IMMUTABLE, SOURCE]
            pad0: Source
                    [stream:0 fmt:SRGGB12_1X12/1936x1100@1/30 field:none colorspace:smpte170m]
                    -> "ds90ub953 4-0044":0 [ENABLED,IMMUTABLE]
    
    - entity 35: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video2
            pad0: Sink
                    <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
    
    - entity 41: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video3
            pad0: Sink
                    <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
    
    - entity 47: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video4
            pad0: Sink
                    <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
    
    - entity 53: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video5
            pad0: Sink
                    <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
    
    - entity 59: 30102000.ticsi2rx context 4 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video6
            pad0: Sink
                    <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]
    
    - entity 65: 30102000.ticsi2rx context 5 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video7
            pad0: Sink
                    <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
    
    root@am62axx-evm:/opt/edgeai-gst-apps# v4l2-ctl --list-devices
    j721e-csi2rx (platform:30102000.ticsi2rx):
            /dev/video2
            /dev/video3
            /dev/video4
            /dev/video5
            /dev/video6
            /dev/video7
            /dev/media0
    
    wave5-dec (platform:wave5-dec):
            /dev/video0
    
    wave5-enc (platform:wave5-enc):
            /dev/video1
    

    3.用gst命令获取yuv数据(解串器的CSI数据应该是yuv422_8b)

    gst-launch-1.0 v4l2src device=/dev/video2 io-mode=2 ! video/x-raw,width=1920,height=1080,format=YUY2 ! kmssink driver-name=tidss sync=false

    4 .ctrl+z切到后到,执行

    5. sh C0.sh(des,ser初始化)

    6.fg切到前台,界面没有显示camera图像

    7.发现中断,只有4,并没有增长,调试发现dma接收数据不正常

    247: 4 0 0 0 MSI-INTA 13045760 Level 4e230000.dma-controller chan0

    247:          4          0          0          0  MSI-INTA 13045760 Level     4e230000.dma-controller chan0
    248:          0          0          0          0  MSI-INTA 13045761 Level     4e230000.dma-controller chan1
    249:          0          0          0          0  MSI-INTA 13045762 Level     4e230000.dma-controller chan2
    250:          0          0          0          0  MSI-INTA 13045763 Level     4e230000.dma-controller chan3
    251:          0          0          0          0  MSI-INTA 13045764 Level     4e230000.dma-controller chan4
    252:          0          0          0          0  MSI-INTA 13045765 Level     4e230000.dma-controller chan5
    254:          0          0          0          0     GICv3 134 Level     8000000.ethernet

    出现这种现象是我的gst-launch-1.0命令有问题嘛,还是驱动设置有问题,这边需要怎样分析,(camera sensor与厂商沟通过,从954读到的分辨率及波形正常,且这个camera在tda4 vh中点亮过)

  • 请您耐心等待

  • 您的gst管道有“宽度=1920,高度=1080,格式=YUY2”,但“media-ctl -p”显示“SRGGB12_1X12/1936x1100”。

    请检查这个线程是否对你的用例有帮助:e2e.ti.com/.../sk-am62a-lp-debug-about-csi2rx

  • 参考后sdk按如下修改后更新im390ko,开机后设置如下命令:

    media-ctl -V '"ds90ub953 4-0044":0 [fmt:UYVY8_2X8/1920x1080 field: none]'
    media-ctl -V '"ds90ub960 4-003d":0 [fmt:UYVY8_2X8/1920x1080 field: none]'
    media-ctl -V '"imx390 6-001a":0 [fmt:UYVY8_2X8/1920x1080 field: none]'

    diff --git a/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx390.c b/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx390.c
    index 6c6f077c9..e91dbec45 100644
    --- a/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx390.c
    +++ b/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx390.c
    @@ -33,6 +33,7 @@ static int imx390_read(struct imx390 *imx390, u16 addr, u32 *val, size_t nbytes)
            __le32 val_le = 0;
    
            ret = regmap_bulk_read(imx390->regmap, addr, &val_le, nbytes);
    +       ret = 0;
            if (ret < 0) {
                    dev_err(imx390->dev, "%s: failed to read reg 0x%04x: %d\n",
                            __func__, addr, ret);
    @@ -49,6 +50,7 @@ static int imx390_write(struct imx390 *imx390, u16 addr, u32 val, size_t nbytes)
            __le32 val_le = cpu_to_le32(val);
    
            ret = regmap_bulk_write(imx390->regmap, addr, &val_le, nbytes);
    +       ret = 0;
            if (ret < 0)
                    dev_err(imx390->dev, "%s: failed to write reg 0x%04x: %d\n",
                            __func__, addr, ret);
    @@ -77,6 +79,7 @@ static int imx390_write_table(struct imx390 *imx390,
            int ret;
    
            ret = regmap_multi_reg_write(imx390->regmap, regs, nr_regs);
    +       ret = 0;
            if (ret < 0)
                    dev_err(imx390->dev,
                            "%s: failed to write reg table (%d)!\n", __func__, ret);
    @@ -88,9 +91,9 @@ static void imx390_init_formats(struct v4l2_subdev_state *state)
            struct v4l2_mbus_framefmt *format;
    
            format = v4l2_state_get_stream_format(state, 0, 0);
    -       format->code = imx390_mbus_formats[0];
    -       format->width = imx390_framesizes[0].width;
    -       format->height = imx390_framesizes[0].height;
    +       format->code = MEDIA_BUS_FMT_UYVY8_2X8;
    +       format->width = 1920;
    +       format->height = 1080;
            format->field = V4L2_FIELD_NONE;
            format->colorspace = V4L2_COLORSPACE_SMPTE170M;
     }
    @@ -228,10 +231,10 @@ static int imx390_set_fmt(struct v4l2_subdev *sd,
                    goto done;
            }
    
    -       format->code = code;
    -       format->width = fsize->width;
    -       format->height = fsize->height;
    -
    +       format->code = MEDIA_BUS_FMT_UYVY8_2X8;
    +       format->width = 1920;//fsize->width;
    +       format->height = 1080;//fsize->height;
    +
            fmt->format = *format;
    
     done:
    @@ -408,13 +411,13 @@ static int imx390_detect(struct imx390 *imx390)
            ret = imx390_read(imx390, IMX390_REG_VERSION_ROM_VERSION, &id, 2);
            if (ret < 0)
                    return ret;
    -
    +#if 0
            if (id != IMX390_ROM_VERSION) {
                    dev_err(imx390->dev,
                            "%s: unknown chip ID 0x%04x\n", __func__, id);
                    return -ENODEV;
            }
    -
    +#endif
            dev_dbg(imx390->dev, "%s: detected chip ID 0x%04x\n", __func__, id);
            return 0;
     }
    diff --git a/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx390.h b/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx390.h
    index 30e518afb..71883a2cb 100644
    --- a/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx390.h
    +++ b/ti-processor-sdk-linux-am62axx-evm-08.06.00.45/board-support/linux-kernel/drivers/media/i2c/imx390.h
    @@ -9,8 +9,8 @@
    
     #include <linux/types.h>
    
    -#define IMX390_ACTIVE_AREA_WIDTH       1936
    -#define IMX390_ACTIVE_AREA_HEIGHT      1096
    +#define IMX390_ACTIVE_AREA_WIDTH       1920
    +#define IMX390_ACTIVE_AREA_HEIGHT      1080
    
     /* SMPG cannot be disabled, and datatype is the same as the pixel data */
     #define IMX390_SMPG_HEIGHT             4
    @@ -138,7 +138,7 @@ static const struct v4l2_area imx390_framesizes[] = {
     };
    
     static const u32 imx390_mbus_formats[] = {
    -       MEDIA_BUS_FMT_SRGGB12_1X12,
    +       MEDIA_BUS_FMT_UYVY8_2X8,
     };
    
     static const struct regmap_config imx390_regmap_config = {
    (END)
    

     media-ctl  -p
    Media controller API version 5.10.168
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial          
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  5.10.168
    
    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:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "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, 0 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev1
            pad0: Sink
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "ds90ub960 4-003d":4 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
            pad2: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad3: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad4: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
    
    - entity 15: ds90ub960 4-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:UYVY8_2X8/1920x1080 field:none]
                    <- "ds90ub953 4-0044":1 [ENABLED,IMMUTABLE]
            pad1: Sink
            pad2: Sink
            pad3: Sink
            pad4: Source
                    [stream:0 fmt:UYVY8_2X8/1920x1080 field:none]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
            pad5: Source
    
    - entity 24: ds90ub953 4-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:UYVY8_2X8/1920x1080 field:none colorspace:smpte170m]
                    <- "imx390 6-001a":0 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_2X8/1920x1080 field:none colorspace:smpte170m]
                    -> "ds90ub960 4-003d":0 [ENABLED,IMMUTABLE]
    
    - entity 29: imx390 6-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, IMMUTABLE, SOURCE]
                    0/0 -> 0/1 [INACTIVE, IMMUTABLE, SOURCE]
            pad0: Source
                    [stream:0 fmt:UYVY8_2X8/1920x1080@1/30 field:none colorspace:smpte170m]
                    -> "ds90ub953 4-0044":0 [ENABLED,IMMUTABLE]
    
    - entity 35: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video2
            pad0: Sink
                    <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
    
    - entity 41: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video3
            pad0: Sink
                    <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
    
    - entity 47: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video4
            pad0: Sink
                    <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
    
    - entity 53: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video5
            pad0: Sink
                    <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
    
    - entity 59: 30102000.ticsi2rx context 4 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video6
            pad0: Sink
                    <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]
    
    - entity 65: 30102000.ticsi2rx context 5 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video7
            pad0: Sink
                    <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
    

    yavta -s 1920x1080 -f UYVY /dev/video2 -c100 程序没有接收到数据,卡住,中断没有增长

    247: 0 0 0 0 MSI-INTA 13045760 Level 4e230000.dma-controller chan0

    root@am62axx-evm:/opt/edgeai-gst-apps#  yavta -s 1920x1080 -f UYVY  /dev/video2 -c100
    Device /dev/video2 opened.
    [  435.326314] zyk ti_csi2rx_queue_setup 823
    Device `j721e-csi2rx' on `platform:30102000.ticsi2rx' is a video[  435.334568] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 0, plane 0 offset 0x00000000
     output (without mplanes) device.
    Video format set: UYVY (59565[  435.336108] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 1, plane 0 offset 0x003f5000
    955) 1920x1080 (stride 3840) field none buffer size 4147200
    Vid[  435.364383] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 2, plane 0 offset 0x007ea000
    eo format: UYVY (59565955) 1920x1080 (stride 3840) field none bu[  435.379607] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 3, plane 0 offset 0x00bdf000
    ffer size 4147200
    [  435.394763] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 4, plane 0 offset 0x00fd4000
    [  435.405939] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 5, plane 0 offset 0x013c9000
    [  435.417020] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 6, plane 0 offset 0x017be000
    [  435.428252] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 7, plane 0 offset 0x01bb3000
    [  435.437962] videobuf2_common: [cap-000000009f39c6d2] __vb2_queue_alloc: allocated 8 buffers, 1 plane(s) each
    8 buffers requested.
    [  435.448111] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 0, plane 0 successfully mapped
    length: 4147200 offset: 0 timestamp type/source: mono/EoF
    [  435.459148] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 1, plane 0 successfully mapped
    Buffer 0/0 mapped at address 0xffffbbca5000.
    length: 4147200 of[  435.473219] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 2, plane 0 successfully mapped
    fset: 4149248 timestamp type/source: mono/EoF
    Buffer 1/0 mapped[  435.488002] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 3, plane 0 successfully mapped
     at address 0xffffbb8b0000.
    length: 4147200 offset: 8298496 tim[  435.502529] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 4, plane 0 successfully mapped
    estamp type/source: mono/EoF
    Buffer 2/0 mapped at address 0xfff[  435.517316] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 5, plane 0 successfully mapped
    fbb4bb000.
    length: 4147200 offset: 12447744 timestamp type/sour[  435.531853] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 6, plane 0 successfully mapped
    ce: mono/EoF
    Buffer 3/0 mapped at address 0xffffbb0c6000.
    leng[  435.546641] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 7, plane 0 successfully mapped
    th: 4147200 offset: 16596992 timestamp type/source: mono/EoF
    Bu[  435.561119] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 0 succeeded
    ffer 4/0 mapped at address 0xffffbacd1000.
    length: 4147200 offs[  435.575323] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 1 succeeded
    et: 20746240 timestamp type/source: mono/EoF
    Buffer 5/0 mapped [  435.589343] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 2 succeeded
    at address 0xffffba8dc000.
    length: 4147200 offset: 24895488 tim[  435.603600] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 3 succeeded
    estamp type/source: mono/EoF
    Buffer 6/0 mapped at address 0xfff[  435.617648] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 4 succeeded
    fba4e7000.
    length: 4147200 offset: 29044736 timestamp type/sour[  435.617658] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 5 succeeded
    ce: mono/EoF
    Buffer 7/0 mapped at address 0xffffba0f2000.
    [  435.645889] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 6 succeeded
    [  435.645897] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 7 succeeded
    [  435.645908] zyk ti_csi2rx_buffer_queue 875
    [  435.672501] zyk ti_csi2rx_buffer_queue 875
    [  435.672507] zyk ti_csi2rx_buffer_queue 875
    [  435.680838] zyk ti_csi2rx_buffer_queue 875
    [  435.680844] zyk ti_csi2rx_buffer_queue 875
    [  435.689180] zyk ti_csi2rx_buffer_queue 875
    [  435.689184] zyk ti_csi2rx_buffer_queue 875
    [  435.689187] zyk ti_csi2rx_buffer_queue 875
    [  435.877773] zyk ti_csi2rx_start_dma 771
    [  435.881816] videobuf2_common: [cap-000000009f39c6d2] vb2_core_streamon: successful
    [  435.889481] videobuf2_common: [cap-000000009f39c6d2] __vb2_wait_for_done_vb: will sleep waiting for buffers
    
    
    ^Z[  437.862555] videobuf2_common: [cap-000000009f39c6d2] __vb2_wait_for_done_vb: sleep was interrupted
    
    [1]+  Stopped(SIGTSTP)        yavta -s 1920x1080 -f UYVY /dev/video2 -c100
    root@am62axx-evm:/opt/edgeai-gst-apps# sh C0.sh 
    953 config
    
    
    
    
    
    
    
    953 end config
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# fg
    yavta -s 1920x1080 -f UYVY /dev/video2 -c100
    [  445.513861] videobuf2_common: [cap-000000009f39c6d2] __vb2_wait_for_done_vb: will sleep waiting for buffers
    
    
    
    
    
    
    
    ^Z[  448.390111] videobuf2_common: [cap-000000009f39c6d2] __vb2_wait_for_done_vb: sleep was interrupted
    
    [1]+  Stopped(SIGTSTP)        yavta -s 1920x1080 -f UYVY /dev/video2 -c100
    root@am62axx-evm:/opt/edgeai-gst-apps# cat /proc/interrupts 
               CPU0       CPU1       CPU2       CPU3       
     11:      17080      19933      16119      16562     GICv3  30 Level     arch_timer
     14:          0          0          0          0     GICv3  23 Level     arm-pmu
     15:        443          0          0          0     GICv3  66 Level     4d000000.mailbox thr_012
     16:       1123          0          0          0     GICv3 210 Level     2800000.serial
     17:      27665          0          0          0     GICv3 193 Level     20000000.i2c
     18:        380          0          0          0     GICv3 194 Level     20010000.i2c
     19:        422          0          0          0     GICv3 195 Level     20020000.i2c
     20:        707          0          0          0     GICv3 165 Level     mmc0
     21:      15798          0          0          0     GICv3 115 Level     mmc1
     22:       1142          0          0          0     GICv3 116 Level     tidss
     24:          3          0          0          0     GICv3 171 Level     fc40000.spi
     25:          5          0          0          0     GICv3 108 Level     mbox-r5-0
     26:          4          0          0          0     GICv3 109 Level     mbox-c7x-0
     27:          5          0          0          0     GICv3 140 Level     mbox-mcu_r5-0
     29:          0          0          0          0     GICv3 270 Level     2b10000.mcasp_tx
     30:          0          0          0          0     GICv3 269 Level     2b10000.mcasp_rx
     31:        412          0          0          0  MSI-INTA 1713152 Level     485c0100.dma-controller chan0
     49:          0          0          0          0  MSI-INTA 1714176 Edge      485c0100.dma-controller chan1
     61:          0          0          0          0  MSI-INTA 1714688 Level     485c0100.dma-controller chan1
     79:          0          0          0          0  MSI-INTA 1715718 Edge      485c0100.dma-controller chan2
     97:          0          0          0          0  MSI-INTA 1716230 Level     485c0100.dma-controller chan2
    119:          0          0          0          0  MSI-INTA 1970707 Level     8000000.ethernet-tx0
    191:          0          0          0          0  MSI-INTA 1970779 Level     485c0000.dma-controller chan2
    209:          0          0          0          0  MSI-INTA 1971731 Level     8000000.ethernet
    233:          0          0          0          0  MSI-INTA 1971755 Level     485c0000.dma-controller chan0
    234:          0          0          0          0  MSI-INTA 1971756 Level     485c0000.dma-controller chan1
    241:          0          0          0          0  MSI-INTA 13045248 Edge      4e230000.dma-controller chan0
    242:          0          0          0          0  MSI-INTA 13045249 Edge      4e230000.dma-controller chan1
    243:          0          0          0          0  MSI-INTA 13045250 Edge      4e230000.dma-controller chan2
    244:          0          0          0          0  MSI-INTA 13045251 Edge      4e230000.dma-controller chan3
    245:          0          0          0          0  MSI-INTA 13045252 Edge      4e230000.dma-controller chan4
    246:          0          0          0          0  MSI-INTA 13045253 Edge      4e230000.dma-controller chan5
    247:          0          0          0          0  MSI-INTA 13045760 Level     4e230000.dma-controller chan0
    248:          0          0          0          0  MSI-INTA 13045761 Level     4e230000.dma-controller chan1
    249:          0          0          0          0  MSI-INTA 13045762 Level     4e230000.dma-controller chan2
    250:          0          0          0          0  MSI-INTA 13045763 Level     4e230000.dma-controller chan3
    251:          0          0          0          0  MSI-INTA 13045764 Level     4e230000.dma-controller chan4
    252:          0          0          0          0  MSI-INTA 13045765 Level     4e230000.dma-controller chan5
    254:          0          0          0          0     GICv3 134 Level     8000000.ethernet
    383:         39          0          0          0      GPIO  23 Edge    -davinci_gpio  1-0022
    448:          0          0          0          0    1-0022  16 Edge      1-003b
    453:          0          0          0          0     GICv3 258 Level     xhci-hcd:usb1
    IPI0:      9077      13756      13952      12448       Rescheduling interrupts
    IPI1:       611        614        389        370       Function call interrupts
    IPI2:         0          0          0          0       CPU stop interrupts
    IPI3:         0          0          0          0       CPU stop (for crash dump) interrupts
    IPI4:         0          0          0          0       Timer broadcast interrupts
    IPI5:         0          0          0          0       IRQ work interrupts
    IPI6:         0          0          0          0       CPU wake-up interrupts
    
    再来一次
    
    root@am62axx-evm:/opt/edgeai-gst-apps# yavta -s 1920x1080 -f UYVY /dev/video2 -c100
    Device /dev/video2 opened.
    [  864.476420] zyk ti_csi2rx_queue_setup 823
    Device `j721e-csi2rx' on `platform:30102000.ticsi2rx' is a video[  864.484572] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 0, plane 0 offset 0x00000000
     output (without mplanes) device.
    Video format set: UYVY (59565[  864.499613] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 1, plane 0 offset 0x003f5000
    955) 1920x1080 (stride 3840) field none buffer size 4147200
    Vid[  864.514869] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 2, plane 0 offset 0x007ea000
    eo format: UYVY (59565955) 1920x1080 (stride 3840) field none bu[  864.529525] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 3, plane 0 offset 0x00bdf000
    ffer size 4147200
    [  864.544838] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 4, plane 0 offset 0x00fd4000
    [  864.556105] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 5, plane 0 offset 0x013c9000
    [  864.567413] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 6, plane 0 offset 0x017be000
    [  864.578728] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 7, plane 0 offset 0x01bb3000
    [  864.588313] videobuf2_common: [cap-000000009f39c6d2] __vb2_queue_alloc: allocated 8 buffers, 1 plane(s) each
    8 buffers requested.
    [  864.598703] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 0, plane 0 successfully mapped
    length: 4147200 offset: 0 timestamp type/source: mono/EoF
    [  864.609786] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 1, plane 0 successfully mapped
    Buffer 0/0 mapped at address 0xffffad923000.
    length: 4147200 of[  864.623787] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 2, plane 0 successfully mapped
    fset: 4149248 timestamp type/source: mono/EoF
    Buffer 1/0 mapped[  864.638604] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 3, plane 0 successfully mapped
     at address 0xffffad52e000.
    length: 4147200 offset: 8298496 tim[  864.653075] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 4, plane 0 successfully mapped
    estamp type/source: mono/EoF
    Buffer 2/0 mapped at address 0xfff[  864.667841] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 5, plane 0 successfully mapped
    fad139000.
    length: 4147200 offset: 12447744 timestamp type/sour[  864.682398] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 6, plane 0 successfully mapped
    ce: mono/EoF
    Buffer 3/0 mapped at address 0xffffacd44000.
    leng[  864.697161] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 7, plane 0 successfully mapped
    th: 4147200 offset: 16596992 timestamp type/source: mono/EoF
    Bu[  864.711671] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 0 succeeded
    ffer 4/0 mapped at address 0xffffac94f000.
    length: 4147200 offs[  864.725892] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 1 succeeded
    et: 20746240 timestamp type/source: mono/EoF
    Buffer 5/0 mapped [  864.739908] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 2 succeeded
    at address 0xffffac55a000.
    length: 4147200 offset: 24895488 tim[  864.754153] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 3 succeeded
    estamp type/source: mono/EoF
    Buffer 6/0 mapped at address 0xfff[  864.768197] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 4 succeeded
    fac165000.
    length: 4147200 offset: 29044736 timestamp type/sour[  864.768208] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 5 succeeded
    ce: mono/EoF
    Buffer 7/0 mapped at address 0xffffabd70000.
    [  864.796451] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 6 succeeded
    [  864.796460] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 7 succeeded
    [  864.818997] zyk ti_csi2rx_buffer_queue 875
    [  864.819001] zyk ti_csi2rx_buffer_queue 875
    [  864.819007] zyk ti_csi2rx_buffer_queue 875
    [  864.831438] zyk ti_csi2rx_buffer_queue 875
    [  864.831444] zyk ti_csi2rx_buffer_queue 875
    [  864.839786] zyk ti_csi2rx_buffer_queue 875
    [  864.839794] zyk ti_csi2rx_buffer_queue 875
    [  864.848187] zyk ti_csi2rx_buffer_queue 875
    [  865.029742] zyk ti_csi2rx_start_dma 771
    [  865.033794] videobuf2_common: [cap-000000009f39c6d2] vb2_core_streamon: successful
    [  865.041464] videobuf2_common: [cap-000000009f39c6d2] __vb2_wait_for_done_vb: will sleep waiting for buffers
    
    
    
    ^Z[  868.848780] videobuf2_common: [cap-000000009f39c6d2] __vb2_wait_for_done_vb: sleep was interrupted
    
    [1]+  Stopped(SIGTSTP)        yavta -s 1920x1080 -f UYVY /dev/video2 -c100
    root@am62axx-evm:/opt/edgeai-gst-apps# cat /proc/interrupts 
               CPU0       CPU1       CPU2       CPU3       
     11:      26588      31739      25419      25286     GICv3  30 Level     arch_timer
     14:          0          0          0          0     GICv3  23 Level     arm-pmu
     15:        459          0          0          0     GICv3  66 Level     4d000000.mailbox thr_012
     16:       1366          0          0          0     GICv3 210 Level     2800000.serial
     17:      53626          0          0          0     GICv3 193 Level     20000000.i2c
     18:        380          0          0          0     GICv3 194 Level     20010000.i2c
     19:        482          0          0          0     GICv3 195 Level     20020000.i2c
     20:        707          0          0          0     GICv3 165 Level     mmc0
     21:      16014          0          0          0     GICv3 115 Level     mmc1
     22:       1142          0          0          0     GICv3 116 Level     tidss
     24:          3          0          0          0     GICv3 171 Level     fc40000.spi
     25:          5          0          0          0     GICv3 108 Level     mbox-r5-0
     26:          4          0          0          0     GICv3 109 Level     mbox-c7x-0
     27:          5          0          0          0     GICv3 140 Level     mbox-mcu_r5-0
     29:          0          0          0          0     GICv3 270 Level     2b10000.mcasp_tx
     30:          0          0          0          0     GICv3 269 Level     2b10000.mcasp_rx
     31:        412          0          0          0  MSI-INTA 1713152 Level     485c0100.dma-controller chan0
     49:          0          0          0          0  MSI-INTA 1714176 Edge      485c0100.dma-controller chan1
     61:          0          0          0          0  MSI-INTA 1714688 Level     485c0100.dma-controller chan1
     79:          0          0          0          0  MSI-INTA 1715718 Edge      485c0100.dma-controller chan2
     97:          0          0          0          0  MSI-INTA 1716230 Level     485c0100.dma-controller chan2
    119:          0          0          0          0  MSI-INTA 1970707 Level     8000000.ethernet-tx0
    191:          0          0          0          0  MSI-INTA 1970779 Level     485c0000.dma-controller chan2
    209:          0          0          0          0  MSI-INTA 1971731 Level     8000000.ethernet
    233:          0          0          0          0  MSI-INTA 1971755 Level     485c0000.dma-controller chan0
    234:          0          0          0          0  MSI-INTA 1971756 Level     485c0000.dma-controller chan1
    241:          0          0          0          0  MSI-INTA 13045248 Edge      4e230000.dma-controller chan0
    242:          0          0          0          0  MSI-INTA 13045249 Edge      4e230000.dma-controller chan1
    243:          0          0          0          0  MSI-INTA 13045250 Edge      4e230000.dma-controller chan2
    244:          0          0          0          0  MSI-INTA 13045251 Edge      4e230000.dma-controller chan3
    245:          0          0          0          0  MSI-INTA 13045252 Edge      4e230000.dma-controller chan4
    246:          0          0          0          0  MSI-INTA 13045253 Edge      4e230000.dma-controller chan5
    247:          2          0          0          0  MSI-INTA 13045760 Level     4e230000.dma-controller chan0
    248:          0          0          0          0  MSI-INTA 13045761 Level     4e230000.dma-controller chan1
    249:          0          0          0          0  MSI-INTA 13045762 Level     4e230000.dma-controller chan2
    250:          0          0          0          0  MSI-INTA 13045763 Level     4e230000.dma-controller chan3
    251:          0          0          0          0  MSI-INTA 13045764 Level     4e230000.dma-controller chan4
    252:          0          0          0          0  MSI-INTA 13045765 Level     4e230000.dma-controller chan5
    254:          0          0          0          0     GICv3 134 Level     8000000.ethernet
    383:         39          0          0          0      GPIO  23 Edge    -davinci_gpio  1-0022
    448:          0          0          0          0    1-0022  16 Edge      1-003b
    453:          0          0          0          0     GICv3 258 Level     xhci-hcd:usb1
    IPI0:     17485      22964      24111      22547       Rescheduling interrupts
    IPI1:       928        829        612        586       Function call interrupts
    IPI2:         0          0          0          0       CPU stop interrupts
    IPI3:         0          0          0          0       CPU stop (for crash dump) interrupts
    IPI4:         0          0          0          0       Timer broadcast interrupts
    IPI5:         0          0          0          0       IRQ work interrupts
    IPI6:         0          0          0          0       CPU wake-up interrupts
    Err:          0
    root@am62axx-evm:/opt/edgeai-gst-apps# fg
    yavta -s 1920x1080 -f UYVY /dev/video2 -c100
    [  884.289851] videobuf2_common: [cap-000000009f39c6d2] __vb2_wait_for_done_vb: will sleep waiting for buffers

    yavta -c -Fcapture -s 1920x1080 -f UYVY /dev/video2

    的情况

    root@am62axx-evm:/opt/edgeai-gst-apps#   yavta -c -Fcapture -s 1920x1080 -f UYVY  /dev/video2 
    Device /dev/video2 opened.
    [ 1457.460489] zyk ti_csi2rx_queue_setup 823
    Device `j721e-csi2rx' on `platform:30102000.ticsi2rx' is a video[ 1457.468632] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 0, plane 0 offset 0x00000000
     output (without mplanes) device.
    Video format set: UYVY (59565[ 1457.483716] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 1, plane 0 offset 0x003f5000
    955) 1920x1080 (stride 3840) field none buffer size 4147200
    Vid[ 1457.498863] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 2, plane 0 offset 0x007ea000
    eo format: UYVY (59565955) 1920x1080 (stride 3840) field none bu[ 1457.513770] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 3, plane 0 offset 0x00bdf000
    ffer size 4147200
    [ 1457.528721] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 4, plane 0 offset 0x00fd4000
    [ 1457.540106] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 5, plane 0 offset 0x013c9000
    [ 1457.551455] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 6, plane 0 offset 0x017be000
    [ 1457.562779] videobuf2_common: [cap-000000009f39c6d2] __setup_offsets: buffer 7, plane 0 offset 0x01bb3000
    [ 1457.572351] videobuf2_common: [cap-000000009f39c6d2] __vb2_queue_alloc: allocated 8 buffers, 1 plane(s) each
    8 buffers requested.
    [ 1457.582680] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 0, plane 0 successfully mapped
    length: 4147200 offset: 0 timestamp type/source: mono/EoF
    [ 1457.593594] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 1, plane 0 successfully mapped
    Buffer 0/0 mapped at address 0xffff957d2000.
    length: 4147200 of[ 1457.607725] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 2, plane 0 successfully mapped
    fset: 4149248 timestamp type/source: mono/EoF
    Buffer 1/0 mapped[ 1457.622636] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 3, plane 0 successfully mapped
     at address 0xffff953dd000.
    length: 4147200 offset: 8298496 tim[ 1457.637086] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 4, plane 0 successfully mapped
    estamp type/source: mono/EoF
    Buffer 2/0 mapped at address 0xfff[ 1457.651844] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 5, plane 0 successfully mapped
    f94fe8000.
    length: 4147200 offset: 12447744 timestamp type/sour[ 1457.666385] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 6, plane 0 successfully mapped
    ce: mono/EoF
    Buffer 3/0 mapped at address 0xffff94bf3000.
    leng[ 1457.681228] videobuf2_common: [cap-000000009f39c6d2] vb2_mmap: buffer 7, plane 0 successfully mapped
    th: 4147200 offset: 16596992 timestamp type/source: mono/EoF
    Bu[ 1457.695663] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 0 succeeded
    ffer 4/0 mapped at address 0xffff947fe000.
    length: 4147200 offs[ 1457.709893] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 1 succeeded
    et: 20746240 timestamp type/source: mono/EoF
    Buffer 5/0 mapped [ 1457.723899] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 2 succeeded
    at address 0xffff94409000.
    length: 4147200 offset: 24895488 tim[ 1457.738197] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 3 succeeded
    estamp type/source: mono/EoF
    Buffer 6/0 mapped at address 0xfff[ 1457.752202] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 4 succeeded
    f94014000.
    length: 4147200 offset: 29044736 timestamp type/sour[ 1457.752213] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 5 succeeded
    ce: mono/EoF
    Buffer 7/0 mapped at address 0xffff93c1f000.
    [ 1457.780437] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 6 succeeded
    [ 1457.780450] videobuf2_common: [cap-000000009f39c6d2] vb2_core_qbuf: qbuf of buffer 7 succeeded
    [ 1457.802997] zyk ti_csi2rx_buffer_queue 875
    [ 1457.807277] zyk ti_csi2rx_buffer_queue 875
    [ 1457.807281] zyk ti_csi2rx_buffer_queue 875
    [ 1457.807285] zyk ti_csi2rx_buffer_queue 875
    [ 1457.807288] zyk ti_csi2rx_buffer_queue 875
    [ 1457.807290] zyk ti_csi2rx_buffer_queue 875
    [ 1457.807299] zyk ti_csi2rx_buffer_queue 875
    [ 1457.807304] zyk ti_csi2rx_buffer_queue 875
    [ 1458.013750] zyk ti_csi2rx_start_dma 771
    [ 1458.017812] videobuf2_common: [cap-000000009f39c6d2] vb2_core_streamon: successful
    [ 1458.025543] videobuf2_common: [cap-000000009f39c6d2] __vb2_wait_for_done_vb: will sleep waiting for buffers

  • 这边也按链接的方法作了个imx390dummypad,情况也是一样,中断没增加,也没有录到图像,media-ctrl -p看format没有什么不同了

     sh fmt-dummy.sh 
    root@am62axx-evm:/opt/edgeai-gst-apps#  yavta -s 1920x1080 -f UYVY  /dev/video2 -c100^C
    root@am62axx-evm:/opt/edgeai-gst-apps# media-ctl  -2023 Feb 27 10:38:50 am62axx-evm Process 1172 (edgeai-gui-app) of user 0 dumped core.
    2023 Feb 27 10:38:50 am62axx-evm Process 1172 (edgeai-gui-app) of user 0 dumped core.
    p
    Media controller API version 5.10.168
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial          
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  5.10.168
    
    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:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "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, 0 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev1
            pad0: Sink
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "ds90ub960 4-003d":4 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
            pad2: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad3: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad4: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
    
    - entity 15: ds90ub960 4-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:UYVY8_2X8/1920x1080 field:none]
                    <- "ds90ub953 4-0044":1 [ENABLED,IMMUTABLE]
            pad1: Sink
            pad2: Sink
            pad3: Sink
            pad4: Source
                    [stream:0 fmt:UYVY8_2X8/1920x1080 field:none]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
            pad5: Source
    
    - entity 24: ds90ub953 4-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:UYVY8_2X8/1920x1080 field:none colorspace:smpte170m]
                    <- "imx390dummy 6-001a":0 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_2X8/1920x1080 field:none colorspace:smpte170m]
                    -> "ds90ub960 4-003d":0 [ENABLED,IMMUTABLE]
    
    - entity 29: imx390dummy 6-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, IMMUTABLE, SOURCE]
                    0/0 -> 0/1 [INACTIVE, IMMUTABLE, SOURCE]
            pad0: Source
                    [stream:0 fmt:UYVY8_2X8/1920x1080@1/30 field:none colorspace:smpte170m]
                    -> "ds90ub953 4-0044":0 [ENABLED,IMMUTABLE]
    
    - entity 35: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video2
            pad0: Sink
                    <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
    
    - entity 41: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video3
            pad0: Sink
                    <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
    
    - entity 47: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video4
            pad0: Sink
                    <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
    
    - entity 53: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video5
            pad0: Sink
                    <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
    
    - entity 59: 30102000.ticsi2rx context 4 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video6
            pad0: Sink
                    <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]
    
    - entity 65: 30102000.ticsi2rx context 5 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video7
            pad0: Sink
                    <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
    
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps#  yavta -s 1920x1080 -f UYVY  /dev/video2 -c100
    Device /dev/video2 opened.
    [   45.194119] zyk ti_csi2rx_queue_setup 823
    Device `j721e-csi2rx' on `platform:30102000.ticsi2rx' is a video[   45.202359] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 0, plane 0 offset 0x00000000
     output (without mplanes) device.
    Video format set: UYVY (59565[   45.217124] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 1, plane 0 offset 0x003f5000
    955) 1920x1080 (stride 3840) field none buffer size 4147200
    Vid[   45.232340] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 2, plane 0 offset 0x007ea000
    eo format: UYVY (59565955) 1920x1080 (stride 3840) field none bu[   45.247598] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 3, plane 0 offset 0x00bdf000
    ffer size 4147200
    [   45.262464] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 4, plane 0 offset 0x00fd4000
    [   45.273497] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 5, plane 0 offset 0x013c9000
    [   45.284784] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 6, plane 0 offset 0x017be000
    [   45.296014] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 7, plane 0 offset 0x01bb3000
    [   45.305733] videobuf2_common: [cap-00000000cb995559] __vb2_queue_alloc: allocated 8 buffers, 1 plane(s) each
    8 buffers requested.
    [   45.315896] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 0, plane 0 successfully mapped
    length: 4147200 offset: 0 timestamp type/source: mono/EoF
    [   45.326905] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 1, plane 0 successfully mapped
    Buffer 0/0 mapped at address 0xffff90858000.
    length: 4147200 of[   45.340994] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 2, plane 0 successfully mapped
    fset: 4149248 timestamp type/source: mono/EoF
    Buffer 1/0 mapped[   45.355768] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 3, plane 0 successfully mapped
     at address 0xffff90463000.
    length: 4147200 offset: 8298496 tim[   45.370292] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 4, plane 0 successfully mapped
    estamp type/source: mono/EoF
    Buffer 2/0 mapped at address 0xfff[   45.385079] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 5, plane 0 successfully mapped
    f9006e000.
    length: 4147200 offset: 12447744 timestamp type/sour[   45.399614] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 6, plane 0 successfully mapped
    ce: mono/EoF
    Buffer 3/0 mapped at address 0xffff8fc79000.
    leng[   45.414405] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 7, plane 0 successfully mapped
    th: 4147200 offset: 16596992 timestamp type/source: mono/EoF
    Bu[   45.428887] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 0 succeeded
    ffer 4/0 mapped at address 0xffff8f884000.
    length: 4147200 offs[   45.443092] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 1 succeeded
    et: 20746240 timestamp type/source: mono/EoF
    Buffer 5/0 mapped [   45.457113] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 2 succeeded
    at address 0xffff8f48f000.
    length: 4147200 offset: 24895488 tim[   45.471343] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 3 succeeded
    estamp type/source: mono/EoF
    Buffer 6/0 mapped at address 0xfff[   45.485408] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 4 succeeded
    f8f09a000.
    length: 4147200 offset: 29044736 timestamp type/sour[   45.485418] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 5 succeeded
    ce: mono/EoF
    Buffer 7/0 mapped at address 0xffff8eca5000.
    [   45.513652] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 6 succeeded
    [   45.513664] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 7 succeeded
    [   45.536178] zyk ti_csi2rx_buffer_queue 875
    [   45.540487] zyk ti_csi2rx_buffer_queue 875
    [   45.544616] zyk ti_csi2rx_buffer_queue 875
    [   45.544622] zyk ti_csi2rx_buffer_queue 875
    [   45.552954] zyk ti_csi2rx_buffer_queue 875
    [   45.552958] zyk ti_csi2rx_buffer_queue 875
    [   45.552961] zyk ti_csi2rx_buffer_queue 875
    [   45.552963] zyk ti_csi2rx_buffer_queue 875
    [   45.570942] zyk ti_csi2rx_start_dma 771
    [   45.574949] videobuf2_common: [cap-00000000cb995559] vb2_core_streamon: successful
    [   45.582596] videobuf2_common: [cap-00000000cb995559] __vb2_wait_for_done_vb: will sleep waiting for buffers
    
    
    
    
    
    ^Z[   48.565869] videobuf2_common: [cap-00000000cb995559] __vb2_wait_for_done_vb: sleep was interrupted
    
    [1]+  Stopped(SIGTSTP)        yavta -s 1920x1080 -f UYVY /dev/video2 -c100
    root@am62axx-evm:/opt/edgeai-gst-apps# sh C0.sh 
    953 config
    
    953 end config
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# fg
    yavta -s 1920x1080 -f UYVY /dev/video2 -c100[   54.197831] videobuf2_common: [cap-00000000cb995559] __vb2_wait_for_done_vb: will sleep waiting for buffers
    
    
    
    
    
    
    
    
    
    
    
    

  • 这边也按链接的方法作了个imx390dummypad,情况也是一样,中断没增加,也没有录到图像,media-ctrl -p看format没有什么不同了

     sh fmt-dummy.sh 
    root@am62axx-evm:/opt/edgeai-gst-apps#  yavta -s 1920x1080 -f UYVY  /dev/video2 -c100^C
    root@am62axx-evm:/opt/edgeai-gst-apps# media-ctl  -2023 Feb 27 10:38:50 am62axx-evm Process 1172 (edgeai-gui-app) of user 0 dumped core.
    2023 Feb 27 10:38:50 am62axx-evm Process 1172 (edgeai-gui-app) of user 0 dumped core.
    p
    Media controller API version 5.10.168
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial          
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  5.10.168
    
    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:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "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, 0 route)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev1
            pad0: Sink
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    <- "ds90ub960 4-003d":4 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
                    -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
            pad2: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad3: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
            pad4: Source
                    [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
    
    - entity 15: ds90ub960 4-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:UYVY8_2X8/1920x1080 field:none]
                    <- "ds90ub953 4-0044":1 [ENABLED,IMMUTABLE]
            pad1: Sink
            pad2: Sink
            pad3: Sink
            pad4: Source
                    [stream:0 fmt:UYVY8_2X8/1920x1080 field:none]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
            pad5: Source
    
    - entity 24: ds90ub953 4-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:UYVY8_2X8/1920x1080 field:none colorspace:smpte170m]
                    <- "imx390dummy 6-001a":0 [ENABLED,IMMUTABLE]
            pad1: Source
                    [stream:0 fmt:UYVY8_2X8/1920x1080 field:none colorspace:smpte170m]
                    -> "ds90ub960 4-003d":0 [ENABLED,IMMUTABLE]
    
    - entity 29: imx390dummy 6-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, IMMUTABLE, SOURCE]
                    0/0 -> 0/1 [INACTIVE, IMMUTABLE, SOURCE]
            pad0: Source
                    [stream:0 fmt:UYVY8_2X8/1920x1080@1/30 field:none colorspace:smpte170m]
                    -> "ds90ub953 4-0044":0 [ENABLED,IMMUTABLE]
    
    - entity 35: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video2
            pad0: Sink
                    <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
    
    - entity 41: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video3
            pad0: Sink
                    <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
    
    - entity 47: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video4
            pad0: Sink
                    <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
    
    - entity 53: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video5
            pad0: Sink
                    <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
    
    - entity 59: 30102000.ticsi2rx context 4 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video6
            pad0: Sink
                    <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]
    
    - entity 65: 30102000.ticsi2rx context 5 (1 pad, 1 link, 0 route)
                 type Node subtype V4L flags 0
                 device node name /dev/video7
            pad0: Sink
                    <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
    
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps#  yavta -s 1920x1080 -f UYVY  /dev/video2 -c100
    Device /dev/video2 opened.
    [   45.194119] zyk ti_csi2rx_queue_setup 823
    Device `j721e-csi2rx' on `platform:30102000.ticsi2rx' is a video[   45.202359] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 0, plane 0 offset 0x00000000
     output (without mplanes) device.
    Video format set: UYVY (59565[   45.217124] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 1, plane 0 offset 0x003f5000
    955) 1920x1080 (stride 3840) field none buffer size 4147200
    Vid[   45.232340] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 2, plane 0 offset 0x007ea000
    eo format: UYVY (59565955) 1920x1080 (stride 3840) field none bu[   45.247598] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 3, plane 0 offset 0x00bdf000
    ffer size 4147200
    [   45.262464] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 4, plane 0 offset 0x00fd4000
    [   45.273497] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 5, plane 0 offset 0x013c9000
    [   45.284784] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 6, plane 0 offset 0x017be000
    [   45.296014] videobuf2_common: [cap-00000000cb995559] __setup_offsets: buffer 7, plane 0 offset 0x01bb3000
    [   45.305733] videobuf2_common: [cap-00000000cb995559] __vb2_queue_alloc: allocated 8 buffers, 1 plane(s) each
    8 buffers requested.
    [   45.315896] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 0, plane 0 successfully mapped
    length: 4147200 offset: 0 timestamp type/source: mono/EoF
    [   45.326905] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 1, plane 0 successfully mapped
    Buffer 0/0 mapped at address 0xffff90858000.
    length: 4147200 of[   45.340994] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 2, plane 0 successfully mapped
    fset: 4149248 timestamp type/source: mono/EoF
    Buffer 1/0 mapped[   45.355768] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 3, plane 0 successfully mapped
     at address 0xffff90463000.
    length: 4147200 offset: 8298496 tim[   45.370292] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 4, plane 0 successfully mapped
    estamp type/source: mono/EoF
    Buffer 2/0 mapped at address 0xfff[   45.385079] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 5, plane 0 successfully mapped
    f9006e000.
    length: 4147200 offset: 12447744 timestamp type/sour[   45.399614] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 6, plane 0 successfully mapped
    ce: mono/EoF
    Buffer 3/0 mapped at address 0xffff8fc79000.
    leng[   45.414405] videobuf2_common: [cap-00000000cb995559] vb2_mmap: buffer 7, plane 0 successfully mapped
    th: 4147200 offset: 16596992 timestamp type/source: mono/EoF
    Bu[   45.428887] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 0 succeeded
    ffer 4/0 mapped at address 0xffff8f884000.
    length: 4147200 offs[   45.443092] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 1 succeeded
    et: 20746240 timestamp type/source: mono/EoF
    Buffer 5/0 mapped [   45.457113] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 2 succeeded
    at address 0xffff8f48f000.
    length: 4147200 offset: 24895488 tim[   45.471343] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 3 succeeded
    estamp type/source: mono/EoF
    Buffer 6/0 mapped at address 0xfff[   45.485408] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 4 succeeded
    f8f09a000.
    length: 4147200 offset: 29044736 timestamp type/sour[   45.485418] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 5 succeeded
    ce: mono/EoF
    Buffer 7/0 mapped at address 0xffff8eca5000.
    [   45.513652] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 6 succeeded
    [   45.513664] videobuf2_common: [cap-00000000cb995559] vb2_core_qbuf: qbuf of buffer 7 succeeded
    [   45.536178] zyk ti_csi2rx_buffer_queue 875
    [   45.540487] zyk ti_csi2rx_buffer_queue 875
    [   45.544616] zyk ti_csi2rx_buffer_queue 875
    [   45.544622] zyk ti_csi2rx_buffer_queue 875
    [   45.552954] zyk ti_csi2rx_buffer_queue 875
    [   45.552958] zyk ti_csi2rx_buffer_queue 875
    [   45.552961] zyk ti_csi2rx_buffer_queue 875
    [   45.552963] zyk ti_csi2rx_buffer_queue 875
    [   45.570942] zyk ti_csi2rx_start_dma 771
    [   45.574949] videobuf2_common: [cap-00000000cb995559] vb2_core_streamon: successful
    [   45.582596] videobuf2_common: [cap-00000000cb995559] __vb2_wait_for_done_vb: will sleep waiting for buffers
    
    
    
    
    
    ^Z[   48.565869] videobuf2_common: [cap-00000000cb995559] __vb2_wait_for_done_vb: sleep was interrupted
    
    [1]+  Stopped(SIGTSTP)        yavta -s 1920x1080 -f UYVY /dev/video2 -c100
    root@am62axx-evm:/opt/edgeai-gst-apps# sh C0.sh 
    953 config
    
    953 end config
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# 
    root@am62axx-evm:/opt/edgeai-gst-apps# fg
    yavta -s 1920x1080 -f UYVY /dev/video2 -c100[   54.197831] videobuf2_common: [cap-00000000cb995559] __vb2_wait_for_done_vb: will sleep waiting for buffers
    
    
    
    
    
    
    
    
    
    
    
    
     

    网上查了一下,dump了一下寄存器

    CSI_RX_IF_VBUS2APB_STREAM0_STATUS 0x30101048 有2,3变化,说明dphy有数据,

    CSI_RX_IF_VBUS2APB_ERROR_IRQS 0x30101028 显示bit 8置位

    项目急啊,大哥哥

    我们模组型号

    SG2-OX03CC-5200-FPDLink

    看他们官网,他们在你们平台上调试过的

    森云智能推出基于TI AM62A的FPDLink III摄像头解决方案 (qq.com)

  • 您好,建议您可以把问题整理到一起,这样更方便工程师理解,谢谢