AnsweredAssumed Answered

TW6865 PCI Interface on Nitrogen6_Max

Question asked by Anuradha Ranasinghe on Feb 15, 2017
Latest reply on Feb 23, 2017 by Anuradha Ranasinghe

Hi All,

 

I am trying to get our custom TW6865 capture card running on above platform. This is intended to run on kernel 4.1.15.1 with Ubuntu Xenial, and the mainline driver tw686x loaded. I've verified the hardware connection, can see pci link up and the device registration during the boot. Here is my kernel log :

[Bash] TW6865 - Pastebin.com 

 

In lsmod and lspci, I can see the driver loading and detection of the capture card respectively :

#lspci

00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01)
01:00.0 Multimedia video controller: Intersil Techwell Device 6869 (rev 01)
#lsmod
tc358743_h2c_bridge    49152  0
ipu_fg_overlay_sdc     16384  1 mxc_v4l2_capture
egalax_ts              16384  0
v4l2_int_device        16384  4 ov5642_camera,ov5640_camera_mipi_int,tc358743_h2c_bridge,mxc_v4l2_capture
ft5x06_ts              16384  0
tw686x                 28672  2
videobuf2_vmalloc      16384  1 tw686x
videobuf2_memops       16384  1 videobuf2_vmalloc
galcore               225280  10
gpio_keys              20480  0
To get the dma buffer allocated, I had to pass coherent_pool = 64M as a boot arg too. With aid of v4l2-ctl, the driver information and even composite signal can be correctly identified (v4l2-ctl -d /dev/video0 --all detects the cvbs signal wrt the input channel) :
Video input : 0 (Composite0: ok)
But the video device does not seem to give any video outputs, to the following gst commands, I only see a black imxeglvivsink window. But no pipeline errors shown in the terminal :
gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,width=720,height=480,pixelformat=UYVY ! imxipuvideotransform ! imxeglvivsink

gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,width=720,height=480,pixelformat=UYVY ! queue ! pngenc ! multifilesink location="/home/ubuntu/Pissu/frame%d.png"

 

The pipeline message can be seen here :

[Bash] pipeline_message - Pastebin.com 

 

Tried with imxv4l2videosrc too, but no luck ! Is there any additional insight/direction that I can try? 

 

Thanks in Advance

 

Outcomes