[mythtv-users] debian: can't install ivtv driver

nick njbweb at bresnan.net
Thu Apr 24 01:26:22 UTC 2008


starcycle wrote:
> my pvr card came today, but I can't get the module to load. I've been
> following the instructions from here:
> http://mythtv.org/wiki/index.php/Installing_MythTV_on_Debian_Etch
> 
> and here:
> http://ivtvdriver.org/index.php/Howto:Debian
> 
> I ran module-assistant and it said it was installed:
> 
> =====================================
> root at moe:~ # uname -r
> 2.6.24.2
> 
> root at moe:# module-assistant auto-install ivtv
> 
> Updated infos about 1 packages
> Getting source for kernel version: 2.6.24.2
> Kernel headers available in /lib/modules/2.6.24.2/source
> apt-get install build-essential
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> build-essential is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
> 
> Done!
> unpack
> Extracting the package tarball, /usr/src/ivtv.tar.bz2, please wait...
> Target package file /usr/src/ivtv-modules-2.6.24.2_1.0.3-2_i386.deb
> already exists, not
> rebuilding!
> (however, you could use the -f switch to ignore it)
> dpkg -Ei /usr/src/ivtv-modules-2.6.24.2_1.0.3-2_i386.deb
> Version 1.0.3-2 of ivtv-modules-2.6.24.2 already installed, skipping.
> =====================================

If it's installed, you should find ivtv.ko in
  /lib/modules/`uname -r`/kernel/drivers/media/video/ivtv/

Also try
  modinfo ivtv
or
  find /lib/modules -name ivtv.ko


> 
> I downloaded and extracted the firmware into /lib/firmware, as
> described in wiki 1:
> 
> root at moe:/lib/firmware # ls
> firmware-20060701.tar.gz  v4l-cx2341x-dec.fw    v4l-cx25840.fw
> license-end-user.txt      v4l-cx2341x-enc.fw    v4l-pvrusb2-24xxx-01.fw
> license-oemihvisv.txt     v4l-cx2341x-init.mpg  v4l-pvrusb2-29xxx-01.fw
> 
> I have ivtv-utils, but there is no ivtv-make-fwpkg as in wiki 2, so I
> couldn't try that method. But it's in the directory, so that should
> work, shouldn't it?
> 

Should just need the fw in the right place. My firmware is in (using 
Debian Sid):
  /usr/lib/hotplug/firmware/

> but still nothing:
> root at moe:~ # modprobe ivtv
> FATAL: Module ivtv not found.
> 

Looks like for some reason the module didn't get built or installed 
correctly; not sure I can help here except to suggest trying the -f option:

m-a -f a-i ivtv

> I've looked at three different guides for installing firmware, and
> they all say something different. I can't figure out what I'm doing
> wrong, can anyone point me in the right direction?

IIRC you'll get different errors if the firmware is not found; the ivtv 
module should still load okay. After a successful 'modprobe ivtv', 
'dmesg' will show details on the firmware load. Should get something like:

ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 1.0.0 (2.6.22-3-k7 SMP mod_unload K7 ) loading
ivtv0: Autodetected Hauppauge card (cx23415 based)
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
ivtv0: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
ivtv0: loaded v4l-cx2341x-dec.fw firmware (262144 bytes)
ivtv0: Encoder revision: 0x02060039
ivtv0: Decoder revision: 0x02020023
ivtv0: Autodetected Hauppauge WinTV PVR-350
tuner 2-0043: chip found @ 0x86 (ivtv i2c driver #0)
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
saa7115 2-0021: saa7115 found (1f7115d0e100000) @ 0x42 (ivtv i2c driver #0)
saa7127 2-0044: saa7129 found @ 0x88 (ivtv i2c driver #0)
msp3400 2-0040: MSP4448G-B3 found @ 0x80 (ivtv i2c driver #0)
ivtv0: Registered device video0 for encoder MPEG (4 MB)
ivtv0: Registered device video32 for encoder YUV (2 MB)
ivtv0: Registered device vbi0 for encoder VBI (1 MB)
ivtv0: Registered device video24 for encoder PCM audio (1 MB)
ivtv0: Registered device radio0 for encoder radio
ivtv0: Registered device video16 for decoder MPEG (1 MB)
ivtv0: Registered device vbi8 for decoder VBI (1 MB)
ivtv0: Registered device vbi16 for decoder VOUT
ivtv0: Registered device video48 for decoder YUV (1 MB)
ivtv0: loaded v4l-cx2341x-init.mpg firmware (155648 bytes)
ivtv0: Initialized Hauppauge WinTV PVR-350, card #0
ivtv:  ====================  END INIT IVTV  ====================



If firmware is not found, dmesg would show something like this:

ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 1.0.0 (2.6.22-3-k7 SMP mod_unload K7 ) loading
ivtv0: Autodetected Hauppauge card (cx23416 based)
ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
ivtv0: unable to open firmware v4l-cx2341x-enc.fw (must be 376836 bytes)
ivtv0: did you put the firmware in the hotplug firmware directory?
ivtv0: Retry loading firmware
ivtv0: unable to open firmware v4l-cx2341x-enc.fw (must be 376836 bytes)
ivtv0: did you put the firmware in the hotplug firmware directory?
ivtv0: Error initializing firmware
ivtv0: Error -19 on initialization
ivtv:  ====================  END INIT IVTV  ====================

If firmware is not found, you'll need to put it in the correct 
directory, 'rmmod ivtv', and 'modprobe ivtv' (once, of course, you get 
the ivtv module working).

Hopefully some of this helps a bit.

Nick








More information about the mythtv-users mailing list