Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116916 - new ebuild for ivtv 0.4.2 - svn development for 2.6.15
Summary: new ebuild for ivtv 0.4.2 - svn development for 2.6.15
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
: 117139 117319 117757 127994 (view as bug list)
Depends on:
Blocks: 118671
  Show dependency tree
 
Reported: 2005-12-27 12:47 UTC by Richard Westwell
Modified: 2006-04-27 04:28 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ivtv-0.4.1.ebuild (ivtv-0.4.1.ebuild,3.79 KB, text/plain)
2005-12-27 12:49 UTC, Richard Westwell
Details
ivtv-0.4.2.ebuild svn - 3099 (ivtv-0.4.2.ebuild,4.17 KB, application/octet-stream)
2006-01-06 11:27 UTC, Richard Westwell
Details
ivtv-0.4.2.ebuild svn - 3099 (ivtv-0.4.2.ebuild,4.17 KB, text/plain)
2006-01-06 12:02 UTC, Richard Westwell
Details
IVTV 0.4.2 Ebuild that works! (ivtv-0.4.2.ebuild,4.07 KB, application/octet-stream)
2006-01-16 08:01 UTC, donald webster
Details
update ivtv-0.4.2.ebuild that checks for correct kernel config (ivtv-0.4.2.ebuild,4.18 KB, text/plain)
2006-01-16 13:32 UTC, Brian Merrill
Details
ivtv-0.4.2-r1.ebuild (ivtv-0.4.2-r1.ebuild,4.18 KB, text/plain)
2006-01-17 10:52 UTC, Richard Westwell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Westwell 2005-12-27 12:47:41 UTC
new ebuild for 0.4.1
mostly the same as before but with the firmware located under the standard /lib/firmware directory for hotplug and with slightly different names
Comment 1 Richard Westwell 2005-12-27 12:49:06 UTC
Created attachment 75632 [details]
ivtv-0.4.1.ebuild
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2005-12-27 22:53:44 UTC
I was waiting for this bug to appear after the hordes of people e-mailed me directly about it.

ivtv-0.4.1 fails horribly on both my systems. Not being commited to Portage. We'll wait for 0.4.2. Thanks.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2005-12-29 20:55:41 UTC
*** Bug 117139 has been marked as a duplicate of this bug. ***
Comment 4 Preston Crow 2005-12-30 14:52:04 UTC
Unfortunately, 0.4.0 won't build with kernel 2.6.15, so if you need that kernel (say, for the latest DVB drivers to support the HD-5000 card), then you're hosed without this.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2005-12-30 20:02:15 UTC
Well, 0.4.1 won't have sound for like half the cards out there....

So it's either force no sound on half of our user base. Or you have to suffer a little bit with "older" drivers from kernel 2.6.14
Comment 6 Chris White (RETIRED) gentoo-dev 2005-12-31 23:25:18 UTC
*** Bug 117319 has been marked as a duplicate of this bug. ***
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2006-01-04 11:29:10 UTC
*** Bug 117757 has been marked as a duplicate of this bug. ***
Comment 8 Richard Westwell 2006-01-06 11:27:43 UTC
Created attachment 76368 [details]
ivtv-0.4.2.ebuild svn - 3099
Comment 9 Richard Westwell 2006-01-06 11:45:24 UTC
I've just re-opened the bug but for a different reason
the latest 0.4.1 or the 0.5 development branch won't currently work with the latest 2.6.15 vanilla release of the linux kernel
I think some last minuite changes were made before the 2.6.15 official release of the kernel which prevents the ivtv-0.4.1 or earlier release from working

the only version that I've discovered that does work is the latest svn 0.4.2 release of ivtv (3099), it's not an official release of ivtv as this is still in the Subversion, so I won't expect this to show up in the portage tree just yet

but for anyone interested in getting ivtv to work with the 2.6.15 gentoo sources (even though it's masked) using it as an overlay ebuild the 0.4.2 ebuild attached may be useful
note this will download the latest svn release, I wasn't able to find a way to specify which release the tarball comes from in the ebuild, but the one I'm using at the moment which is 3099 seems to be okay
for info there's also some mention of a 2.4 fix of some form in the Changelog although I don't know if this fixes all the 2.4 issues
Comment 10 Richard Westwell 2006-01-06 12:02:28 UTC
Created attachment 76379 [details]
ivtv-0.4.2.ebuild svn - 3099

darn used the wrong type for the file
Comment 11 dynamotwain 2006-01-10 14:04:00 UTC
0.4.1 worked for me just after I started my computer with the PVR-150 in it for the first time. After that, it wouldn't load because it "claimed" it couldn't find the firmware, but yet it was right in /lib/firmware where it was supposed to be, permissions 644.
Comment 12 Richard Westwell 2006-01-11 05:22:18 UTC
It's probably best to stick with 0.4.0 if you can until 0.4.2 comes out properly
I posted the above ebuild for the svn release in case anyone was using 2.6.15 with a pvr350 (which is what I've got at the moment) as for this card this is the only one I could get to work, but it may be different for different cards

something to note is that for 0.4.1 and above the firmware has changed name / location

inside /lib/firmware
ivtv-fw-enc.bin    -> v4l-cx2341x-enc.fw
ivtv-fw-dec.bin    -> v4l-cx2341x-dec.fw
HcwMakoA.ROM       -> v4l-cx25840.fw
ivtv_init_mpeg.bin -> v4l-cx2341x-init-mpeg.bin

I tried to reflect this in the ebuild but perhaps something was missed somewhere
Comment 13 Brian Jackson (RETIRED) gentoo-dev 2006-01-11 10:28:18 UTC
we don't have a working ivtv until upstream releases 0.4.2 which should be in the next few days
Comment 14 donald webster 2006-01-16 08:01:41 UTC
Created attachment 77266 [details]
IVTV 0.4.2 Ebuild that works!

*NOTE* this requires that you copy /usr/portage/media-tv/ivtv/files/ivtv -> /usr/local/portage/media-tv/ivtv/files/ *NOTE*

I've used the ivtv-0.4.1 and ivtv-0.4.2-svn ebuilds to create a proper 0.4.2 ebuild now that ivtv-0.4.2 has been properly released.

I made two changes that were causing a "cannot stat" error, due to file name miss-matches.

I have tested on 2.6.15 w/ a PVR-250 and the module loads.  I've not had a chance to test actual video due to being remote to the server.  I have also tested on a 2.6.14 kernel (and found a typo in the process), module loads fine.
Comment 15 Brian Merrill 2006-01-16 13:32:34 UTC
Created attachment 77293 [details]
update ivtv-0.4.2.ebuild that checks for correct kernel config

Modified ebuild to check that the correct modules are enabled in the kernel.  CONFIG_VIDEO_BT848 enables the required VIDEO_TUNER and VIDEO_TVEEPROM modules.  Without VIDEO_TUNER and VIDEO_TVEEPROM the driver will appear to build and install correctly, but you will not be able to change channels.
Comment 16 donald webster 2006-01-17 04:06:02 UTC
good catch, doesn't it also require the "build extra video/audio modules" options in the 2.6.15 kernel?
Comment 17 Richard Westwell 2006-01-17 10:52:04 UTC
Created attachment 77366 [details]
ivtv-0.4.2-r1.ebuild

looking at the changelog for 0.4.2
"renamed v4l-cx2341x-init-mpeg.bin to v4l-cx2341x-init.mpg (the name was too long for the 2.4 kernel firmware load, the max name length in 2.4 is 20, for 2.6 it is 29)."

I've checked the source and v4l-cx2341x-init.mpg is the one it's using, so I've renamed this back in the ebuild

the support for additional audio / video chipsets, will be covered by the "VIDEO_DECODER VIDEO_AUDIO_DECODER" on the config_check line
Comment 18 Sean Rae 2006-01-17 12:52:57 UTC
I used the ebuild in comment #17 and it works (including the kernel config checks!) for my PVR-500 on kernel 2.6.15-gentoo-r1.  However, due to all the changes going on, I ended up just deleting all of my firmware and following the directions from http://ivtvdriver.org/index.php/Firmware to get new copies.  It seems to load everything correctly and I can make an mpeg file using "cat /dev/video0 >> blah.mpeg".  Strangely, tvtime is giving me an error of "videoinput: Card failed to allocate capture buffers: Invalid argument", but I think that's a separate tvtime-specific issue.  Thanks to everyone who worked on this!  :-)
Comment 19 J.Taimr 2006-01-18 09:49:43 UTC
I used ebuild from #17 and everything works fine (inclusive channels change), even without VIDEO_DECODER VIDEO_AUDIO_DECODER and CONFIG_VIDEO_BT848. Perhaps these switches are not obligatory? With enabling, the modules cs53132a.ko, msp3400.ko, saa7115.ko, saa7127.ko, tda9887.ko, tuner.ko, tveeprom.ko and wm8775.ko are build twice, once as a part of kernel (in drivers/media/video, once by ivtv (in extra). And these modules differ! It should not be, I suppose. My kernel is 2.6.15-gentoo-r1 (for x86_64).
Comment 20 Doug Goldstein (RETIRED) gentoo-dev 2006-01-18 12:04:54 UTC
There's been an ebuild for this in Portage for almost 24 hrs now...
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-03-29 07:53:49 UTC
*** Bug 127994 has been marked as a duplicate of this bug. ***