<pre>I&#39;ve been trying to test the IR blaster functionality on my HD-PVR with this patch,<br>unfortunately I&#39;m running into some issues. First I tried option 1, the prebuilt<br>Fedora kernel package, and using that lirc_zilog recognizes the hd-pvr&#39;s ir <br>
<br>chip perfectly and I&#39;ve been able to successfully use it to change channels on my<br>cable box. However, using that version causes the hd-pvr to lock up randomly 5-10<br>minutes into a recording, and attempting to modprobe -r either the hdpvr or<br>
<br>lirc_zilog modules hangs and eventually leads to a kernel oops after a minute or<br>so.<br><br>I decided to try to follow your 2nd suggestion and pull your 2.6.31 git tree by cloning<br>Linus&#39; and then adding you as a remote to see if it was any more stable. I also applied<br>
<br>the <i><a href="http://wilsonet.com/jarod/junk/hdpvr-ir/hdpvr-ir-enable.patch" target="_blank">http://wilsonet.com/jarod/junk/hdpvr-ir/hdpvr-ir-enable.patch</a></i> as you said to.<br>The kernel compiles and boots fine and the hdpvr records without any of the instability<br>
<br>I observed with your precompiled Fedora kernel, however the lirc_zilog module no longer<br>recognizes the IR chip. When I run modprobe lirc_zilog debug=1 I get:<br><br>lirc_dev: IR Remote Control driver registered, major 248 <br>
<br>lirc_zilog: Zilog/Hauppauge IR driver initializing<br>lirc_zilog: initialization complete<br><br>but no mention of it probing for the device. I&#39;ve looked through lirc_zilog.c a bit and<br>it seems that in 2.6.31 the ir_probe function is never getting run, whereas it is in 2.6.30,<br>
<br>but I haven&#39;t been able to figure out why. I&#39;ve checked to make sure that the hdpvr i2c adapter<br>is still being created using i2cdetect and it shows:<br><br>i2c-0        i2c               Hauppauge HD PVR I2C                    I2C adapter<br>
<br><br>which is the same as for the 2.6.30 kernel. Any idea what I&#39;m doing wrong? Thanks for all<br>the work you&#39;ve already put in to getting the driver working.<br><br>Victor<br><br><br>On Sep 12, 2009, at 4:06 PM, greg pryzby wrote:<br>
<br><br>&gt;<i> On 09/01/2009 09:54 AM, Jarod Wilson wrote:<br></i>&gt;&gt;<i> On Sep 1, 2009, at 9:40 AM, greg pryzby wrote:<br></i>&gt;&gt;<i><br></i>&gt;&gt;&gt;<i> Jarod Wilson wrote:<br></i>&gt;&gt;&gt;&gt;<i> On Sunday 30 August 2009 13:35:02 Jack Perveiler wrote:<br>
<br></i>&gt;&gt;&gt;&gt;&gt;<i> On Sun, Aug 30, 2009 at 1:06 PM, Jarod Wilson &lt;<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">jarod at wilsonet.com</a>&gt;<br></i>&gt;&gt;&gt;&gt;&gt;<i> wrote:<br>
</i>&gt;&gt;&gt;&gt;&gt;<i><br><br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> On Sunday 30 August 2009 12:40:19 Jack Perveiler wrote:<br></i>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> On Sat, Aug 29, 2009 at 11:09 PM, Jarod Wilson &lt;<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">jarod at wilsonet.com</a> <br>
<br></i>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> &gt;<br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> wrote:<br></i>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> On Saturday 29 August 2009 21:39:42 Oz wrote:<br></i>&gt;&gt;&gt;<i> &lt;SNIP&gt;<br></i>&gt;&gt;&gt;<i><br>
<br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> Could be later today, could be a few weeks, depends on how  <br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> messy the<br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> final details are and how much free time I have to work on it.  <br>
<br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> Its a<br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> bit further complicated by some major i2c changes in 2.6.31,  <br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> and the<br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> fact that I&#39;ve got another neat project I&#39;m working on that&#39;s  <br>
<br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> quite<br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> honestly a whole lot cooler than making yet another IR part  <br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i> work... :)<br></i>&gt;&gt;&gt;&gt;&gt;&gt;<i><br>
</i>&gt;&gt;&gt;&gt;&gt;<i> Sure, I can understand that :)<br><br></i>&gt;&gt;&gt;&gt;<i> Or maybe tonight. Both transmit and receive are working perfectly  <br></i>&gt;&gt;&gt;&gt;<i> on my<br></i>&gt;&gt;&gt;&gt;<i> own hdpvr now, and I&#39;ve pushed the bits for this into my git  <br>
<br></i>&gt;&gt;&gt;&gt;<i> tree. I&#39;m<br></i>&gt;&gt;&gt;&gt;<i> also about to add them all to a new Fedora 11 2.6.30.x kernel  <br></i>&gt;&gt;&gt;&gt;<i> build, as<br></i>&gt;&gt;&gt;&gt;<i> well as tack them onto rawhide (current Fedora 12 devel tree).<br>
<br></i>&gt;&gt;&gt;<i><br></i>&gt;&gt;&gt;<i> Sounds like in the next day or two (if not already) it is possible  <br></i>&gt;&gt;&gt;<i> to<br></i>&gt;&gt;&gt;<i> pull the bits, build a kernel and test?<br></i>&gt;&gt;<i><br>
<br></i>&gt;&gt;<i> Its possible to pull the bits now (including a pre-build kernel for<br></i>&gt;&gt;<i> Fedora 11).<br></i>&gt;<i><br></i>&gt;<i> Pick one of the 4 below and they the last item (hdpvr-ir- <br></i>&gt;<i> enable.patch).<br>
<br></i>&gt;<i><br></i>&gt;<i> Or has this stuff been moved upstream now?<br></i><br>For some value of, yes. All the hdpvr driver bits are in Janne&#39;s hdpvr  <br>tree, but I don&#39;t believe they&#39;ve been pulled over to the main v4l-dvb  <br>
<br>tree, and definitely didn&#39;t go into kernel 2.6.31. The lirc bits are  <br>in my lirc git tree. I suppose I should forward a copy of things over  <br>to Mark Weaver, the originator of lirc_pvr150, but at this point, its  <br>
<br>quite different from lirc_zilog, I believe (2.6.31 i2c changes, hdpvr  <br>support additions, other cleanups)...<br><br><br>&gt;<i> THANKS for all the work. Finally have some free time to get this  <br></i>&gt;<i> ironed out.<br>
<br></i>&gt;<i><br></i>&gt;<i><br></i>&gt;&gt;<i> In thinking about this some more, the assorted options are currently:<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> 1) run Fedora 11, download the kernel I built last night from Fedora<br>
<br></i>&gt;&gt;<i> build system:<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> <a href="http://kojipkgs.fedoraproject.org/packages/kernel/2.6.30.5/45.fc11/" target="_blank">http://kojipkgs.fedoraproject.org/packages/kernel/2.6.30.5/45.fc11/</a><br>
<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> 2) git clone my lirc driver git tree, build a 2.6.31-rcX kernel  <br></i>&gt;&gt;<i> (best to<br></i>&gt;&gt;<i> git clone linus&#39; tree off <a href="http://git.kernel.org/" target="_blank">git.kernel.org</a>, then add me as a remote, I<br>
<br></i>&gt;&gt;<i> only have 5Mbps outbound).<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> 3) grab just the lirc bits from git, using gitweb&#39;s snapshot  <br></i>&gt;&gt;<i> capability,<br></i>&gt;&gt;<i> i.e.<br>
<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> <a href="http://git.wilsonet.com//linux-2.6-lirc.git?a=snapshot;h=d58c0c8000b4f59e09b5e88398389fe4561dc32c;sf=tgz" target="_blank">http://git.wilsonet.com//linux-2.6-lirc.git?a=snapshot;h=d58c0c8000b4f59e09b5e88398389fe4561dc32c;sf=tgz</a><br>
<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> Unpack them, then &#39;make -C /path/to/kernel/source M=$PWD modules&#39;<br></i>&gt;&gt;<i> (assumes you have the config vars for lirc properly set, I think).<br>
</i>&gt;&gt;<i><br><br></i>&gt;&gt;<i> If running on pre-2.6.31, you&#39;ll want to back out the 2.6.31-specific<br></i>&gt;&gt;<i> i2c changes, which this patch will do:<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> <a href="http://wilsonet.com/jarod/junk/hdpvr-ir/lirc-revert-2.6.31-i2c-changes.patch" target="_blank">http://wilsonet.com/jarod/junk/hdpvr-ir/lirc-revert-2.6.31-i2c-changes.patch</a><br>
<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i><br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> 4) grab the lirc patches that are in my Fedora kernel build directly:<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> <a href="http://wilsonet.com/jarod/junk/hdpvr-ir/lirc-2.6.31.patch" target="_blank">http://wilsonet.com/jarod/junk/hdpvr-ir/lirc-2.6.31.patch</a><br>
<br></i>&gt;&gt;<i> <a href="http://wilsonet.com/jarod/junk/hdpvr-ir/lirc-revert-2.6.31-i2c-changes.patch" target="_blank">http://wilsonet.com/jarod/junk/hdpvr-ir/lirc-revert-2.6.31-i2c-changes.patch</a><br></i>&gt;&gt;<i><br>
</i>&gt;&gt;<i><br><br></i>&gt;&gt;<i> The second is only needed for pre-2.6.31.<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> All of the above also require some patching of the hdpvr driver as it<br></i>&gt;&gt;<i> exists in kernel 2.6.30, using this:<br>
<br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> <a href="http://wilsonet.com/jarod/junk/hdpvr-ir/hdpvr-ir-enable.patch" target="_blank">http://wilsonet.com/jarod/junk/hdpvr-ir/hdpvr-ir-enable.patch</a><br></i>&gt;&gt;<i><br></i>&gt;&gt;<i> That&#39;s now a roll-up of things in Janne&#39;s hdpvr hg tree that aren&#39;t  <br>
<br></i>&gt;&gt;<i> in<br></i>&gt;&gt;<i> the upstream kernel yet, and a few minor additional tweaks that I  <br></i>&gt;&gt;<i> need<br></i>&gt;&gt;<i> to send over to Janne still.<br></i>&gt;<i><br></i>&gt;<i> _______________________________________________<br>
<br></i>&gt;<i> mythtv-users mailing list<br></i>&gt;<i> <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">mythtv-users at mythtv.org</a><br></i>&gt;<i> <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
<br></i><br>-- <br>Jarod Wilson<br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">jarod at wilsonet.com</a><br></pre>