[pvrusb2] KnoppMyth R5A26 backend with pvrusb2

Roger J. Allen rja at firkraag.rogera.net
Wed Nov 16 22:34:46 CST 2005


You can use the latest KnoppMyth R5A26 as a backend MythTV server with
a WinTV-PVR-USB2 with just a few changes.  After the hd install but
before the reboot, you can compile the pvrusb2 driver, install the
driver and firmware, and add the script to change the channels.  Then,
the KnoppMyth configure scripts will do most of the hard work.

Here is the KnoppMyth home page:

http://www.mysettopbox.tv/knoppmyth.html

Previously, I had the pvrusb2 running under Fedora Core 4 with the
atrpms myth-suite rpms.  I installed KnoppMyth onto a spare partition
on my laptop which had been running FC4.  It already had a swap
partition, which KnoppMyth recognized.  It was VERY easy to install.

boot from the cd

At the menu, I choose Manual Install to keep my other partitions

Follow the prompts until it's installed.

After "KnoppMyth was successfully installed to hd", you drop to a shell
prompt.

Your new root is mounted on /mnt/hdinstall.

chroot /mnt/hdinstall
cd /usr/src
tar jxf kernel-source-2.6.13.2-chw-3.tar.bz2

Copy the pvrusb2 firmware to /usr/lib/hotplug/firmware.

Copy the latest pvrusb2 snapshot, extract, compile, and install the
pvrusb2.ko driver like the docs say.  The ivtv modules are already part
of KnoppMyth.

Copy utils/change-channel.sh to /usr/local/bin.  I changed the script
to use /home/mythtv/.tv/freqs and copied my freqs from my FC4 box.
Edit /etc/sudoers to allow mythtv to run
/usr/local/bin/change-channels.sh as root.  This is the first time I
tried to use the tuner on the pvrusb2, so there may be a better way
to do this.

I had to create /myth/tv and /cache/cache directories and changed
owner and groups to mythtv for them.  An Auto Install probably
creates these for you.

Now, cleanup and leave the chroot environment with:

rm -rf /usr/src/kernel-source-2.6.13.2-chw-3
exit

Copy the pvrusb2.ko driver and modified sudoers file somewhere safe
in case you need to reinstall.

exit
choose Reboot from the menu

My laptop already had grub installed in the MBR.  KnoppMyth tried to
install lilo, but when it rebooted, the grub menu came up.  I booted
to FC4 and added the info to boot the KnoppMyth partition to
/boot/grub/grub.conf, and rebooted.

Now, it will boot to the normal KnoppMyth configuration scripts.
Follow the instructions, and it will walk you thru setting
everything up.

These are important settings for mythtv-setup with the pvrusb2:

1. General - VBI format:  "None"
2. Capture Card Setup - Card type: "MPEG-2 Encoder card (PVR-250, PVR-350)"

4. Input Connections - Connect source to input -
External channel change command: "sudo /usr/local/bin/change-channel.sh"

-- 
Roger J. Allen


More information about the pvrusb2 mailing list