[mythtv-users] HD-PVR Blaster on gentoo kernel 2.6.34

Jarod Wilson jarod at wilsonet.com
Sat Jul 31 03:39:06 UTC 2010


On Fri, Jul 30, 2010 at 7:11 PM, freedenizen <freedenizen at gmail.com> wrote:
> Hi All,
> Currently I'm running (successfully) an HDPVR using 2.6.30-gentoo-r4,
> I dl'd the patch hdpvr and lirc files as per the wiki:
> http://www.mythtv.org/wiki/HDPVR#IR_Transmitter_Support and all has
> been good.
> I'm trying to move the 2.6.34-gentoo-r2 (for unrelated reasons) but
> I'm unable to get the patched files to compile,  when I try to compile
> the hdpvr driver I get:
> make -C /lib/modules/2.6.34-gentoo-r2/build
> M=/usr/local/src/hdpvr_blaster/hdpvr modules
> make[1]: Entering directory `/usr/src/linux-2.6.34-gentoo-r2'
>  CC [M]  /usr/local/src/hdpvr_blaster/hdpvr/hdpvr-control.o
>  CC [M]  /usr/local/src/hdpvr_blaster/hdpvr/hdpvr-core.o
>  CC [M]  /usr/local/src/hdpvr_blaster/hdpvr/hdpvr-i2c.o
> /usr/local/src/hdpvr_blaster/hdpvr/hdpvr-i2c.c: In function ‘hdpvr_i2c_read’:
> /usr/local/src/hdpvr_blaster/hdpvr/hdpvr-i2c.c:32: error: implicit
> declaration of function ‘kmalloc’
> /usr/local/src/hdpvr_blaster/hdpvr/hdpvr-i2c.c:32: warning:
> initialization makes pointer from integer without a cast
> /usr/local/src/hdpvr_blaster/hdpvr/hdpvr-i2c.c:47: error: implicit
> declaration of function ‘kfree’
> /usr/local/src/hdpvr_blaster/hdpvr/hdpvr-i2c.c: In function ‘hdpvr_i2c_write’:
> /usr/local/src/hdpvr_blaster/hdpvr/hdpvr-i2c.c:56: warning:
> initialization makes pointer from integer without a cast
> distcc[14159] ERROR: compile
> /usr/local/src/hdpvr_blaster/hdpvr/hdpvr-i2c.c on 192.168.1.30 failed
> make[2]: *** [/usr/local/src/hdpvr_blaster/hdpvr/hdpvr-i2c.o] Error 1
> make[1]: *** [_module_/usr/local/src/hdpvr_blaster/hdpvr] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.34-gentoo-r2'
> make: *** [all] Error 2
>
> and when I try to compile the lirc driver:
> make CONFIG_LIRC_ZILOG=m -C /lib/modules/2.6.34-gentoo-r2/build
> M=/usr/local/src/hdpvr_blaster/lirc modules
> make[1]: Entering directory `/usr/src/linux-2.6.34-gentoo-r2'
>  CC [M]  /usr/local/src/hdpvr_blaster/lirc/lirc_zilog.o
> In file included from /usr/local/src/hdpvr_blaster/lirc/lirc_zilog.c:61:
> /usr/local/src/hdpvr_blaster/lirc/lirc_dev.h: In function ‘lirc_buffer_init’:
> /usr/local/src/hdpvr_blaster/lirc/lirc_dev.h:47: warning: passing
> argument 1 of ‘kfifo_alloc’ makes pointer from integer without a cast
> /usr/local/src/hdpvr_blaster/lirc/lirc_dev.h:47: warning: passing
> argument 3 of ‘kfifo_alloc’ makes integer from pointer without a cast
> /usr/local/src/hdpvr_blaster/lirc/lirc_dev.h:47: warning: assignment
> makes pointer from integer without a cast
> /usr/local/src/hdpvr_blaster/lirc/lirc_dev.h: In function ‘lirc_buffer_read’:
> /usr/local/src/hdpvr_blaster/lirc/lirc_dev.h:76: error: implicit
> declaration of function ‘kfifo_get’
> /usr/local/src/hdpvr_blaster/lirc/lirc_dev.h: In function ‘lirc_buffer_write’:
> /usr/local/src/hdpvr_blaster/lirc/lirc_dev.h:81: error: implicit
> declaration of function ‘kfifo_put’
> distcc[14531] ERROR: compile
> /usr/local/src/hdpvr_blaster/lirc/lirc_zilog.c on 192.168.1.30 failed
> make[2]: *** [/usr/local/src/hdpvr_blaster/lirc/lirc_zilog.o] Error 1
> make[1]: *** [_module_/usr/local/src/hdpvr_blaster/lirc] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.34-gentoo-r2'
> make: *** [all] Error 2
>
> Any thoughts?

Where did the sources you're trying to compile come from? First guess
would be that you're using old sources that were valid for your 2.6.30
kernel but aren't for 2.6.34. That's about a year's worth of kernel
changes there. Current lirc_zilog.c has no kfifo_put in it, for one,
as the kernel kfifo interface changed significantly in either 2.6.32
or 2.6.33.


-- 
Jarod Wilson
jarod at wilsonet.com


More information about the mythtv-users mailing list