Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

HD-PVR Blaster on gentoo kernel 2.6.34

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


freedenizen at gmail

Jul 30, 2010, 4:11 PM

Post #1 of 6 (767 views)
Permalink
HD-PVR Blaster on gentoo kernel 2.6.34

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?
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jarod at wilsonet

Jul 30, 2010, 8:39 PM

Post #2 of 6 (717 views)
Permalink
Re: HD-PVR Blaster on gentoo kernel 2.6.34 [In reply to]

On Fri, Jul 30, 2010 at 7:11 PM, freedenizen <freedenizen [at] gmail> 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
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jarod at wilsonet

Jul 30, 2010, 8:41 PM

Post #3 of 6 (715 views)
Permalink
Re: HD-PVR Blaster on gentoo kernel 2.6.34 [In reply to]

On Fri, Jul 30, 2010 at 11:39 PM, Jarod Wilson <jarod [at] wilsonet> wrote:
> On Fri, Jul 30, 2010 at 7:11 PM, freedenizen <freedenizen [at] gmail> 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.

Er, sorry, current lirc_dev.h has no kfifo_put in it, is what I meant
to say. (Nor does it have kfifo_get). Well, okay, actually, current
lirc cvs does, but they're wrapped with conditionals that only use
those for older kernels, and use the proper definitions for newer
kernels.

--
Jarod Wilson
jarod [at] wilsonet
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


freedenizen at gmail

Jul 30, 2010, 9:55 PM

Post #4 of 6 (725 views)
Permalink
Re: HD-PVR Blaster on gentoo kernel 2.6.34 [In reply to]

On Fri, Jul 30, 2010 at 8:39 PM, Jarod Wilson <jarod [at] wilsonet> wrote:
> 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.

From: http://www.themainlan.com/mythtv/hdpvr-blaster-drivers.tar.gz
so I guess from FC12 which worked fine with the older kernel, so I
either need to try and find patched hdpvr and lirc drivers that work
with 2.6.34 or find the patches and modified my own?
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jarod at wilsonet

Jul 31, 2010, 8:49 AM

Post #5 of 6 (690 views)
Permalink
Re: HD-PVR Blaster on gentoo kernel 2.6.34 [In reply to]

On Sat, Jul 31, 2010 at 12:55 AM, freedenizen <freedenizen [at] gmail> wrote:
> On Fri, Jul 30, 2010 at 8:39 PM, Jarod Wilson <jarod [at] wilsonet> wrote:
>> 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.
>
> From: http://www.themainlan.com/mythtv/hdpvr-blaster-drivers.tar.gz
> so I guess from FC12 which worked fine with the older kernel, so I
> either need to try and find patched hdpvr and lirc drivers that work
> with 2.6.34 or find the patches and modified my own?

Yeah, the Fedora 12 patches are too old for 2.6.34. The latest bits
are patched into the Fedora 14 kernel tree. Not sure if the F13 bits
would work or not (2.6.33.x atm), but the F14 bits are definitely
unchanged since 2.6.34.

http://pkgs.fedoraproject.org/gitweb/?p=kernel.git

(As an aside: hell yeah, we finally dumped cvs for the fedora
packaging scm, make the cut-over to git this past week)

Look at branch f14/master, get hdpvr-ir-enable.patch (patches hdpvr.ko
to enable the IR part) and you can extract lirc_zilog.c from either
lirc-staging-2.6.36.patch, or get it from my lirc git tree, over here:

http://git.kernel.org/?p=linux/kernel/git/jarod/linux-2.6-lirc.git;a=tree;f=drivers/staging/lirc;hb=HEAD


--
Jarod Wilson
jarod [at] wilsonet
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


freedenizen at gmail

Jul 31, 2010, 11:46 AM

Post #6 of 6 (693 views)
Permalink
Re: HD-PVR Blaster on gentoo kernel 2.6.34 [In reply to]

On Sat, Jul 31, 2010 at 8:49 AM, Jarod Wilson <jarod [at] wilsonet> wrote:
> Yeah, the Fedora 12 patches are too old for 2.6.34. The latest bits
> are patched into the Fedora 14 kernel tree. Not sure if the F13 bits
> would work or not (2.6.33.x atm), but the F14 bits are definitely
> unchanged since 2.6.34.
>
> http://pkgs.fedoraproject.org/gitweb/?p=kernel.git
>
> (As an aside: hell yeah, we finally dumped cvs for the fedora
> packaging scm, make the cut-over to git this past week)
>
> Look at branch f14/master, get hdpvr-ir-enable.patch (patches hdpvr.ko
> to enable the IR part) and you can extract lirc_zilog.c from either
> lirc-staging-2.6.36.patch, or get it from my lirc git tree, over here:
>
> http://git.kernel.org/?p=linux/kernel/git/jarod/linux-2.6-lirc.git;a=tree;f=drivers/staging/lirc;hb=HEAD

Excellent, thanks much, I'll give it a go.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.