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等相关节点

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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


    下面soc取数据并显示

    Fullscreen
    1
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    发现报错了

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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 ...
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    这个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,不需要控制

    Fullscreen
    1
    2
    3
    4
    5
    6
    [ 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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • 那第二点先不提

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

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

    Fullscreen
    1
    2
    3
    4
    5
    6
    [ 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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    有些报错

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    [ 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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    但仍然只有2个

  • 重新在uboot输入

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

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

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    --- 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;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    2.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    Fullscreen
    1
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    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

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    出现这种现象是我的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]'

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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]
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

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

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    的情况

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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:
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    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:
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     

    网上查了一下,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)

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

  • camera调试.doc

    整理放一个word

x 出现错误。请重试或与管理员联系。