{"id":307,"date":"2016-01-01T15:43:13","date_gmt":"2016-01-01T05:43:13","guid":{"rendered":"https:\/\/www.ubermotive.com\/?p=307"},"modified":"2017-04-08T12:04:38","modified_gmt":"2017-04-08T02:04:38","slug":"hacking-the-realtek-dvb-rtl2832u-into-linux-by-hand","status":"publish","type":"post","link":"https:\/\/www.ubermotive.com\/?p=307","title":{"rendered":"Hacking the Realtek DVB RTL2832U into Linux by hand"},"content":{"rendered":"<p>I had the misfortune of purchasing two of these PCIe TV tuners (as per lsusb):<\/p>\n<pre>Bus 004 Device 002: ID 1f4d:a803 G-Tek Electronics Group\r\nBus 003 Device 002: ID 1f4d:a803 G-Tek Electronics Group<\/pre>\n<p>I&#8217;d assumed that the RTL2832U was a common chipset, and would detect on a stock kernel. How wrong I was. Not only do you need to compile media_build, you need to <em>patch <\/em>media_build for this card to detect.<br \/>\n<!--more--><\/p>\n<p>I originally found a patch for 3.8 kernel on the web. It seems I can&#8217;t find it on the web any more, and the kernel has changed slightly since then. I had to change how an enum was referenced to get it working in Linux 4.2.<\/p>\n<p>Update 22<sup>nd<\/sup> Feb 2017: I had to update the patch to work on a 4.8 kernel. The 4.2 patch can still be found <a href=\"\/~russell\/dvb-usb-rtl2832-4.2.patch\">here<\/a>.<\/p>\n<p>Here&#8217;s the <a href=\"http:\/\/ednolo.alumnos.upv.es\/?p=1737\">original instructions <\/a>I found on the net (copy\/pasted here).<\/p>\n<pre>sudo apt install build-essential \r\nsudo apt install linux-headers-`uname-r`\r\nsudo apt install libproc-processtable-perl\r\nmkdir dvb-2832u\r\ncd dvb-2832u\r\ngit clone git:\/\/linuxtv.org\/media_build.git\r\ncd media_build\r\n.\/build\r\ncd linux\/\r\npatch -p1 &lt; ..\/<a href=\"\/~russell\/dvb-usb-rtl2832.patch\">dvb-usb-rtl2832.patch<\/a>\r\ncd ..\r\nmake allmodconfig\r\nmake\r\nsudo make install<\/pre>\n<p>It&#8217;s a bit of a pain when a kernel update comes through. After rebooting to the new kernel, you need to edit the following file and update the version number to the currently running kernel:<\/p>\n<pre>.\/v4l\/.version<\/pre>\n<p>Then rebuild and install:<\/p>\n<pre>make\r\nsudo make install<\/pre>\n<p>&#8230;and reboot.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had the misfortune of purchasing two of these PCIe TV tuners (as per lsusb): Bus 004 Device 002: ID 1f4d:a803 G-Tek Electronics Group Bus 003 Device 002: ID 1f4d:a803 G-Tek Electronics Group I&#8217;d assumed that the RTL2832U was a common chipset, and would detect on a stock kernel. How wrong I was. Not only [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.ubermotive.com\/index.php?rest_route=\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ubermotive.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ubermotive.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ubermotive.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ubermotive.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=307"}],"version-history":[{"count":11,"href":"https:\/\/www.ubermotive.com\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions"}],"predecessor-version":[{"id":373,"href":"https:\/\/www.ubermotive.com\/index.php?rest_route=\/wp\/v2\/posts\/307\/revisions\/373"}],"wp:attachment":[{"href":"https:\/\/www.ubermotive.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ubermotive.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ubermotive.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}