Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78570 - app-misc/pvrusb2 ebuild (New Package)
Summary: app-misc/pvrusb2 ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-01-18 13:08 UTC by Roger
Modified: 2006-10-07 16:04 UTC (History)
1 user (show)

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


Attachments
pvrusb2-07112004.ebuild (pvrusb2-07112004.ebuild,1.42 KB, text/plain)
2005-01-18 13:09 UTC, Roger
Details
pvrusb2-07112004.ebuild (pvrusb2-07112004.ebuild,1.55 KB, text/plain)
2005-01-19 17:48 UTC, Roger
Details
pvrusb2-07112004.ebuild (pvrusb2-07112004.ebuild,1.55 KB, text/plain)
2005-01-20 17:59 UTC, Roger
Details
pvrusb2-07112004.ebuild (pvrusb2-07112004.ebuild,1.58 KB, text/plain)
2005-03-05 22:04 UTC, Roger
Details
pvrusb2-20050717.ebuild (pvrusb2-20050717.ebuild,1.86 KB, text/plain)
2005-07-19 23:19 UTC, Roger
Details
pvrusb2-20050717.ebuild (pvrusb2-20050717.ebuild,1.86 KB, text/plain)
2005-07-20 09:38 UTC, Roger
Details
pvrusb2-20050717.ebuild (pvrusb2-20050717.ebuild,1.86 KB, text/plain)
2005-07-20 17:51 UTC, Roger
Details
Changelog (Changelog,545 bytes, text/plain)
2005-08-03 16:34 UTC, Roger
Details
pvrusb2-20050717-r1.ebuild (pvrusb2-20050717-r1.ebuild,1.91 KB, text/plain)
2005-08-03 16:35 UTC, Roger
Details
Patch file for pvrusb2-20050717-r1.ebuild (freq-fix.patch,640 bytes, text/plain)
2005-08-07 12:11 UTC, Roger
Details
pvrusb2-20050804.ebuild (pvrusb2-20050804.ebuild,2.32 KB, text/plain)
2005-08-09 10:50 UTC, Roger
Details
Changelog (Changelog,629 bytes, text/plain)
2005-08-09 10:52 UTC, Roger
Details
pvrusb2-20050804.ebuild (pvrusb2-20050804.ebuild,2.42 KB, text/plain)
2005-08-09 13:35 UTC, Roger
Details
pvrusb2-20050804.ebuild (pvrusb2-20050804.ebuild,2.50 KB, text/plain)
2005-08-09 22:04 UTC, Roger
Details
Changelog (Changelog,814 bytes, text/plain)
2005-12-15 22:24 UTC, Roger
Details
pvrusb2-20051208.ebuild (pvrusb2-20051208.ebuild,3.20 KB, text/plain)
2005-12-15 22:25 UTC, Roger
Details
Changelog (Changelog,921 bytes, text/plain)
2006-01-05 21:45 UTC, Roger
Details
pvrusb2-20060103.ebuild (pvrusb2-20060103.ebuild,3.20 KB, text/plain)
2006-01-05 21:47 UTC, Roger
Details
pvrusb2-20060209.ebuild (pvrusb2-20060209.ebuild,3.95 KB, text/plain)
2006-03-11 21:05 UTC, Roger
Details
Changelog (Changelog,1.10 KB, text/plain)
2006-03-11 21:06 UTC, Roger
Details
Changelog (Changelog,1.17 KB, text/plain)
2006-03-11 21:27 UTC, Roger
Details
pvrusb2-20060209.ebuild (pvrusb2-20060209.ebuild,4.12 KB, text/plain)
2006-03-11 21:29 UTC, Roger
Details
Changelog (Changelog,1.35 KB, text/plain)
2006-04-20 16:02 UTC, Roger
Details
pvrusb2-20060418.ebuild (pvrusb2-20060418.ebuild,5.00 KB, text/plain)
2006-04-20 16:04 UTC, Roger
Details
Changelog (Changelog,1.36 KB, text/plain)
2006-04-20 16:05 UTC, Roger
Details
pvrusb2-20060418.ebuild (pvrusb2-20060418.ebuild,5.18 KB, text/plain)
2006-04-20 16:18 UTC, Roger
Details
pvrusb2-20060418.ebuild (pvrusb2-20060418.ebuild,5.34 KB, text/plain)
2006-04-20 16:48 UTC, Roger
Details
pvrusb2-20060418.ebuild (pvrusb2-20060418.ebuild,5.35 KB, text/plain)
2006-04-20 17:14 UTC, Roger
Details
pvrusb2-20060607.ebuild (pvrusb2-20060607.ebuild,5.35 KB, text/plain)
2006-06-25 00:30 UTC, Roger
Details
Changelog (Changelog,1.49 KB, text/plain)
2006-06-25 00:32 UTC, Roger
Details
Changelog (Changelog,1.54 KB, text/plain)
2006-07-07 18:27 UTC, Roger
Details
pvrusb2-20060702.ebuild (pvrusb2-20060702.ebuild,5.35 KB, text/plain)
2006-07-07 18:28 UTC, Roger
Details
pvrusb2-firmware-0.1.ebuild (pvrusb2-firmware-0.1.ebuild,3.51 KB, text/plain)
2006-09-03 16:37 UTC, Roger
Details
pvrusb2-firmware-0.2.ebuild (pvrusb2-firmware-0.2.ebuild,2.77 KB, text/plain)
2006-10-03 01:00 UTC, Roger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger 2005-01-18 13:08:29 UTC
Here's is an initial pvrusb2 driver ebuild.  It is a development/cvs version and is the first one to support NTSC standard instead of just PAL.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Roger 2005-01-18 13:09:41 UTC
Created attachment 48875 [details]
pvrusb2-07112004.ebuild

Initial pvrusb2 ebuild
Comment 2 Roger 2005-01-18 13:13:53 UTC
There are two files:

/usr/local/portage/app-misc/pvrusb2/files/pvrusb2.f1
/usr/local/portage/app-misc/pvrusb2/files/pvrusb2.f2

They were stripped from a win32 driver and are required firmware in order for this unit to run under linux... they are uploaded to the unit.

How do these two files get packaged? ... would they need to be hosted up on a remote mirror someplace??
Comment 3 Roger 2005-01-19 17:48:10 UTC
Created attachment 49007 [details]
pvrusb2-07112004.ebuild

Added remote mirror location for pvrusb2.f* (firmware) files.

Although the pvrusb2 driver is GPL-2, the firmware files uploaded into the
device are not.  Does the license still remain GPL-2 within the ebuild?  If
not, which license would apply?
Comment 4 Roger 2005-01-20 16:02:43 UTC
Got a bug in my module/driver ebuilds where the modules are being installed into:
/lib/modules/kernel/

instead of:

/lib/modules/${KV_full}/kernel/

${KV_full} is being read as an empty string (no version is being pushed into this variable.

I am working on this issue now.
Comment 5 Roger 2005-01-20 17:59:01 UTC
Created attachment 49076 [details]
pvrusb2-07112004.ebuild

Now installs the module into the proper folder using ${KV_FULL}
Comment 6 Roger 2005-01-20 18:01:45 UTC
Think I'm done with this ebuild.  Suggestions & flames are welcome.
Comment 7 Roger 2005-03-05 22:04:25 UTC
Created attachment 52762 [details]
pvrusb2-07112004.ebuild

Corrects a missing RDEP (hotplug).
Comment 8 Roger 2005-07-19 23:19:12 UTC
Created attachment 63855 [details]
pvrusb2-20050717.ebuild

pvrusb2-20050717.ebuild
Comment 9 Roger 2005-07-19 23:21:35 UTC
I've updated the ebuild to use the new pvrusb2 code from
http://www.isely.net/pvrusb2.html
Comment 10 Roger 2005-07-20 00:07:05 UTC
Things to do for this ebuild are:

1) Remove the src urls for the firmware and instruct the person installing to
manually extract the drivers and place them w/i the /usr/portage/disfiles
folder. (For an example, see a cedega ebuild).  Scripts are included in the
utils/ folder of the source package for extracting.

2) Check to see if VIDEO_BT848 module CONFIG_CHECK.  If so, only install
pvrusb2.ko module.  (Ignore all other modules as they are only included for
users needing a quick working solution.  If users need to resort to these
modules, the maintainer of the pvrusb2 driver wants to hear about it.)
The BT848 kernel option contains these other modules.
Comment 11 Roger 2005-07-20 09:38:31 UTC
Created attachment 63898 [details]
pvrusb2-20050717.ebuild

Updated the $HOMEPAGE
Comment 12 Roger 2005-07-20 17:51:35 UTC
Created attachment 63936 [details]
pvrusb2-20050717.ebuild

pvrusb2-20050717.ebuild

Using doins instead of dolib to install firmware into /lib/firmware
Comment 13 Roger 2005-08-03 16:34:09 UTC
Created attachment 65027 [details]
Changelog
Comment 14 Roger 2005-08-03 16:35:47 UTC
Created attachment 65028 [details]
pvrusb2-20050717-r1.ebuild

pvrusb2-20050717-r1.ebuild

This adds a patch to fix frequencies < channel 5.
Comment 15 Roger 2005-08-07 12:11:14 UTC
Created attachment 65335 [details]
Patch file for pvrusb2-20050717-r1.ebuild

(oops.	Forgot this file. This fix is implimented in later versions.)
Comment 16 Roger 2005-08-09 10:50:04 UTC
Created attachment 65546 [details]
pvrusb2-20050804.ebuild
Comment 17 Roger 2005-08-09 10:52:33 UTC
Created attachment 65549 [details]
Changelog
Comment 18 Roger 2005-08-09 13:35:25 UTC
Created attachment 65553 [details]
pvrusb2-20050804.ebuild

I've added an optional patch within the ebuild to activate interlacing by
default for users, primarily mythtv users, wanting or needing to reduce their
cpu usage.

Simply uncomment the patch to enable it.
Comment 19 Roger 2005-08-09 13:37:14 UTC
Comment on attachment 65546 [details]
pvrusb2-20050804.ebuild

pvrusb2-20050804.ebuild
Comment 20 Roger 2005-08-09 22:04:01 UTC
Created attachment 65577 [details]
pvrusb2-20050804.ebuild

Added a variable for users to enable interlacing by default instead of being
disabled by default.  This is primarily for Mythtv users wanting to lower their
cpu usage.  

To do so, add PVRUSB2="interlace" to /etc/make.conf.
Comment 21 Roger 2005-08-09 22:18:16 UTC
Comment on attachment 65577 [details]
pvrusb2-20050804.ebuild

This patch did not resolve the problem with Mythtv.

mythfrontend reinitializes the /sys interlace to zero when starting to play
live tv.

doh!
Comment 22 Roger 2005-12-15 22:24:25 UTC
Created attachment 74854 [details]
Changelog
Comment 23 Roger 2005-12-15 22:25:17 UTC
Created attachment 74855 [details]
pvrusb2-20051208.ebuild
Comment 24 Doug Goldstein (RETIRED) gentoo-dev 2005-12-25 21:46:56 UTC
I assume this is for the Hauppauge PVRUSB2 card... I'd maintain it if I had the hardware. Soo if someone feels generous this Christmas..
Comment 25 Roger 2006-01-05 21:45:32 UTC
Created attachment 76297 [details]
Changelog

Changelog
Comment 26 Roger 2006-01-05 21:47:07 UTC
Created attachment 76299 [details]
pvrusb2-20060103.ebuild

pvrusb2-20060103.ebuild
Comment 27 Roger 2006-03-11 21:05:45 UTC
Created attachment 81957 [details]
pvrusb2-20060209.ebuild

New Version & added option to use kernel TUNER code.

CONFIG_VIDEO_BT848
CONFIG_VIDEO_DECODER

In kernel tuner support is known not work on the newer pvrusb2 devices!
Comment 28 Roger 2006-03-11 21:06:13 UTC
Created attachment 81958 [details]
Changelog
Comment 29 Roger 2006-03-11 21:27:27 UTC
Created attachment 81959 [details]
Changelog
Comment 30 Roger 2006-03-11 21:29:24 UTC
Created attachment 81960 [details]
pvrusb2-20060209.ebuild
Comment 31 Roger 2006-04-01 12:52:29 UTC
As of pvrusb2-20060209.ebuild, I have added a use flag to enable using the kernel provided saa7115/msp code instead of the pvrusb2 provided saa/msp code.  For example:

USE="pvrusb2-kernel" emerge pvrusb2  (To build for kernel provided modules)

So make sure you set the following options in your kernel .config:
 CONFIG_VIDEO_SAA6588=y
 CONFIG_VIDEO_DEV=y

If you forget to provide the above use flag while using the above kernel .config options, you will get a build error while building pvrusb2 provided saa7115 code.  I know about this bug and it's because of a lack of error checking routines within the pvrusb2 ebuild. (If somebody wants to fix, you're welcome to it.  Currently, I have little time and I did this so I would be able to use the more current saa7115/msp code.)

If you still are using the pvrusb2 provided saa7115/msp modules, the build should succeed w/o problems.
Comment 32 Roger 2006-04-20 16:02:18 UTC
Created attachment 85075 [details]
Changelog
Comment 33 Roger 2006-04-20 16:04:06 UTC
Created attachment 85076 [details]
pvrusb2-20060418.ebuild

Per Changelog:

20 Apr 2006; Roger <roger@eskimo.com>;
  pvrusb2-200604.18.ebuild
  New version.
  Pvrusb2 ebuild now defaults to using kernel tree ivtv code.
  Support for using latest hauppauge firmwares.
Comment 34 Roger 2006-04-20 16:05:49 UTC
Created attachment 85077 [details]
Changelog

(Grammer usage error)
Comment 35 Roger 2006-04-20 16:18:17 UTC
Created attachment 85079 [details]
pvrusb2-20060418.ebuild

Minor bugs fixed.
Comment 36 Roger 2006-04-20 16:48:25 UTC
Created attachment 85080 [details]
pvrusb2-20060418.ebuild

(Additional Cleanup.)
Comment 37 Roger 2006-04-20 17:14:43 UTC
Created attachment 85082 [details]
pvrusb2-20060418.ebuild

(Removed unneeded interlacing epatch?)
Comment 38 Roger 2006-06-25 00:30:41 UTC
Created attachment 90074 [details]
pvrusb2-20060607.ebuild

Fixes applied so pvrusb2 can build with kernel-2.6.17
Comment 39 Roger 2006-06-25 00:32:11 UTC
Created attachment 90075 [details]
Changelog
Comment 40 Roger 2006-06-25 00:36:40 UTC
I'm noticing quite a few changes with kernel-2.6.17's V4L along with the SAA711X code opting to be removed.

I'm not sure if SAA711X is still needed or if the code has been merged into the newer V4L code.  I am still using the old SAA711X option w/i my linux/.config

Comment 41 Roger 2006-07-07 18:27:40 UTC
Created attachment 91183 [details]
Changelog

Changelog
Comment 42 Roger 2006-07-07 18:28:29 UTC
Created attachment 91184 [details]
pvrusb2-20060702.ebuild

pvrusb2-20060702.ebuild
Comment 43 Roger 2006-07-07 18:35:49 UTC
"FYI For the Newer Hauppauge Pvrusb2 models being sold as of 2006" 

I do not have one!  I'm using an older Hauppauge Pvrusb2 model made prior to 2006.  As such, these ebuilds should work with those older devices (with little tweaking).

So. For those of you checking-up to see why this ebuild isn't working with your newer Hauppauge Pvrusb2 device, you might have to tweak this ebuild to get it working.  Please feel free to submit your patches or fixes!  (I'm guessing you're going to run into a "missing firmware" problem!)
Comment 44 Roger 2006-09-03 16:37:07 UTC
Created attachment 95895 [details]
pvrusb2-firmware-0.1.ebuild

The pvrusb2 driver has been commited to >=kernel-2.6.18

Only the firmwares are now needed.

I've stripped the pvrusb2 ebuild of building the driver and renamed it to pvrusb2-firmware.  This new ebuild now only installs the firmwares, utilities to extract firmwares and docs.

From here, not much more maintainance will be required with the ebuild.  Future firmware releases might be incorporated into ivtv or published else where.

As far as the licensing issues, I've simply implied the Conexant-firmware License.  Forgive me if I'm wrong, but implying GPL is probably not proper!
Comment 45 Roger 2006-10-03 01:00:02 UTC
Created attachment 98689 [details]
pvrusb2-firmware-0.2.ebuild

There has been issues with firmwares corresponding between the two different models of pvrusb2 devices.  Namely, the newer 29xxx and older 24xxx models.

This ebuild has been modified to include both model firmwares.  I know the 29xxx (older) models work with these firmwares.  I have not tested 24xxx models with this ebuild.
Comment 46 Roger 2006-10-03 01:04:58 UTC
Quick method of getting your pvrusb2 working, use the in-kernel 2.6.18 pvrusb2 driver and "emerge pvrusb2-firmware-0.2.ebuild".

Simply re-plugging in or reloading the pvrusb2 module should initiate the firmwares to upload.

29xxx models are tested to work with this (as I have one ;-)
24xxx models need testing.

If you want to test the latest & greatest from Mike's website, modify the pvrusb2-$VERSION.ebuild file.

I am moving in favor of the in-kernel driver and will only be maintaining the firmware ebuild (pvrusb2-firmware-$VERSION.ebuild).  Besides the firmwares, this ebuild will still also include the docs & utils within Mike's pvrusb2 source tarball. ;-)
Comment 47 Doug Goldstein (RETIRED) gentoo-dev 2006-10-05 12:12:10 UTC
The firmware is provided in the tree via the media-tv/pvr-firmware package. Closing this bug since that package provides the necessary bits.
Comment 48 Roger 2006-10-06 00:58:01 UTC
media-tv/pvr-firmware-20060701

There has been an update to this firmware since then.

Think I'll stick with my updated firmware. ;-)

Most others using a pvrusb2 device will want the updated firmwares as well.

The person who posted those firmware should be notified to updated the firmwares as I am showing a diff in the cx* firmwares between his & mine (mine being the most recent release of the firmwares).

Otherwise, we're going to get people harassing Mike with bugs related to the old firmwares.

Does anybody know the person who posted the firmwares on ivtv?  Can they advise him to update (as those are firmwares older then 2006.07).  If so great.  If not, my ebuilds have been around for more then a year and I've pretty much kept up from release to release.
  

Comment 49 Roger 2006-10-06 01:11:54 UTC
In the meantime, this is great if the firmware will be provided by ivtv -- as I too think it's more appropriate as well.

Brief search shows you've submitted changes to the ivtv/mythtv ebuild.

Should I post to the ivtv mailing list for a request to update the firmwares for pvr-firmware ebuild?

And, when they do extract the new firmwares, they will need to use the new fwextract.pl posted on Mike Isely's website. (The older fwextract.pl does not extract the 29xxx device firmwares.)

Thanks for your time.  This frees me up from my doodling here! :-)
Comment 50 Roger 2006-10-06 21:16:19 UTC
I have placed a request on the ivtv mailing list to update the firmwares.

I could, as well, tarball the firmwares. (I have them published seperately, but tarballing was next on my list of things todo.).

I'll check back in a week or so.
Comment 51 Roger 2006-10-07 02:47:19 UTC
I've gotten word from Mike and ivtv will probably be updated shortly with the newer firmwares.

So, probably within the week or sooner, ivtvdrivers.org/firmwares will have teh latest & greatest for media-tv/pvr-firmwares.
Comment 52 Doug Goldstein (RETIRED) gentoo-dev 2006-10-07 07:07:55 UTC
I had already talked to Hans long ago about it.
Comment 53 Roger 2006-10-07 16:04:49 UTC
Just posted ivtvdriver.org, new firmwares are up.

A more recent media-tv/pvr-firmwares ebuild can be pushed. ;-)