Compiling Kernel Drivers for SUSE 10 By Example
Last Updated: 2005-12-17
Compiling Kernel Drivers for SUSE 10 By Example
Novell Cool Solutions: Feature
By Peter Van den Wildenbergh
Posted: 3 Nov 2005
Getting a Logitech Quickam (Zoom) working under SuSE Linux 10
License and Disclaimer
See http://www.opencontent.org/opl.shtml for the full software and documentation license. Basically, you can copy, redistribute, or modify this "how to," provided that modified versions, if redistributed, are also covered by the OpenContent License. Please e-mail a copy of your modified document to pvdw <@> criticalcontrol <.> com. Use this document at your own risk; it comes with no warranty. See the OpenContent License mentioned above.
Problem
Intermediate Linux users and Linux newbies are often turned away from Linux because they can't get a particular driver to work.
If the driver isn't available in a .rpm, things can get complicated, read compiling from source...
On top of that a standard SUSE 10 install requires some upfront steps before a driver can be compiled without errors.
Environment
SUSE Linux 10 with kernel 2.6.13.15
I did only test the below explained procedure on a SUSE 10, but it should work on SUSE 9.x aswell (if you alter the kernel version numbers).
Preparation
First make sure you have installed the kernel-sources, and the version of the sources is correct.
If you don't know what kernel version is currently installed on your SUSE try:
Command:
|
It should come back with something like:
Command:
|
telling you that you are using version 2.6.13-15-default.
To see if sources are installed you can either startup YaST (software management) or just type:
Command:
|
On my system this returns:
Command:
|
Note the line kernel-source.
We also will need make and gcc, test for this the same way:
Command:
|
If any of these packages are missing install them using YaST.
Now log in into a root console (superuser) and configure the compile environment to reflect your actual set up.
Command:
|
That last statement should comeback with something like:
Command:
|
As with everything with Linux things can be donme in different ways.
The same as above can be achieved by executing the following as root:
Command:
|
If you don't do these steps chances are big you get a
Command:
|
error when trying to compile the driver(s) you need.
To make things complete, you also need to put Module.symvers into the right place.
Command:
|
Whatever approach you use, you are now ready to compile a kernel module.
Note: If you run a YaST update and a new kernel gets installed you might want to download the new kernel sources too, and adjust your compile environment, and recompile the driver(s).
Example: Getting a Logitech Quickam (Zoom) working under SuSE Linux 10
Command:
|
(take a peek in http://www.saillard.org/linux/pwc/files to see the current release of this driver)
Command:
|
Done! Fire up XawTV and start playing.
Appendix
Additional Documentation Sources:
http://www.saillard.org/linux/pwc
Originally Posted by Skylinux @ 2005-12-17 10:18:56
Last update by Skylinux @ 2005-12-17 10:19:54
No Comments yet .....
Add Your Comment:
Note: All posts require administrator approval. Please allow 24 hours for message approval.