View previous topic :: View next topic |
Author |
Message |
Lumpmoose n00b
Joined: 31 Jul 2003 Posts: 8 Location: Minneapolis, MN
|
Posted: Thu Jul 31, 2003 2:32 am Post subject: WinTV PVR 250 + ivtv problem |
|
|
Alright, I've been trying to install ivtv for a few weeks now. After many Google and Gentoo forum searches, I combined every hint I've found, but to no avail. Based on a previous thread, I've switched from gentoo-sources to vanilla-sources. The http://bytesex.org/patches/2.4.21/patch-2.4.21-rc4-kraxel.gz kernel patch then worked without error (compared to all sorts of "reverse" errors before with gentoo-sources) using "gzip -dc patch-2.4.21-rc4-kraxel.gz | patch -p1" in /usr/src/linux.
So, the kernel patched fine, and I modularized all the important stuff.
From /usr/src/linux/.config:
Code: | #
# I2C support
#
CONFIG_I2C=m
CONFIG_I2C_ALGOBIT=m
# CONFIG_I2C_PHILIPSPAR is not set
# CONFIG_I2C_ELV is not set
# CONFIG_I2C_VELLEMAN is not set
# CONFIG_SCx200_I2C is not set
# CONFIG_SCx200_ACB is not set
# CONFIG_I2C_ALGOPCF is not set
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_PROC=m
[snip]
#
# Multimedia devices
#
CONFIG_VIDEO_DEV=m
#
# Video For Linux
#
CONFIG_VIDEO_PROC_FS=y
# CONFIG_I2C_PARPORT is not set
CONFIG_VIDEO_BT848=m
# CONFIG_VIDEO_PMS is not set
# CONFIG_VIDEO_BWQCAM is not set
# CONFIG_VIDEO_CQCAM is not set
# CONFIG_VIDEO_CPIA is not set
# CONFIG_VIDEO_SAA5249 is not set
# CONFIG_TUNER_3036 is not set
# CONFIG_VIDEO_STRADIS is not set
# CONFIG_VIDEO_ZORAN is not set
# CONFIG_VIDEO_ZORAN_BUZ is not set
# CONFIG_VIDEO_ZORAN_DC10 is not set
# CONFIG_VIDEO_ZORAN_LML33 is not set
# CONFIG_VIDEO_ZR36120 is not set
# CONFIG_VIDEO_MEYE is not set |
The kernel compiled and booted without error. After reboot, I put ivtv in /root, copied videodev2.h from utils to driver, and ran 'make' and 'make install' without error (except for the standard(?) "#warning Using temporary hack for missing I2C
driver-ID for saa7114" type messages).
I made my /etc/modules.d/ivtv file and edited my devfsd.conf using advice from a useful blog and another Gentoo thread.
From /etc/module.conf:
Code: | ### modules-update: start processing /etc/modules.d/ivtv
# WinTV PVR 250
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias /dev/v4l ivtv
options ivtv debug=1 mpg_buffers=32
options tuner type=2
options msp3400 once=1 simple=1
add below ivtv msp3400 saa7115 tuner
### modules-update: end processing /etc/modules.d/ivtv |
From /etc/devfsd.conf:
Code: | # Video4Linux devices
REGISTER v4l/.* PERMISSIONS root.video 660
REGISTER ^v4l/video0$ CFUNCTION GLOBAL mksymlink v4l/video0 video |
After one more reboot: nothing. No modules were loaded according to lsmod:
Code: | bash-2.05b# lsmod
Module Size Used by Tainted: P
snd-pcm-oss 39076 0 (autoclean)
snd-mixer-oss 13784 0 (autoclean) [snd-pcm-oss]
snd-intel8x0 19300 0
snd-pcm 61312 0 [snd-pcm-oss snd-intel8x0]
snd-timer 14856 0 [snd-pcm]
snd-ac97-codec 37440 0 [snd-intel8x0]
snd-mpu401-uart 3440 0 [snd-intel8x0]
snd-rawmidi 14112 0 [snd-mpu401-uart]
snd-seq-device 4368 0 [snd-rawmidi]
snd 30852 0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3876 3 [snd]
snd-page-alloc 5084 0 [snd-intel8x0 snd-pcm]
nvidia 1542016 10 |
though ALSA and NVidia work fine.
When I load the modules manually, ivtv returns no such device:
Code: | bash-2.05b# modprobe i2c-core
bash-2.05b# modprobe i2c-algo-bit
bash-2.05b# modprobe tuner type=2
bash-2.05b# modprobe msp3400
bash-2.05b# modprobe videodev
bash-2.05b# insmod saa7115
Using /lib/modules/2.4.21/kernel/drivers/media/video/saa7115.o
bash-2.05b# insmod ivtv
Using /lib/modules/2.4.21/kernel/drivers/media/video/ivtv.o
/lib/modules/2.4.21/kernel/drivers/media/video/ivtv.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
bash-2.05b# lsmod
Module Size Used by Tainted: P
saa7115 6236 0 (unused)
videodev 6272 0
msp3400 17068 1
tuner 10816 1
i2c-algo-bit 7560 1
i2c-core 13508 0 [saa7115 msp3400 tuner i2c-algo-bit]
snd-pcm-oss 39076 0 (autoclean)
snd-mixer-oss 13784 0 (autoclean) [snd-pcm-oss]
snd-intel8x0 19300 0
snd-pcm 61312 0 [snd-pcm-oss snd-intel8x0]
snd-timer 14856 0 [snd-pcm]
snd-ac97-codec 37440 0 [snd-intel8x0]
snd-mpu401-uart 3440 0 [snd-intel8x0]
snd-rawmidi 14112 0 [snd-mpu401-uart]
snd-seq-device 4368 0 [snd-rawmidi]
snd 30852 0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3876 3 [snd]
snd-page-alloc 5084 0 [snd-intel8x0 snd-pcm]
nvidia 1542016 10 |
The troubling part through of all this was that not once did /dev/video0 or /dev/v4l ever appear. I know Linux sees the card:
Code: | bash-2.05b# lspci -vv
[snip]
00:0b.0 Multimedia video controller: Internext Compression Inc: Unknown device 0016 (rev 01)
Subsystem: Hauppauge computer works Inc.: Unknown device 4009
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (32000ns min, 2000ns max), cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at c8000000 (32-bit, prefetchable) [size=64M]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME- |
I don't know why there are two "Unknow device"s. I've shuffled the card around and flipped "PCI BUS Master" on and off in the BIOS, but /dev/video0 never appears. However, when I put the card directly below my AGP MX400, the computer hangs after system and PCI IDE POSTs and right before the system summary screen that appears before GRUB.
Well, I guess that's it. I apologize for the absurdly long post, but I wanted everyone to be sure they understood my exact situation.
Specs: Hauppauge WinTV-PVR-250 model 980 with CX23416-12 chip on card (purchased direct 2 weeks ago), ECS K7S5A Pro (SiS 735 Chipset), kernel: vanilla-sources, linux-2.4.21. Even if you don't have a direct answer, just knowing when /dev/video0 is supposed to appear (out of the box, after iivtv is loaded, etc.) would help me in future troubleshooting.
Thanks for any help!! If you need any more data, logs, info, or whatever, please ask. As you can tell, I'm very C&P happy. |
|
Back to top |
|
|
klimoskb n00b
Joined: 18 Apr 2003 Posts: 14
|
Posted: Thu Jul 31, 2003 6:04 am Post subject: |
|
|
hmm... I'm not exactly sure why you would need the vanilla-source to run ivtv. I have it running using the gentoo-sources... The following is what I did to get it to work.(I'm also using a wintv pvr-250 if your wondering)
For the kernal you'll need the following...
Code: |
Character devices
I2C support
<M> I2C bit-banging interfaces
<M> I2C device interface
Multimedia devices
<M> Video For Linux
Video For linux
<M> BT848 Video For Linux
|
Extract firmware(Best to download the latest from http://www.hauppage.com/)
Code: |
cd utils
./ivtvfwextract.pl /path/to/firmware/pvr250_16_21062.exe
|
check your /etc/devfsd.conf
Code: |
Check for the following
REGISTER video0 PERMISSIONS root.video 660
|
(remeber to add your user ID to the video group)
Compile the driver
Code: |
cd driver
make
make install
mknod /dev/video0 c 81 0 (may not have to do this I had to, this maybe the step your missing)
|
load the drivers in the following order
Code: |
/sbin/modprobe i2c-core
/sbin/modprobe i2c-algo-bit
/sbin/modprobe tuner type=2
/sbin/modprobe videodev
/sbin/insmod saa7115
/sbin/insmod msp3400
/sbin/insmod ivtv debug=1
|
make the test_ioctl utility
Code: |
cd utils
make
(no need to do make install)
|
set video resolution and standard
Code: |
cd utils
Set PAL video standard
[root@host]# ./test_ioctl -u 0xff
Set NTSC video standard
[root@host]# ./test_ioctl -u 0x3000
For tuner input
[root@host]# ./test_ioctl -p 4
For composite video input
[root@host]# ./test_ioctl -p 5
For full PAL resolution
[root@host]# ./test_ioctl -f width=720,height=576
For full NTSC resolution
[root@host]# ./test_ioctl -f width=720,height=480
|
test with mplayer or cat
Code: |
cd utils
ptune.pl 2 (Or whatever channel you prefer)
mplayer /dev/video0
cat /dev/video0 > file.mpg
|
If you your test comes back with a blank/black screen run the command ./test_ioctl -p #. In the place of # try the numbers 0-9 one will eventually work. |
|
Back to top |
|
|
Lumpmoose n00b
Joined: 31 Jul 2003 Posts: 8 Location: Minneapolis, MN
|
Posted: Fri Aug 01, 2003 4:49 am Post subject: |
|
|
I was missing the firmware step (wasn't in the IVTV FAQ, along with a few other things). Thank you very much for the help. The picture looks really bad, but at least it's a start. Thanks! |
|
Back to top |
|
|
EthanMel n00b
Joined: 15 Sep 2003 Posts: 4
|
Posted: Wed Sep 17, 2003 1:07 pm Post subject: |
|
|
Great walkthrough - this got me up and running too!!!
Why not submit it to the Myth TV install instructions / IvTV project page. That step with the firmware is a doozy...
I am (will be) running MythTV on a Pundit w/Gentoo and PVR250. Just waiting for some SCART adapter leads to turn up so I can test. |
|
Back to top |
|
|
Rroet Apprentice
Joined: 27 May 2002 Posts: 176 Location: The Hague, The Netherlands
|
Posted: Sun Nov 23, 2003 10:38 pm Post subject: |
|
|
Nice walkthrough.. I'll certainly use it.
First I have to deal with kernel boot problems.. I'm running kernel gentoo-2.4.22 right now, but it has i2c version 2.8.0 build into it, which will not work with ivtv and lirc at this point in time. _________________ Workstation: Shuttle SN85G4v2, AMD64 3200+, 512MB, 250GB sata, Radeon 9800 Pro.
Server 1: here
Server 2: here |
|
Back to top |
|
|
lbrtuk l33t
Joined: 08 May 2003 Posts: 910
|
Posted: Mon Nov 24, 2003 1:27 am Post subject: |
|
|
More immediately, you can post it to the 'Documentation Tips and Tricks' section of this forum. |
|
Back to top |
|
|
gcasillo l33t
Joined: 23 Sep 2003 Posts: 739 Location: Cincinnati, Ohio, USA
|
Posted: Tue Dec 09, 2003 9:58 pm Post subject: |
|
|
Thank you, klimoskb! I am up and running with the ivtv drivers and 2.4.22-gentoo-r1. A word of warning to folks looking to use the ptune.pl Perl script, if you download the drivers from CVS, you will need to checkout the "video-ivtv" and "video-frequencies" modules in addition to the main "ivtv" module.
You can find the Video::Frequencies Perl module on CPAN under the Video::Capture::V4l bundle, but Video::ivtv is not there. Looks like this bundle has been left behind for some time.
Since I'm going to be building several machines at work for a video capture project using some Hauppauge PVR-250 cards, I'm going to write some ebuilds for ivtv, Video::Frequencies, and Video::ivtv. I'll also look into getting Video::ivtv included in the CPAN bundle, Video::Capture::V4l, by contacting its author. Maybe I can get that bundle updated for V4l2 and more up-to-date features available now.
I will post the ebuilds here for review sometime this week. |
|
Back to top |
|
|
marrs n00b
Joined: 08 Apr 2003 Posts: 10
|
Posted: Sun Dec 14, 2003 6:18 pm Post subject: |
|
|
After reading a lot of pages on the subject on the ivtv, mythtv, here and other sites I finally got the PVR-350 working using ivtv. However, MythTV is still not working.
Some things that might help people (please comment or correct me if I've misinterpreted my own findings):
To get ptune.pl working, I needed the config-inifiles stuff for perl (apart from checking out and installing the modules mentioned above). I downloaded it from:
http://search.cpan.org/~wadg/Config-IniFiles-2.37/
Then unpacked it in a temporary directory and did a:
perl Makefile.PL
make
make test
make install
I can now watch the PVR-350 tuner with mplayer. After having loaded the correct modules like this:
Code: | modprobe i2c-core
modprobe i2c-algo-bit
modprobe tuner type=20
modprobe videodev
insmod saa7115
insmod msp3400
insmod ivtv |
And configuring ivtv like this:
Code: | ./test_ioctl -u 0xff
./test_ioctl -p 4
./test_ioctl -f width=720,height=576 |
I can run mplayer in one shell:
Code: | mplayer /dev/video0 |
And select a channel in another shell:
Code: | ./ptune.pl -f pal-europe-west -c 58
./test_ioctl -v input=2,output=1 |
This works for me (I'm in Arnhem, The Netherlands) and I seem to be able to select most TV channels from my cable provider (http://www.upc.nl/frequencies_gm.php?GM=0202) like this. Each time I select a different channel, I need to use the second line again to enable audio (that's what the second line does ).
However, emerging and trying to use mythtv fails for me. I configured and started everything but I get no channel guide (after mythfilldatabase --manual and filling out the info as well as I can) and I cannot switch channels.
Can anybody tell me how to proceed, which alternatives I can try or how I can further debug the problems? I also tried "tvtime" but it doesn't work and support the PVR-350 (using ivtv) as far as I understand. |
|
Back to top |
|
|
gcasillo l33t
Joined: 23 Sep 2003 Posts: 739 Location: Cincinnati, Ohio, USA
|
Posted: Tue Dec 16, 2003 6:04 am Post subject: |
|
|
Well, my first attempt at installing a RAID-0 array scuttled my plans last weekend to put together some ebuilds for ivtv and lirc and write a comprehensive howto. I still plan on doing these things, but I'm waylaid with a list of problems including alsa compile problems and just general work related arglebargle. I'm going to have to put something together, because like I said before, I have to install these drivers for four new machines we built. Tomorrow might be the day I get started, so maybe Wednesday I'll have something to share here.
Ah, vaporware... |
|
Back to top |
|
|
fmalabre Guru
Joined: 19 Jun 2002 Posts: 376 Location: Chicago
|
Posted: Fri Feb 27, 2004 2:13 am Post subject: |
|
|
marrs wrote: | To get ptune.pl working, I needed the config-inifiles stuff for perl (apart from checking out and installing the modules mentioned above). I downloaded it from: |
Just do an "emerge Config-IniFiles"
I'm struggling with the installation of mythtv.
Thanks for the post, I'm getting closer...
Anybody was successful using lirc_i2c with the gentoo kernel 2.4.22?
I don't know where to start for that problem... |
|
Back to top |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Fri Feb 27, 2004 10:32 pm Post subject: Which kernel |
|
|
klimoskb wrote: | hmm... I'm not exactly sure why you would need the vanilla-source to run ivtv. I have it running using the gentoo-sources... The following is what I did to get it to work.(I'm also using a wintv pvr-250 if your wondering)
<snip>. |
Which kernel is this? 2.4.22? I thought you couldn't get this all working unless you had some patched version of 2.6...which I still cannot figure out how to get going.....
cayenne _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak......... |
|
Back to top |
|
|
duhmmm n00b
Joined: 13 Jan 2004 Posts: 4
|
Posted: Wed Jul 21, 2004 1:58 am Post subject: Just started working on ivtv install and have the |
|
|
grey screen of death!
I have primarily tried installing ivtv with a PVR-250 and have a few problems. I've compiled most modules into a 2.6.3 kernal and tried installing the masked version of IVTV from the portage system. It seems like the I2C may not be working properly. I can use ptune and capture video... (static or black screen). When I try to read the 7115 registers.. I just get "failed". I'm not sure if the channel is changing, but the input port seems to be as it goes to static when I use port 4... otherwise it is just black that is captured.
/dev/video0 is present and seems to provide data. I have not tried puting a composit intput in ... yet.
any help would be appreciated.
jim _________________ doh! |
|
Back to top |
|
|
bustersnyvel n00b
Joined: 14 Sep 2003 Posts: 36 Location: Amsterdam, The Netherlands
|
Posted: Wed Nov 03, 2004 10:12 am Post subject: |
|
|
I'm running ivtv just fine on gentoo-dev-sources 2.6.9. I use version ivtv-0.1.10-pre2-ck105x from http://67.18.1.101/~ckennedy/ivtv/.
Now that I take a look at it - time to try the 0.2 version! _________________ The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? |
|
Back to top |
|
|
cayenne l33t
Joined: 17 Oct 2002 Posts: 945 Location: New Orleans
|
Posted: Wed Nov 03, 2004 6:32 pm Post subject: Just emerge it... |
|
|
Haven't seen this for awhile. I'm running easily on gentoo-dev-sources (I think 2.6x-r8....I'm not at home).
I just did emerge ivtv...edited the proper .conf files...and it works just fine.
C _________________ Light travels faster than sound. This is why some people appear bright until you hear them speak......... |
|
Back to top |
|
|
uzik Apprentice
Joined: 17 Apr 2003 Posts: 257
|
Posted: Wed Nov 03, 2004 8:20 pm Post subject: what to install and when for mythtv |
|
|
Good afternoon all:
I've just gotten through the setup for the basic gentoo system
and can now boot using my new kernel (started from stage1).
Woohoo!
I'm aiming for a mythtv system.
Which window manager do people recommend?
I won't be using this for anything except this purpose.
I have a low powered box (AMD Duron 600mhz+384 meg ram)
due to lack of funds. I'm saving for a PVR-250 for the hardware encoder
but meanwhile have a bt878 tuner card to try out.
I think I probably need the lightest GUI/WM I can find? Maybe IceWM?
Do I need to have this be only a backend box?
If I run 'emerge mythtv' is portage going to pick mysql, python, and a
window manager for me? If not, does anyone have a list of what they
emerged to get mythtv up? I'd eventually like to set it up to convert
the video recordings to a standard format and perhaps watch the
recordings from another networked box.
Is there any chance I can run this beast with framebuffer instead of X?
Framebuffer is less power hungry than X I thought.
Boa seems like a better choice for a web server than apache due to
it's much smaller footprint.
If you intend to be a backend only box the list is going to be much
smaller.
Thanks for any advice! |
|
Back to top |
|
|
QuaffAPint Tux's lil' helper
Joined: 29 Jan 2003 Posts: 82 Location: Downingtown, PA
|
|
Back to top |
|
|
uzik Apprentice
Joined: 17 Apr 2003 Posts: 257
|
Posted: Wed Nov 03, 2004 9:55 pm Post subject: |
|
|
Thanks! |
|
Back to top |
|
|
|