[linux-dvb] Re: Make errors for CVS drivers

cardboil cardboil at gmail.com
Thu Oct 20 10:12:24 CEST 2005


Perfect! Here is what I did based on your suggestion and it seems to have

Downloaded the CVS versions of dvb-kernel and video4linux
# cd /home/mythtv
# cvs -d :pserver:anonymous at cvs.linuxtv.org:/cvs/linuxtv login
Hit enter when it asks for password
# cvs -z3 -d :pserver:anonymous at cvs.linuxtv.org:/cvs/linuxtv co -P
# cvs -d :pserver:anonymous at cvs.linuxtv.org:/cvs/video4linux login
Hit Enter when it asks for password
# cvs -d :pserver:anonymous at cvs.linuxtv.org:/cvs/video4linux co -P

Go to /home/mythtv/v4l-kernel/linux/drivers/media/video/ and copy all
content except CVS folder into /usr/src/kernels/2.6.13-
1.1526_FC4-i686/drivers/media/video/ directory (this will copy the bttv,
video-buf and other files into my kernel sources directory).

Applied my patch to the av7110 c file in the dvb-kernel directory.

# cd ./dvb-kernel/build-2.6

Commented out lines 15-18 (since it was the bttv driver which was causing
problems, and I didn't need it since I am using Nexus-s):
15 # ifneq ($(CONFIG_VIDEO_BT848),,)
16 # export BTTV=yes
17 # endif

# make
# rmmod ... - to remove the existing DVB modules (which came as a part of
the kernel)
# ./insmod.sh load

After that, the new driver seemed to get picked up and everything works.

Now, a final question for you: Do I need to do anything special to load
these newly drivers automatically upon reboot (like put something in the
modprobe.conf file, or did the .insmod script take care of that already)?

Thank you very very much!

On 10/19/05, jburgess wrote:
> > In file included from /home/mythtv/dvb-kernel/build-2.6/saa7146_i2c.c:1:
> > /home/mythtv/dvb-kernel/build-2.6/compat.h:5:18: error: bttv.h: No such
> > file or directory
> It is because the FC4 kernel-devel package only contains a subset of the
> header files present in the kernel source tree. The headers in
> drivers/media/video are missing and cause this problem. You could try
> filing a bug with the Fedora bugzilla.
> You could install the latest kernel from rawhide, this is currently at
> 2.6.14-rc4-git6 which is reasonably close to the dvb-kernel CVS so you
> shouldn't need to recompile the drivers.
> Alternatively, assuming that you don't need to use the particular
> drivers that depend on these headers you could comment out all the ones
> that you don't need in the Makefile.
> To fix the problem properly you'll need to add a couple of the header
> files into /lib/modules/`uname -r`/build/drivers/media/video/...
> You could get these from the kernel-`uname -r`.src.rpm file.
> BTW - there is one incompatible change which prevents the cinergyT2.c
> file from compiling on linux-2.6.14-rc4:
> CC [M] /home/jburgess/dvb/dvb-kernel/build-2.6/cinergyT2.o
> /home/jburgess/dvb/dvb-kernel/build-2.6/cinergyT2.c: In function
> 'cinergyt2_suspend':
> /home/jburgess/dvb/dvb-kernel/build-2.6/cinergyT2.c:909: error: invalid
> operands to binary >
> It seems this change is the cause...
> --- linux-2.6.13/include/linux/pm.h 2005-09-28 23:49:38.000000000 +0100
> +++ linux-2.6.14-rc4/include/linux/pm.h 2005-10-13 23:28:51.000000000+0100
> @@ -186,7 +186,9 @@
> struct device;
> -typedef u32 __bitwise pm_message_t;
> +typedef struct pm_message {
> + int event;
> +} pm_message_t;
> Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20051020/835bc901/attachment.htm

More information about the linux-dvb mailing list