LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-19-2008, 06:06 PM   #1
CoffeeKing!!!
Member
 
Registered: Mar 2008
Posts: 117

Rep: Reputation: Disabled
Questions about the compiling process


I have a syntek webcam driver and did the following:

$ make
$ sudo modprobe videodev
$ sudo modprobe v4l1-compat
$ sudo insmod stk11xx.ko

(the insmod line won't work unless I'm in the Stk... directory.) The others I can do from home.

gksu gedit /etc/modules:
videodev
v4l1-compat
stk11xx.ko (was it necessary to add this one?)

gksu gedit /etc/rc.local:
home/<my user name >/syntekdriver/trunk/driver/st k11xx.ko

As of now the syntek driver is located on my desktop so this line:"
gksu gedit /etc/rc.local:"
is actually
/home/my name/Desktop/stk11xx-1.3.1/st k11xx.ko

After running all of these commands in order i can get the camera to turn on, even after a reboot.

1.Should I have untarred the module into another directory?

2.why was I able to use different directories for the insmod and modprobe commands?

3. Exactly what are videodev and v4l1-compat?

4. Was it really necessary to put the driver into the modules script?

Last edited by CoffeeKing!!!; 03-19-2008 at 06:08 PM.
 
Old 03-19-2008, 06:31 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
If you place the built module under your /lib/modules/running-kernel_version/extra. If extra does not exist create it. Then place the built module file in there. Now run the comnad ' depmod -a '. This will rebuild the system.map file so no modprobe can be used to call the module. modprobe only works with the system.map. So one does need to know where the module is. insmod command needs to know the exact path to the module and must use the full name with extension. modprobe does not require the extension. autoloading of the modules can be done many ways. It varies from distro to distro to how one can do it. Posting the distro in question may help define a good place to put those modules to be loaded on start. For question 3 they are modules. I would google ' linux module ' to get a better description than I can put it.

Brian
 
Old 03-19-2008, 09:29 PM   #3
CoffeeKing!!!
Member
 
Registered: Mar 2008
Posts: 117

Original Poster
Rep: Reputation: Disabled
Thanks Brian,
I'm running Kubuntu 2.6.20-16-generic

1.What is the history of the "running-kernel_version/extra" directory?

2. I'm guessing that if I had built the stk11 module in this new folder and ran depmod, it would have tried to create a map of the module - and the modules it depends on- and then, modprobe would load the module for me?

3. If depmod had been succesful would i have had to put that insmod in the rc.local file?

4. Why did I have to change directories for the first two modprobes and then the insmod. The modprobes were done in the drivers directory and the last could only be done from /myname@???

Thanks alot to anyone who answers these questions.
 
Old 03-20-2008, 03:57 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
1 A few modules I have are placed in a directory called extra. Doesn't really matter exactly. Can be in any directory under kernel in the /lib/modules/running_kernel_version_number. Like mine /lib/modules/2.6.24.3/extra

2 You don't have to build the module in that directory. I build all mine in my home directory under a temp directory. Most modules compile as so.
./configure - This command script is used to verify you have all required dependencies.
make - This compile the source code
make install - Places the module in your /lib/modules/{kernel-version} and runs the depmod -a command to rebuild the system.map file. Not all do this command or all of it. The Makefile in the source may have other sections like uninstall and clean and others. All differ slightly.

3 After you place the module in /lib/modules/{kernel-version}/extra and ran depmod -a then you can use the modprobe command to call it without the .ko extension of course.

4 modprobe uses the system.map file to locate the location of the modules. You can use the modprobe command anywhere and call the module needed.

Brian
 
  


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
Installation Questions - Just trying to ease the process crisnoh Slackware - Installation 6 03-18-2008 06:17 AM
Process Owner Questions Lawrentium Linux - Security 2 11-22-2006 10:20 PM
a questions about starting process fetsh Linux - Newbie 2 06-03-2005 07:42 PM
Kernel compiling process problem. make bzimage fails. RJARRRPCGP Linux - Newbie 2 08-24-2004 04:14 PM
kernel build process on SuSE 9 questions. Pcghost Linux - Distributions 9 12-05-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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