Hi,

Hans Verkuil írta:
> On Wednesday 24 January 2007 11:49, Viragh Janos wrote:
>> On Sunday  Jan 21, 2007, 2:57 AM  hverkuil at xs4all wrote:
>>> On Sunday 21 January 2007 11:44, viragh[at]inf.u-szeged.hu wrote:
>>>> Hi All,
>>>> I have a ZAP-TV 1001 card and try to compile trunk.tar.gz for this
>>>> card type, but after
>>>> #define HAVE_XC3028 1
>>>> in ivtv-driver.h i get the folllowing error messages:
>>>> ...
>>> You need to use the v4l-dvb repository from Markus Rechberger:
>>> http://linuxtv.org/hg/~mrechberger/v4l-dvb-kernel
>>> This contains the required tuner changes for the v4l kernel
>>> subsystem. Be warned: it's not a trivial exercise to get it
>>> working.
>>> Hans
>> i've tried a few different variations, eg. with the Makefile in
>> v4l-dvb/v4l_experimental/xc3028/ :
> 
> Best procedure: checkout the v4l-dvb-kernel from mrechberger (as stated 
> in my original post). Then run 'make ivtv' within the v4l-dvb-kernel 
> directory. Edit v4l/ivtv/driver/ivtv-driver.h and uncomment the 
> HAVE_XC3028 define. Run make. This should build everything including 
> ivtv. Run make install to install everything.
> 

Unfortunately, that won't work on Markus' tree:

   CC [M]  /home/krz/src/hg/v4l-dvb-kernel-ivtv/v4l/ivtv-ioctl.o
/home/krz/src/hg/v4l-dvb-kernel-ivtv/v4l/ivtv-ioctl.c: In function
'ivtv_internal_ioctls':
/home/krz/src/hg/v4l-dvb-kernel-ivtv/v4l/ivtv-ioctl.c:560: error:
duplicate case value
/home/krz/src/hg/v4l-dvb-kernel-ivtv/v4l/ivtv-ioctl.c:558: error:
previously used here
/home/krz/src/hg/v4l-dvb-kernel-ivtv/v4l/ivtv-ioctl.c: In function
'ivtv_v4l2_do_ioctl':
/home/krz/src/hg/v4l-dvb-kernel-ivtv/v4l/ivtv-ioctl.c:1446: error:
duplicate case value
/home/krz/src/hg/v4l-dvb-kernel-ivtv/v4l/ivtv-ioctl.c:1444: error:
previously used here
make[3]: *** [/home/krz/src/hg/v4l-dvb-kernel-ivtv/v4l/ivtv-ioctl.o] Error 1
make[2]: *** [_module_/home/krz/src/hg/v4l-dvb-kernel-ivtv/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.18-gentoo-r6'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/krz/src/hg/v4l-dvb-kernel-ivtv/v4l'
make: *** [all] Error 2

I have the exact same card and for me it works perfectly in TV mode.

My (somewhat lame but effective) method to work around these compilation 
problems:
- Keep the v4l-dvb-kernel tree and ivtv separate
- Find tuner.h in the v4l-dvb-kernel tree, copy it over to ivtv/driver
- In the copy, comment out these lines:
       T_DVBT_TV       = 1 << V4L2_TUNER_DVBT_TV,
       T_DVBC_TV       = 1 << V4L2_TUNER_DVBC_TV,
       T_DVBS_TV       = 1 << V4L2_TUNER_DVBS_TV,
       T_ATSC_TV       = 1 << V4L2_TUNER_ATSC_TV,
- In ivtv-driver.h, change this line:
#include <media/tuner.h>

to this:
#include "tuner.h"

That's it, ivtv should compile then.

Regards,
Zoltan

> To actually get things working is another matter. You need this fw 
> package: http://www.tuxamito.com.es/em2880/firmware_v4.tgz (I believe I 
> also saw mention of a v5, but didn't see a link). But after that you're 
> on your own. You can look in irc (details on www.linuxtv.org) in the 
> #v4l channel for mrec, the author of this code.
> 
> Regards,
> 
>       Hans
> 
>> $ tar zxvf trunk.tar.gz
>> $ cd trunk
>> $ make v4l-checkout
>> $ cd v4l-dvb/v4l_experimental/xc3028/
>> $ sh setup.sh
>> $ cd -
>> $ make v4l
>> make -C v4l-dvb
>> make[1]: Entering directory `/SW/TV/IVTV/PROJECT/trunk/v4l-dvb'
>> make -C /SW/TV/IVTV/PROJECT/trunk/v4l-dvb/v4l
>> make[2]: Entering directory `/SW/TV/IVTV/PROJECT/trunk/v4l-dvb/v4l'
>> Makefile:8: Make.config: Nincs ilyen fájl vagy könyvtár
>> echo "No version yet."
>> No version yet.
>> uname -r|perl -ne 'if (/^([0-9]*)\.([0-9])*\.([0-9]*)(.*)$/) { printf
>> ("VERSION=%s\nPATCHLEVEL:=%s\nSUBLEVEL:=%s\nKERNELRELEA
>> SE:=%s.%s.%s%s\n",$1,$2,$3,$1,$2,$3,$4); };' > ./.version
>> make[2]: *** No rule to make target `Make.config'.  Stop.
>> make[2]: Leaving directory `/SW/TV/IVTV/PROJECT/trunk/v4l-dvb/v4l'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/SW/TV/IVTV/PROJECT/trunk/v4l-dvb'
>> make: *** [v4l] Error 2
>>
>> $ make
>> make -C driver all
>> make[1]: Entering directory `/SW/TV/IVTV/PROJECT/trunk/driver'
>> created ivtv-svnversion.h
>> make -C /lib/modules/2.6.18-1.2257.fc5/build
>> M=/SW/TV/IVTV/PROJECT/trunk/driver modules
>> make[2]: Entering directory `/usr/src/kernels/2.6.18-1.2257.fc5-i686'
>> /SW/TV/IVTV/PROJECT/trunk/driver/Kbuild:17:
>> /SW/TV/IVTV/PROJECT/trunk/driver/../v4l-dvb/v4l/.config: No such file
>> or directory
>> make[3]: *** No rule to make target
>> `/SW/TV/IVTV/PROJECT/trunk/driver/../v4l-dvb/v4l/.config'.  Stop.
>> make[2]: *** [_module_/SW/TV/IVTV/PROJECT/trunk/driver] Error 2
>> make[2]: Leaving directory `/usr/src/kernels/2.6.18-1.2257.fc5-i686'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/SW/TV/IVTV/PROJECT/trunk/driver'
>> make: *** [all] Error 2
>> $
>>
>> Or simply
>>
>> $ tar zxvf trunk.tar.gz
>> $ cd trunk
>> $ make v4l-checkout
>> $ make v4l
>>
>> This works but doesn't gives the necessary drivers/options.
>> In addition i've noticed that i could even checkout and compile ivtv
>> inside the v4l-dvb/v4l subdirectory, so i'm completely lost.
>> Do i need really the stuff in v4l_experimental/xc3028?
>> Does there exist somewhere a list/description of the necessary steps?
>>
>> Janos
>> PS. Sorry, i'm not a developer, just wanted to get my card working
>> with ivtv :-)
>>
>> _______________________________________________
>> ivtv-devel mailing list
>> [email protected]
>> http://ivtvdriver.org/mailman/listinfo/ivtv-devel
> 
> _______________________________________________
> ivtv-devel mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-devel
> 



_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to