[mythtv-users] /dev/video0 doesn't exist

Robin Gilks g8ecj at gilks.org
Wed Dec 27 01:50:58 UTC 2006


> On Tuesday 26 December 2006 16:29, Carl Fongheiser wrote:
>> On 12/26/06, Mike Diehl <mdiehl at diehlnet.com> wrote:
>> > Yes, I have.  When I modprobe ivtv  I don't get any type of errors.
>> When
>> > I
>> > then do an lsmod, I see ivtv and tveeprom loaded.  Still no /dev/vid*
>> >
>> > I've restarted hotplug; that didn't help.
>> >
>> > Any other ideas?
>>
>> Have you checked  "dmesg" for any output from the ivtv driver?
>>
>> Carl Fongheiser
>
> Well, that was enlightening...
>
>
> ivtv:  ==================== START INIT IVTV ====================
> ivtv:  version 0.8.0 (tagged release) loading
> ivtv:  Linux version: 2.6.18-gentoo-r3 SMP mod_unload K8 REGPARM gcc-4.1
> ivtv:  In case of problems please include the debug info between
> ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
> ivtv:  any module options, when mailing the ivtv-users mailinglist.
> ivtv0: Autodetected Hauppauge WinTV PVR-250 card (cx23416 based)
> ACPI: PCI Interrupt Link [APC1] enabled at IRQ 16
> ACPI: PCI Interrupt 0000:02:08.0[A] -> Link [APC1] -> GSI 16 (level, low)
> ->
> IRQ 19
> ivtv0: Unreasonably low latency timer, setting to 64 (was 32)
> ivtv0: unable to open firmware v4l-cx2341x-enc.fw
> ivtv0: did you put the firmware in the hotplug firmware directory?
> ivtv0 warning: failed loading encoder firmware
> ivtv0 warning: Error loading firmware -3!
> ivtv0: Error -3 initializing firmware.
> Trying to free already-free IRQ 19
> ivtv0: Error -12 on initialization
> ivtv: probe of 0000:02:08.0 failed with error -12
> ivtv:  ====================  END INIT IVTV  ====================
>
>
> Since I don't know where the firmware is supposed to be, I did a find for
> it
> and found the firmware at:
>
> /lib/firmware/v4l-cx2341x-enc.fw
> and
> /usr/lib/hotplug/firmware/v4l-cx2341x-enc.fw
>
> Hotplug should have been able to find it.  Anyone know why it won't load?
>
> Continued thanks.
>

I'm running Gentoo with 0.6.3 ivtv and a 2.6.16 kernel. Looking to see
where hotplug looks for the files...

$ grep firmware /etc/hotplug/*
firmware.agent:# Kernel firmware hotplug params include:
firmware.agent:# $Id: firmware.agent,v 1.4 2004/09/20 21:23:51 kroah Exp $
firmware.agent:# directory of the firmware files
firmware.agent:FIRMWARE_DIR=/lib/firmware
firmware.agent:# What to do with this firmware hotplug event?


Seeing if they are there..

$ ls -l /lib/firmware
total 692
-rw-r--r-- 1 root root 262144 Oct  7 22:12 v4l-cx2341x-dec.fw
-rw-r--r-- 1 root root 262144 Oct  7 22:12 v4l-cx2341x-enc.fw
-rw-r--r-- 1 root root 155648 Oct  7 22:12 v4l-cx2341x-init.mpg
-rw-r--r-- 1 root root  14264 Oct  7 22:12 v4l-cx25840.fw

Seeing what video devices I have - note they are symbolic links to the v4l
directory...

# ls -l /dev/v*
lrwxrwxrwx 1 root root      8 Dec 26 07:05 /dev/vbi0 -> v4l/vbi0
crw-rw---- 1 root tty  7,   0 Dec 26 07:05 /dev/vcs
crw-rw---- 1 root tty  7,   1 Dec 25 18:02 /dev/vcs1
crw-rw---- 1 root tty  7,  12 Dec 25 18:02 /dev/vcs12
crw-rw---- 1 root tty  7,   2 Dec 25 19:46 /dev/vcs2
crw-rw---- 1 root tty  7,   3 Dec 25 19:46 /dev/vcs3
crw-rw---- 1 root tty  7,   4 Dec 25 19:46 /dev/vcs4
crw-rw---- 1 root tty  7,   5 Dec 25 19:46 /dev/vcs5
crw-rw---- 1 root tty  7,   6 Dec 25 19:46 /dev/vcs6
crw-rw---- 1 root tty  7,   7 Dec 25 19:46 /dev/vcs7
crw-rw---- 1 root tty  7,   8 Dec 26 14:31 /dev/vcs8
crw-rw---- 1 root tty  7, 128 Dec 26 07:05 /dev/vcsa
crw-rw---- 1 root tty  7, 129 Dec 25 18:02 /dev/vcsa1
crw-rw---- 1 root tty  7, 140 Dec 25 18:02 /dev/vcsa12
crw-rw---- 1 root tty  7, 130 Dec 25 19:46 /dev/vcsa2
crw-rw---- 1 root tty  7, 131 Dec 25 19:46 /dev/vcsa3
crw-rw---- 1 root tty  7, 132 Dec 25 19:46 /dev/vcsa4
crw-rw---- 1 root tty  7, 133 Dec 25 19:46 /dev/vcsa5
crw-rw---- 1 root tty  7, 134 Dec 25 19:46 /dev/vcsa6
crw-rw---- 1 root tty  7, 135 Dec 25 19:46 /dev/vcsa7
crw-rw---- 1 root tty  7, 136 Dec 26 14:31 /dev/vcsa8
lrwxrwxrwx 1 root root     10 Dec 26 07:05 /dev/video0 -> v4l/video0
lrwxrwxrwx 1 root root     11 Dec 26 07:05 /dev/video24 -> v4l/video24
lrwxrwxrwx 1 root root     11 Dec 26 07:05 /dev/video32 -> v4l/video32

/dev/v4l:
total 0
crw-rw---- 1 root video 81,  64 Dec 26 07:05 radio0
crw-rw---- 1 root video 81, 224 Dec 26 07:05 vbi0
crw-rw---- 1 root video 81,   0 Dec 26 07:05 video0
crw-rw---- 1 root video 81,  24 Dec 26 07:05 video24
crw-rw---- 1 root video 81,  32 Dec 26 07:05 video32


I guess a check of permissions on the firmware files and directory may
also help, also make sure you have *NO* options set for the ivtv modules -
the autoprobe since version 0.4 has made any options redundant and they do
more harm than good in 99% of cases.

Cheers

-- 
Robin Gilks



More information about the mythtv-users mailing list