{"id":64,"date":"2010-12-30T06:10:41","date_gmt":"2010-12-30T03:10:41","guid":{"rendered":"http:\/\/meekconsulting.com\/?p=64"},"modified":"2010-12-30T06:10:41","modified_gmt":"2010-12-30T03:10:41","slug":"hdpvr-ir-blaster-working-with-ubuntu-10-10","status":"publish","type":"post","link":"https:\/\/meekconsulting.com\/?p=64","title":{"rendered":"HDPVR IR Blaster working with Ubuntu 10.10"},"content":{"rendered":"<p>Upgrading to Ubuntu 10.10 caused my HDPVR ir blaster to stop working, again\u2026<\/p>\n<p>I had to re-figure out how I got it working int he first place, so I figured I\u2019d write it down this time.<\/p>\n<p>Ubuntu 10.10 comes with hdpvr drivers compiled and included in \/lib\/modules\/2.6.35-24-generic\/kernel\/drivers\/media\/video\/hdpvr\/hdpvr.ko<br \/>\nBUT these drivers DO NOT support using the IR blaster function.<\/p>\n<p>So you have to compile them yourself.<\/p>\n<p>The lirc_zilog driver which is needed is included with 10.10 ubuntu ( it is in the staging area: \/lib\/modules\/2.6.35-24-generic\/kernel\/drivers\/staging\/lirc\/lirc_zilog.ko)<\/p>\n<p>But in previous versions I had to compile that separately, but this time it worked using the distributed version.<\/p>\n<p>To get the hdpvr drivers recompiled, I used the source code I had working before.  I think I got it from the links on this page: <a href=\"http:\/\/www.mythtv.org\/wiki\/HD-PVR\">http:\/\/www.mythtv.org\/wiki\/HD-PVR<\/a><br \/>\nWhich has the software linked here:  <a href=\"http:\/\/www.themainlan.com\/mythtv\/hdpvr-blaster-drivers.tar.gz\">http:\/\/www.themainlan.com\/mythtv\/hdpvr-blaster-drivers.tar.gz<\/a><\/p>\n<p>Usually the drill when you get a new kernel is to go to the directory for the hdpvr and<br \/>\nmake clean<br \/>\nmake<br \/>\nand copy the hdpvr.ko file to the appropriate  \/lib\/modules directory<\/p>\n<p>But this time it wouldn\u2019t compile.<\/p>\n<p>I had to change some function calls that had been renamed in the new kernel:<\/p>\n<p>Change:<br \/>\nusb_buffer_alloc() to usb_alloc_coherent()<br \/>\nand<br \/>\nusb_buffer_free() to usb_free_coherent()<\/p>\n<p>And the the video_is_unregistered function call to be changed to (  ! video_is_registered )<\/p>\n<p>All working again \u2014 and now I have mythtv 0.24 \ud83d\ude42<\/p>\n<p>I have the apps in \/usr2\/apps\/hdpvr ( got the <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upgrading to Ubuntu 10.10 caused my HDPVR ir blaster to stop working, again\u2026 I had to re-figure out how I got it working int he first place, so I figured I\u2019d write it down this time. Ubuntu 10.10 comes with &hellip; <a href=\"https:\/\/meekconsulting.com\/?p=64\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/64"}],"collection":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=64"}],"version-history":[{"count":2,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":66,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions\/66"}],"wp:attachment":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}