LinHES Forums http://forums.linhes.org/ |
|
WinTV-PVR-USB2 and KnoppMyth R5A26 install script http://forums.linhes.org/viewtopic.php?f=9&t=7071 |
Page 1 of 1 |
Author: | rja [ Fri Nov 25, 2005 1:20 pm ] |
Post subject: | WinTV-PVR-USB2 and KnoppMyth R5A26 install script |
This script adds the firmware and driver for a WinTV-PVR-USB2 during a KnoppMyth R5A26 install. It can be used for either an Auto Install or a Manual Install. It uses Mike Isely's pvrusb2 driver. It depends on a working internet connection. Code: #!/bin/bash
# # To use WinTV-PVR-USB2 with KnoppMyth R5A26, # compile and install Mike Isely's pvrusb2 kernel driver, and # extract and copy the firmware from Hauppauge. # Configure it just like a PVR-250/PVR-350, but without VBI. # # See http://www.isely.net/pvrusb2.html for more info on the driver, # and if there are newer versions available. # # For an Auto Install, when the prompt says: # "KnoppMyth was successfully installed to hda1. # Reboot?" # hit <CTRL><ALT><F2> and run the following commands. # # For a Manual Install, after you see the message: # "KnoppMyth was successfully installed to hd", # you drop to a shell prompt. Then, run the following commands. # # To configure KnoppMyth R5A26 with a pvrusb2 during Post Installation: # # Step 1. General # Global Backend Setup # VBI format: "None" # # Step 2. Capture Cards # Capture Card Setup # Card type: "MPEG-2 Encoder card (PVR-250, PVR-350)" # mkdir /mnt/hdinstall/usr/local/src/pvrusb2 cd /mnt/hdinstall/usr/local/src/pvrusb2 wget http://www.isely.net/downloads/pvrusb2-mci-20051113.tar.bz2 wget http://hauppauge.lightpath.net/software/pvrusb2/pvrusb2_inf_26c.zip chroot /mnt/hdinstall cd /usr/src tar jxf kernel-source-2.6.13.2-chw-3.tar.bz2 cd /usr/local/src/pvrusb2 tar jxf pvrusb2-mci-20051113.tar.bz2 cd pvrusb2-mci-20051113 make --directory=driver make --directory=driver install mv /etc/rc5.d/S25mythtv-backend /etc/rc5.d/S87mythtv-backend cd utils mkdir win_driver unzip ../../pvrusb2_inf_26c.zip HCWUSB2.sys -d win_driver ./fwextract.pl cp pvrusb2.f1 pvrusb2.f2 /usr/lib/hotplug/firmware rm -rf /usr/src/kernel-source-2.6.13.2-chw-3 exit # tar cf knoppmyth-r5a26-pvrusb2.tar \ # /mnt/hdinstall/lib/modules/2.6.13.2-chw-3/pvrusb2 \ # /mnt/hdinstall/usr/lib/hotplug/firmware/pvrusb2.f? # Copy knoppmyth-r5a26-pvrusb2.tar somewhere safe for easier re-install. # It only takes three files. # for an Auto Install # Hit <CTRL><ALT><F1>, reboot the system. and perform Post Installation # for a Manual Install # "exit", reboot the system, and perform Post Installation |
Author: | cesman [ Sat Nov 26, 2005 5:11 pm ] |
Post subject: | |
Other than the firmware, what all is needed to get this working? Links, details, etc. and this could work out the box in a future release.... |
Author: | rja [ Sat Nov 26, 2005 8:44 pm ] |
Post subject: | |
Mike Isely's pvrusb2 page is: http://www.isely.net/pvrusb2.html There aren't a lot of details, because Mike made it VERY easy to install. All you need to add are the two firmware files and compile and install the kernel module pvrusb2.ko. It works with some of the ivtv drivers, which you already have included, so you can skip the: make --directory=ivtv The driver is quite stable now. It's undergoing changes so that it and ivtv can be included into the kernel. The first part of the script compiles and installs the current snapshot of the pvrusb2 driver. wget http://www.isely.net/downloads/pvrusb2- ... 13.tar.bz2 tar jxf pvrusb2-mci-20051113.tar.bz2 cd pvrusb2-mci-20051113 make --directory=driver make --directory=driver install That will create /lib/modules/kernel-version/pvrusb2/pvrusb2.ko. Since it uses hotplug, I think that the mythtv-backend should start after hotplug. So far, noone has agreed or dis-agreed with that. I don't know debian well enough to come up with the correct update-rc.d command, so I did it the wrong way. mv /etc/rc5.d/S25mythtv-backend /etc/rc5.d/S87mythtv-backend The rest is just one way to get the firmware. The web page has a few other ways to get the firmware, including from the CD-ROM that came in the box. |
Author: | cesman [ Sat Nov 26, 2005 10:44 pm ] |
Post subject: | |
Thanks for the info! I've followed the steps and added it to the next release. See how easy that was? ![]() |
Author: | danejasho [ Fri Dec 09, 2005 8:54 am ] |
Post subject: | |
This is a Linux 'inexperienced' question. How do I get this shell script (is this a shell script?) to run automatically? I'm able to type these commands manually, but I'd like to automate it. My guess is to make it in vi, save it as a .sh and set the execute bit. AND... Once I get this file (I'm assuming it will be a .sh file) created in vi or whatever, and set the execute bit, how can I copy this file to the system that I'm loading A26 on? It seems like it would be easiest to get it on the A26 boot CD. Can this be done? I was up all night last night fiddling with this so any help would be very appreciated! ---- System: Dell Latitude D600 Intel Mobile P4 1.7 GHz 1 GB mem 40 GB hdd Integrated ATI 9000 video Integrated sound (ac97?) WinTV PVR USB 2 (the good one) |
Author: | danejasho [ Fri Dec 09, 2005 11:04 am ] |
Post subject: | |
I forgot about that. That works for me. Thank you. |
Author: | mad_paddler [ Fri Dec 09, 2005 11:12 am ] |
Post subject: | |
I deleted my post because i dont think it will work :S I looked on my mythtv machine and /mnt/hdinstall is missing |
Author: | danejasho [ Fri Dec 09, 2005 11:28 am ] |
Post subject: | |
mad_paddler wrote: I deleted my post because i dont think it will work :S I looked on my mythtv machine and /mnt/hdinstall is missing
You got me thinking, and I remembered reading about this. Here's the post that speaks to remote access. http://mysettopbox.tv/phpBB2/viewtopic.php?t=5423 |
Author: | danejasho [ Sun Dec 11, 2005 2:22 pm ] |
Post subject: | |
Turns out I was trying way to hard to figure this one out. I was doing the "side by side" work on a Mac, using OSX (10.4). SSH capability is built in on OSX. Opened a terminal session, type 'ssh -l mythtv 192.168.0.53 (my myth box ip) and I was in, easy as that. It's nice when things just work. |
Author: | rja [ Sun Dec 11, 2005 3:22 pm ] |
Post subject: | |
The steps in the script are only run one time. They add three files to the R5A26 hard disk install before you reboot. After you have those three files, you do not need the script anymore. When KnoppMyth boots from the hd for the first time, it should detect the WinTV-PVR-USB2 and start the usual KnoppMyth configuration scripts. You may have to cycle the power to the WinTV-PVR-USB2 to reset it if it gets hung up. You could see messages about that with "dmesg". |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |