ErikTheRed
April 14th, 2006, 04:03 AM
After buying this tuner I was frustrated with the terrible linux driver support for it. I was finally able to get it working with the drivers from http://www.isely.net/pvrusb2/pvrusb2.html
I'll now go through the process I went through to get my drivers installed and working. As a note I am using Dapper along with a 2.6.16 kernel I compiled myself, but I believe this should work for 2.6.15 as well. The main driver page has some tips for older kernels (I'll try to put these in my howto).
1. Download the latest driver package from this page: http://www.isely.net/pvrusb2-download.html
2. Extract the driver package
~$ tar -xvjf pvrusb2-mci-20060329.tar.bz2
3. Extract the tuner's firmware from the Windows driver package.
For this step I had to use the drivers straight off of the driver CD.
Navigate to the utils directory
cd pvrusb2-mci-20060329/utils
There are several ways to extract the firmware:
a. run the fwfind.sh script (this method did not work for me)
sh fwfind.sh
This will try and extract the firmware automatically (I believe it scans your cdrom for the appropriate files, so make sure you have your driver CD inserted.)
b. run the extractfw.pl script (this didn't work for me either)
First off you'll need to make a win_driver folder within the utils folder.
~/pvrusb2-mci-20060329/utils$ mkdir win_driver
Next you'll need to copy the driver files from your CD or from the driver package from Hauppauge's site to the win_driver directory.
If this process is successful you will have the following two files in your utils directory:
v4l-pvrusb2-29xxx-01.fw
v4l-cx2341x-enc.fw
c. run the older firmware extract script. (This is what I had to do)
This script is named "old-extract-firmware.pl"
I had to edit two lines before it worked for me:
my $fx2pos = 03774540;
my $xxxpos = 00774540;
Now run the script (Obviously you'll need to change the path to wherever HCWUSB2.sys resides.)
~/pvrusb2-mci-20060329/utils$ perl old-extract-firmware.pl /media/cdrom/HCWUSB2.sys
The old script gives you two files in the utils folder, which you'll have to rename
(original files being on the left and the renamed on the right):
pvrusb2.f1 -> v4l-pvrusb2-29xxx-01.fw
pvrusb2.f2 -> v4l-cx2341x-enc.fw
4. Install the .fw files
Reguardless of how you obtain these files you'll need to copy them to the /lib/firmware/"your kernel"/ directory:
~/pvrusb2-mci-20060329/utils$ sudo cp *.fw /lib/firmware/'uname -r'
5. Compile and install the driver.
Navigate to the "driver" directory within the pvrusb2 package.
Now compile and install the driver:
sudo make
sudo make install
(5B) LOWER THAN 2.6.15 ONLY
For those using a kernel below 2.6.15 you will need to compile and install ivtv. The driver package includes a snapshot of ivtv in the ivtv folder. You will need to compile and install this:
sudo make
sudo make install
You may want to restart after installing ivtv.
6. Initialize the driver
To start the driver run the following commands:
sudo depmod -a
sudo modprobe pvrusb2
That should do it. I'm currently in the process of setting up MythTV, and I'll let you know if it works.
I'll now go through the process I went through to get my drivers installed and working. As a note I am using Dapper along with a 2.6.16 kernel I compiled myself, but I believe this should work for 2.6.15 as well. The main driver page has some tips for older kernels (I'll try to put these in my howto).
1. Download the latest driver package from this page: http://www.isely.net/pvrusb2-download.html
2. Extract the driver package
~$ tar -xvjf pvrusb2-mci-20060329.tar.bz2
3. Extract the tuner's firmware from the Windows driver package.
For this step I had to use the drivers straight off of the driver CD.
Navigate to the utils directory
cd pvrusb2-mci-20060329/utils
There are several ways to extract the firmware:
a. run the fwfind.sh script (this method did not work for me)
sh fwfind.sh
This will try and extract the firmware automatically (I believe it scans your cdrom for the appropriate files, so make sure you have your driver CD inserted.)
b. run the extractfw.pl script (this didn't work for me either)
First off you'll need to make a win_driver folder within the utils folder.
~/pvrusb2-mci-20060329/utils$ mkdir win_driver
Next you'll need to copy the driver files from your CD or from the driver package from Hauppauge's site to the win_driver directory.
If this process is successful you will have the following two files in your utils directory:
v4l-pvrusb2-29xxx-01.fw
v4l-cx2341x-enc.fw
c. run the older firmware extract script. (This is what I had to do)
This script is named "old-extract-firmware.pl"
I had to edit two lines before it worked for me:
my $fx2pos = 03774540;
my $xxxpos = 00774540;
Now run the script (Obviously you'll need to change the path to wherever HCWUSB2.sys resides.)
~/pvrusb2-mci-20060329/utils$ perl old-extract-firmware.pl /media/cdrom/HCWUSB2.sys
The old script gives you two files in the utils folder, which you'll have to rename
(original files being on the left and the renamed on the right):
pvrusb2.f1 -> v4l-pvrusb2-29xxx-01.fw
pvrusb2.f2 -> v4l-cx2341x-enc.fw
4. Install the .fw files
Reguardless of how you obtain these files you'll need to copy them to the /lib/firmware/"your kernel"/ directory:
~/pvrusb2-mci-20060329/utils$ sudo cp *.fw /lib/firmware/'uname -r'
5. Compile and install the driver.
Navigate to the "driver" directory within the pvrusb2 package.
Now compile and install the driver:
sudo make
sudo make install
(5B) LOWER THAN 2.6.15 ONLY
For those using a kernel below 2.6.15 you will need to compile and install ivtv. The driver package includes a snapshot of ivtv in the ivtv folder. You will need to compile and install this:
sudo make
sudo make install
You may want to restart after installing ivtv.
6. Initialize the driver
To start the driver run the following commands:
sudo depmod -a
sudo modprobe pvrusb2
That should do it. I'm currently in the process of setting up MythTV, and I'll let you know if it works.