Jump to content

HOWTO: Mandrake 10.1 + ivtv


devries
 Share

Recommended Posts

Guest Overlord

I followed the instructions on

 

http://www.byopvr.com/Journal+index-jop-br...iew-id-112.html

 

and got the "funny things" with cat

 

it seems like you have to move the modules from /lib/modules/2.6.8.1-12mdkcustom/extra to /lib/modules/2.6.8.1-12mdk/misc to make the kernel recognize them

 

also it seems you have to load much more than just modprope ivtv but also:

 

modprobe i2c-core

modprobe i2c-algo-bit

modprobe tuner type=39 (this may vary acording to your tuner type, it worked for me)

modprobe msp3400

modprobe videodev

modprobe saa7115

modprobe ivtv

 

now how do i get all that loaded when booting and how do i get everything to work with freevo?

Edited by Overlord
Link to comment
Share on other sites

  • Replies 97
  • Created
  • Last Reply

Top Posters In This Topic

now how do i get all that loaded when booting

 

To load modules at boot time check out /etc/modules

this is my /etc/modules file on PCLos P8:

# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a `#', and everything on the line after them are ignored.

bttv

Edited by jdion81
Link to comment
Share on other sites

  • 1 month later...
Guest acketon

I have tried following the guides here, on BYOPVR, searched google, I can't find a solution for my problem:

 

I am running mandrake 10.1 downloaded from the web (free version), it is, or should be, all the standard files and versions as I have not done much in the way of changes to it.

 

kernel is: 2.6.8.1-12mdk

 

I am getting the following error part-way through the "make" command when trying to make the ivtv driver.

 

I have tried half a dozen different versions of the driver, old ones, new ones, 0.3 & 0.2 they all give me the same problem as follows:

 

Building modules, stage 2.

  MODPOST

Warning: could not find versions for .tmp_versions/ivtv.mod

 

I've tried just continuing at first with make install, but modprobe ivtv wouldn't work, so I've been scrounging the net looking for previous posts, I see other people had the same problem such as Overlord did in this thread, but I don't see how he fixed it.

 

If anyone can help, i"m trying to get it setup for mythtv

 

specs: amd 2000+, dual boot with XP & Mandrake 10.1, using a PVR-250 which works perfect under XP with SageTV

 

 

Thanks in advance, and while i'm not quite a noob, I haven't messed with linux since mandrake ver 5 or 6, so I don't really remember much, it's starting to come back, but please explain anything s-l-o-w-l-y

Link to comment
Share on other sites

  • 2 weeks later...
Guest starcastic

Hi. My problem is much simpler than any of the other being discussed here. When I go into the /driver directory and type make, I get:

 

[root@dhcp071040 driver]# make

make -C /lib/modules/2.6.8.1-12mdk/build SUBDIRS=/home/mythtv/ivtv-0.2.0-rc3g/driver modules

make: *** /lib/modules/2.6.8.1-12mdk/build: No such file or directory. Stop.

make: *** [all] Error 2

 

Any ideas about that?

Link to comment
Share on other sites

Guest starcastic

[root@dhcp071016 driver]# urpmi kernel

Everything already installed

[root@dhcp071016 driver]# urpmi kernel-source

Everything already installed

Link to comment
Share on other sites

Do not install a new kernel, just the kernel source. Make sure the kernel source and kernel match (are exactly the same). If not remove and reinstall the kernel source. If that doesn't work create the link by hand. Log in as root and type: ln -s /usr/src/linux / /lib/modules/2.6.8.1-12mdk/build.

 

Good luck.

Link to comment
Share on other sites

Guest starcastic

Ok, so I did urpme kernel-source to remove the old one, then did urpmi kernel-source to get the new one. However, I get:

 

 

.../official/10.1/i586/media/main/kernel-source-2.4.27-0.pre2.1mdk.i586.rpm

 

And:

[root@dhcp071016 mythtv]# uname -r

2.6.8.1-12mdk

 

How can I reconcile these two things? I'm having a really hard time finding the exact source for my kernel version. Should I just update both the kernel and source to the newest versions? If so, how would I go about doing that?

Link to comment
Share on other sites

Hi, folks,

 

So far this thread has been very helpful. However, I have yet to get my tuner working. I just got the tuner card this week, but it appears to have one of the older tuners. The tuner is ink-stamped "TAPC" on the side (there are other version numbers that I didn't write down yet).

It is a WinTV PVR-250 with what appears to be a type 39 tuner (the module detects this type).

 

I have a clean install of Mandrake 10.1 installed, with kernel 2.6.8.1-12mdk as it came off the CD. I cleared the ivtv drivers that came with 10.1 out and have built the drivers from scratch for several different versions.

 

Here's what's happening: I've followed the instructions in this thread and at Chris Kennedy's site. I get the driver installed OK, and I can (sometimes--there appear to be no reproducible circumstances) get output from /dev/video0, but sometimes not.

 

My system video card is an ASUS Geforce 3 card that happens to have a video capture device on board--I can get kdetv to display the output of a video camera attached to the nvidia card's capture port. This capture port shows up in kdetv as "NVIDIA Video Interface Port - XVideo Port 204"

 

In kdetv, if I attempt to change the device from the nvidia capture device to the PVR-250, kdetv locks up. If I attempt to run the kdetv channel wizard, kdetv locks up.

 

Xawtv is unable to scan any channels... and tvtime can't find /dev/video0, but that appears to be a more general problem.

 

I have tried several versions of the ivtv drivers including:

ivtv-0.2.0-rc1

ivtv-0.2.0-rc3g

ivtv-0.2.0-rc3h

ivtv-0.3.1n

ivtv-0.3.2i

 

I get the same result with each version.

 

At one point, I installed an old BT-848 card (this card does NOT have a tuner in it) in the machine at the same time as the PVR-250. When it was installed, I twice succeeded in getting kdetv to find some channels, but both times the entire machine locked up solid before the channel seek was complete.

 

Thinking this might have something to do with the firmware, I attempted to use the ivtvfwextract.pl utility to extract the firmware from my Windows driver CD, but I can't seem to get the utility to do anything (it keeps complaining: "./ivtvfwextract.pl: Can't open /root/tmp/ivtvex.10334/hcwpvrp2.sys: No such file or directory" I'm not a Perl coder so I haven't tried to dig too deeply into this). So I'm stuck using the firmware distributed by Thac.

 

In addition, sometimes I am able to get mplayer to show "snow" from the /dev/video0 devide but if I leave it running for too long, the machine locks up hard.

 

Can anyone offer some advice? Thanks!!

 

Below is the output from my module startup (with version 0.3.2i) which looks fine to me:

 

Mar 13 23:06:16 moraine kernel: ivtv: ==================== START INIT IVTV ====================

Mar 13 23:06:16 moraine kernel: ivtv: version 0.3.2 (i) loading

Mar 13 23:06:16 moraine kernel: ivtv: Linux version: 2.6.8.1-12mdk 686 gcc-3.4

Mar 13 23:06:16 moraine kernel: ivtv: In case of problems please include the debug info

Mar 13 23:06:16 moraine kernel: ivtv: between the START INIT IVTV and END INIT IVTV lines when

Mar 13 23:06:16 moraine kernel: ivtv: mailing the ivtv-devel mailinglist.

Mar 13 23:06:16 moraine kernel: ivtv: Autodetected WinTV PVR 250 card

Mar 13 23:06:16 moraine kernel: ivtv: Found an iTVC16 based chip

Mar 13 23:06:16 moraine kernel: PCI: Found IRQ 10 for device 0000:00:0c.0

Mar 13 23:06:16 moraine kernel: ivtv: VIA PCI device: 0x0391 vendor: 0x1106

Mar 13 23:06:16 moraine kernel: tveeprom: Ignoring new-style parameters in presence of obsolete ones

Mar 13 23:06:16 moraine kernel: tveeprom: Hauppauge: model = 32062, rev = C182, serial# = 7812186

Mar 13 23:06:16 moraine kernel: tveeprom: tuner = LG TAPC H791F (idx = 82, type = 39)

Mar 13 23:06:16 moraine kernel: tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)

Mar 13 23:06:16 moraine kernel: tveeprom: audio_processor = MSP3445 (type = 12)

Mar 13 23:06:16 moraine kernel: ivtv: i2c attach [client=tveeprom[0],ok]

Mar 13 23:06:16 moraine kernel: ivtv: Tuner Type 39, Tuner formats 0x00001000, Radio: yes, Model 0x008d1612, Revision 0x00000000

Mar 13 23:06:16 moraine kernel: ivtv: NTSC tuner detected

Mar 13 23:06:16 moraine kernel: ivtv: Radio detected

Mar 13 23:06:16 moraine kernel: tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0

Mar 13 23:06:16 moraine kernel: ivtv: i2c attach [client=(tuner unset),ok]

Mar 13 23:06:17 moraine kernel: saa7115: Ignoring new-style parameters in presence of obsolete ones

Mar 13 23:06:17 moraine kernel: saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)

Mar 13 23:06:17 moraine kernel: saa7115: detecting saa7115 client on address 0x42

Mar 13 23:06:17 moraine kernel: saa7115: writing init values

Mar 13 23:06:17 moraine kernel: ivtv: i2c attach [client=saa7115[0],ok]

Mar 13 23:06:17 moraine kernel: saa7115: status: (1E) 0x81, (1F) 0xb1

Mar 13 23:06:17 moraine kernel: msp34xx: init: chip=MSP3445G-B8 +nicam +simple +radio

Mar 13 23:06:17 moraine kernel: ivtv: i2c attach [client=MSP3445G-B8,ok]

Mar 13 23:06:17 moraine kernel: msp3410: daemon started

Mar 13 23:06:18 moraine kernel: ivtv: Encoder revision: 0x02040024

Mar 13 23:06:18 moraine kernel: ivtv: Encoder Firmware may be buggy, use version 0x02040011Mar 13 23:06:18 moraine kernel: ivtv: Configuring WinTV PVR 250 card with 5 streams

Mar 13 23:06:18 moraine kernel: ivtv: Create DMA stream 0 using 1024 16384 byte buffers 16777216 kbytes total

Mar 13 23:06:18 moraine kernel: ivtv: Registered v4l2 device, streamtype 0 minor 0

Mar 13 23:06:18 moraine kernel: ivtv: Create DMA stream 1

Mar 13 23:06:18 moraine kernel: ivtv: Registered v4l2 device, streamtype 1 minor 32

Mar 13 23:06:18 moraine kernel: ivtv: Create stream 2 using 40 52224 byte buffers 2097152 kbytes total

Mar 13 23:06:18 moraine kernel: ivtv: Registered v4l2 device, streamtype 2 minor 224

Mar 13 23:06:18 moraine kernel: ivtv: Create DMA stream 3 using 455 4608 byte buffers 2097152 kbytes total

Mar 13 23:06:18 moraine kernel: ivtv: Registered v4l2 device, streamtype 3 minor 24

Mar 13 23:06:18 moraine kernel: ivtv: Create stream 4

Mar 13 23:06:18 moraine kernel: ivtv: Registered v4l2 device, streamtype 4 minor 64

Mar 13 23:06:18 moraine kernel: ivtv: Setting Tuner 39

Mar 13 23:06:18 moraine kernel: tuner: type set to 39 (LG NTSC (newer TAPC series)) by ivtv i2c driver #0

Mar 13 23:06:18 moraine kernel: saa7115: decoder set input (4)

Mar 13 23:06:18 moraine kernel: saa7115: now setting Composite input

Mar 13 23:06:18 moraine kernel: ivtv: Setting audio matrix to input 3, output 1

Mar 13 23:06:18 moraine kernel: ivtv: Switching standard to NTSC.

Mar 13 23:06:18 moraine kernel: saa7115: decoder set norm NTSC

Mar 13 23:06:18 moraine kernel: saa7115: set audio: 0x01

Mar 13 23:06:18 moraine kernel: ivtv: Initialized WinTV PVR 250, card #0

Mar 13 23:06:18 moraine kernel: ivtv: ==================== END INIT IVTV ====================

Edited by carcass
Link to comment
Share on other sites

Please note I answered my own question with regard to firmware extraction by finding the following link:

 

http://ivtv.writeme.ch/tiki-index.php?page...tingTheFirmware

 

I figured I'd post it here for the general use of the group.

 

However, once I extracted my firmware and rebuilt the module, I still have the same problems as before....

Edited by carcass
Link to comment
Share on other sites

Ok, so I did urpme kernel-source to remove the old one, then did urpmi kernel-source to get the new one. However, I get:

 

 

.../official/10.1/i586/media/main/kernel-source-2.4.27-0.pre2.1mdk.i586.rpm

 

And:

[root@dhcp071016 mythtv]# uname -r

2.6.8.1-12mdk

 

How can I reconcile these two things? I'm having a really hard time finding the exact source for my kernel version. Should I just update both the kernel and source to the newest versions? If so, how would I go about doing that?

 

What happens when you try:

urpmi kernel-source-2.6

or

urpmi kernel-source-2.6.8.1-12

 

I cant remember exactly what it is but I think its along those lines. Im at work right now and cant check it right now.

Link to comment
Share on other sites

If the module loads you are almost there. What errors do you get with /cat /dev/video0? To watch something first use mplayer (mplayer /dev/video0) You get any errors? If you like to tweak things, cd to the /ivtv/utils folder, type make. That will build a ivtvctl (small program). Run it first with ivtvctl --help to see what options there are. Thacs firmware is fine. No need to extract it yourself.

Link to comment
Share on other sites

If the module loads you are almost there. What errors do you get with /cat /dev/video0? To watch something first use mplayer (mplayer /dev/video0) You get any errors? If you like to tweak things, cd to the /ivtv/utils folder, type make. That will build a ivtvctl (small program). Run it first with ivtvctl --help to see what options there are. Thacs firmware is fine. No need to extract it yourself.

 

 

Thanks for the reply. When I do "cat /dev/video0" or "mplayer /dev/video0" I don't get any errors, and no snow, but the machine will usually lock up after about 30 seconds. Usually MPlayer will report that it's buffer is filling. Once it gets to about 19.6% -19.9%, the mplayer process will lock up, sometimes resulting in a hard lock of the machine.

 

Last night I was able to fool kdetv into tuning in channels by doing the following:

 

unload all ivtv-related drivers

start kdetv

modprobe ivtv

start kdetv's channel wizard

 

When I did that, kdetv searched the range of channels (us-cable) and actually found a name for Channel 2 (ABC, which happens to be wrong for my cable provider. ABC is channel 4 here, channel 2 is CBS). It made it the whole way through the channel range.

 

I was able to change from channel to channel, but none of them actually showed any video.

 

The "devices" tab in kdetv only shows the NVIDIA device when I do it this way. So it appears that I can get the tuner to work (sort of), but the video device is not working properly.

 

I did build the utils and played around with ivtvctl a bit, but it didn't seem to help. I was able to select video sources, and print out information about the card, but nothing struck me as odd or erroneous.

 

Thanks again!

Edited by carcass
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...