[mythtv-users] Odd PVR-350 FC2 Error: /dev/video0 Input/output Error

vasudeva vasudeva at megarad.com
Fri Sep 17 10:59:14 EDT 2004


* on 09-17-04, Daniel Savard wrote:
> On Fri, 17 Sep 2004 09:06:33 -0400, vasudeva <vasudeva at megarad.com> wrote:
> > Following Jarod Wilson's (very helpful) HOWTO, I built MythTV using
> > Axel Thimm's kernel, myth and ivtv RPMs on Fedora Core 2 with kernel
> > 2.6.8-1 with a PVR-350 video card, which I'm using as the TV-Out
> > over component cables.  After some initial ivtv errors, I upgraded
> > ivtv to ivtv-0.1.10-pre2-ck108o by hand, and am using the associated
> > ivtvdev_drv.o in X.
> > 
> > I can read from /dev/video0 using dd and cat just fine.
> > 
> > However, as soon as I launch mythbackend, something happens to
> > /dev/video0 that I can't read from it anymore.  Here's the
> > mythbackend output.
> > 
> 
> Check file permissions on the special file /dev/video0. The file is
> probably not owned by the appropriate user. Are you using udev? Since
> it's packaged with the FC2, I assume yes unless you migrate from
> another version to FC2. In this case, since I haven't play with FC2, I
> don't know if you had an option to keep your previous setup or you
> were forced to switch to udev.  In short, is it a fresh new FC2
> install or a migration from FC1 or RedHat?

ls -al /dev/video?
crw-------  1 root root 81, 0 Feb 23  2004 /dev/video0
crw-------  1 root root 81, 1 Feb 23  2004 /dev/video1
crw-------  1 root root 81, 2 Feb 23  2004 /dev/video2
crw-------  1 root root 81, 3 Feb 23  2004 /dev/video3

For the moment, I'm running everything as root, to rule out
permissions problems.

This is a fresh build of FC2.



> the tuner=2 option is no longer required if you are using ivtv 0.1.10
> as well as the options lines following the comment and the add and
> post-install lines.
> 
> alias char-major-61 lirc_i2c
> alias char-major-81     videodev
> alias char-major-81-0   ivtv
> 
> Is all you need. The debug option is handy if you want more details on
> what is going on, you can increase the debug level. But, your problem
> seems not related to module loading at all.

I edited my /etc/modules.conf as specified, and still get the error.

Here's the relevant bits of my /var/log/messages, in case it's
helpful:

***
Sep 17 10:51:37 sputnik kernel: Linux video capture interface: v1.00
Sep 17 10:51:37 sputnik kernel: ivtv: ==================== START INIT IVTV ====================
Sep 17 10:51:37 sputnik kernel: ivtv: version 0.1.10 (0.1.10pre2-ck107u) loading
Sep 17 10:51:37 sputnik kernel: ivtv: Linux version: 2.6.8-1.521 686 REGPARM 4KSTACKS gcc-3.3
Sep 17 10:51:37 sputnik kernel: ivtv: In case of problems please include the debug info
Sep 17 10:51:37 sputnik kernel: ivtv: between the START INIT IVTV and END INIT IVTV lines when
Sep 17 10:51:37 sputnik kernel: ivtv: mailing the ivtv-devel mailinglist.
Sep 17 10:51:37 sputnik kernel: ivtv: Autodetected WinTV PVR 350 card
Sep 17 10:51:37 sputnik kernel: ivtv: Found an iTVC15 based chip
Sep 17 10:51:37 sputnik kernel: ivtv: Unreasonably low latency timer, setting to 64 (was 32)
Sep 17 10:51:37 sputnik kernel: ivtv: XXX PCI device: 0x7190 vendor: 0x8086
Sep 17 10:51:37 sputnik kernel: tveeprom: Hauppauge: model = 48132, rev = J323, serial# = 7012382
Sep 17 10:51:37 sputnik kernel: tveeprom: tuner = Philips FM1236 (idx = 23, type = 2)
Sep 17 10:51:37 sputnik kernel: tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
Sep 17 10:51:37 sputnik kernel: tveeprom: audio_processor = MSP3440 (type = 11)
Sep 17 10:51:37 sputnik kernel: ivtv: i2c attach [client=tveeprom[0],ok]
Sep 17 10:51:37 sputnik kernel: ivtv: Tuner Type 2, Tuner formats 0x00001000, Radio: yes, Model
0x00a93493, Revision 0x00000001
Sep 17 10:51:37 sputnik kernel: ivtv: NTSC tuner detected
Sep 17 10:51:37 sputnik kernel: ivtv: Radio detected
Sep 17 10:51:37 sputnik kernel: tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
Sep 17 10:51:37 sputnik kernel: ivtv: i2c attach [client=(tuner unset),ok]
Sep 17 10:51:37 sputnik kernel: saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)
Sep 17 10:51:37 sputnik kernel: saa7115: detecting saa7115 client on address 0x42
Sep 17 10:51:37 sputnik kernel: saa7115: writing init values
Sep 17 10:51:37 sputnik kernel: ivtv: i2c attach [client=saa7115[0],ok]
Sep 17 10:51:37 sputnik kernel: saa7115: status: (1E) 0x11, (1F) 0xc0
Sep 17 10:51:37 sputnik kernel: saa7127: video encoder driver version V 0.3 loaded
Sep 17 10:51:37 sputnik kernel: saa7127: Selecting NTSC video Standard
Sep 17 10:51:37 sputnik kernel: saa7127: Selecting S-Video+Composite
Sep 17 10:51:37 sputnik kernel: saa7127: Turn WSS off
Sep 17 10:51:38 sputnik kernel: saa7127: Widescreen Mode 4:3 Full Format
Sep 17 10:51:38 sputnik kernel: saa7127: Selecting Normal Encoder Input
Sep 17 10:51:38 sputnik kernel: saa7127: Enable Video Output
Sep 17 10:51:38 sputnik kernel: ivtv: i2c attach [client=saa7127[0],ok]
Sep 17 10:51:38 sputnik kernel: msp34xx: ivtv version
Sep 17 10:51:38 sputnik kernel: msp34xx: init: chip=MSP3448W-A2, has NICAM support, simple (D) mode,
simpler (G) no-thread mode
Sep 17 10:51:38 sputnik kernel: msp34xx: $Id$ compiled on: Sep  4 2004 11:49:09
Sep 17 10:51:38 sputnik kernel: ivtv: i2c attach [client=MSP3448W-A2,ok]
Sep 17 10:51:39 sputnik kernel: ivtv: Encoder revision: 0x02040011
Sep 17 10:51:39 sputnik kernel: ivtv: Decoder revision: 0x02020023
Sep 17 10:51:39 sputnik kernel: ivtv: Configuring WinTV PVR 350 card with 9 streams
Sep 17 10:51:39 sputnik kernel: ivtv: Create DMA stream 0 using 16 131072 byte buffers  2097152
kbytes total
Sep 17 10:51:39 sputnik kernel: ivtv: Registered v4l2 device, streamtype 0 minor 0
Sep 17 10:51:39 sputnik kernel: ivtv: Alloc 16 buffers for stream 0 total 0x00200000 bytes
Sep 17 10:51:39 sputnik kernel: ivtv: Create DMA stream 1 using 16 131072 byte buffers  2097152
kbytes total
Sep 17 10:51:39 sputnik kernel: ivtv: Registered v4l2 device, streamtype 1 minor 32
Sep 17 10:51:39 sputnik kernel: ivtv: Alloc 16 buffers for stream 1 total 0x00200000 bytes
Sep 17 10:51:39 sputnik kernel: ivtv: Create stream 2 using 256 4096 byte buffers  1048576 kbytes
total
Sep 17 10:51:39 sputnik kernel: ivtv: Registered v4l2 device, streamtype 2 minor 224
Sep 17 10:51:39 sputnik kernel: ivtv: Alloc 256 buffers for stream 2 total 0x00100000 bytes
Sep 17 10:51:39 sputnik kernel: ivtv: Create DMA stream 3 using 8 131072 byte buffers  1048576
kbytes total
Sep 17 10:51:39 sputnik kernel: ivtv: Registered v4l2 device, streamtype 3 minor 24
Sep 17 10:51:39 sputnik kernel: ivtv: Alloc 8 buffers for stream 3 total 0x00100000 bytes
Sep 17 10:51:39 sputnik kernel: ivtv: Create stream 4
Sep 17 10:51:39 sputnik kernel: ivtv: Registered v4l2 device, streamtype 4 minor 64
Sep 17 10:51:39 sputnik kernel: ivtv: Create DMA stream 5 using 8 32768 byte buffers  262144 kbytes
total
Sep 17 10:51:39 sputnik kernel: ivtv: Registered v4l2 device, streamtype 5 minor 16
Sep 17 10:51:39 sputnik kernel: ivtv: Alloc 8 buffers for stream 5 total 0x00040000 bytes
Sep 17 10:51:39 sputnik kernel: ivtv: Create stream 6 using 256 4096 byte buffers  1048576 kbytes
total
Sep 17 10:51:39 sputnik kernel: ivtv: Registered v4l2 device, streamtype 6 minor 228
Sep 17 10:51:39 sputnik kernel: ivtv: Alloc 256 buffers for stream 6 total 0x00100000 bytes
Sep 17 10:51:39 sputnik kernel: ivtv: Create stream 7
Sep 17 10:51:39 sputnik kernel: ivtv: Registered v4l2 device, streamtype 7 minor 232
Sep 17 10:51:39 sputnik kernel: ivtv: Create DMA stream 8 using 32 32768 byte buffers  1048576
kbytes total
Sep 17 10:51:39 sputnik kernel: ivtv: Registered v4l2 device, streamtype 8 minor 48
Sep 17 10:51:39 sputnik kernel: ivtv: Alloc 32 buffers for stream 8 total 0x00100000 bytes
Sep 17 10:51:39 sputnik kernel: ivtv: Setting Tuner 2
Sep 17 10:51:39 sputnik kernel: tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles))
by ivtv i2c driver #0
Sep 17 10:51:39 sputnik kernel: ivtv: Setting audio matrix to input 3, output 1
Sep 17 10:51:39 sputnik kernel: ivtv: Switching standard to NTSC.
Sep 17 10:51:39 sputnik kernel: saa7115: decoder set norm NTSC
Sep 17 10:51:39 sputnik kernel: saa7115: set audio: 0x01
Sep 17 10:51:39 sputnik kernel: saa7127: Setting Encoder Video Standard
Sep 17 10:51:39 sputnik kernel: saa7127: Set NTSC Video Mode
Sep 17 10:51:39 sputnik kernel: saa7127: Selecting NTSC video Standard
Sep 17 10:51:39 sputnik kernel: ivtv: Initialized WinTV PVR 350, card #0
Sep 17 10:51:39 sputnik kernel: ivtv: ====================  END INIT IVTV  ====================
Sep 17 10:51:40 sputnik kernel: ivtv-osd: Framebuffer module loaded (attached to ivtv card id 0)
Sep 17 10:51:40 sputnik kernel: ivtv-osd: Framebuffer is at decoder-relative address 0x00510000 and
has 1704960 bytes.
Sep 17 10:51:40 sputnik kernel: ivtv-osd: screen coords: [0 0] -> [720 480]
Sep 17 10:51:40 sputnik kernel: ivtv-osd: original global alpha = 208
Sep 17 10:51:40 sputnik kernel: ivtv-osd: current OSD state = 39
Sep 17 10:51:40 sputnik kernel: ivtv-osd: new global alpha = 208 (1 255 0)
Sep 17 10:51:40 sputnik kernel: ivtv-osd: framebuffer at 0x85510000, mapped to 0x1b84a000, size
1665k
Sep 17 10:51:40 sputnik kernel: ivtv-osd: mode is 720x480x32, linelength=2880
Sep 17 10:51:40 sputnik kernel: ivtv-osd: fb0: iTVC15 TV out frame buffer device
Sep 17 10:51:42 sputnik kernel: saa7115: decoder disable output
Sep 17 10:51:42 sputnik kernel: saa7115: decoder enable output
Sep 17 10:51:42 sputnik kernel: ivtv: VIM Restart
Sep 17 10:51:43 sputnik kernel: spurious 8259A interrupt: IRQ7.
Sep 17 10:52:14 sputnik kernel: saa7115: decoder set input (0)
Sep 17 10:52:14 sputnik kernel: saa7115: now setting Composite input
Sep 17 10:52:14 sputnik kernel: ivtv: Setting audio matrix to input 1, output 1
Sep 17 10:52:14 sputnik kernel: ivtv: Finished with Mute
Sep 17 10:52:14 sputnik kernel: saa7115: decoder set picture bright=128 contrast=63 saturation=64
hue=0
Sep 17 10:52:14 sputnik kernel: saa7115: decoder set picture bright=128 contrast=63 saturation=63
hue=0
Sep 17 10:52:14 sputnik kernel: saa7115: decoder set picture bright=127 contrast=63 saturation=63
hue=0
Sep 17 10:52:14 sputnik kernel: saa7115: decoder set picture bright=127 contrast=63 saturation=63
hue=0
Sep 17 10:52:14 sputnik kernel: ivtv: v4l2 ioctl: set frequency 980
Sep 17 10:52:14 sputnik kernel: ivtv: Finished with Mute
Sep 17 10:52:28 sputnik kernel: saa7115: decoder disable output
Sep 17 10:52:28 sputnik kernel: saa7115: decoder enable output
Sep 17 10:52:28 sputnik kernel: ivtv: VIM Restart
Sep 17 10:52:29 sputnik kernel: ivtv: Encoder data has stopped.
Sep 17 10:52:29 sputnik kernel: saa7115: status: 0xe0
Sep 17 10:52:29 sputnik kernel: ivtv: Resetting digitizer
Sep 17 10:52:29 sputnik kernel: saa7115: decoder RESET ivtv: Capture ended, user interrupted.
***

That includes from when I did the modprobe ivtv-fb, to loading
mythbackend and killing it, and then trying to dd from /dev/video0
and getting permission denied.

Is it possible mythbackend somehow locks up the device?  Something
in there is definitely making the device inaccesible.



/></

--
linkswarm.com :: Collaborative Insolence
megarad.com :: Killing You With Technology
vasudeva.megarad.com :: For The Faint of Heart



More information about the mythtv-users mailing list