[mythtv-users] PVR-150 and the IR Blaster

Rich West Rich.West at wesmo.com
Mon Oct 23 19:10:58 UTC 2006


Ahh!  Got it to compile.  I had to make a couple of tweaks to the
patched source, but it did compile.  I cannot say that it works, but I'm
going to test that shortly. :)

-rich


I had to modify the drivers/kcompat.h:
--- lirc-0.8.1-CVS-pvr150/drivers/kcompat.h     2006-07-09
06:56:42.000000000 -0400
+++ lirc-0.8.1-CVS-pvr150.patch/drivers/kcompat.h       2006-10-23
15:05:01.000000000 -0400
@@ -15,8 +15,11 @@

 #include <linux/device.h>

+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
 #define LIRC_HAVE_DEVFS
 #define LIRC_HAVE_DEVFS_26
+#endif
+
 #define LIRC_HAVE_SYSFS

 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)

And drivers/lirc_dev/lirc_dev.c as follows:
--- lirc-0.8.1-CVS-pvr150/drivers/lirc_dev/lirc_dev.c   2006-07-09
06:56:41.000000000 -0400
+++ lirc-0.8.1-CVS-pvr150.patch/drivers/lirc_dev/lirc_dev.c    
2006-10-23 15:01:28.000000000 -0400
@@ -49,12 +49,15 @@
 #endif
 #define __KERNEL_SYSCALLS__
 #include <linux/unistd.h>
+
+#include "drivers/kcompat.h"
+
 /* DevFS header */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
+#if defined(LIRC_HAVE_DEVFS)
 #include <linux/devfs_fs_kernel.h>
 #endif
 /* SysFS header */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+#if defined(LIRC_HAVE_SYSFS)
 #include <linux/device.h>
 #endif

-Rich

> Hrmm.. crud.. it seems specific to the pre-patched tar file.  The
> unpatched CVS lirc snapshot compiles up just fine. :(
>
> -Rich
>
>   
>> Err.. spoke too soon.  I didn't have the kernel sources on the system,
>> but, now that I do, I'm getting the same error. :(
>> ./configure
>> ...
>> checking for getopt_long... yes
>> checking for mktemp... yes
>> checking for Linux kernel sources... /lib/modules/2.6.18-1.2200.fc5/build/
>> checking for which drivers can be installed on this system...
>> checking for caraca_init in -lcaraca_client... no
>>
>> The source _is_ in /lib/modules/2.6.18-1.2200.fc5/build/, but there are
>> no devfs_fs* files in there.
>>
>> -Rich
>>
>>   
>>     
>>> That would be it.. :)  You got a good "D'oh!" out of me for that one. :)
>>>
>>> -Rich
>>>
>>>   
>>>     
>>>       
>>>>> I'm actually having problems compiling the patched version of lirc for
>>>>> the PVR-150 with its IR blaster. :(
>>>>>
>>>>> The "devfs_fs_kernel.h" include file isn't present on my FC5 system. Hrmm...
>>>>>     
>>>>>       
>>>>>         
>>>>>           
>>>> Have you got the kernel source correctly installed? You need this to
>>>> compile LIRC.
>>>>
>>>> Nick



More information about the mythtv-users mailing list