Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ivtv emerge problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Takker
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2004
Posts: 98
Location: Münster, Germany

PostPosted: Mon Jul 19, 2004 7:56 am    Post subject: ivtv emerge problem Reply with quote

Hi!

I'd like to emerge ivtv to run my Hauppage tv card. But it always produces an error:

Code:

jana takker # emerge ivtv
Calculating dependencies ...done!
>>> emerge (1 of 1) media-tv/ivtv-0.1.9-r3 to /
>>> md5 src_uri ;-) ivtv-0.1.9.tar.gz
>>> md5 src_uri ;-) pvr250_17_21288.exe
>>> md5 src_uri ;-) ivtv-0.1.9-r3.patch
>>> Unpacking source...
>>> Unpacking ivtv-0.1.9.tar.gz to /var/tmp/portage/ivtv-0.1.9-r3/work
 * Applying ivtv-0.1.9-r3.patch...                                             [ ok ]
>>> Source unpacked.
make -C /lib/modules/2.6.7-gentoo-r8/build SUBDIRS=/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver modules
make[1]: Entering directory `/usr/src/linux-2.6.7-gentoo-r8'
  CC [M]  /var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/msp3400.o
  CC [M]  /var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/saa7115.o
  CC [M]  /var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/tveeprom.o
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/tveeprom.c:81:2: warning: #warning Using temporary hack for missing I2C driver-ID for tveeprom
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/tveeprom.c:89: warning: `verbose' defined but not used
  CC [M]  /var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.o
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c: In function `ivtv_init_buffer':
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:347: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c: In function `ivtv_find_firmware_mailbox':
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:658: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:658: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:667: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:667: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:681: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:681: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:691: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:691: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:699: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:699: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:713: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:713: warning: use of cast expressions as lvalues is deprecated
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c: In function `ivtv_dec_poll':
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-driver.c:2846: warning: comparison of distinct pointer types lacks a cast
  CC [M]  /var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-i2c.o
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-i2c.c:59: error: `I2C_ADAP_CLASS_TV_ANALOG' undeclared here (not in a function)
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-i2c.c:59: error: initializer element is not constant
/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-i2c.c:59: error: (near initialization for `ivtv_i2c_adapter_template.class')
make[2]: *** [/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver/ivtv-i2c.o] Error 1
make[1]: *** [_module_/var/tmp/portage/ivtv-0.1.9-r3/work/ivtv/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.7-gentoo-r8'
make: *** [all] Error 2

!!! ERROR: media-tv/ivtv-0.1.9-r3 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! build of driver failed


Anybody has an idea?
_________________
Gentoo e.V.
takkahz.de
Gentoo Tips & Tricks
Back to top
View user's profile Send private message
AchilleTalon
Guru
Guru


Joined: 11 Apr 2004
Posts: 368
Location: Montreal, Quebec, Canada

PostPosted: Wed Jul 21, 2004 3:12 am    Post subject: Reply with quote

I had the same problem few days ago. I am building my first Gentoo system as well as first PVR using the Hauppauge PVR-350.

I simply downloaded the latest driver code available from: http://ivtv.sourceforge.net

It was ivtv-0.1.10-pre2-ck99z, it built nicely. However, it is not a known stable driver. Since it is my first installation, I cannot compare with anything else, but I observed the DVD playing using xine is not smooth. The sound seems ok, but the image is like its freezed on a frame for a fraction of a second each second or two. I don't know if there is something to tweak to avoid this or it is a problem with the driver itself. I am still experimenting...
_________________
Achille Talon Hop!
Back to top
View user's profile Send private message
Takker
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2004
Posts: 98
Location: Münster, Germany

PostPosted: Mon Aug 16, 2004 9:41 pm    Post subject: Reply with quote

Hmm, got some more information/instruction? :)
_________________
Gentoo e.V.
takkahz.de
Gentoo Tips & Tricks
Back to top
View user's profile Send private message
AchilleTalon
Guru
Guru


Joined: 11 Apr 2004
Posts: 368
Location: Montreal, Quebec, Canada

PostPosted: Mon Aug 16, 2004 11:29 pm    Post subject: Reply with quote

First, the ivtv driver is actively developped right now and I am not keeping up with daily updates. The last version I installed is ivtv-0.1.10-pre2-ck100b from the sourceforge.net archive, follow link in my previous post.

Simply download the source file, unzip/untar and read documentation in the doc directory. Since I am using the 2.6.7 kernel without devfs and with udev, I skipped the device entries creation part as indicated in the install.txt file. Also, make everything in the utils directory and make install (will put some utilities in /usr/local/bin).

I haven't tested the vbi support.

Please, post details if you still have problems building the driver. BTW, when making installing the driver, you maybe warned to remove the current msp3400 driver in the /lib/modules. Do it and rerun make install, it will install its own version of the msp3400 driver.
_________________
Achille Talon Hop!
Back to top
View user's profile Send private message
AchilleTalon
Guru
Guru


Joined: 11 Apr 2004
Posts: 368
Location: Montreal, Quebec, Canada

PostPosted: Tue Aug 17, 2004 1:20 am    Post subject: Reply with quote

I just noticed the ivtv.sourceforge.net site has changed. For the source code for latest ivtv driver use the following URL instead:

Chris Kennedy's IVTV driver
_________________
Achille Talon Hop!
Back to top
View user's profile Send private message
Takker
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2004
Posts: 98
Location: Münster, Germany

PostPosted: Tue Aug 17, 2004 11:51 am    Post subject: Reply with quote

This is the result if I compile it manually, almost every source, doing as the doc says. Because compiling fails you got nearly the same output on make install, of course there is no chance for modprobing :(

Code:

jana driver # make
make -C /lib/modules/2.6.7-gentoo-r8/build SUBDIRS=/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver modules
make[1]: Entering directory `/usr/src/linux-2.6.7-gentoo-r8'
  Building modules, stage 2.
  MODPOST
*** Warning: "i2c_del_driver" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/tveeprom.ko] undefined!
*** Warning: "i2c_add_driver" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/tveeprom.ko] undefined!
*** Warning: "i2c_detach_client" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/tveeprom.ko] undefined!
*** Warning: "i2c_probe" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/tveeprom.ko] undefined!
*** Warning: "i2c_attach_client" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/tveeprom.ko] undefined!
*** Warning: "i2c_check_functionality" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/tveeprom.ko] undefined!
*** Warning: "i2c_master_recv" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/tveeprom.ko] undefined!
*** Warning: "i2c_master_send" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/tveeprom.ko] undefined!
*** Warning: "i2c_del_driver" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7127.ko] undefined!
*** Warning: "i2c_add_driver" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7127.ko] undefined!
*** Warning: "i2c_detach_client" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7127.ko] undefined!
*** Warning: "i2c_probe" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7127.ko] undefined!
*** Warning: "i2c_attach_client" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7127.ko] undefined!
*** Warning: "i2c_check_functionality" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7127.ko] undefined!
*** Warning: "i2c_smbus_write_byte_data" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7127.ko] undefined!
*** Warning: "i2c_smbus_read_byte_data" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7127.ko] undefined!
*** Warning: "i2c_del_driver" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7115.ko] undefined!
*** Warning: "i2c_add_driver" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7115.ko] undefined!
*** Warning: "i2c_detach_client" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7115.ko] undefined!
*** Warning: "i2c_probe" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7115.ko] undefined!
*** Warning: "i2c_attach_client" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7115.ko] undefined!
*** Warning: "i2c_check_functionality" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7115.ko] undefined!
*** Warning: "i2c_smbus_read_byte_data" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7115.ko] undefined!
*** Warning: "i2c_smbus_write_byte_data" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7115.ko] undefined!
*** Warning: "i2c_transfer" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/saa7115.ko] undefined!
*** Warning: "i2c_del_driver" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/msp3400.ko] undefined!
*** Warning: "i2c_add_driver" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/msp3400.ko] undefined!
*** Warning: "i2c_probe" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/msp3400.ko] undefined!
*** Warning: "i2c_detach_client" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/msp3400.ko] undefined!
*** Warning: "i2c_attach_client" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/msp3400.ko] undefined!
*** Warning: "i2c_master_send" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/msp3400.ko] undefined!
*** Warning: "i2c_transfer" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/msp3400.ko] undefined!
*** Warning: "i2c_bit_del_bus" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/ivtv.ko] undefined!
*** Warning: "i2c_bit_add_bus" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/ivtv.ko] undefined!
*** Warning: "ivtv_clear_irq_mask" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/ivtv-fb.ko] has no CRC!
*** Warning: "ivtv_api" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/ivtv-fb.ko] has no CRC!
*** Warning: "ivtv_cards" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/ivtv-fb.ko] has no CRC!
*** Warning: "ivtv_debug" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/ivtv-fb.ko] has no CRC!
*** Warning: "ivtv_cards_active" [/home/takker/stuff/ivtv-0.1.10-pre2-ck104d/driver/ivtv-fb.ko] has no CRC!
make[1]: Leaving directory `/usr/src/linux-2.6.7-gentoo-r8'

Any 'has no CRC' warnings are harmless and can be ignored.

_________________
Gentoo e.V.
takkahz.de
Gentoo Tips & Tricks
Back to top
View user's profile Send private message
AchilleTalon
Guru
Guru


Joined: 11 Apr 2004
Posts: 368
Location: Montreal, Quebec, Canada

PostPosted: Tue Aug 17, 2004 1:02 pm    Post subject: Reply with quote

I tried to compile a newer version yesterday (ck104b) and ran into the same problem. Pick 100b or 100m instead.

I asked on the ivtv forum about the problem we both encountered and will post here any development on this issue.
_________________
Achille Talon Hop!
Back to top
View user's profile Send private message
Takker
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2004
Posts: 98
Location: Münster, Germany

PostPosted: Tue Aug 17, 2004 1:44 pm    Post subject: Reply with quote

Uhm, where can I get this exact version? SF provides 1.7, 1.8, 1.9, ckennedy the actual 1.10 ck104d ... :P
_________________
Gentoo e.V.
takkahz.de
Gentoo Tips & Tricks
Back to top
View user's profile Send private message
AchilleTalon
Guru
Guru


Joined: 11 Apr 2004
Posts: 368
Location: Montreal, Quebec, Canada

PostPosted: Tue Aug 17, 2004 3:59 pm    Post subject: Reply with quote

Gosh!

Seems Chris Kennedy was tired to have to deal with a lot of intermediate versions and just removed all the old versions. There was a directory on his site for older versions which is no longer there. :(

I tried to find out if they were simply moved elsewhere without any success.

On the Wiki they recommend using 0.1.9 since 0.1.10 is unstable. Maybe you can just ask on the IvyTv forum.

On the Gentoo side, I don't know if someone has really tested the currently distributed ivtv driver, but since I had myself to move to a later version to make it working, I suppose the answer is no or there is some undocumented magic and/or incantations to do to make it compile properly.

The IvyTv Wiki is at the following URL: IvyTv Wiki

If unsucessful in your search, I may send you my copy of the ck100b if you do not matter receiving a half MB e-mail. Just let me know if you wish to receive my copy.
_________________
Achille Talon Hop!
Back to top
View user's profile Send private message
QuaffAPint
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 82
Location: Downingtown, PA

PostPosted: Tue Aug 17, 2004 4:27 pm    Post subject: Reply with quote

Not that this is overly helpful :wink: - but I too had the emerge problem. Then I went to the ckennedy site and downloaded ivtv-0.1.10-pre2-ck104d.tgz (or something like that - it was dated 8-16-04).

I then followed the instructions for the MythTV on Gentoo install from Alfred Park (located here). This is the pertinent portion of that document...

...Extract the tar file...then...
Quote:
cd ivtv/utils
wget http://hauppauge.lightpath.net/software/pvr250/pvr250_17_21288.exe
./ivtvfwextract.pl pvr250_17_21288.exe
cd ../driver
make; make install
cd ../utils
make
cp ivtvfbctl ivtvplay mpegindex test_ioctl /usr/local/bin

Now we need to create the modules.d file. Create and edit a file called /etc/modules.d/ivtv:

alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-61 lirc_i2c
options ivtv ivtv-debug=0 mpg_buffers=90
options tuner type=2
options msp3400 once=1 simple=1 debug=0
add below ivtv msp3400 saa7115 tuner
add above ivtv lirc_dev lirc_i2c

Add ivtv to the modules autoload. Edit the file /etc/modules.autoload.d/kernel-2.6, add the line:

ivtv

Finally, run update-modules. If you need to start ivtv now, run modprobe ivtv.

For me, when I ran modprobe after that it barfed on a Lirc error. So I emerged the latest (pre-1.0.7 or something like that) lirc (which requires its own tweaking) and then re-ran modprobe ivtv and it worked a charm.

My system has a PVR250 retail and I'm using the 2.6.7-r11 gento dev kernel (or whatever was on 2004.02 live cd).

If you want any files, just let me know.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum