Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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: Example gstreamer test commands with SDK 8.2 using FPDLink III Serdes

Part Number: TDA4VM

Hi there,

We are attempting to get the TDA4VM working with multiple cameras on an FPDLinkIII deserializer (ds90ub960) on SDK 8.2 and test using Gstreamer.

We are getting a crash in Gstreamer using some command we were using before. We think the V4L2 link structure has changed in SDK8.2, but we do not see any examples of this in the available documentation. Can you please provide some Gstreamer pipeline examples?

Here is the link structure we see today.

Here is the crash we are experiencing.

root@tda4vm-sk:~# gst-launch-1.0 v4l2src device=/dev/video2 io-mode=2 ! video/x-raw,width=1280,height=800 ! videoconvert ! waylandsink

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline[  651.537327] ds90ub960 8-0030: Failed to get source frame desc for port 0
 to PLAYING ...
New clock: GstSystemClock
[  651.546617] ds90ub960 8-0030: Failed to get source frame desc for port 0
[  651.556918] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[  651.565692] Mem abort info:
[  651.568473]   ESR = 0x96000007
[  651.571522]   EC = 0x25: DABT (current EL), IL = 32 bits
[  651.576823]   SET = 0, FnV = 0
[  651.579863]   EA = 0, S1PTW = 0
[  651.582997] Data abort info:
[  651.585871]   ISV = 0, ISS = 0x00000007
[  651.589702]   CM = 0, WnR = 0
[  651.592657] user pgtable: 64k pages, 48-bit VAs, pgdp=00000008825b4000
[  651.599172] [0000000000000000] pgd=0000000888310003, p4d=0000000888310003, pud=0000000888310003, pmd=0000000882c40003, pte=0000000000000000
[  651.611703] Internal error: Oops: 96000007 [#1] PREEMPT SMP
[  651.617259] Modules linked in: xt_conntrack xt_MASQUERADE xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables bridge stp llc overlay xfrm_user xfrm_algo bluetooth ecdh_generic ecc rfki6
[  651.674388] CPU: 0 PID: 1315 Comm: v4l2src0:src Tainted: G        W  O      5.10.100-g7a7a3af903 #19
[  651.683495] Hardware name: Texas Instruments J721E SK (DT)
[  651.688963] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO BTYPE=--)
[  651.694958] pc : ww_mutex_lock_interruptible+0x210/0x388
[  651.700254] lr : check_state_pad_stream.isra.0.part.0+0x24/0xa0
[  651.706154] sp : ffff8000118ef840
[  651.709454] x29: ffff8000118ef840 x28: 0000000040045612
[  651.714750] x27: ffff8000118efaf0 x26: 0000000043210200
[  651.720046] x25: 0000000000000004 x24: ffff000803a2e810
[  651.725341] x23: 0000000000000000 x22: 0000000000000000
[  651.730637] x21: 0000000000000000 x20: 0000000000000000
[  651.735932] x19: ffff8000118ef8c8 x18: 0000000000000010
[  651.741228] x17: 0000000000000000 x16: 0000000000000000
[  651.746525] x15: ffff000802c3d730 x14: 00000000000002e1
[  651.751821] x13: ffff000802c3d730 x12: 00000000ffffffea
[  651.757116] x11: ffff80001131a3e0 x10: ffff8000113023a0
[  651.762411] x9 : ffff8000113023f8 x8 : 0000000000017fe8
[  651.767706] x7 : c0000000ffffefff x6 : 0000000000000001
[  651.773002] x5 : 0000000000000000 x4 : ffff80001081a6f0
[  651.778299] x3 : 0000000000000000 x2 : ffff000802c3d200
[  651.783594] x1 : 0000000000000000 x0 : 0000000000000000
[  651.788892] Call trace:
[  651.791329]  ww_mutex_lock_interruptible+0x210/0x388
[  651.796278]  call_get_fmt+0xa8/0xd0
[  651.799754]  csi2rx_get_link_freq+0xd4/0x1b0
[  651.804009]  csi2rx_configure_external_dphy+0x48/0x110
[  651.809129]  csi2rx_s_stream+0x280/0x6e0
[  651.813043]  ti_csi2rx_sd_s_stream+0x17c/0x198 [j721e_csi2rx]
[  651.818772]  ti_csi2rx_start_streaming+0x380/0x428 [j721e_csi2rx]
[  651.824847]  vb2_start_streaming+0x6c/0x160
[  651.829013]  vb2_core_streamon+0x90/0x190
[  651.833008]  vb2_streamon+0x1c/0x70
[  651.836481]  vb2_ioctl_streamon+0x50/0x60
[  651.840476]  v4l_streamon+0x24/0x30
[  651.843951]  __video_do_ioctl+0x184/0x3e8
[  651.847946]  video_usercopy+0x18c/0x580
[  651.851767]  video_ioctl2+0x18/0x58
[  651.855241]  v4l2_ioctl+0x40/0x60
[  651.858545]  __arm64_sys_ioctl+0xa8/0xf0
[  651.862455]  el0_svc_common.constprop.0+0x78/0x1c8
[  651.867229]  do_el0_svc+0x24/0x90
[  651.870532]  el0_svc+0x14/0x20
[  651.873574]  el0_sync_handler+0xb0/0xb8
[  651.877395]  el0_sync+0x180/0x1c0
[  651.880700] Code: c8017e60 35ffffa1 17fffcdd f9800071 (c85ffc60)
[  651.886778] ---[ end trace df5865553b7cb98e ]---

Thanks!

  • Hi,

    gst-launch-1.0 v4l2src device=/dev/video2 io-mode=2 ! video/x-raw,width=1280,height=800 ! videoconvert ! waylandsink

    Apologies for the late reply. I think format is missing in the caps. Can you try by providing format=NV12? and also suggest you to use kmssink.

     gst-launch-1.0 v4l2src device=/dev/video2 io-mode=2 ! video/x-raw, format=NV12, width=1280,height=800 ! videoconvert ! waylandsink

    Regards

    Nikshith