[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: WinTV driver docs?



On Sun, Oct 26, 2003 at 04:04:18PM +0100, Albert Dengg wrote:
> I think you will need the bttv driver, thich is included in the kernel
> source...
> for more information have a look at the homepage:
> http://bytesex.org/bttv/
> 
> I'm using mine whithout any problems (only one card & from tv
> though....)
> 
Thanks for the pointer.

I've got the 2 cards for the work achine on order, but in an attempt to
move oward this weekend, I garabed an older WinTV card out of a working
system and put it in the work machine.

However, I'm having problems getting the bttv module to load. 

It's a Debian "testing" machine with a 2.4.22 kernel that I compiled.
Here's what I'm getting

dmesg


Script started on Sun Oct 26 10:42:37 2003
cogenvs:~# dmesg
Linux version 2.4.22 (root@cogenvs) (gcc version 3.3.2 20031005 (Debian prerelease)) #1 SMP Fri Oct 24 23:39:05 EDT 2003
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000eb000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000008000000 (usable)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
128MB LOWMEM available.
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.
DMI not present.
Kernel command line: auto BOOT_IMAGE=Linux ro root=301 hdc=scsi
ide_setup: hdc=scsi
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
Detected 350.802 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 699.59 BogoMIPS
Memory: 125628k/131072k available (2138k kernel code, 5056k reserved, 569k data, 372k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff 00000000 00000000 00000000
CPU:             Common caps: 0183fbff 00000000 00000000 00000000
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff 00000000 00000000 00000000
CPU:             Common caps: 0183fbff 00000000 00000000 00000000
CPU0: Intel Pentium II (Deschutes) stepping 02
per-CPU timeslice cutoff: 1463.72 usecs.
SMP motherboard not detected.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 350.7948 MHz.
..... host bus clock speed is 100.2268 MHz.
cpu: 0, clocks: 1002268, slice: 501134
CPU0<T0:1002256,T1:501120,D:2,S:501134,C:1002268>
Waiting on wait_init_idle (map = 0x0)
All processors have done init_idle
PCI: PCI BIOS revision 2.10 entry at 0xfd9c2, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router PIIX [8086/7110] at 00:04.0
Limiting direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
vga16fb: initializing
vga16fb: mapped to 0xc00a0000
Console: switching to colour frame buffer device 80x30
fb0: VGA16 VGA frame buffer device
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
Real Time Clock Driver v1.10e
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html
eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <saw@saw.sw.com.sg> and others
PCI: Found IRQ 10 for device 00:0e.0
eth0: Intel Corp. 82557/8/9 [Ethernet Pro 100], 00:02:B3:27:A2:15, IRQ 10.
  Board assembly 751767-003, Physical connectors present: RJ45
  Primary interface chip i82555 PHY #1.
    Secondary interface chip i82555.
  General self-test: passed.
  Serial sub-system self-test: passed.
  Internal registers self-test: passed.
  ROM checksum self-test: passed (0x3258698e).
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:04.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfcd0-0xfcd7, BIOS settings: hda:pio, hdb:DMA
    ide1: BM-DMA at 0xfcd8-0xfcdf, BIOS settings: hdc:DMA, hdd:pio
hda: QUANTUM FIREBALL CX13.6A, ATA DISK drive
hdb: Maxtor 6Y120P0, ATA DISK drive
blk: queue c045eae0, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c045ec28, I/O limit 4095Mb (mask 0xffffffff)
hdc: MATSHITA CR-588, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 26760384 sectors (13701 MB) w/418KiB Cache, CHS=1769/240/63, UDMA(33)
hdb: attached ide-disk driver.
hdb: host protected area => 1
hdb: 240121728 sectors (122942 MB) w/7936KiB Cache, CHS=15881/240/63, UDMA(33)
ide-cd: passing drive hdc to ide-scsi emulation.
Partition check:
 hda: hda1 hda2
 hdb: hdb1
ide-cd: passing drive hdc to ide-scsi emulation.
Promise Fasttrak(tm) Softwareraid driver 0.03beta: No raid array found
Highpoint HPT370 Softwareraid driver for linux version 0.02
SCSI subsystem driver Revision: 1.00
Red Hat/Adaptec aacraid driver (1.1.2 Oct 24 2003 23:45:33)
DC390: 0 adapters found
3ware Storage Controller device driver for Linux v1.02.00.036.
3w-xxxx: No cards found.
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2

-> Looks like it's found.
Linux video capture interface: v1.00
I2O Core - (C) Copyright 1999 Red Hat Software
I2O: Event thread created as pid 9
I2O configuration manager v 0.04.
  (C) Copyright 1999 Red Hat Software
i2o_scsi.c: Version 0.0.1
  chain_pool: 0 bytes @ c7f72de0
  (512 byte buffers X 4 can_queue X 0 i2o controllers)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
cramfs: wrong magic
FAT: bogus logical sector size 0
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,1)) ...
for (ide0(3,1))
ide0(3,1):Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 372k freed
Adding Swap: 680392k swap-space (priority -1)
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 00:26:56 Oct 25 2003
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 11 for device 00:04.2
usb-uhci.c: USB UHCI at I/O 0xfce0, IRQ 11
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver usbkbd
usbkbd.c: :USB HID Boot Protocol keyboard driver
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device ide0(3,65)) ...
for (ide0(3,65))
ide0(3,65):Using r5 hash to sort names
parport0: PC-style at 0x378 (0x778) [PCSPP(,...)]
parport0: irq 7 detected
lp0: using parport0 (polling).
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 96M
agpgart: Detected Intel 440BX chipset
agpgart: AGP aperture is 64M @ 0xf8000000
hdc: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: MATSHITA  Model: CD-ROM CR-588     Rev: LP12
  Type:   CD-ROM                             ANSI SCSI revision: 02
device eth0 entered promiscuous mode
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)


Modules before trying to modprobe bttv

cogenvs:~# lsmod
Module                  Size  Used by    Not tainted
apm                    10600   0  (autoclean)
soundcore               4292   0  (autoclean)
ide-scsi               10448   0 
agpgart                36608   0  (unused)
parport_pc             13732   1  (autoclean)
lp                      6656   0  (autoclean)
parport                16096   1  (autoclean) [parport_pc lp]
keybdev                 2116   0  (unused)
usbkbd                  3676   0  (unused)
input                   3744   0  [keybdev usbkbd]
usb-uhci               24592   0  (unused)
usbcore                65228   0  [usbkbd usb-uhci]

And then I run into troubles :-(

cogenvs:~# modprobe bttv
Using /lib/modules/2.4.22/kernel/drivers/media/video/tuner.o
insmod: a module named tuner already exists
/lib/modules/2.4.22/kernel/drivers/media/video/bttv.o: post-install bttv failed
/lib/modules/2.4.22/kernel/drivers/media/video/bttv.o: insmod bttv failed
cogenvs:~# exit

Script done on Sun Oct 26 10:43:48 2003

dmesg after this:

apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
i2c-core.o: i2c core module
i2c-algo-bit.o: i2c bit algorithm module
bttv: driver version 0.7.107 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
bttv: Host bridge is Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge
bttv: Host bridge needs ETBF enabled.
bttv: Bt8xx card found (0).
PCI: Found IRQ 9 for device 00:0d.0
PCI: Sharing IRQ 9 with 00:0d.1
bttv0: Bt878 (rev 2) at 00:0d.0, irq: 9, latency: 64, mmio: 0xfeddf000
bttv0: detected: Hauppauge WinTV [card=10], PCI subsystem ID is 0070:13eb
bttv0: using: BT878(Hauppauge (bt878)) [card=10,autodetected]
bttv0: enabling ETBF (430FX/VP3 compatibilty)
bttv0: Hauppauge/Voodoo msp34xx: reset line init [5]
i2c-core.o: adapter bt848 #0 registered as adapter 0.
bttv0: Hauppauge eeprom: model=61001, tuner=Philips FI1236 MK2 (2),
radio=no
bttv0: using tuner=2
bttv0: i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
tvaudio: TV audio decoder + audio/video mux driver
tvaudio: known chips:
tda9840,tda9873h,tda9874h/a,tda9850,tda9855,tea6300,tea642
0,tda8425,pic16c54 (PV951),ta8874z
i2c-core.o: driver generic i2c audio driver registered.
i2c-core.o: driver i2c TV tuner driver registered.
tuner: chip found @ 0xc2
tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles))
i2c-core.o: client [Philips NTSC (FI1236,FM1236 and] registered to adapter
[bt84
8 #0](pos. 0).
bttv0: PLL: 28636363 => 35468950 .. ok
bttv0: registered device video0
bttv0: registered device vbi0

And an lsmod:

Module                  Size  Used by    Not tainted
tuner                  10888   1 (autoclean)
tvaudio                14408   0 (autoclean) (unused)
bttv                   97376   0 (unused)
i2c-algo-bit            7560   1 [bttv]
i2c-core               13892   0 [tuner tvaudio bttv i2c-algo-bit]
apm                    10600   0 (autoclean)
soundcore               4292   0 (autoclean) [bttv]
ide-scsi               10448   0
agpgart                36608   0 (unused)
parport_pc             13732   1 (autoclean)
lp                      6656   0 (autoclean)
parport                16096   1 (autoclean) [parport_pc lp]
keybdev                 2116   0 (unused)
usbkbd                  3676   0 (unused)
input                   3744   0 [keybdev usbkbd]
usb-uhci               24592   0 (unused)
usbcore                65228   0 [usbkbd usb-uhci]

What am I doing wrong?

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin



Reply to: