D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Kernel 2.6 and module parameters

 

Simon Robert wrote:
> Robin Cornelius wrote:
>   
>> Keith Abraham wrote:
>>     
>>> After a litle work I've managed to get my tv card working in my Debian
>>> system using
>>>
>>> modprobe saa1734 card=63 tuner=38
>>>
>>> Unfortunately I can't make this a permanent solution.
>>>
>>>       
>> You need to set this kind of stuff up in the /etc/modprobe.d folder.
>> There should be a bunch of stuff already there and also check the
>> modprobe.d manpage.
>>
>> You can set all module parameters in there as well as run custom  stuff
>> before or after modules and ensure modules load in the correct order.
>>
>> The file /etc/modules also controls any modules that will be loaded for
>> you. Eg if you want to force load a module then put its name in there
>> and set its parameter stuff up in /etc/modprobe.d/
>>
>>
>> Hope this helps
>>
>>
>>     
> what TV card is it? I suggest you try loading a live disk like knoppix, 
> or maybe
> mandriva one, which will probably detect the card automaticaly. Then you 
> can do an lsmod and see which modules are needed and add them to the 
> debian start up scripts. Or if they won't load recompile your debian 
> kernel to include them. Or just maybe use a distro that is better on 
> detecting and installing TV cards. Mine is somewhat obscure, but 
> k/ubuntu  suse, mephis and knoppix all detected it.
>
> Simon
>
>   
The TV card is a KWorld PVR1734 and I've managed to solve my problem.

My procedure was:-
Initially neither the tuner not the card was recognised. A quick look 
through
dmesg showed the card didn't produce an identifier and therefore dmesg
provided a list of cards with their applicable numbers.  I identified my 
card
from this list and found that the saa1734 module was required. lsmod showed
that the saa1734 module was available. Then I used a small script which 
cycled
through all the tuners until it found a tuner which worked.
See:-

http://www.linuxtv.org/v4lwiki/index.php/Main_Page

Thus I had the card and tuner number to pass to the saa1734 module.
I had no problem passing these parameters to the saa1734 module using
modprobe from a console. My problem was making this happen during bootup.

I achieved this by creating a text file called saa1734 in the 
/etc/modprobe.d
directory (it's a Debian system) containing the following lines:-

alias char-major-81-0 saa7134
options saa7134 card=63 tuner=38

The card also has FM radio which I'll try to get working when I have time.

I seems to me that info on passing parameters during bootup with 2.6 kernels
is pretty scarce or at best vague (or perhaps I'm getting thick in my 
old age).

Thanks to Robin whose mail showed me I was on the right track.

Keith



-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html