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.

[参考译文] SK-AM62A-LP:新的 PI 相机接口: Omnivision 5647定焦

Guru**** 2487365 points
Other Parts Discussed in Thread: SK-AM62A-LP, AM62A7

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1431716/sk-am62a-lp-new-pi-camera-interface-omnivision-5647-fixed-focus

器件型号:SK-AM62A-LP

工具与软件:

尊敬的团队:

我需要有关将 PI 摄像机(OmniVision 5647)连接到 SK-AM62A-LP 的帮助。

我找到了驱动程序库链接: ov5640.c.

我按照本教程操作: 启用 CSI-2传感器、但找不到提到的目录。

我还查看了许多常见问题解答、但没有成功。

您能否分享您拥有的指南或教程?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Vijay、您好!

    您应该使用 ov5647.c: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/media/i2c/ov5647.c?h=ti-linux-6.6.y。此驱动程序包含在适用于 AM62A 的 Processor SDK Linux 中。 您需要遵循 启用 CSI-2传感器指南 以启用此驱动程序。

    Unknown 说:
    我按照本教程操作: 启用 CSI-2传感器、但找不到所提到的目录。

    您指的是哪个目录?

    此致、

    建中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建中:

         根据我的理解、

    如果我要对内核 SDK 进行任何更改或添加硬件库、是否需要重新编译 SDK? 如果是、请建议使用哪个 SDK 文件来构建和编译。  

    目前、我正在尝试将新的摄像头库文件添加到 EVM 上安装的 SDK 中、但我找不到许多目录和文件、例如drivers/media/i2c/Makefile

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Vijay、您好!

    安装 Processor SDK Linux 后、您需要在主机(而不是 EVM)上执行此操作。

    此致、

    建中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建中:

    根据您的建议、我已在主机上安装 SDK、并按照 此处提到的说明进行操作。 但是、当我到达第7步以重建内核时、遇到了以下错误:

    make[3]: *** [scripts/Makefile.build:480: drivers] Error 2
    make[2]: *** [/home/vijay/ti-processor-sdk-linux-edgeai-am62a-evm-10_00_00_08/board-support/ti-linux-kernel-6.6.32+git-ti/Makefile:1913: .] Error 2
    make[1]: *** [Makefile:234: __sub-make] Error 2
    make[1]: Leaving directory '/home/vijay/ti-processor-sdk-linux-edgeai-am62a-evm-10_00_00_08/board-support/ti-linux-kernel-6.6.32+git-ti'
    make: *** [makerules/Makefile_linux:8: linux] Error 2
    

    您能帮助我们解决这个问题吗? 我已尝试过多次、但不断遇到相同的错误。

    谢谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Vijay、您好!

    您是否使用顶级 makefile 进行构建、如下所示:

    $ CD /
    $ make Linux 

    此命令应该有效。 您愿意分享您的完整日志吗?

    谢谢!

    建中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Vijay、您好!

    请使用附加的器件树叠加层。

    此致、

    Jianzhonge2e.ti.com/.../3463.k3_2D00_am62a7_2D00_sk_2D00_csi2_2D00_ov5647.dtso

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建中:

          仍无法获得任何结果。请查看随附的 pic

      

    我们可以做一些类似的事情、例如对您共享的 ov5647 SDK 文件进行交叉检查吗?

    因为此摄像头使用 PI3。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    请首先查看此常见问题解答: CSI 传感器在 V4L2环境中无法探测的常见原因是什么?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建中:

    感谢您阅读常见问题解答。 我在启动(U-Boot)日志中找到以下消息。 这是否会导致未检测到 I2C 问题?

    器件1上的 SD/MMC
    71 bytes read in 34 ms (2 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    ## Error: Environment import failed: errno = 22

    https://docs.google.com/document/d/1StWhR4MaJCqrlbIKn8nVVg3bVJK74vvqc07P2KU9V-c/edit?usp=drive_link

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Vijay、您好!

    您能否分享您的 uEnv.txt?

    谢谢!

    建中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建宗:

      您 再次分享了常见问题解答

    1.  root@am62axx-evm:~# dmesg | grep csi ->没有结果显示

    2. u-boot msg(这是一个新的日志)与常见问题解答中的相同:

    工作 FDT 设置为88000000
    无法加载"/boot/dtb/k3-am62a7-sk-csi2-ov5647.dtbo "

    3.修改至-> name_overles=ti/

    4. u-boot 日志(已更新):->

    工作 FDT 设置为88000000
    1885字节在37ms 内读取(48.8KiB/s)
    ###平展设备树在88000000时出现斑点
    使用0x88000000的 FDT blob 进行引导
    工作 FDT 设置为88000000
    正在将设备树加载到000000008feed000,结束000000008fffff...确定
    工作 FDT 设置为8feed000

    5.  dmesg | grep csi -> 仍然没有结果

    uEnv.txt

    # This uEnv.txt file can contain additional environment settings that you
    # want to set in U-Boot at boot time.  This can be simple variables such
    # as the serverip or custom variables.  The format of this file is:
    #    variable=value
    # NOTE: This file will be evaluated after the bootcmd is run and the
    #       bootcmd must be set to load this file if it exists (this is the
    #       default on all newer U-Boot images.  This also means that some
    #       variables such as bootdelay cannot be changed by this file since
    #       it is not evaluated until the bootcmd is run.
    # Setting the right U-Boot environment variables
    dorprocboot=1
    name_overlays=ti/k3-am62a7-sk-csi2-ov5647.dtbo

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Vijay、您好!

    您能否仔细检查已构建并安装到 SD 卡上的 ov5647驱动程序?

    您是否可以在引导后共享以下日志:

    • dmesg
    • 烟雾
    • modprobe ov5647

    此致、

    建中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建宗:

      请查找 lsmod 和 dmesg 的附件文件。  

    dmseg 输出:

    root@am62axx-evm:/opt/edgeai-gst-apps modprobe ov5647
    modprobe:严重:在/lib/modules/6.6.32目录中找不到模块 ov5647
    root@am62axx-evm:/opt/edgeai-gst-apps

    e2e.ti.com/.../1447.lsmod.txt

    e2e.ti.com/.../1447.dmesg.txt

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您的内核似乎未正确构建。  

    请按照下面的示例命令来查看您的内核中是否存在 ov5647.ko:

    root@am62axx-evm:~# uname -a
    Linux am62axx-EVM 6.6.32-ti-gdb8871293143-dirty #1 SMP 优先于8月1日19:10:56 UTC 2024 AArch64 GNU/Linux
    root@am62axx-evm:~ ls /lib/modules 6.6.32-ti-gdb8871293143-dirty /kernel/drivers/media/i2c/ov5647.ko

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建中:

        我更新了 SDK、现在 OV5647显示:
    root@am62axx-evm:/opt/edgeai-gst-apps v4l2-ctl --list-devices
    j721e-csi2rx (平台:30102000.ticsi2rx):
    /dev/video1
    /dev/video2
    /dev/video3
    /dev/video4
    /dev/video5
    /dev/video6
    /dev/media0

    e5010 (平台:e5010):
    /dev/video0

    现在我想检查摄像机的实时流视频所以请引导我们.

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Vijay、您好!

    您需要对 OV5647进行 ISP 调优。 请查看该应用手册: AM6xA ISP 调优指南。  

    我附加了两个源文件、这些文件是集成 OV5647 ISP 所需的。 请将 OV5647相关代码从这两个文件合并到 EVM 上的正确文件中、如 更新 TIOVX 模块的第5.3节所述。 我还附加了两个二进制文件、其中包含 OV5647的调整 ISP 配置。

    e2e.ti.com/.../8360.gsttiovxisp.ce2e.ti.com/.../2084.tiovx_5F00_sensor_5F00_module.ce2e.ti.com/.../2084.dcc_5F00_2a.bine2e.ti.com/.../2084.dcc_5F00_viss.bin

    此致、

    建中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建中:

    很抱歉响应延迟。 请参阅相关说明 AM6xA ISP 调优指南中的输出。 我已经成功完成了第5.3节和第5.4节、但遇到了第5.6节的问题。 输出如下:

    root@am62axx-evm:~# media-ctl -v "ov5647 4-0036":0 [fmt:SRGGB10_1x10/1920x1080 field:none]"打开媒体设备/dev/media0
    枚举实体
    查找设备:81:7
    查找设备:81:8
    查找设备:81:9
    查找设备:81:1
    查找设备:81:2
    查找设备:81:3
    查找设备:81:4
    查找设备:81:5
    查找设备:81:6
    找到9个实体
    枚举 PADS 和链接
    root@am62axx-evm:~# gst-launch-1.0 -v v4l2src num-buffers=5 device=/dev/video3 io-mode=dmabuf! video/x-bayer、宽度=1920、高度=1080、帧速率=30/1、格式=rggb10! multifilesink location="ov5647-image-%d.raw"
    正在将管道设置为暂停...
    管道处于活动状态、不需要 PREROLL ...
    管道是 PREROLLED ...
    正在将管道设置为播放...
    新时钟:GstSystemClock
    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src:cap = video/x-bayer、width=(int) 1920、height=(int) 1080、framerate=(fractional) 30/1、format=(string) rggb10、 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src:cps = video/x-bayer、width=(int) 1920、height=(int) 1080、framerate=(fractional) 30/1、format=(string) rggb10、 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    /GstPipeline:pipeline0/GstMultiFileSink:multifilesink0.GstPad:sink:caps = video/x-bayer、width=(int) 1920、height=(int) 1080、framerate=(fractional) 30/1、format=(string) rggb10、 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink:cps = video/x-bayer、width=(int) 1920、height=(int) 1080、frameate=(fractional) 30/1、format=(string) rggb10 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    错误:来自元素/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:分配所需的内存失败。
    其他调试信息:
    /usr/4510debug/gstreamer1.0-plugins-good/1.22.12/sys/v4l2/gstv4l2src.c src (950):gst_v4l2src_review_allocation ():/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    缓冲池激活失败
    执行在0:00:00.010834976之后结束
    正在将管道设置为空...
    错误:来自元素/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:内部数据流错误。
    其他调试信息:
    /usr/4510debug/gstreamer1.0/1.22.12/libs/gst/base/gstbasesrc.c src (3134):gst_base_src_loop ():/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    流已停止、未协商原因(-4)
    正在释放管道...
    root@am62axx-EVM:~#

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Vijay、您好!

    请查看此常见问题解答: 基于 V4L2的应用无法从探测 CSI 传感器捕获图像的常见原因是什么?

    此致、

    建中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建中:

      我一直在尽我最大的努力,但我不明白缺少什么。 您能帮助我成功运行此传感器吗? 一切看起来都正常、但 OV5647图像传感器仍无法正常工作。 我希望您可以帮助我们找到解决方案。

    请查看以下附加的命令及其输出:-

    root@am62axx-evm:/media/pics cam -C1 -流宽=640、高度=480、pixelformat=UYVY -C20 -F#.UYVY
    [2:07:42.186722208][1876]信息照相机 camera_manager.cpp:284 libcamera v0.2.0+dirty (2024-08-07T11:13:46+00:00)
    [2:07:42.211334081][1877] WARN CameraSensor CAMER_sensor.cpp:248 "ov5647 4-0036":建议的 V4L2控制0x009a0922不受支持
    [2:07:42.211449051][1877] WARN CameraSensor camera_sensor.cpp:315"ov5647 4-0036":需要修复传感器内核驱动程序
    [2:07:42.211496317][1877] WARN CameraSensor camera_sensor.cpp:317 "ov5647 4-0036":有关更多信息、请参阅 libcamera 源代码中的 Documentation/sensor_driver_requirements.rst
    [2:07:42.213143836][1877] WARN CameraSensor camera_sensor.cpp:463 'ov5647 4-0036':无法检索摄像头位置
    [2:07:42.213209532][1877] WARN CameraSensor CAMER_SENSOR.CPP:485 "ov5647 4-0036":旋转控制不可用、默认为0度
    摄像机配置已调整
    使用相机/base/bus@f0000/i2c@2000000/i2c-switch@71/i2c@1/camera@36作为摄像机0
    [2:07:42.214899932][1876] INFO Camera camera.cpp:1183配置流:(0) 640x480-SBGGR10
    CAM0:捕获20个帧
    7662.296417 (0.00fps) cam0-stream0序列:000000字节使用:614400
    7662.358931 (16.00 fps) cam0-stream0序列:000001字节:614400
    7662.374896 (62.64fps) cam0-stream0序列:000002字节:614400
    7662.390899 (62.49fps) cam0-stream0序列:000003字节:614400
    7662.406900 (62.50 fps) cam0-stream0序列:000004字节:614400
    7662.422898 (62.51 fps) cam0-stream0序列:000005字节:614400
    7662.438902 (62.48fps) cam0-stream0序列:000006字节:614400
    7662.454906 (62.48fps) cam0-stream0序列:000007字节:614400
    7662.470901 (62.52fps) cam0-stream0序列:000008字节:614400
    7662.486902 (62.50 fps) cam0-stream0序列:000009字节:614400
    7662.502905 (62.49fps) cam0-stream0序列:000010字节:614400
    7662.518909 (62.48fps) cam0-stream0序列:000011字节:614400
    7662.534909 (62.50 fps) cam0-stream0序列:000012字节:614400
    7662.550910 (62.50 fps) cam0-stream0序列:000013字节:614400
    7662.566910 (62.50 fps) cam0-stream0序列:000014字节:614400
    7662.582910 (62.50 fps) cam0-stream0序列:000015字节:614400
    7662.598911 (62.50 fps) cam0-stream0序列:000016字节:614400
    7662.614911 (62.50 fps) cam0-stream0序列:000017字节:614400
    7662.630913 (62.49fps) cam0-stream0序列:000018字节:614400
    7662.646916 (62.49fps) cam0-stream0序列:000019字节:614400

    root@am62axx-evm:/media/pics:yavta -c -Fcapture -s 640x480 -f SBGGR10 /dev/video1
    器件/dev/video1已打开。
    `platform:30102000.ticsi2rx'(驱动程序'j721e-csi2rx')上的设备`j721e-csi2rx'支持视频、捕获、无需 mplanes。
    视频格式集:SBGGR10 (30314742) 640x480 (跨度1280)字段无缓冲器大小614400
    视频格式:SBGGR10 (30314742) 640x480 (跨度1280)字段无缓冲器大小614400
    已请求8个缓冲器。
    长度:614400偏移量:0时间戳类型/来源:单声道/EOF
    缓冲区0/0映射到地址0xffa968a000。
    长度:614400偏移量:614400时间戳类型/来源:单声道/EOF
    将缓冲器1/0映射到地址0xffa95f4000。
    长度:614400偏移:1228800时间戳类型/来源:单声道/EOF
    缓冲器2/0映射在地址0xffa955e000处。
    长度:614400偏移:1843200时间戳类型/来源:单声道/EOF
    缓冲器3/0映射到地址0xffa94c8000。
    长度:614400偏移:2457600时间戳类型/来源:单声道/EOF
    将缓冲器4/0映射在地址0xffa9432000处。
    长度:614400偏移量:3072000时间戳类型/来源:单声道/EOF
    缓冲器5/0映射到地址0xffa939c000。
    长度:614400偏移量:3686400时间戳类型/来源:单声道/EOF
    将缓冲器6/0映射到地址0xffa9306000。
    长度:614400偏移量:4300800时间戳类型/来源:单声道/EOF
    缓冲区7/0被映射到地址0xffa9270000处。
    0 (0)[-]任何0 614400 B 17602.705425 17602.705461 69.004fps ts 单声道/EOF
    1 (1)[-]任何1 614400 B 17602.767922 17602.767998 16.001 fps ts 单声道/EOF
    2 (2)[-]任何2 614400 B 17602.783915 17602.785741 62.527fps ts 单声道/EOF
    3 (3)[-]任何3 614400 B 17602.799916 17602.803298 62.496fps ts 单声道/EOF
    4 (4)[-]任何4 614400 B 17602.815910 17602.819383 62.523 fps ts mono/EOF
    5 (5)[-]任何5 614400 B 17602.831909 17602.833778 62.504fps ts 单声道/EOF

    root@am62axx-evm:/media/pics gst-launch-1.0 v4l2src num-buffers=5 device="/dev/video1 ! video/x-raw、width=640、height=480! multifilesink location="image-%d.YUV"
    正在将管道设置为暂停...
    管道处于活动状态、不需要 PREROLL ...
    管道是 PREROLLED ...
    正在将管道设置为播放...
    新时钟:GstSystemClock

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Vijay、您好!

    看起来您的 yavta 捕获工作正常。 现在您可以继续进行 ISP 调优。 以下 GST 流水线是否适用于您?

    gst-launch-1.0 -v v4l2src num-buffers=5 device=/dev/video3 io-mode=dmabuf! video/x-bayer、宽度=640、高度=480、帧速率=30/1、格式=bggr10! multifilesink location="ov5647-image-%d.raw"

    此致、

    建中

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建中:

         以下 CMD 出现错误:

    gst-launch-1.0 -v v4l2src num-buffers=5 device=/dev/video1 io-mode=dmabuf! video/x-bayer、宽度=640、高度=480、帧速率=5/1、格式=bggr10! multifilesink location="ov5647-image-%d.raw"
    正在将管道设置为暂停...
    管道处于活动状态、不需要 PREROLL ...
    管道是 PREROLLED ...
    正在将管道设置为播放...
    新时钟:GstSystemClock
    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src:cap = video/x-bayer、width=(int) 640、height=(int) 480、framerate=(fractional) 5/1、format=(string) bggr10、 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src:cps = video/x-bayer、width=(int) 640、height=(int) 480、framerate=(fractional) 5/1、format=(string) bggr10、 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    /GstPipeline:pipeline0/GstMultiFileSink:multifilesink0.GstPad:sink:cap = video/x-bayer、width=(int) 640、height=(int) 480、framerate=(fractional) 5/1、format=(string) bggr10、 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink:caps = video/x-bayer、width=(int) 640、height=(int) 480、framerate=(fractional) 5/1、format=(string) bggr10、 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    错误:来自元素/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:分配所需的内存失败。
    其他调试信息:
    /usr/4510debug/gstreamer1.0-plugins-good/1.22.12/sys/v4l2/gstv4l2src.c src (950):gst_v4l2src_review_allocation ():/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    缓冲池激活失败
    执行在0:00:00.011647251之后结束
    正在将管道设置为空...
    错误:来自元素/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:内部数据流错误。
    其他调试信息:
    /usr/4510debug/gstreamer1.0/1.22.12/libs/gst/base/gstbasesrc.c src (3134):gst_base_src_loop ():/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    流已停止、未协商原因(-4)
    正在释放管道...

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您是否验证了 yavta 捕获的原始图像是否有效?

    您能否共享"media-ctl -p "输出?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建中:

    我收到的结果没有任何错误。 请检查随附的 Sensor_RawData_files

    gst-launch-1.0 -v v4l2src num-buffers=5 device=/dev/video1 io-mode=dmabuf! video/x-bayer、宽度=640、高度=480、帧速率=5/1、格式=bggr10! multifilesink location="ov5647-image-%d.raw"

    [报价 userid="35284" url="~/support/processors-group/processors/f/processors-forum/1431716/sk-am62a-lp-new-pi-camera-interface-omnivision-5647-fixed-focus/5538938 #5538938"]

    您是否验证了 yavta 捕获的原始图像是否有效?

    [报价]

    是的、我验证了图像。 但是、捕获文件为未知格式。 请查看随附的文件输出。

    捕获1.

    捕获2

    您能否分享"media-ctl -p"输出?

      请查看 CMD 输出:

    root@am62axx-evm:/opt/edgeai-gst-apps# media-ctl -p
    Media controller API version 6.1.80
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  6.1.80
    
    Device topology
    - entity 1: 30102000.ticsi2rx (7 pads, 7 links, 0 routes)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev0
            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 routes)
                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]
                    <- "ov5647 4-0036":0 [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
            pad3: Source
            pad4: Source
    
    - entity 15: ov5647 4-0036 (1 pad, 1 link, 0 routes)
                 type V4L2 subdev subtype Sensor flags 0
                 device node name /dev/v4l-subdev2
            pad0: Source
                    [stream:0 fmt:SBGGR10_1X10/640x480 field:none colorspace:srgb
                     crop.bounds:(16,16)/2592x1944
                     crop:(32,16)/2560x1920]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
    
    - entity 21: 30102000.ticsi2rx context 0 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video1
            pad0: Sink
                    <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
    
    - entity 27: 30102000.ticsi2rx context 1 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video2
            pad0: Sink
                    <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
    
    - entity 33: 30102000.ticsi2rx context 2 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video3
            pad0: Sink
                    <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
    
    - entity 39: 30102000.ticsi2rx context 3 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video4
            pad0: Sink
                    <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
    
    - entity 45: 30102000.ticsi2rx context 4 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video5
            pad0: Sink
                    <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]
    
    - entity 51: 30102000.ticsi2rx context 5 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video6
            pad0: Sink
                    <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
    

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的建中:

    我收到的结果没有任何错误。 请检查随附的 Sensor_RawData_files

    gst-launch-1.0 -v v4l2src num-buffers=5 device=/dev/video1 io-mode=dmabuf! video/x-bayer、宽度=640、高度=480、帧速率=5/1、格式=bggr10! multifilesink location="ov5647-image-%d.raw"

    现在请引导我们进入下一阶段。

    [报价 userid="35284" url="~/support/processors-group/processors/f/processors-forum/1431716/sk-am62a-lp-new-pi-camera-interface-omnivision-5647-fixed-focus/5538938 #5538938"]

    您是否验证了 yavta 捕获的原始图像是否有效?

    [报价]

    是的、我验证了图像。 但是、捕获文件为未知格式。 请查看随附的文件输出。

    捕获1.

    捕获2

    您能否分享"media-ctl -p"输出?

      请查看 CMD 输出:

    root@am62axx-evm:/opt/edgeai-gst-apps# media-ctl -p
    Media controller API version 6.1.80
    
    Media device information
    ------------------------
    driver          j721e-csi2rx
    model           TI-CSI2RX
    serial
    bus info        platform:30102000.ticsi2rx
    hw revision     0x1
    driver version  6.1.80
    
    Device topology
    - entity 1: 30102000.ticsi2rx (7 pads, 7 links, 0 routes)
                type V4L2 subdev subtype Unknown flags 0
                device node name /dev/v4l-subdev0
            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 routes)
                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]
                    <- "ov5647 4-0036":0 [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
            pad3: Source
            pad4: Source
    
    - entity 15: ov5647 4-0036 (1 pad, 1 link, 0 routes)
                 type V4L2 subdev subtype Sensor flags 0
                 device node name /dev/v4l-subdev2
            pad0: Source
                    [stream:0 fmt:SBGGR10_1X10/640x480 field:none colorspace:srgb
                     crop.bounds:(16,16)/2592x1944
                     crop:(32,16)/2560x1920]
                    -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
    
    - entity 21: 30102000.ticsi2rx context 0 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video1
            pad0: Sink
                    <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
    
    - entity 27: 30102000.ticsi2rx context 1 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video2
            pad0: Sink
                    <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
    
    - entity 33: 30102000.ticsi2rx context 2 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video3
            pad0: Sink
                    <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
    
    - entity 39: 30102000.ticsi2rx context 3 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video4
            pad0: Sink
                    <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
    
    - entity 45: 30102000.ticsi2rx context 4 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video5
            pad0: Sink
                    <- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]
    
    - entity 51: 30102000.ticsi2rx context 5 (1 pad, 1 link)
                 type Node subtype V4L flags 0
                 device node name /dev/video6
            pad0: Sink
                    <- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
    

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢您分享日志。 您的"ov5647 4-0036"实体与其他实体具有不同的格式。 请再次查看此 常见问题解答: 基于 V4L2的应用无法从探测 CSI 传感器捕获图像的常见原因是什么?