Hi Ian,
Can you test this card in another PC or under Windows? From your
description it sounds very similar from what Kirk is seeing. But before
I'll dig into it I'd like to have some confirmation first that the card
isn't simply broken.
Regards,
Hans
On Saturday 04 November 2006 22:50, Ian Smith wrote:
> I am also having the "zero length file" problem when doing
> cat /dev/video0 > foo.mpg
> on a hauppage 250.
>
> I have some reasons (see below) to believe that this is a relative of
> the problem seen before where people were running with the APIC
> turned off in their BIOS but I'd love to hear other theories.
>
> When I modprobe -f ivtv I get no problems that i can see (it's below)
> except the one pointed out by Kirk Bocek before with the VBI. I have
> checked my BIOS and tried all possible APIC settings to no effect.
> I've also tried all the kernel boot options that seemed relevant to
> the APIC problem also without effect--I always get a 0 length file.
> My /proc/interrupts (below) shows that no interrupts have been
> handled by ivtv0, even though it appears (based on the dmesg messages
> when you try to cat from the device) that it thinks its encoding
> something.
>
> Does anyone have any suggestions about what to try? I built my own
> kernel ( 2.6.18), running on edgy ubuntu, built the driver (b3490)
> from source, and I built the v4l stuff as well using the info
> provided in the build README. I did experience the problems with
> symbol versioning (pointed out on this list again by K. Bocek, such
> as 'ivtv: disagrees about version of symbolvideo_unregister_device')
> problem but eventually got things to compile ok.
> Could this be the source of trouble? You wouldn't think it would just
> "go away" unless I got it right.
>
> thanks much,
> ian smith
>
>
> [EMAIL PROTECTED]:~$ sudo modprobe -f ivtv ivtv_debug=95
> [EMAIL PROTECTED]:~$ dmesg | grep ivtv
> [ 1305.401150] ivtv: no version magic, tainting kernel.
> [ 1305.406652] ivtv: ==================== START INIT IVTV
> ====================
> [ 1305.406660] ivtv: version 0.9.0 (development snapshot compiled on
> Thu 02 Nov 2006 06:23:06 PM PST) loading
> [ 1305.406663] ivtv: Linux version: 2.6.18 mod_unload PENTIUMIII
> gcc-4.1 [ 1305.406666] ivtv: In case of problems please include the
> debug info between
> [ 1305.406668] ivtv: the START INIT IVTV and END INIT IVTV lines,
> along with
> [ 1305.406670] ivtv: any module options, when mailing the ivtv-users
> mailinglist.
> [ 1305.407626] ivtv0: Autodetected Hauppauge WinTV PVR-250 card
> (cx23416 based)
> [ 1305.407744] ivtv0 info: base addr: 0xe0000000
> [ 1305.407747] ivtv0 info: Enabling pci device
> [ 1305.407907] ivtv0 info: Attempting to enable Bus Mastering
> [ 1305.407916] ivtv0 info: Bus Mastering Enabled.
> [ 1305.407924] ivtv0 info: 22 (rev 1) at 00:0b.0, irq: 153, latency:
> 64, memory: 0xe0000000
> [ 1305.407927] ivtv0 info: attempting ioremap at 0xe0000000 len
> 0x00800000 [ 1305.408190] ivtv0 info: attempting ioremap at
> 0xe1000000 len 0x00800000 [ 1305.408350] ivtv0 info: attempting
> ioremap at 0xe2000000 len 0x00010000 [ 1305.408424] ivtv0 info:
> Preparing for firmware halt.
> [ 1305.418238] ivtv0 info: Stopping VDM
> [ 1305.418243] ivtv0 info: Stopping AO
> [ 1305.418245] ivtv0 info: pinging (?) APU
> [ 1305.418247] ivtv0 info: Stopping VPU
> [ 1305.418249] ivtv0 info: Resetting Hw Blocks
> [ 1305.418251] ivtv0 info: Stopping SPU
> [ 1305.428274] ivtv0 info: init Encoder SDRAM pre-charge
> [ 1305.428279] ivtv0 info: init Encoder SDRAM refresh to 1us
> [ 1305.428281] ivtv0 info: Sleeping for 600ms (600 recommended)
> [ 1306.026618] ivtv0 info: Loading encoder image
> [ 1306.045731] ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144
> bytes) [ 1306.245061] ivtv0 api: API Call: CX2341X_ENC_PING_FW
> [ 1306.255048] ivtv0 info: Getting firmware version..
> [ 1306.255055] ivtv0 api: API Call: CX2341X_ENC_GET_VERSION
> [ 1306.265023] ivtv0: Encoder revision: 0x02050032
> [ 1306.265028] ivtv0 info: activating i2c...
> [ 1306.320184] tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0)
> [ 1306.502727] saa7115 0-0021: saa7115 found (1f7115d0e100000) @ 0x42
> (ivtv i2c driver #0)
> [ 1306.636872] msp3400 0-0040: MSP3445G-B8 found @ 0x80 (ivtv i2c
> driver #0) [ 1306.649341] ivtv0 info: Active card count: 1.
> [ 1306.658622] ivtv0 info: Loaded module tveeprom
> [ 1306.692351] ivtv0 info: NTSC tuner detected
> [ 1306.700939] ivtv0 info: Loaded module tuner
> [ 1306.708528] ivtv0 info: Loaded module saa7115
> [ 1306.716682] ivtv0 info: Loaded module msp3400
> [ 1306.740347] ivtv0: Registered device video0 for encoder MPEG (1
> MB) [ 1306.740355] ivtv0 info: Allocate DMA encoder MPEG stream: 32 x
> 32768 buffers (1024kB total)
> [ 1306.760262] ivtv0: Registered device video32 for encoder YUV (2
> MB) [ 1306.760270] ivtv0 info: Allocate DMA encoder YUV stream: 194 x
> 10800 buffers (2046kB total)
> [ 1306.761025] ivtv0: Registered device vbi0 for encoder VBI (1 MB)
> [ 1306.761032] ivtv0 info: Allocate DMA encoder VBI stream: 60 x
> 17472 buffers (1023kB total)
> [ 1306.761689] ivtv0: Registered device video24 for encoder PCM audio
> (1 MB) [ 1306.761696] ivtv0 info: Allocate DMA encoder PCM audio
> stream: 227 x 4608 buffers (1021kB total)
> [ 1306.762025] ivtv0 info: Starting Threads
> [ 1306.762029] ivtv0 irq: Masking interrupts
> [ 1306.762203] ivtv0 ioctl: VIDIOC_S_INPUT
> [ 1306.762206] ivtv0 info: Changing input from 1 to 0
> [ 1306.762210] ivtv0 ioctl: VIDIOC_S_CTRL(00980909, 1)
> [ 1306.769084] ivtv0 info: Mute
> [ 1306.827773] ivtv0 api: API Call: CX2341X_ENC_INITIALIZE_INPUT
> [ 1306.953224] ivtv0 ioctl: VIDIOC_S_CTRL(00980909, 0)
> [ 1306.960012] ivtv0 info: Unmute
> [ 1306.960017] ivtv0 ioctl: VIDIOC_S_STD
> [ 1306.960019] ivtv0 info: Switching standard to 1000.
> [ 1307.020386] ivtv0 ioctl: VIDIOC_S_FREQUENCY
> [ 1307.020393] ivtv0 ioctl: VIDIOC_S_CTRL(00980909, 1)
> [ 1307.027111] ivtv0 info: Mute
> [ 1307.027114] ivtv0 info: v4l2 ioctl: set frequency 1076
> [ 1307.043128] ivtv0 api: API Call: CX2341X_ENC_INITIALIZE_INPUT
> [ 1307.153739] ivtv0 ioctl: VIDIOC_S_CTRL(00980909, 0)
> [ 1307.160453] ivtv0 info: Unmute
> [ 1307.160457] ivtv0: Initialized Hauppauge WinTV PVR-250, card #0
> [ 1307.160577] ivtv: ==================== END INIT IVTV
> ====================
> [EMAIL PROTECTED]:~$ cat /dev/video0 > /tmp/foo.mpg
>
> [EMAIL PROTECTED]:~$ ls -al /tmp/foo.mpg
> -rw-r--r-- 1 iansmith iansmith 0 2006-11-04 13:46 /tmp/foo.mpg
> [EMAIL PROTECTED]:~$ cat /proc/interrupts
> CPU0
> 0: 1355909 IO-APIC-edge timer
> 1: 5082 IO-APIC-edge i8042
> 2: 0 XT-PIC cascade
> 6: 5 IO-APIC-edge floppy
> 7: 2 IO-APIC-edge parport0
> 8: 3 IO-APIC-edge rtc
> 14: 11902 IO-APIC-edge ide0
> 15: 8915 IO-APIC-edge ide1
> 137: 79781 IO-APIC-level [EMAIL PROTECTED]:0000:01:00.0
> 145: 4951 IO-APIC-level eth0, SiS SI7012
> 153: 0 IO-APIC-level ivtv0
> 161: 2 IO-APIC-level ohci_hcd:usb1
> 169: 10565 IO-APIC-level ohci_hcd:usb2
> 177: 0 IO-APIC-level ohci_hcd:usb3
> 185: 46423 IO-APIC-level ehci_hcd:usb4
> NMI: 0
> LOC: 1355823
> ERR: 3
> MIS: 0
> [EMAIL PROTECTED]:~$ sudo lspci -v
> 00:00.0 Host bridge: Silicon Integrated Systems [SiS]
> 661FX/M661FX/M661MX Host (rev 11)
> Subsystem: ABIT Computer Corp. Unknown device 1806
> Flags: bus master, medium devsel, latency 32
> Memory at d0000000 (32-bit, non-prefetchable) [size=128M]
> Capabilities: [c0] AGP version 3.5
>
> [snip]
>
> 00:0b.0 Multimedia video controller: Internext Compression Inc iTVC16
> (CX23416) MPEG-2 Encoder (rev 01)
> Subsystem: Hauppauge computer works Inc. WinTV PVR 250
> Flags: bus master, medium devsel, latency 64, IRQ 153
> Memory at e0000000 (32-bit, prefetchable) [size=64M]
> Capabilities: [44] Power Management version 2
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users