LinHES Forums http://forum.linhes.org/ |
|
My PVR-500 IVTV Setup...{and pvr250, pcHDTV} http://forum.linhes.org/viewtopic.php?f=9&t=4704 |
Page 1 of 1 |
Author: | linuxgeek [ Fri May 27, 2005 12:00 am ] |
Post subject: | My PVR-500 IVTV Setup...{and pvr250, pcHDTV} |
This is what I did to get the PVR-500 working under R5A15.1 Note: This document will assume the following: {sorry for the length} 1. You have a pvr-500, pcHDTV {hd3000}, and a PVR-250 2. You are not a Linux/Unix expert. The HDTV card worked out the box.. I made no changes to it whatsoever. First thing to do is remove tveeprom.ko and tuner.ko from any directory under /lib/modules/.... I had many troubles with the original ones. Use the command find i.e. find / -name tveeprom.ko /lib/modules/2.6.11.7-chw-5/misc/tveeprom.ko Use rm to remove what is found i.e. rm /lib/modules/2.6.11.7-chw-5/misc/tveeprom.ko Do the same for tuner.ko As of this document I am using ivtv driver version: 0.3.5f You can get this from http://www.ivtv.tv/releases/ivtv-0.3/ To install this new driver cd /usr/src/ Download this with wget i.e. wget http://www.ivtv.tv/releases/ivtv-0.3/ivtv-0.3.5f.tgz Note: this may be under the directory OLD So you will have to get it from there. i.e. wget http://www.ivtv.tv/releases/ivtv-0.3/OL ... 0.3.5f.tgz tar -xvzf ivtv-0.3.5f.tgz cd ivtv-0.3.5f/driver make make install cd ../utils make make install reboot Next you will need to edit the /etc/mythtv/modules/ivtv i.e. pico /etc/mythtv/modules/ivtv [edit]This part is no longer necessary with RA516 [/edit] Here is my contents of ivtv -----------Begin------------------- alias char-major-61 lirc_i2c alias char-major-81 videodev alias char-major-81-1 ivtv #= /dev/video1 alias char-major-81-2 ivtv #= /dev/video2 alias char-major-81-3 ivtv #= /dev/video3 #alias char-major-81-4 ivtv #alias tveeprom ivtv-tveeprom #alias tuner ivtv-tuner #options cx25840 no_black_magic=1 audiofmt=1 #options ivtv ivtv_std=0 tuner=57,57,57,57 tda9887=0,0,0,0 ivtv_debug=1 options ivtv ivtv_std=0 tuner=2,57,57 tda9887=-1,0,0 ivtv_debug=1 options cx25840 i2c_enable=-1,1,1 #options cx25840 i2c_enable=1,1,1,1 options saa7127 i2c_enable=1,-1,-1 #options saa7127 i2c_enable=-1,-1,-1,-1 options msp3400 once=1 simple=1 # This below is actually 2 lines one for install and one for remove # It may be formatted incorrectly on the forum. install ivtv /sbin/modprobe tuner; /sbin/modprobe msp3400; /sbin/modprobe saa7115; /sbin/modprobe --ignore-install ivtv remove ivtv /sbin/modprobe -r --ignore-remove ivtv && /sbin/modprobe -r saa7115 && /sbin/modprobe -r msp3400 && /sbin/modprobe -r tuner --------------END----------------- Note: This was setup for 2 pvr-500's but one is broke and I have to get it replaced. I put in my pvr-250 for the time being. The above ivtv file is configured for one pvr-250 and one pvr-500. In my system the pcHDTV card owns /dev/video0 pvr-250 = /dev/video1 pvr-500 = /dev/video2 and /dev/video3 The easiest way to tell is via dmesg { dmesg will be your best friend } Look for the line that has ... card with 5 streams ... i.e. dmesg | more /START i.e. ... Snippet ivtv: Configuring WinTV PVR 250 card with 5 streams ivtv: Registered v4l2 device, streamtype 0 minor 1 ivtv: Create DMA stream 0 using 128 16384 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 1 minor 32 ivtv: Create DMA stream 1 using 80 25920 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 2 minor 225 ivtv: Create DMA stream 2 using 41 50540 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 3 minor 24 ivtv: Create DMA stream 3 using 455 4608 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 4 minor 65 ivtv: Create stream 4 ivtv: Setting Tuner 2 The first stream -- streamtype 0 minor 1 <--- this means /dev/video1 Note: This is what I come to understand that is. Once I understood the /dev/videoX relationships the config files made more sense to me. Here is dmesg snippet of the complete ivtv listing: ivtv: ==================== START INIT IVTV ================ ivtv: version 0.3.5 (f) loading <<-- Pay attention to this ivtv: Linux version: 2.6.11.7-chw-4 SMP preempt 586 gcc-3.3 ivtv: In case of problems please include the debug info ivtv: between the START INIT IVTV and END INIT IVTV lines when ivtv: mailing the ivtv-devel mailinglist. ivtv: Autodetected WinTV PVR 250 card ivtv: Found an iTVC16 based chip ACPI: PCI interrupt 0000:02:0a.0[A] -> GSI 22 (level, low) -> IRQ 22 ivtv: XXX PCI device: 0x2570 vendor: 0x8086 tveeprom: Hauppauge: model = 32032, rev = B310, serial# = 6982796 tveeprom: tuner = Philips FI1236 MK2 (idx = 10, type = 2) tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000) tveeprom: audio_processor = MSP3440 (type = 11) ivtv: i2c attach [client=tveeprom[50],ok] tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0 ivtv: i2c attach [client=(tuner unset),ok] msp34xx: ivtv version msp34xx: init: chip=MSP3448W-A2, has NICAM support, simple (D) mode, simpler (G) no-thread mode msp34xx: $Id$ compiled on: May 24 2005 12:36:06 ivtv: i2c attach [client=MSP3448W-A2,ok] saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005) saa7115: detecting saa7115 client on address 0x42 saa7115: writing init values ivtv: i2c attach [client=saa7115[50],ok] saa7115: status: (1E) 0x81, (1F) 0xb1 cx25840: starting probe for adapter ivtv i2c driver #0 (0x10005) ivtv: Tuner Type 2, Tuner formats 0x00001000, Radio: yes, Model 0x00893450, Revision 0x00000000 ivtv: NTSC tuner detected ivtv: Radio detected ivtv: Encoder revision: 0x02040011 ivtv: Configuring WinTV PVR 250 card with 5 streams ivtv: Registered v4l2 device, streamtype 0 minor 1 ivtv: Create DMA stream 0 using 128 16384 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 1 minor 32 ivtv: Create DMA stream 1 using 80 25920 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 2 minor 225 ivtv: Create DMA stream 2 using 41 50540 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 3 minor 24 ivtv: Create DMA stream 3 using 455 4608 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 4 minor 65 ivtv: Create stream 4 ivtv: Setting Tuner 2 tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) by ivtv i2c driver #0 saa7115: decoder set norm NTSC ivtv: ivtv_enc_thread: pid = 6184, itv = 0xf24261a0 ivtv: ivtv_enc_vbi_thread: pid = 6185, itv = 0xf24261a0 saa7115: set audio: 0x01 saa7115: decoder set input (4) saa7115: now setting Composite input ivtv: Setting audio matrix to input 3, output 1 ivtv: Switching standard to NTSC. saa7115: decoder set norm NTSC saa7115: set audio: 0x01 ivtv: Initialized WinTV PVR 250, card #0 ivtv: Autodetected WinTV PVR 150 card ivtv: Found an iTVC16 based chip ACPI: PCI interrupt 0000:03:08.0[A] -> GSI 20 (level, low) -> IRQ 20 ivtv: XXX PCI device: 0x2570 vendor: 0x8086 tveeprom: Hauppauge: model = 23552, rev = D592, serial# = 2968231 tveeprom: tuner = Philips FQ1236A MK4 (idx = 92, type = 57) tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000) tveeprom: audio_processor = MSP3410D (type = 5) ivtv: i2c attach [client=tveeprom[50],ok] tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #1 ivtv: i2c attach [client=(tuner unset),ok] saa7115: starting probe for adapter ivtv i2c driver #1 (0x10005) cx25840: starting probe for adapter ivtv i2c driver #1 (0x10005) cx25840: detecting client on address 0x88 cx25840: writing init values cx25840: FW image '/lib/modules/HcwMakoA.ROM' of size 14264 loaded. cx25840: FW image md5 digest: 3a4803384f749d644ee1f1ca9dcb12fa cx25840: FW image sha1 digest: 2b5e6292b7391c980b93d156cf6b34178ce770f6 cx25840: Status: cx258433 (DEVICE_ID) ivtv: i2c attach [client=cx25840[50],ok] ivtv: i2c attach [client=wm8775[50],ok] ivtv: Tuner Type 57, Tuner formats 0x00001000, Radio: yes, Model 0x00915652, Revision 0x00000000 ivtv: NTSC tuner detected ivtv: Radio detected ivtv: Encoder revision: 0x02040011 ivtv: Configuring WinTV PVR 150 card with 5 streams ivtv: Registered v4l2 device, streamtype 0 minor 2 ivtv: Create DMA stream 0 using 128 16384 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 1 minor 33 ivtv: Create DMA stream 1 using 80 25920 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 2 minor 226 ivtv: Create DMA stream 2 using 41 50540 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 3 minor 25 ivtv: Create DMA stream 3 using 455 4608 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 4 minor 66 ivtv: Create stream 4 ivtv: Setting Tuner 57 tuner: type set to 57 (Philips FQ1236A MK4) by ivtv i2c driver #1 cx25840: decoder set norm NTSC ivtv: ivtv_enc_thread: pid = 6252, itv = 0xf24494f0 ivtv: ivtv_enc_vbi_thread: pid = 6253, itv = 0xf24494f0 cx25840: decoder set input (6) cx25840: Tuner Input cx25840: set_audio_input 0 ivtv: Switching standard to NTSC. cx25840: decoder set norm NTSC ivtv: Initialized WinTV PVR 150, card #1 ivtv: Autodetected WinTV PVR 150 card ivtv: Found an iTVC16 based chip ACPI: PCI interrupt 0000:03:09.0[A] -> GSI 21 (level, low) -> IRQ 21 ivtv: XXX PCI device: 0x2570 vendor: 0x8086 tveeprom: Hauppauge: model = 23552, rev = D592, serial# = 2968231 tveeprom: tuner = Philips FQ1236A MK4 (idx = 92, type = 57) tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000) tveeprom: audio_processor = MSP3410D (type = 5) ivtv: i2c attach [client=tveeprom[50],ok] tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #2 ivtv: i2c attach [client=(tuner unset),ok] saa7115: starting probe for adapter ivtv i2c driver #2 (0x10005) cx25840: starting probe for adapter ivtv i2c driver #2 (0x10005) cx25840: detecting client on address 0x88 cx25840: writing init values cx25840: FW image '/lib/modules/HcwMakoA.ROM' of size 14264 loaded. cx25840: FW image md5 digest: 3a4803384f749d644ee1f1ca9dcb12fa cx25840: FW image sha1 digest: 2b5e6292b7391c980b93d156cf6b34178ce770f6 cx25840: Status: cx258433 (DEVICE_ID) ivtv: i2c attach [client=cx25840[50],ok] ivtv: i2c attach [client=wm8775[50],ok] ivtv: Tuner Type 57, Tuner formats 0x00001000, Radio: yes, Model 0x00915652, Revision 0x00000000 ivtv: NTSC tuner detected ivtv: Radio detected ivtv: Encoder revision: 0x02040011 ivtv: Configuring WinTV PVR 150 card with 5 streams ivtv: Registered v4l2 device, streamtype 0 minor 3 ivtv: Create DMA stream 0 using 128 16384 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 1 minor 34 ivtv: Create DMA stream 1 using 80 25920 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 2 minor 227 ivtv: Create DMA stream 2 using 41 50540 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 3 minor 26 ivtv: Create DMA stream 3 using 455 4608 byte buffers 0 kbytes total ivtv: Registered v4l2 device, streamtype 4 minor 67 ivtv: Create stream 4 ivtv: Setting Tuner 57 tuner: type set to 57 (Philips FQ1236A MK4) by ivtv i2c driver #2 cx25840: decoder set norm NTSC ivtv: ivtv_enc_vbi_thread: pid = 6320, itv = 0xf246c840 ivtv: ivtv_enc_thread: pid = 6319, itv = 0xf246c840 cx25840: decoder set input (6) cx25840: Tuner Input cx25840: set_audio_input 0 ivtv: Switching standard to NTSC. cx25840: decoder set norm NTSC ivtv: Initialized WinTV PVR 150, card #2 ivtv: ==================== END INIT IVTV ==================== Note: If you see any like the following it means the driver has not loaded properly {or the card did not initialize} ... YOU DO NOT WANT TO SEE THIS ... snippet from dmesg ivtv: i2c client addr: 0x44 not found for command 1074029571! ivtv: i2c client addr: 0x44 not found for command 1074029572! ivtv: i2c client addr: 0x44 not found for command 1074029678! You may need to reboot or reload the ivtv driver i.e. reload the driver rmmod ivtv modprobe ivtv dmesg | more Note: The first time this runs without error you MUST SHUTDOWN only once... Something about the firmware that is loaded onto the pvr-500. Again this is only required one time {unless you update the firmware once it is loaded you will need to shutdown again} Do a dmesg again and verify there are no errors. If you unload and reload the driver you will need to find the latest output to dmesg so skip the other entries look for the word START with a /START when you run dmesg | more If you make any changes to the driver file and you either reboot or unload it. You must do a dmesg and verify there are no errors. There is one more important config file for ivtv. It is located in /etc/init.d/set_ivtv_params Here is my set_ivtv_params content ------------------Start------------------------- #!/bin/bash #PVR-500 tuner 1 - NTSC, 1:1 scaling, tuner input (6 on 500), good DNR #Turn off VBI in MPEG2 embedding #/usr/local/bin/ivtvctl -d /dev/video1 -u 0x3000 -f width=720,height=480 -p 6 #/usr/local/bin/ivtvctl -d /dev/video1 -c dnr_mode=0,dnr_temporal=4,dnr_spatial=4 #/usr/local/bin/ivtvctl -d /dev/video1 -x 0 #PVR-500 tuner 2 - NTSC, 1:1 scaling, tuner input (6 on 500), good DNR #Turn off VBI in MPEG2 embedding /usr/local/bin/ivtvctl -d /dev/video2 -u 0x3000 -f width=720,height=480 -p 6 /usr/local/bin/ivtvctl -d /dev/video2 -c dnr_mode=0,dnr_temporal=4,dnr_spatial=4 /usr/local/bin/ivtvctl -d /dev/video2 -x 0 #PVR-500 tuner 3 - NTSC, 1:1 scaling, tuner input (6 on 500), good DNR #Turn off VBI in MPEG2 embedding /usr/local/bin/ivtvctl -d /dev/video3 -u 0x3000 -f width=720,height=480 -p 6 /usr/local/bin/ivtvctl -d /dev/video3 -c dnr_mode=0,dnr_temporal=4,dnr_spatial=4 /usr/local/bin/ivtvctl -d /dev/video3 -x 0 #PVR-500 tuner 4 - NTSC, 1:1 scaling, tuner input (6 on 500), good DNR #Turn off VBI in MPEG2 embedding #/usr/local/bin/ivtvctl -d /dev/video4 -u 0x3000 -f width=720,height=480 -p 6 #/usr/local/bin/ivtvctl -d /dev/video4 -c dnr_mode=0,dnr_temporal=4,dnr_spatial=4 #/usr/local/bin/ivtvctl -d /dev/video4 -x 0 -------------------END-------------------------------- Note: This must be executable... chmod 774 /etc/init.d/set_ivtv_params Well I hope this is helpfully... |
Author: | Nnyan [ Mon Jun 20, 2005 4:18 pm ] |
Post subject: | |
Great! Nice details, going to give KnoppMyth/PVR500 another try with this guide and the new version. I had to finally give up almost a month ago and went with GBPVR but I really do not want to be running windoze so that was just a temp solution (even if it did work very well). |
Author: | drworm21 [ Fri Aug 05, 2005 11:14 pm ] |
Post subject: | |
what would i need to put in my set_ivtv_params if i have 1 pvr-250 and 1 pvr-500? |
Author: | linuxgeek [ Sat Aug 06, 2005 1:24 am ] |
Post subject: | |
drworm21 wrote: what would i need to put in my set_ivtv_params if i have 1 pvr-250 and 1 pvr-500?
You would NOT need to do anything if you are using R5A16. I did not change mine at all... The current one works just fine. I have the same setup with the addition of a pcHDTV{3000} and firewire. |
Author: | drworm21 [ Sat Aug 06, 2005 2:12 pm ] |
Post subject: | |
I'm still having some trouble installing my new pvr-500 on R5A16 my ivtv version is 0.3.6w i'm seeing these messages in dmesg: ivtv: i2c client addr: 0x44 not found for command 1074029571! ivtv: i2c client addr: 0x44 not found for command 1074029572! ivtv: i2c client addr: 0x44 not found for command 1074029678! i've tried to reload the driver by doing rmmod ivtv and then modprobe ivtv but it says ERROR: Module ivtv is in use Any suggestions? I probably have something wrong in my ivtv file or my set_ivtv_params file but i don't know what. here is my /etc/mythtv/modules/ivtv file: alias char-major-61 lirc_i2c alias char-major-81 videodev alias char-major-81-1 ivtv #= /dev/video0 alias char-major-81-2 ivtv #= /dev/video1 alias char-major-81-3 ivtv #= /dev/video2 #alias char-major-81-4 ivtv #alias tveeprom ivtv-tveeprom #alias tuner ivtv-tuner #options cx25840 no_black_magic=1 audiofmt=1 #options ivtv ivtv_std=0 tuner=57,57,57,57 tda9887=0,0,0,0 ivtv_debug=1 options ivtv ivtv_std=0 tuner=2,57,57 tda9887=-1,0,0 ivtv_debug=1 options cx25840 i2c_enable=-1,1,1 #options cx25840 i2c_enable=1,1,1,1 options saa7127 i2c_enable=1,-1,-1 #options saa7127 i2c_enable=-1,-1,-1,-1 options msp3400 once=1 simple=1 install ivtv /sbin/modprobe tuner; /sbin/modprobe msp2300; /sbin/modprobe saaa71 15; /sbin/modprobe --ignore-install ivtv remove ivtv /sbin/modprobe -r --ignore-remove ivtv && /sbin/modprobe -r saa7115 && /sbin/modprobe -r msp3400 && /sbin/modprobe -r tuner and here is my /etc/init.d/set_ivtv_params file: #!/bin/bash #PVR-500 tuner 1 - NTSC, 1:1 scaling, tuner input (6 on 500), good DNR Turn off VBI in MPEG2 embedding /usr/local/bin/ivtvctl -d /dev/video1 -u 0x3000 -f width=720,height=480 -p 6 /usr/local/bin/ivtvctl -d /dev/video1 -c dnr_mode=0,dnr_temporal=4,dnr_spatial=4 /usr/local/bin/ivtvctl -d /dev/video1 -x 0 #PVR-500 tuner 2 - NTSC, 1:1 scaling, tuner input (6 on 500), good DNR #Turn off VBI in MPEG2 embedding /usr/local/bin/ivtvctl -d /dev/video2 -u 0x3000 -f width=720,height=480 -p 6 /usr/local/bin/ivtvctl -d /dev/video2 -c dnr_mode=0,dnr_temporal=4,dnr_spatial=4 /usr/local/bin/ivtvctl -d /dev/video2 -x 0 |
Author: | drworm21 [ Sat Aug 06, 2005 4:57 pm ] |
Post subject: | |
i've made some progress! I edited /etc/mythtv/modules/ivtv, removed everything and added this: alias char-major-61 lirc_i2c alias char-major-81 videodev alias char-major-81-0 ivtv alias char-major-81-0 ivtv options ivtv mpg_buffers=8 tda9887=0,0 ivtv_debug=1,1 I have picture and sound on all 3 tuners now, but the video quality is horrible on the pvr-500. I guess i need to tweak some settings somewhere. |
Author: | drworm21 [ Sat Aug 06, 2005 5:24 pm ] |
Post subject: | |
I fixed the quality on the pvr-500! Just had to shutdown the pc and turn it back on after a few minutes. |
Author: | RichardBronosky [ Fri Aug 19, 2005 10:48 pm ] |
Post subject: | Re: My PVR-500 IVTV Setup...{and pvr250, pcHDTV} |
This would be the perfect How-To if you change: linuxgeek wrote: wget http://www.ivtv.tv/releases/ivtv-0.3/OL ... 0.3.5f.tgz tar -xvzf ivtv-0.3.5f.tgz cd ivtv-0.3.5f/driver make make install cd ../utils make make install reboot You need to add in the step to get and install the latest Firmware. If the reader is following these instructions on virgin hardware, your instructions won't quite work. My suggestion would be to change the quoted part above to: Quote: wget http://www.ivtv.tv/releases/ivtv-0.3/OL ... 0.3.5f.tgz
tar -xvzf ivtv-0.3.5f.tgz cd ivtv-0.3.5f/driver make make install cd ../utils make make install cd ../.. wget ftp://ftp.shspvr.com/download/wintv-pvr ... .22037.exe ./ivtv-0.3.5f/utils/ivtvfwextract.pl pvr48wdm_1.8.22037.exe reboot I didn't come up with this myself though. I'm a total newbie. I noticed the discrepancy between these instructions and http://www.bitbenderforums.com/~ralpha6 ... mythtv.htm Thank you to everyone here who helped me with this. I got live TV!!!! Just when I was about to go crazy. I love this community. |
Author: | lynchaj [ Fri Aug 26, 2005 6:59 am ] |
Post subject: | Re: My PVR-500 IVTV Setup...{and pvr250, pcHDTV} |
linuxgeek wrote: This is what I did to get the PVR-500 working under R5A15.1
Note: This document will assume the following: {sorry for the length} 1. You have a pvr-500, pcHDTV {hd3000}, and a PVR-250 2. You are not a Linux/Unix expert. The HDTV card worked out the box.. I made no changes to it whatsoever. Linuxgeek, Would you mind posting your entire dmesg output and the output from "modprobe -c" (or at least the parts relevant to bttv and ivtv)? I have a KnoppMyth PVR with 2 PVR-250s (mixed), and a ATI TV Wonder VE (bt878 using bttv) and am going to add an HD-3000 soon. I am curious as to how your system sorted out all the kernel and module configurations, etc. Thanks! Andrew Lynch |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |