LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-17-2006, 02:19 PM   #1
ethyrdude
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Rep: Reputation: 0
modprobe question


I have a small problem that I have sort of solved but I know my solution isn't right and will probably come back to haunt me.

I am currently running Debian Unstable, with a custom kernel 2.6.18.2 and here is the problem.

I have an older model bttv card that is recognized as such but not correctly identified (Zoltrix TVMAX). I used to have to 'rmmod bttv' to unload it and then do a 'modprobe bttv card=15 tuner=6' to get the correct driver to load. While this solution is okay, I added the parameters to /etc/modules to automate this process on boot up.

Recently, due to either me messing around with a usb camera or upgrading my kernel/distro, this no longer works resulting me in having to do the rmmod - modprobe commands again.

I was advised at another forum to add options under alias char-major-81-* videodev in /etc/modprobe.d/aliases but I have no idea as to what the correct syntax would be and the nvidia example didn't offer much in the way of clues.

I also read it should be possible to set this card up properly using udev rules but again I run into the same problem with syntax and how to proceed.

What I finally ended up doing was going into bttv-cards.c in the kernel and overwriting the generic card parameters with the parameters for the card I wanted and then compiling the kernel with these changes built in. It works but it's a bit extreme. It also means that I will have to perform surgery everytime I want to upgrade my kernel. There must be an easier way.
 
Old 11-17-2006, 02:25 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by ethyrdude
I have a small problem that I have sort of solved but I know my solution isn't right and will probably come back to haunt me.

I am currently running Debian Unstable, with a custom kernel 2.6.18.2 and here is the problem.

I have an older model bttv card that is recognized as such but not correctly identified (Zoltrix TVMAX). I used to have to 'rmmod bttv' to unload it and then do a 'modprobe bttv card=15 tuner=6' to get the correct driver to load. While this solution is okay, I added the parameters to /etc/modules to automate this process on boot up.

Recently, due to either me messing around with a usb camera or upgrading my kernel/distro, this no longer works resulting me in having to do the rmmod - modprobe commands again.

I was advised at another forum to add options under alias char-major-81-* videodev in /etc/modprobe.d/aliases but I have no idea as to what the correct syntax would be and the nvidia example didn't offer much in the way of clues.

I also read it should be possible to set this card up properly using udev rules but again I run into the same problem with syntax and how to proceed.

What I finally ended up doing was going into bttv-cards.c in the kernel and overwriting the generic card parameters with the parameters for the card I wanted and then compiling the kernel with these changes built in. It works but it's a bit extreme. It also means that I will have to perform surgery everytime I want to upgrade my kernel. There must be an easier way.

Add a file called say tvcard in /etc/modprobe.d/ with this for the contents.

Code:
## Added by me for proper detection of tuner for TV card

options bttv card=15 tuner=6
You do not need the char-major line it should already be in the aliases file.
 
Old 11-17-2006, 04:52 PM   #3
ethyrdude
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you very much! I can't believe how easy that was!
 
  


Reply

Tags
insmod



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
Kernel upgrade / modprobe question. Br. Nicholas Slackware 10 04-16-2006 11:47 AM
Need to un-modprobe question jbuckley2004 Linux - General 2 01-25-2006 03:01 PM
modprobe question littleking Slackware 8 12-04-2003 12:15 PM
modprobe - simple question smiley Linux - Software 6 06-15-2003 12:50 PM
Quick question about modprobe calimer Linux - Hardware 5 04-24-2003 12:58 PM

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

All times are GMT -5. The time now is 07:25 AM.

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