Difference between revisions of "Intersil TW6869 Linux driver"

From RidgeRun Developer Connection
Jump to: navigation, search
(Intersil TW6869 features)
m
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<seo title="Intersil TW6869 | TW6869 Linux Driver for Jetson TX1" titlemode="replace" keywords="GStreamer, Linux SDK, Linux BSP,  Embedded Linux, Device Drivers, Nvidia, Xilinx, TI, NXP, Freescale, Embedded Linux driver development, Linux Software development, Embedded Linux SDK, Embedded Linux Application development, GStreamer Multimedia Framework." description="Get an HDMI 1.4 to MIPI CSI-2 1.01 bridge for video data up to 1080P at 60 fps with the Intersil TW6869.  Learn about this Linux Driver for Jetson TX1 at RidgeRun."></seo>
+
<seo title="Intersil TW6869 | Intersil TW6869 Linux Driver for Jetson | RidgeRun" titlemode="replace" metakeywords="GStreamer, Linux SDK, Linux BSP,  Embedded Linux, Device Drivers, Nvidia, Xilinx, TI, NXP, Freescale, Embedded Linux driver development, Linux Software development, Embedded Linux SDK, Embedded Linux Application development, GStreamer Multimedia Framework, Intersil TW6869, TW6869, HDMI 1.4 to MIPI CSI-2 1.01 bridge, HDMI 1.4 to MIPI CSI-2 1.01, Intersil TW6869 Linux driver" metadescription="Get an HDMI 1.4 to MIPI CSI-2 1.01 bridge for video data up to 1080P at 60 fps with the Intersil TW6869.  Learn about this Linux Driver for Jetson at RidgeRun."></seo>
  
 
<table>
 
<table>
Line 5: Line 5:
 
<td><div class="clear; float:right">__TOC__</div></td>
 
<td><div class="clear; float:right">__TOC__</div></td>
 
<td>
 
<td>
<html>
+
{{Shopping cart mpo for V4L2 camera drivers}}
<div id='product-component-c8ca0839823'></div>
+
<td>
    <script type="text/javascript">
+
{{NVIDIA Preferred Partner logo}}
    /*<![CDATA[*/
+
<td>
 
 
    (function () {
 
      var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
 
      if (window.ShopifyBuy) {
 
        if (window.ShopifyBuy.UI) {
 
          ShopifyBuyInit();
 
        } else {
 
          loadScript();
 
        }
 
      } else {
 
        loadScript();
 
      }
 
 
 
      function loadScript() {
 
        var script = document.createElement('script');
 
        script.async = true;
 
        script.src = scriptURL;
 
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
 
        script.onload = ShopifyBuyInit;
 
      }
 
 
 
      function ShopifyBuyInit() {
 
        var client = ShopifyBuy.buildClient({
 
          domain: 'ridgerun1.myshopify.com',
 
          storefrontAccessToken: 'b0ca98633a82de5d2f63cd51f5af30ac',
 
        });
 
 
 
        ShopifyBuy.UI.onReady(client).then(function (ui) {
 
          ui.createComponent('product', {
 
            id: [1748853456967],
 
            node: document.getElementById('product-component-c8ca0839823'),
 
            moneyFormat: '%24%7B%7Bamount%7D%7D',
 
            options: {
 
  "product": {
 
    "buttonDestination": "checkout",
 
    "variantId": "all",
 
    "width": "240px",
 
    "contents": {
 
      "imgWithCarousel": false,
 
      "variantTitle": false,
 
      "description": false,
 
      "buttonWithQuantity": false,
 
      "quantity": false
 
    },
 
    "text": {
 
      "button": "Purchase Now"
 
    },
 
    "styles": {
 
      "product": {
 
        "@media (min-width: 601px)": {
 
          "max-width": "100%",
 
          "margin-left": "0",
 
          "margin-bottom": "50px"
 
        }
 
      },
 
      "button": {
 
        "background-color": "#0196ba",
 
        "font-family": "Open Sans, sans-serif",
 
        "font-size": "18px",
 
        "padding-top": "17px",
 
        "padding-bottom": "17px",
 
        "padding-left": "50px",
 
        "padding-right": "50px",
 
        ":hover": {
 
          "background-color": "#0187a7"
 
        },
 
        "border-radius": "5px",
 
        ":focus": {
 
          "background-color": "#0187a7"
 
        },
 
        "font-weight": "bold"
 
      },
 
      "quantityInput": {
 
        "font-size": "18px",
 
        "padding-top": "17px",
 
        "padding-bottom": "17px"
 
      },
 
      "compareAt": {
 
        "font-size": "12px"
 
      }
 
    },
 
    "googleFonts": [
 
      "Open Sans"
 
    ]
 
  },
 
  "cart": {
 
    "contents": {
 
      "button": true
 
    },
 
    "styles": {
 
      "button": {
 
        "background-color": "#0196ba",
 
        "font-family": "Open Sans, sans-serif",
 
        "font-size": "18px",
 
        "padding-top": "17px",
 
        "padding-bottom": "17px",
 
        ":hover": {
 
          "background-color": "#0187a7"
 
        },
 
        "border-radius": "5px",
 
        ":focus": {
 
          "background-color": "#0187a7"
 
        },
 
        "font-weight": "bold"
 
      },
 
      "footer": {
 
        "background-color": "#ffffff"
 
      }
 
    },
 
    "googleFonts": [
 
      "Open Sans"
 
    ]
 
  },
 
  "modalProduct": {
 
    "contents": {
 
      "img": false,
 
      "imgWithCarousel": true,
 
      "variantTitle": false,
 
      "buttonWithQuantity": true,
 
      "button": false,
 
      "quantity": false
 
    },
 
    "styles": {
 
      "product": {
 
        "@media (min-width: 601px)": {
 
          "max-width": "100%",
 
          "margin-left": "0px",
 
          "margin-bottom": "0px"
 
        }
 
      },
 
      "button": {
 
        "background-color": "#0196ba",
 
        "font-family": "Open Sans, sans-serif",
 
        "font-size": "18px",
 
        "padding-top": "17px",
 
        "padding-bottom": "17px",
 
        "padding-left": "50px",
 
        "padding-right": "50px",
 
        ":hover": {
 
          "background-color": "#0187a7"
 
        },
 
        "border-radius": "5px",
 
        ":focus": {
 
          "background-color": "#0187a7"
 
        },
 
        "font-weight": "bold"
 
      },
 
      "quantityInput": {
 
        "font-size": "18px",
 
        "padding-top": "17px",
 
        "padding-bottom": "17px"
 
      }
 
    },
 
    "googleFonts": [
 
      "Open Sans"
 
    ]
 
  },
 
  "toggle": {
 
    "styles": {
 
      "toggle": {
 
        "font-family": "Open Sans, sans-serif",
 
        "background-color": "#0196ba",
 
        ":hover": {
 
          "background-color": "#0187a7"
 
        },
 
        ":focus": {
 
          "background-color": "#0187a7"
 
        },
 
        "font-weight": "bold"
 
      },
 
      "count": {
 
        "font-size": "18px"
 
      }
 
    },
 
    "googleFonts": [
 
      "Open Sans"
 
    ]
 
  },
 
  "productSet": {
 
    "styles": {
 
      "products": {
 
        "@media (min-width: 601px)": {
 
          "margin-left": "-20px"
 
        }
 
      }
 
    }
 
  }
 
}
 
          });
 
        });
 
      }
 
    })();
 
    /*]]>*/
 
    </script>
 
</html>
 
 
<td>
 
<td>
<div style='text-align: center;'>{{Debug Symbol}} Problems running the pipelines shown on this page?<br>Please see our [[GStreamer Debugging]] guide for help.</div>
+
{{GStreamer debug}}
 +
<td>
 +
<center>
 +
{{ContactUs Button}}
 +
</center>
 +
</tr>
 +
</table>
 
<br>
 
<br>
<div style='text-align: center;'>[[File:RR Contact Us.png|200px|link=http://www.ridgerun.com/contact]]</div>
 
</td>
 
</td>
 
</tr></table>
 
  
 
== Intersil TW6869 features ==  
 
== Intersil TW6869 features ==  
Line 216: Line 23:
 
Reference: [http://go.intersil.com/rs/intersilcorporation/images/tw6869-ds.pdf Intersil TW6869 bridge chip]
 
Reference: [http://go.intersil.com/rs/intersilcorporation/images/tw6869-ds.pdf Intersil TW6869 bridge chip]
  
The Intersil TW6869 is a highly integrated solution that supports multi-channel video and audio capture via PCIe x1 interface for PC DVR system and video analytic application. It contains high quality eight channel NTSC/PAL/SECAM video decoders that convert analog composite video signal to digital component YCbCr data.
+
The Intersil TW6869 is a highly integrated solution that supports multi-channel video and audio capture via PCIe x1 interface for PC DVR systems and video analytic applications. It contains high quality eight-channel NTSC/PAL/SECAM video decoders that convert the analog composite video signal to digital component YCbCr data.
  
 
* Tested resolution: 720x480.
 
* Tested resolution: 720x480.
Line 224: Line 31:
 
The driver was developed for kernel 3.10.67 using NVIDIA kernel source l4t-r23.2.
 
The driver was developed for kernel 3.10.67 using NVIDIA kernel source l4t-r23.2.
  
'''1.''' Follow the instructions in [http://developer.ridgerun.com/wiki/index.php?title=Compiling_Tegra_X1_source_code#Downloading_the_code Compiling Jetson TX1 source code (Downloading the code)] to get the kernel source code.
+
'''1.''' Follow the instructions in [[Compiling_Jetson_TX1/TX2_source_code#Downloading_the_code | Compiling Jetson_TX1/TX2 source code (Downloading the code)]] to get the kernel source code.
  
 
'''2.''' Once you have the source code, apply the following two patches if you haven't yet, for fixing kernel errors during compilation.
 
'''2.''' Once you have the source code, apply the following two patches if you haven't yet, for fixing kernel errors during compilation.
Line 238: Line 45:
 
*add-tw6869-driver.patch
 
*add-tw6869-driver.patch
  
'''4.''' Follow the instructions in [http://developer.ridgerun.com/wiki/index.php?title=Compiling_Tegra_X1_source_code#Build_Kernel Compiling_Jetson_TX1_source_code (Build Kernel)] for building the kernel, and then flash the image.
+
'''4.''' Follow the instructions in [[Compiling_Jetson_TX1/TX2_source_code#Build_Kernel | Compiling_Jetson_TX1/TX2_source_code (Build Kernel)]] for building the kernel, and then flash the image.
  
 
Make sure to enable TW6869 driver support
 
Make sure to enable TW6869 driver support
Line 286: Line 93:
 
{{ContactUs}}
 
{{ContactUs}}
  
[[Category:Jetson]][[Category:Jetson V4L2 Drivers]]
+
[[Category:Jetson]][[Category:Jetson V4L2 Drivers]][[Category:Intersil]]

Latest revision as of 14:08, 23 March 2023

Nvidia-preferred-partner-badge-rgb-for-screen.png

Error something wrong.jpg Problems running the pipelines shown on this page?
Please see our GStreamer Debugging guide for help.

RR Contact Us.png


Intersil TW6869 features

Reference: Intersil TW6869 bridge chip

The Intersil TW6869 is a highly integrated solution that supports multi-channel video and audio capture via PCIe x1 interface for PC DVR systems and video analytic applications. It contains high quality eight-channel NTSC/PAL/SECAM video decoders that convert the analog composite video signal to digital component YCbCr data.

  • Tested resolution: 720x480.
  • Tested format: NTFS.

Enable driver

The driver was developed for kernel 3.10.67 using NVIDIA kernel source l4t-r23.2.

1. Follow the instructions in Compiling Jetson_TX1/TX2 source code (Downloading the code) to get the kernel source code.

2. Once you have the source code, apply the following two patches if you haven't yet, for fixing kernel errors during compilation.

kernel_r7_asm.patch

logical_comparison.patch

3. Apply the driver patches:

  • PCI-Add-quirk-for-setting-valid-class-for-tw6869.patch
  • fix-unknown-ioctl-V.patch
  • add-tw6869-driver.patch

4. Follow the instructions in Compiling_Jetson_TX1/TX2_source_code (Build Kernel) for building the kernel, and then flash the image.

Make sure to enable TW6869 driver support

make menuconfig

Enable Analog TV support

-> Device Drivers
  -> Multimedia support (MEDIA_SUPPORT [=y])
    ->Analog TV support (MEDIA_ANALOG_TV_SUPPORT [=y])

Enable TW6869 module

-> Device Drivers
  -> Multimedia support (MEDIA_SUPPORT [=y])
    -> Media PCI Adapters (MEDIA_PCI_SUPPORT [=y])
      -> TW6869 (VIDEO_TW6869 [=m])

Mount the kernel module

sudo modprobe videobuf2-dma-contig                                                          

sudo modprobe tw6869

Examples

v4l2 utils

v4l2 utils V4L2 Test Application can be used for testing the driver, according to the input video resolution:

v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame.raw --stream-count=1

Also Raw pixels can be used for visualizing the captured frame.

GStreamer

To capture a video use:

gst-launch-1.0 v4l2src ! xvimagesink                            


RidgeRun Resources

Quick Start Client Engagement Process RidgeRun Blog Homepage
Technical and Sales Support RidgeRun Online Store RidgeRun Videos Contact Us

OOjs UI icon message-progressive.svg Contact Us

Visit our Main Website for the RidgeRun Products and Online Store. RidgeRun Engineering informations are available in RidgeRun Professional Services, RidgeRun Subscription Model and Client Engagement Process wiki pages. Please email to support@ridgerun.com for technical questions and contactus@ridgerun.com for other queries. Contact details for sponsoring the RidgeRun GStreamer projects are available in Sponsor Projects page. Ridgerun-logo.svg
RR Contact Us.png