Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ivtv problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Fri Jul 07, 2006 7:57 am    Post subject: ivtv problem Reply with quote

Hi,

I am trying to build a 64bit based Mythtv box.

I am following this guide:
http://gentoo-wiki.com/HARDWARE_PVR_500_Setup

to install mythtv + the tv card drivers.

Now when I dmesg | grep -i irq | grep -i disabl
I got this:
Code:

dmesg | grep -i irq | grep -i disabl
ACPI: PCI Interrupt Link [LNKA] (IRQs 16 17 18 19) *0, disabled.
ACPI: PCI Interrupt Link [LNEA] (IRQs 16 17 18 19) *0, disabled.
ACPI: PCI Interrupt Link [LNEB] (IRQs 16 17 18 19) *0, disabled.
ACPI: PCI Interrupt Link [LNED] (IRQs 16 17 18 19) *0, disabled.
ACPI: PCI Interrupt Link [LACI] (IRQs 20 21 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LMC9] (IRQs 20 21 22 23) *0, disabled.
ACPI: PCI Interrupt Link [LATA] (IRQs 20 21 22 23) *0, disabled.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled


Ivtv gives this:
Code:

Jul  7 11:43:39 mediacenter Linux video capture interface: v1.00
Jul  7 11:43:39 mediacenter ivtv:  ==================== START INIT IVTV ====================
Jul  7 11:43:39 mediacenter ivtv:  version 0.6.3 (tagged release) loading
Jul  7 11:43:39 mediacenter ivtv:  Linux version: 2.6.16-gentoo-r11 SMP gcc-3.4
Jul  7 11:43:39 mediacenter ivtv:  In case of problems please include the debug info between
Jul  7 11:43:39 mediacenter ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
Jul  7 11:43:39 mediacenter ivtv:  any module options, when mailing the ivtv-users mailinglist.
Jul  7 11:43:39 mediacenter ivtv0: User specified YUAN MPG160/Kuroutoshikou ITVC15-STVLP card (detected cx23416 based chip)
Jul  7 11:43:39 mediacenter ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 18
Jul  7 11:43:39 mediacenter GSI 21 sharing vector 0x3A and IRQ 21
Jul  7 11:43:39 mediacenter ACPI: PCI Interrupt 0000:05:08.0[A] -> Link [LNKB] -> GSI 18 (level, low) -> IRQ 58
Jul  7 11:43:39 mediacenter ivtv0: Failed to load module tuner
Jul  7 11:43:39 mediacenter ivtv0: Failed to load module tda9887
Jul  7 11:43:39 mediacenter ivtv0: Failed to load module saa7115
Jul  7 11:43:40 mediacenter ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul  7 11:43:40 mediacenter ivtv0: Encoder revision: 0x02050032
Jul  7 11:43:40 mediacenter ivtv0: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul  7 11:43:40 mediacenter ivtv0: Allocate DMA encoder YUV stream: 194 x 10800 buffers (2048KB total)
Jul  7 11:43:40 mediacenter ivtv0: Allocate DMA encoder VBI stream: 120 x 17472 buffers (2048KB total)
Jul  7 11:43:40 mediacenter ivtv0: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul  7 11:43:40 mediacenter ivtv0: i2c addr 0x21 not found for command 0xc0045627!
Jul  7 11:43:40 mediacenter ivtv0: Initialized YUAN MPG160/Kuroutoshikou ITVC15-STVLP, card #0
Jul  7 11:43:40 mediacenter ivtv:  ======================  NEXT CARD  ======================
Jul  7 11:43:40 mediacenter ivtv1: Autodetected Hauppauge WinTV PVR-150 card (cx23416 based)
Jul  7 11:43:40 mediacenter ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 17
Jul  7 11:43:40 mediacenter GSI 22 sharing vector 0x42 and IRQ 22
Jul  7 11:43:40 mediacenter ACPI: PCI Interrupt 0000:05:09.0[A] -> Link [LNKC] -> GSI 17 (level, low) -> IRQ 66
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module tveeprom
Jul  7 11:43:40 mediacenter tveeprom 1-0050: Hauppauge model 23559, rev E591, serial# 8345718
Jul  7 11:43:40 mediacenter tveeprom 1-0050: tuner model is Philips FQ1216AME MK4 (idx 91, type 56)
Jul  7 11:43:40 mediacenter tveeprom 1-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) (eeprom 0x74)
Jul  7 11:43:40 mediacenter tveeprom 1-0050: second tuner model is Philips TEA5768HL FM Radio (idx 101, type 62)
Jul  7 11:43:40 mediacenter tveeprom 1-0050: audio processor is CX25843 (idx 37)
Jul  7 11:43:40 mediacenter tveeprom 1-0050: decoder processor is CX25843 (idx 30)
Jul  7 11:43:40 mediacenter tveeprom 1-0050: has radio, has no IR remote
Jul  7 11:43:40 mediacenter ivtv1: This is the second unit of a PVR500
Jul  7 11:43:40 mediacenter ivtv1: Correcting tveeprom data: no radio present on second unit
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module tuner
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module tda9887
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module cx25840
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module wm8775
Jul  7 11:43:41 mediacenter ivtv1: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
Jul  7 11:43:41 mediacenter ivtv1: Encoder revision: 0x02050032
Jul  7 11:43:41 mediacenter ivtv1: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
Jul  7 11:43:41 mediacenter ivtv1: Allocate DMA encoder YUV stream: 161 x 12960 buffers (2048KB total)
Jul  7 11:43:41 mediacenter ivtv1: Allocate DMA encoder VBI stream: 80 x 26208 buffers (2048KB total)
Jul  7 11:43:41 mediacenter ivtv1: Allocate DMA encoder PCM audio stream: 455 x 4608 buffers (2048KB total)
Jul  7 11:43:41 mediacenter ivtv1: i2c hardware 0x00000001 not found for command 0xc008561c!
Jul  7 11:43:41 mediacenter ivtv1: i2c addr 0x44 not found for command 0xc0045627!
Jul  7 11:43:41 mediacenter ivtv1: i2c hardware 0x00000020 not found for command 0x40345622!
Jul  7 11:43:41 mediacenter ivtv1: i2c addr 0x44 not found for command 0x40345622!
Jul  7 11:43:41 mediacenter ivtv1: i2c hardware 0x00000001 not found for command 0xc008561c!
Jul  7 11:43:41 mediacenter ivtv1: i2c hardware 0x00000001 not found for command 0xc008561c!
Jul  7 11:43:41 mediacenter ivtv1: i2c hardware 0x00000001 not found for command 0xc008561c!
Jul  7 11:43:41 mediacenter ivtv1: Initialized WinTV PVR 500 (unit #2), card #1
Jul  7 11:43:41 mediacenter ivtv:  ====================  END INIT IVTV  ====================


Anyone who can help.
I think the irq conflict is whats wrong but how can I solve it. The tv card is the only pc card in the computer.
Back to top
View user's profile Send private message
phorn
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2006
Posts: 109

PostPosted: Fri Jul 07, 2006 8:13 am    Post subject: Reply with quote

About the disabled errors, I get some of those on my computer:
Code:
[17179570.680000] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 7 9 10 11 12 14 15) *0, disabled.
[17179570.680000] ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 5 7 9 10 11 12 14 15) *0, disabled.
[17179584.672000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled

and I have no problems. So don't worry about those (or if you do, first fix the software-related problems if possible -- IRQ sharing causes slowness, but does not prevent something from working)
My Windows 2000 computer has *10* devices on IRQ 9, including video card, tuner card, ethernet, sound, USB-2 and some other stuff, and the mouse gets jerky when doing a lot of stuff, but it still works. (I would like to fix it, but re-installing windows is a pain). Of course, booting into Linux on that computer makes it feel fast in comparison, as it gets IRQ's right.

if you are worried about IRQ conflicts, look at the output of cat /proc/interrupts

From reading the output, you have a lot of "Failed to load module". This seems like a more important error -- and also likely easier to fix than IRQs.
Quote:
Jul 7 11:43:39 mediacenter ivtv0: Failed to load module tuner
Jul 7 11:43:39 mediacenter ivtv0: Failed to load module tda9887
Jul 7 11:43:39 mediacenter ivtv0: Failed to load module saa7115


That is an indicator that you maybe do not have the correct ivtv modules installed.

I don't know the specifics as I have not used ivtv the same way you have--I compiled from source and manually did make install in order to get my less-supported Adaptec Videoh AVC-2410 card to work.
I didn't know you could just run the "ivtv" command.

Anyway, you should look at installing those modules.

A lsmod may help, as well as manually doing modprobe tuner to install the tuner module.

Running modprobe manually may print information out as to why it is not loading.
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Sat Jul 08, 2006 8:49 am    Post subject: Reply with quote

Are the modules listed in dmesg as not loading built in the kernel? (as modules I mean)
Back to top
View user's profile Send private message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Sat Jul 08, 2006 12:53 pm    Post subject: Reply with quote

Headrush wrote:
Are the modules listed in dmesg as not loading built in the kernel? (as modules I mean)

that is one of the strange parts.
Modprobe tuner works just fine.
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 439

PostPosted: Sun Jul 09, 2006 12:52 am    Post subject: Reply with quote

First,
Code:
Jul  7 11:43:39 mediacenter ivtv:  version 0.6.3 (tagged release) loading
Jul  7 11:43:39 mediacenter ivtv:  Linux version: 2.6.16-gentoo-r11 SMP gcc-3.4
looks good. The ivtv version is correct for the kernel.

Code:
Jul  7 11:43:39 mediacenter ivtv0: User specified YUAN MPG160/Kuroutoshikou ITVC15-STVLP card (detected cx23416 based chip)
If you only have the pvr500mce in your computer and not this one I'd say we have at least one source of the problem. Did you specify tuner type somewhere?

If you can successfully modprobe these by themselves
Code:
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module tuner
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module tda9887
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module cx25840
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module wm8775
I would suggest
Code:
rmmod ivtv
and then
Code:
modprobe -v ivtv
.
modprobe ivtv should call those missing modules, provided of course that they exist.

belrpr wrote:
Headrush wrote:
Are the modules listed in dmesg as not loading built in the kernel? (as modules I mean)

that is one of the strange parts.
Modprobe tuner works just fine.


I don't think that the wiki that you referenced is as clear or correct as it could be. Using Gentoo for the ivtv I have been able to just emerge ivtv and go. Didn't need to specify tuners and stuff when calling the module. Did all of that stuff back when I built the early ivtv drivers from source, not emerged in Gentoo. The emerge even put the firmware in the right place, I'm using 0.7.0 though because my kernel is 2.6.17 and I don't remember what the install required a few months ago, the last time I did anything with my pvr500mce in Gentoo. I'm on amd64, by the way.

Code:
modinfo ivtv
Will also get you useful information. In the 0.7.0 driver it shows tuner type as 3 for the pvr150 and pvr500.


Code:
dmesg | grep i2c
Might also prove helpful. Mine yields
Code:
tuner 4-0060: chip found @ 0xc0 (ivtv i2c driver #0)
tuner 4-0061: chip found @ 0xc2 (ivtv i2c driver #0)
tda9887 4-0043: chip found @ 0x86 (ivtv i2c driver #0)
cx25840 4-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
wm8775 4-001b: chip found @ 0x36 (ivtv i2c driver #0)
tuner 5-0061: chip found @ 0xc2 (ivtv i2c driver #1)
tda9887 5-0043: chip found @ 0x86 (ivtv i2c driver #1)
cx25840 5-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #1)
wm8775 5-001b: chip found @ 0x36 (ivtv i2c driver #1)
for the pvr500mce specific stuff. My two atsc cards are recognized first and one has two tuners. That is why my pvr500mce is showing up as tuner 4 and 5. If you get nothing then I would suspect the kernel settings for i2c may be wrong or missing, provided of course that the named modules exist.


Oh yeah,
Code:
K8II ~ # dmesg | grep disab
ACPI: PCI Interrupt Link [LKMO] (IRQs 20 21 22) *0, disabled.
ACPI: PCI Interrupt Link [LKSM] (IRQs 20 21 22) *0, disabled.
ACPI: PCI Interrupt Link [LTIE] (IRQs 20 21 22) *0, disabled.
  IO window: disabled.
  IO window: disabled.
  MEM window: disabled.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
Doesn't affect my working install.

I'm now going to quit editing this post and see if the OP comes back.
Back to top
View user's profile Send private message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Mon Jul 10, 2006 8:45 am    Post subject: Reply with quote

flysideways wrote:
First,
Code:
Jul  7 11:43:39 mediacenter ivtv:  version 0.6.3 (tagged release) loading
Jul  7 11:43:39 mediacenter ivtv:  Linux version: 2.6.16-gentoo-r11 SMP gcc-3.4
looks good. The ivtv version is correct for the kernel.

Code:
Jul  7 11:43:39 mediacenter ivtv0: User specified YUAN MPG160/Kuroutoshikou ITVC15-STVLP card (detected cx23416 based chip)
If you only have the pvr500mce in your computer and not this one I'd say we have at least one source of the problem. Did you specify tuner type somewhere?

If you can successfully modprobe these by themselves
Code:
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module tuner
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module tda9887
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module cx25840
Jul  7 11:43:40 mediacenter ivtv1: Failed to load module wm8775
I would suggest
Code:
rmmod ivtv
and then
Code:
modprobe -v ivtv
.
modprobe ivtv should call those missing modules, provided of course that they exist.

belrpr wrote:
Headrush wrote:
Are the modules listed in dmesg as not loading built in the kernel? (as modules I mean)

that is one of the strange parts.
Modprobe tuner works just fine.


I don't think that the wiki that you referenced is as clear or correct as it could be. Using Gentoo for the ivtv I have been able to just emerge ivtv and go. Didn't need to specify tuners and stuff when calling the module. Did all of that stuff back when I built the early ivtv drivers from source, not emerged in Gentoo. The emerge even put the firmware in the right place, I'm using 0.7.0 though because my kernel is 2.6.17 and I don't remember what the install required a few months ago, the last time I did anything with my pvr500mce in Gentoo. I'm on amd64, by the way.

Code:
modinfo ivtv
Will also get you useful information. In the 0.7.0 driver it shows tuner type as 3 for the pvr150 and pvr500.


Code:
dmesg | grep i2c
Might also prove helpful. Mine yields
Code:
tuner 4-0060: chip found @ 0xc0 (ivtv i2c driver #0)
tuner 4-0061: chip found @ 0xc2 (ivtv i2c driver #0)
tda9887 4-0043: chip found @ 0x86 (ivtv i2c driver #0)
cx25840 4-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #0)
wm8775 4-001b: chip found @ 0x36 (ivtv i2c driver #0)
tuner 5-0061: chip found @ 0xc2 (ivtv i2c driver #1)
tda9887 5-0043: chip found @ 0x86 (ivtv i2c driver #1)
cx25840 5-0044: cx25843-23 found @ 0x88 (ivtv i2c driver #1)
wm8775 5-001b: chip found @ 0x36 (ivtv i2c driver #1)
for the pvr500mce specific stuff. My two atsc cards are recognized first and one has two tuners. That is why my pvr500mce is showing up as tuner 4 and 5. If you get nothing then I would suspect the kernel settings for i2c may be wrong or missing, provided of course that the named modules exist.


Oh yeah,
Code:
K8II ~ # dmesg | grep disab
ACPI: PCI Interrupt Link [LKMO] (IRQs 20 21 22) *0, disabled.
ACPI: PCI Interrupt Link [LKSM] (IRQs 20 21 22) *0, disabled.
ACPI: PCI Interrupt Link [LTIE] (IRQs 20 21 22) *0, disabled.
  IO window: disabled.
  IO window: disabled.
  MEM window: disabled.
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
Doesn't affect my working install.

I'm now going to quit editing this post and see if the OP comes back.


I tried the basic install too and it was just the same.

Modprobe tuner works and I can see it in the lsmod command.
But when I then load ivtv then it still gives the error.

Now I installed the x86 instead of the amd64 and everything just works fine.
I will install the amd64 version tonight again and if modprobe -v ivtv command doesn't work either I will just stick with the x86.

But I really enjoyed the 64bit system.

BTW tried using the latest kernel like you and there isn't any change.

I will keep you informed!
Back to top
View user's profile Send private message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Mon Jul 10, 2006 1:37 pm    Post subject: Reply with quote

The output of the command:

modprobe -v ivtv
Code:
insmod /lib/modules/2.6.16-gentoo-r12/extra/ivtv.ko


What can it be?
The 32Bit linux doesn't have a problem and the 64bit has a problem.
Back to top
View user's profile Send private message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Tue Jul 18, 2006 11:04 am    Post subject: Reply with quote

Is it possible to use the 32bit drivers on 64bit system?
Back to top
View user's profile Send private message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Wed Jul 19, 2006 9:46 am    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 439

PostPosted: Wed Jul 26, 2006 2:51 am    Post subject: Reply with quote

What is your current ivtv status?
Back to top
View user's profile Send private message
belrpr
Guru
Guru


Joined: 22 May 2006
Posts: 440

PostPosted: Wed Jul 26, 2006 6:40 am    Post subject: Reply with quote

flysideways wrote:
What is your current ivtv status?

Installed x86 system again and ivtv was working fine.
Heard numerous problems with the 64bit thing on the ivtv mailing list.
Back to top
View user's profile Send private message
Drone1
Apprentice
Apprentice


Joined: 27 Sep 2005
Posts: 232
Location: United States of Texas

PostPosted: Wed Jul 26, 2006 10:12 pm    Post subject: Reply with quote

Heard numerous problems with the 64bit thing on the ivtv mailing list.

Hmmmmm..... Guess I'll need to add myself to the ivtv mailing list and see if I can help fix peoples issues with ivtv on AMD64!

That being said here are a few questions:

- what is current 'ACCEPT_KEYWORDS' set to in make.conf ?
- what is the output of this command "file /bin/bash" ?
- what options are you using when you 'modprobe ivtv tuner=' ?? (have all drawn in modules been removed before you retry this)
- what kernel version, ivtv version, mythtv versions are you using?? (this is important as there are compatability issues between some of the newer versions)

Also, go find some of the threads I've created and posted on as that may help also. (world cup thread ...)
Back to top
View user's profile Send private message
flysideways
Guru
Guru


Joined: 29 Jan 2005
Posts: 439

PostPosted: Wed Jul 26, 2006 11:00 pm    Post subject: Reply with quote

Well, at least he seems to be up and running. Even if it is 32bit. It seems his 64bit had i2c problems, from his postings.

64bit here, just fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum