This thread has been locked.

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

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

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

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

Fullscreen
1
2
3
4
5
6
7
IMX390 Camera 0 detected
device = /dev/video-imx390-cam0
name = imx390
format = [fmt:SRGGB12_1X12/1936x1100 field: none]
subdev_id = /dev/v4l-imx390-subdev0
isp_required = yes
ldc_required = yes
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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 6.1.80
Media device information
------------------------
driver j721e-csi2rx
model TI-CSI2RX
serial
bus info platform:4500000.ticsi2rx
hw revision 0x1
driver version 6.1.80
Device topology
- entity 1: 4500000.ticsi2rx (17 pads, 17 links, 1 route)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
routes:
0/0 -> 2/0 [ACTIVE]
pad0: Sink
[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
<- "cdns_csi2rx.4504000.csi-bridge":1 [ENABLED,IMMUTABLE]
pad1: Source
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
yavta -c -Fcapture -s 1936x1100 -f SRGGB12 /dev/video2
Device /dev/video2 opened.
Device `j721e-csi2rx' on `platform:4510000.ticsi2rx' (driver 'j721e-csi2rx') supports video, capture, without mplanes.
Video format set: SRGGB12 (32314752) 1936x1100 (stride 3872) field none buffer size 4259200
Video format: SRGGB12 (32314752) 1936x1100 (stride 3872) field none buffer size 4259200
8 buffers requested.
[ 66.517857] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010
Buffer 0/0 mapped at address 0xffffa9110000.
length: 4259200 o[ 66.527940] Mem abort info:
ffset: 4259840 timestamp type/source: mono/EoF
Buffer 1/0 mappe[ 66.536276] ESR = 0x0000000096000006
d at address 0xffffa8d00000.
length: 4259200 offset: 8519680 ti[ 66.545560] EC = 0x25: DABT (current EL), IL = 32 bits
mestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0xff[ 66.556404] SET = 0, FnV = 0
ffa88f0000.
length: 4259200 offset: 12779520 timestamp type/sou[ 66.564995] EA = 0, S1PTW = 0
rce: mono/EoF
Buffer 3/0 mapped at address 0xffffa84e0000.
len[ 66.573675] FSC = 0x06: level 2 translation fault
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Looking forward to your reply very much!

  • 您好,Alice

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

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    libtidl_onnxrt_EP loaded 0x23835740
    Final number of subgraphs created are : 1, - Offloaded Nodes - 283, Total Nodes - 283
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=5) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    1209.955756 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    1209.955836 s: VX_ZONE_INIT:Enabled
    1209.955843 s: VX_ZONE_ERROR:Enabled
    1209.955849 s: VX_ZONE_WARNING:Enabled
    1209.956414 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-0
    1209.956536 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-1
    1209.956629 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-2
    1209.956720 s: VX_ZONE_INIT:[tivxPlatformCreateTargetId:116] Added target MPU-3
    1209.956729 s: VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    1209.957249 s: VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

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

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

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

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

  • 您好,

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

          Demo Configuration file — Processor SDK Linux for Edge AI Documentation

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

           类似的问题的帖子请参考

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

  • 感谢,已解决

  • 您好,Alice

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

        谢谢

  • 您好,

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

  • 您好,

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

  • 您好,

                  

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