LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2005, 10:47 AM   #1
GregLille
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Rep: Reputation: 0
How compile a new driver


Hi,

I found a C source driver for my network card.

The question is : How can I compile this source code with Linux in order to use it ?
 
Old 01-04-2005, 12:17 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
well depends on how it's delivered - if you get a Makefile and configure script, as in many source packages, it often goes like

Code:
./configure
make
su
<root password>
make install
but if you do not get a Makefile, then you probably have to use cc (gcc if you use linux) to compile the C-code...
 
Old 01-05-2005, 02:31 AM   #3
GregLille
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Original Poster
Rep: Reputation: 0
In fact I have no makefile, juste c-code.
I use Linux, so if i just compile the c-code, i won't need anything else ?

If compile is ok, how can i configure manually my device ?
 
Old 01-05-2005, 05:42 AM   #4
JrLz
Member
 
Registered: Mar 2004
Location: Jakarta
Posts: 164

Rep: Reputation: 30
you just need to compile it, and you'll have an object file (*.o)
you can load the object file as a module with modprobe / insmod
and there you go..........
for network , you can type man ifconfig
 
  


Reply



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 compile a driver Kuki Linux - Newbie 2 03-04-2004 04:21 PM
driver compile rcarlino Mandriva 0 08-25-2003 07:22 AM
How to compile a driver with the kernel? Kermeat Linux - General 5 02-11-2003 04:04 AM
How do I compile a driver lexy Linux - Newbie 3 12-16-2002 04:35 PM
How to compile a network driver. vsuresh25 Linux - General 1 08-31-2001 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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