LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-25-2005, 10:53 AM   #1
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
Question /dev/video? - configuration under LFS..


This thread could easilly go under Hardware, but the core/distro is my modded LFS (salfs).


Problem:
I am trying to figure out how to configure/enable this possibly bttv type video capture device for webcam purposes. (Work Office Dedicated Camera Server - via web)

System Specs:
Pentium II
According to lspci, system has:
ethernet; 3Com .. 3c905 100BaseTx [Cyclone]
Multimedia video controller: Brooktree Corporation Bt848 Video Capture (rev 12)
VGA .. ATI .. 3D Rage Pro AGP 1X2X

Installed:
xawtv-3.94
videodog0.31
simplephpwebcam-0.2-beta ...
(Xorg 6.8.2, Gtk 2.6.2)
Built all of the available video capture devices as modular during kernel build

Issues:
1) I'm used to used /etc/modules.conf, so what device alias do I need for the /dev/video0? card?
(ie: alias char-major-195 r128 for the 3D Rage pro..)
2) My first time toying with a cam (I will be looking up information while doing this, so well documented sites would be appreciated) so does anybody know what I need to do to "activate" the device. I am pretty sure that once I load the module to the bt848 card, xawtv and videodog should be able to handle that..
3) I am assuming bt848 is bttv similar/compatible?? Am i wrong/right??
 
Old 02-26-2005, 07:39 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it's "alias char-major-81 bttv" normally. bttv is the standard linux driver for the bt848 / bt878 chipsets. and yes, once bttv and v4l2 are running, you should be sorted for any v4l2 application.
 
Old 03-01-2005, 12:50 PM   #3
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Original Poster
Rep: Reputation: 15
okay heres the fun part..

I modified /etc/modules.conf accordingly.

There is a potential issue going on, I will find out more once I start experimenting with the interface software for the bttv video card.
Here is what happens, on bootup, the kernel sends the following messages when loading the modules (or attempting to):
Code:
Feb 28 20:05:41 CamSys kernel: Freeing unused kernel memory: 152k freed
Feb 28 20:05:41 CamSys kernel: i2c-core.o: i2c core module version 2.6.1 (20010830)
Feb 28 20:05:41 CamSys kernel: i2c-algo-bit.o: i2c bit algorithm module
Feb 28 20:05:41 CamSys kernel: Linux video capture interface: v1.00
Feb 28 20:05:41 CamSys kernel: bttv: driver version 0.7.108 loaded
Feb 28 20:05:41 CamSys kernel: bttv: using 4 buffers with 2080k (8320k total) for capture
Feb 28 20:05:41 CamSys kernel: bttv: Host bridge needs ETBF enabled.
Feb 28 20:05:41 CamSys kernel: bttv: Bt8xx card found (0).
Feb 28 20:05:41 CamSys kernel: PCI: Found IRQ 11 for device 00:12.0
Feb 28 20:05:41 CamSys kernel: PCI: Sharing IRQ 11 with 01:00.0
Feb 28 20:05:41 CamSys kernel: bttv0: Bt848 (rev 18) at 00:12.0, irq: 11, latency: 132, mmio: 0xf4001000
Feb 28 20:05:41 CamSys kernel: bttv0: using:  *** UNKNOWN/GENERIC ***  [card=0,autodetected]
Feb 28 20:05:41 CamSys kernel: bttv0: enabling ETBF (430FX/VP3 compatibilty)
Feb 28 20:05:41 CamSys kernel: i2c-core.o: adapter bt848 #0 registered as adapter 0.
Feb 28 20:05:41 CamSys kernel: bttv: readee error
Feb 28 20:05:41 CamSys kernel: bttv0: using tuner=-1
Feb 28 20:05:41 CamSys kernel: bttv0: i2c: checking for MSP34xx @ 0x80... not found
Feb 28 20:05:41 CamSys kernel: bttv0: i2c: checking for TDA9875 @ 0xb0... not found
Feb 28 20:05:41 CamSys kernel: bttv0: i2c: checking for TDA7432 @ 0x8a... not found
Feb 28 20:05:41 CamSys kernel: bttv0: registered device video0
Feb 28 20:05:41 CamSys kernel: bttv0: registered device vbi0
What concerns me are the following lines:
bttv: Host bridge needs ETBF enabled. - What is ETBF? I also notice: bttv0: enabling ETBF (430FX/VP3 compatibilty)
bttv: readee error - My Main concern, what does this mean.....what is readee?
bttv0: using tuner=-1 - Possible problem, is -1 normal for this circumstance?
These three lines should be of little concern..as it is probably just the autodetect doing its job
i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
The next concern is when I get into the system and lsmod:
Code:
Module Size Used by Not tainted
bttv 93728 0 (unused)
videodev 5632 2 [bttv]
i2c-algo-bit 7080 1 [bttv]
i2c-core 12836 [0 [bttv i2c-algo-bit]
soundcore 3428 0 [bttv]
bttv 93728 0 (unused) - is of possible concern being unassociated, but I probably just need to start the camera program/process
soundcore 3428 0 [bttv] - This stands out like the lady in a blue dress in the matrix; There is no sound card associated with the bttv card, nor is there one built into this specific bttv card. Could it be that the autodetect has improperly detected the card??
 
Old 03-02-2005, 01:28 PM   #4
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Original Poster
Rep: Reputation: 15
so far those errors mean nothing as far as getting the xawtv to work.
I get the Television Camera to work in our front lab, and the S-Video camera in the back lab to work.

Some of the issues was that the TV cam needs NTSC, while the S-Video needs NTSC-nb
 
Old 03-11-2005, 11:06 PM   #5
dbalsige
LQ Newbie
 
Registered: Mar 2005
Location: Switzerland
Distribution: LinuxFromScratch
Posts: 5

Rep: Reputation: 0
this worked for me in /etc/modules.conf (kernel 2.4)

above bttv tuner
options bttv card=2 radio=0 pll=0 fieldnr=1 gbuffers=4
options tuner type=2
options i2c-core
options i2c-algo-bit

for 2.6 kernels with udev and hotplug the entry in /etc/modprobe.conf
will probably differ....

the main part ist tuner type=2
for completeness the kernel log:

i2c-core.o: i2c core module
i2c-algo-bit.o: i2c bit algorithm module
Linux video capture interface: v1.00
bttv: driver version 0.7.104 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
bttv: Host bridge is PCI device 1106:3116 (VIA Technologies, Inc.)
bttv: Bt8xx card found (0).
PCI: Found IRQ 5 for device 00:0a.0
PCI: Sharing IRQ 5 with 00:10.1
bttv0: Bt848 (rev 18) at 00:0a.0, irq: 5, latency: 32, mmio: 0xe0900000
bttv0: using: BT848A(Hauppauge (bt848)) [card=2,insmod option]
bttv0: Hauppauge/Voodoo msp34xx: reset line init [5]
i2c-core.o: adapter bt848 #0 registered as adapter 0.
bttv0: Hauppauge eeprom: invalid
bttv0: Hauppauge eeprom: model=65535, tuner=<NULL> (-1), radio=no
bttv0: using tuner=-1
bttv0: i2c: checking for MSP34xx @ 0x80... found
i2c-core.o: driver i2c msp3400 driver registered.
msp34xx: init: chip=MSP3400C-C6
msp3400: daemon started
i2c-core.o: client [MSP3400C-C6] registered to adapter [bt848 #0](pos. 0).
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,tea6420,tda8425,pic16c54 (PV951)
i2c-core.o: driver generic i2c audio driver registered.
bttv0: registered device video0
bttv0: registered device vbi0
i2c-core.o: driver i2c TV tuner driver registered.
tuner: probing bt848 #0 i2c adapter [id=0x10005]
tuner: chip found @ 0xc2
tuner(bttv): type forced to 2 (Philips NTSC (FI1236,FM1236 and compatibles)) [insmod]
i2c-core.o: client [Philips NTSC (FI1236,FM1236 and ] registered to adapter [bt848 #0](pos. 1).
 
Old 03-25-2005, 06:34 PM   #6
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Original Poster
Rep: Reputation: 15
ew:

Code:
above bttv tuner
options bttv card=2 radio=0 pll=0 fieldnr=1 gbuffers=4
options tuner type=2
options i2c-core
options i2c-algo-bit
this crashed my kernel at bootup.. kernel panic!!

anyway, looks like i have a different piece of hardware than yours..
 
Old 03-28-2005, 08:24 AM   #7
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

you need to know the exact model of tuner card you own... then go to /usr/src/linux/Documentation/video4linux/bttv/CARDLIST file to find the corresponding option.
For example for my PCTV pro, the option is card=52

Oliv'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with /dev/video??? TLinOS SUSE / openSUSE 1 06-20-2005 05:22 AM
/dev/video d1l2w3 Mandriva 1 03-27-2005 03:45 AM
how do I restore /dev/video ??? jimdaworm Slackware 12 06-11-2004 08:21 AM
LFS Core 4 Shuttle-Based Music/Video Center? mssuguy_joplin Linux From Scratch 0 12-15-2003 09:34 PM
Two Video Devices - /dev/video0 & /dev/video1 liguorir Linux - Software 1 07-21-2003 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration