faqts : Computers : Operating Systems : Linux : Networking

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 12 people (67%) answered Yes
Recently 3 of 6 people (50%) answered Yes

Entry

i have a source code for a NIC (C program), but then i dun know how to do with it as to make it as my NIC driver !

Jan 4th, 2004 18:09
Kenan Bektas, Liak Kuan Tan,


You need to compile it as object file, i.e cc -c ...
Then, it would create the object file to be loaded as a kernel module.
If everything goes well and compiles the object file, load it using 
insmod or modprob as root.
insmod   module_name_created
modprobe module_name_created
if necessary, copy the module file created to the following directory:
/lib/modules/`uname -r`/kernel/drivers/net/
Good luck,