LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-21-2007, 12:35 PM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
using drivers from c files


I have found drivers for my lan card here
http://www.linux-m32r.org/lxr/http/s.../net/sc92031.c

but can any one tell me how to compile and install them to be able to use them it is a C program which I do not understand .
 
Old 10-22-2007, 06:25 AM   #2
klytu
Member
 
Registered: Mar 2004
Location: Eastern United States
Distribution: Ubuntu
Posts: 65

Rep: Reputation: 15
The link you give is for the source code of a driver that is already compiled into the 2.6 linux kernel. If you are using that kernel version (or any of its subversions), the driver is already included so you wouldn't need to compile it separately.
 
Old 10-22-2007, 06:46 AM   #3
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by klytu View Post
The link you give is for the source code of a driver that is already compiled into the 2.6 linux kernel. If you are using that kernel version (or any of its subversions), the driver is already included so you wouldn't need to compile it separately.
that driver came in kernel 2.6.21 and above I have old kernel which I will not upgrade so I need to compile that file only in case some one can tell then tell it might be helpful to many others who will read this post as to add c codes of their drivers to kernel
 
Old 10-22-2007, 09:47 AM   #4
klytu
Member
 
Registered: Mar 2004
Location: Eastern United States
Distribution: Ubuntu
Posts: 65

Rep: Reputation: 15
Quote:
Originally Posted by tkmsr View Post
that driver came in kernel 2.6.21 and above I have old kernel which I will not upgrade so I need to compile that file only in case some one can tell then tell it might be helpful to many others who will read this post as to add c codes of their drivers to kernel
Others more knowledgeable than me can post back if I am incorrect, but I don't think you can do this with the source code you linked. You would need to find a driver compatible with the version of the kernel that you are running. If there isn't such a driver available, you would have to upgrade to the newer kernel version.
 
Old 10-22-2007, 01:05 PM   #5
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by klytu View Post
Others more knowledgeable than me can post back if I am incorrect, but I don't think you can do this with the source code you linked. You would need to find a driver compatible with the version of the kernel that you are running. If there isn't such a driver available, you would have to upgrade to the newer kernel version.
My purpose of asking this questions is to learn how to compile a driver from source and be able to install it in an existing kernel and help other people who would also like to know the same I at times teach linux to people free and then I would help people in getting rid of silly problems

for this purpose I am even trying to create a linux distribution that is for the people by the people and by the people might be user feel his own contribution to linux . compiling and upgrading to a new kernel is an easy task I have even Open Suse 10.3 which already has the driver I am reffering to .
 
  


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
How to include the files in the device drivers? shendeswanand Linux - General 1 01-03-2006 01:47 PM
Editing Files needed for nvidia-6626 drivers. DesyphER Linux - Software 4 02-26-2005 02:54 AM
unable to run mp3 files with alsa drivers braveneworld Linux - Newbie 6 08-18-2004 03:03 AM
header files and nvidia drivers Zoko Linux - Software 5 05-29-2004 06:39 PM
Foomatic: How to generate ppd drivers from xml files? johnny1959 Linux - Newbie 0 02-17-2004 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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