LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-24-2004, 11:59 AM   #1
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
modules.conf tv card setup not loaded on startup


I don't know if I should blame it on the 2.6.3 kernal that I have recently installed or if I have made a stupid mistake, but I donīt know why my options bttv card=78 tuner=32 radio=1 that are stated in my modules.conf arnīt loaded.


My /etc/modules.conf

#TV Card
alias char-major-89 i2c-dev
alias char-major-81 bttv
options bttv card=78 tuner=32 radio=1

#Sound
alias sound-slot-0 snd_intel8x0


But the result is:
My dsmeg error

i2c /dev entries driver
Linux video capture interface: v1.00
bttv: driver version 0.9.12 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:01:0a.0, irq: 10, latency: 32, mmio: 0xd8000000
bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=003fffff [init]
bttv: readee error
bttv0: using tuner=-1
bttv0: i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: registered device video0
bttv0: registered device vbi0

Any ideas?

Adam

Last edited by jimdaworm; 02-24-2004 at 12:58 PM.
 
Old 02-24-2004, 03:20 PM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Because 2.6.3 doesn't care about modules.conf - it has a new config file, modprobe.conf

Why'd they change the name? got me...

But put your options there and see if it works.

--Rounan
 
Old 02-24-2004, 03:33 PM   #3
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Hey Rounan thanks for that! I will give it a go when I get home! It was confusing me a bit the fact that there was modprobe.conf and modules.conf!

Adam
 
Old 02-25-2004, 12:35 PM   #4
Erol
Member
 
Registered: Jan 2004
Location: Vienna/Austria
Distribution: Slackware 10.0 (kernel 2.6.7)
Posts: 46

Rep: Reputation: 15
Yes, all ex modules.conf settings now go into modprobe.conf, but modprobe.conf and modules.conf sytaxes are different.

Here's my part of modprobe.conf for the TV card:

# bttv
alias char-major-81 videodev
alias char-major-81-0 bttv
options bttv card=50 gbuffers=4 pll=1 vbibufs=4 bttv_gpio=1 autoload=1 latency=3
2 bttv_verbose=2 radio=1
options tuner type=5 pal=b

You probably don't need so much parameters, but just to give you an idea.

We meet again Jim? Eh?

Good luck,
 
Old 02-25-2004, 01:06 PM   #5
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Hey Erol I just put exactly the same in the modprobe.conf and voila (dunno how to spell that) it worked! Sweet!

Yeah we meet again Thanks again for all your help in the other thread... its great to have direct rendering!

Hey its going to be embarasing soon if I donīt start learning stuff!! With my number posts.

Hey I never understood this sort of thing:
Quote:
alias char-major-81
Do you know of any good/basic explinations of how it works or how to figure out what numbers you need to put?? I know it somthing to do with how the kernal deals with things...

Adam
 
Old 02-25-2004, 06:31 PM   #6
Erol
Member
 
Registered: Jan 2004
Location: Vienna/Austria
Distribution: Slackware 10.0 (kernel 2.6.7)
Posts: 46

Rep: Reputation: 15
Well I'm no kernel expert either, but I would see it as naming convention for certain hardware types. It looks to me like addresses to whom kernel points to if it wants to do smth with certain hardware. And alias, is nothing else than shortcut to that address.

I guess the guys who know more than us will laugh when they read this, but it doesn't hurt to think a bit loud

Best regards,

Erol
 
Old 02-25-2004, 07:53 PM   #7
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Well, I'm not laughing. Guess that means I don't know very much. Which we knew already.

Seems to me like you're setting up the 81st major character device (which are probably defined in the kernel) to use whatever device/driver you put next.
But that's a best guess.

--Rounan
 
Old 02-26-2004, 12:21 PM   #8
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Hey Erol I know what you mean about feeling stupid! With all the stuff that the people in this forum know... lets just say a lot!

Mind you when I go to other forums (Not specilalised for linux) I feel kind of intelligent! Must be learning somthing!

I am going to read up on this char major thingee must be some info somewhere on it... if I can understand how it works... who knows maby I can try to explain it clearly to you!

Hey Rounan sounds like a feasibly idea... Still I guess I will have to try reading one of these manual things

Adam
 
Old 02-28-2004, 07:07 AM   #9
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Hey I found this in the rute guide more or less expalins i

Hey I found this in the rute guide more or less expalins it:

18.3 Major and Minor Device Numbers

Devices are divided into sets called major device numbers. For instance, all SCSI disks are major number 8. Further, each individual device has a minor device number like /dev/sda, which is minor device 0. Major and minor device numbers identify the device to the kernel. The file name of the device is arbitrary and is chosen for convenience and consistency. You can see the major and minor device number ( 8, 0) in the ls listing for /dev/sda:


brw-rw---- 1 root disk 8, 0 May 5 1998 /dev/sda

Adam
 
Old 02-28-2004, 08:55 AM   #10
Erol
Member
 
Registered: Jan 2004
Location: Vienna/Austria
Distribution: Slackware 10.0 (kernel 2.6.7)
Posts: 46

Rep: Reputation: 15
alias char-major-81 videodev
alias char-major-81-0 bttv

hence the logic 81 is major for all videodev, but 81-0 is for bttv, a subset of videodev.

Well we thougt so? didn't we ?

Thanks jim!
 
Old 02-28-2004, 11:44 AM   #11
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
No worries... its cool to be able to put somthing back into this forum and help you understand somthing... especially after all that help you gave me with my direct rendering


Oh yeah now I just need to figure out where the numbers are kept! I guess there must be a table or somthing somwhere, probably in documents that come with the kernal or somthing.

Adam

Last edited by jimdaworm; 02-28-2004 at 11:47 AM.
 
  


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
the ethernet card modules aren't loaded automatically exa Mandriva 2 05-20-2005 09:58 AM
Conf.modules Vs Modules.conf Issue, lost eth0 initialization LinuxFreebie41 Linux - General 3 11-04-2004 07:02 AM
Xircom card and modules.conf problems IsaacHunt Linux - Laptop and Netbook 0 05-21-2004 09:48 AM
wireless card modules not loaded if eth0 not connected denchi Linux - Wireless Networking 1 03-14-2004 08:26 PM
Something is modifying my modules.conf at startup abro Linux - Software 0 12-14-2003 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:44 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