Hello IVTV'ers:

   I was having problems installing ivtv on my FC2 box with the
infamous "Type 50" PVR250", but I now have the tuner video capture and
mythtv working (somewhat).  Some mythTV folks on another board
suggested that I share my installation experiences, especially since I
still have some issues. If you don't want to read the long version, I
was having trouble with "depmod -a" segmentation faults when
installing kernel-module-ivtv (FC2, 2.6.9) when using the single
processor kernel, but when I use the SMP kernel, the kernel module and
ivtv install fine, even though I only have a single Celeron D CPU.
Video and sound capture work fine, too.

Read on for more...
  - emory
____________________________
Relevant Hardware:

Asus Pundit-R (onboard sound, ATI9100 IGP)
Celeron D 330 2.66 GHz
512 MB PC3200 Corsair RAM ( 1 stick)
Hauppauge PVR250 (Type 50, TCL 2002N, see dmesg entry at end)

Software:

FC2, a la Jarod "The Shizzle" Wilson and atrpms
Kernel 2.6.9-1.6_FC2smp 
ivtv-0.1.10-48.4_pre2_ck100zz.rhfc2.at
____________________________

So, we enter my saga with me on my 4th try of setting up a MythTV box.
 On previous attempts, everything has gone swimmingly with the
Jarod-hand-holding until it was time to install IVTV (Step 10). After
installing  kernel-module-ivtv and kernel-module-video4linux, I would
get a segmentation fault when I (or the rpm script) would do "depmod
-a."

This time, I did the IVTV installation first thing after installing
the new kernel 2.6.9 (non-SMP).  Same thing happens:
============ output begin ===============
#  apt-get install kernel-module-ivtv-$MYKERNEL
...
The following NEW packages will be installed:
  kernel-module-ivtv-2.6.9-1.6_FC2 kernel-module-video4linux-2.6.9-1.6_FC2
...
   1:kernel-module-video4lin########################################### [ 50%]
/var/tmp/rpm-tmp.1189: line 3:  4310 Segmentation fault      depmod
-ae -F /boot/System.map-2.6.9-1.6_FC2 2.6.9-1.6_FC2 >/dev/null 2>&1
   2:kernel-module-ivtv-2.6.########################################### [100%]
/var/tmp/rpm-tmp.22280: line 3:  4313 Segmentation fault      depmod
-ae -F /boot/System.map-2.6.9-1.6_FC2 2.6.9-1.6_FC2 >/dev/null 2>&1
============ output end ===============

remember, this is on a clean system with no other extra modules or
packages installed! Anyway, I apt-get removed these kernel modules,
and "depmod -ae" was able to run without segmentation fault.

  Anway here's the IMPORTANT part:  by accident, I decided to try
installing the ivtv package (without the modules).  Of course, apt
wanted to install everything ivtv depended on, but for some reason
ATRPMs lists the SMP versions as the latest versions of everything:

============ output begin ===============
# apt-get install ivtv
...
The following NEW packages will be installed:
  ivtv kernel-module-ivtv-2.6.9-1.6_FC2smp
  kernel-module-video4linux-2.6.9-1.6_FC2smp kernel-smp#2.6.9-1.6_FC2
Committing changes...
Preparing...                ##########[100%]
   1:kernel-smp             ######### [ 25%]
   2:kernel-module-video4lin$######## [ 50%]
   3:kernel-module-ivtv-2.6.######### [ 75%]
   4:ivtv                   ######### [100%]
Done.
============ output end ===============

--> so you can see that there were no errors on the install.  I
couldn't believe this actually worked, but when I rebooted into
2.6.9smp, lo and behold, the ivtv kernel modules were loaded.

============ output begin ===============
# depmod -a
--> no errors
# modprobe ivtv
--> no errors
# lsmod | grep ivtv
ivtv                  774628  0
i2c_algo_bit           12489  1 ivtv
videodev               13377  1 ivtv
============ output end ===============

I went ahead and installed the fglrx driver module for my ATI 9100IGP
and the myth-tv suite from Jarod's site.  then I tried to see if the
video capture worked.

============ output begin ===============
# cat /dev/video0 > /tmp/test_capture.mpg
cat: /dev/video0: Cannot allocate memory
# echo 16384 > /proc/sys/vm/min_free_kbytes
# cat /dev/video0 > /tmp/test_capture.mpg
--> no errors.  
#  mplayer /tmp/test_capture.mpg
============ output end ===============

-->mplayer output reasonably good video... Depending on your
soundcard, you may have to set the -vo flag to X11 or something else.

Now, the sound is still a little flaky -- sometimes it doesn't even come on.
In MythTV, or using the ptune UI + "mplayer /dev/video0", when I first
start watching TV, there is no sound, but when I change the channel,
the sound comes on.  But just because you get no sound doesn't mean
that your card is not working.  Conversely, on other install attempts,
mplayer would play sound but no video, but MythTV worked OK.

The picture tends to drop frames about once a minute but that may be a
bug in the alsa drivers with my onboard soundcard, i'm told. MythTV
freezes when I try to record something, but I don't know if that's an
IVTV problem.

Anyway, in summary, by using the 2.6.9smp kernel, even though I have
only a single CPU, I was able to successfully install ivtv and get a
decent video capture off of the tuner.  I have no idea why the SMP
kernel makes any difference at all, but maybe you developers can
figure that one out.  The Celeron D is related to the Prescott P4,
whose hyperthreading capabilities can take advantage of SMP, but the
Celeron D can't do hyperthreading. Maybe there are some important
instructions that got cut out of the non-smp kernel accidentally. I
also noticed that, when doing an "lspci -v", I get two other devices
that have the same IRQ as my PVR250. This happens with both the SMP
and non-SMP kernels, but with different IRQ #'s. So maybe just the
change in IRQ helped out.

Anyway, that's my story.  It should be obvious that I'm no expert on
this stuff, so take everything with a grain of salt. If you have any
explanations for any weird phenomena that I have seen, I would love to
hear them.

 - e  

============ output of "dmesg | grep ivtv" ===============

ivtv: no version for "struct_module" found: kernel tainted.
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.1.10 (0.1.10-48.4_pre2_ck100zz.rhfc2.at) loading
ivtv: Linux version: 2.6.9-1.6_FC2smp SMP 686 REGPARM 4KSTACKS 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
ivtv: pci: PCIBUS detected device: 0x5833 vendor: 0x1002
ivtv: i2c attach [client=tveeprom[0],ok]
ivtv: Tuner Type 50, Tuner formats 0x00001000, Radio: yes, Model
0x00891615, Revision 0x00000000
ivtv: NTSC tuner detected
ivtv: Radio detected
tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
ivtv: i2c attach [client=(tuner unset),ok]
saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)
ivtv: i2c attach [client=saa7115[0],ok]
ivtv: i2c attach [client=MSP3445G-B8,ok]
ivtv: Encoder revision: 0x02040024
ivtv: Configuring WinTV PVR 250 card with 5 streams
ivtv: Create DMA stream 0 using 128 buffers of size 32768
ivtv: Create DMA stream 1 using 128 buffers of size 32768
ivtv: Create stream 2 using 128 buffers of size 52224
ivtv: Create DMA stream 3 using 128 buffers of size 32768
ivtv: Create stream 4
ivtv: Setting Tuner 50
tuner: type set to 50 (TCL 2002N) by ivtv i2c driver #0
ivtv: Setting audio matrix to input 3, output 1
ivtv: Switching standard to NTSC.
ivtv: Initialized WinTV PVR 250, card #0
ivtv: ====================  END INIT IVTV  ====================
ivtv: i2c attach [client=Hauppauge IR,ok]
ivtv: v4l2 ioctl: set frequency 5108
ivtv: Finished with Mute
ivtv: v4l2 ioctl: set frequency 5204
ivtv: Finished with Mute
ivtv: v4l2 ioctl: set frequency 5108
ivtv: Finished with Mute
ivtv: v4l2 ioctl: set frequency 5012
ivtv: Finished with Mute
ivtv: v4l2 ioctl: set frequency 4916
ivtv: Finished with Mute
ivtv: v4l2 ioctl: set frequency 5012
ivtv: Finished with Mute
ivtv: v4l2 ioctl: set frequency 5108
ivtv: Finished with Mute
ivtv: v4l2 ioctl: set frequency 1236
ivtv: Finished with Mute


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
ivtv-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to