LinuxQuestions.org
Visit Jeremy's Blog.
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 04-07-2005, 02:57 PM   #1
stonux
Member
 
Registered: Oct 2003
Distribution: SuSE, RH
Posts: 55

Rep: Reputation: 15
statically link a network card driver into kernel


hi

I got a r8169 chip set network card running on SuSE 7.3 as a module.
The manufacturer (http://www.surecom.com.tw) supplied the Linux driver on the floppy. WOW!

the following tweak doubled the performance :-)
Code:
/* max supported gigabit ethernet frame size -- must be at least (dev->mtu+14+4).*/
#define MAX_ETH_FRAME_SIZE      8000
/* #define MAX_ETH_FRAME_SIZE   1536 */
Next thing I want to do is to statically link the driver into the kernel. The aim is to make a diskless netboot kernel with mknbi.

Theoretically, it is possible to load the module using an initrd, but I think statically linking is easier to do.
I had a look at drivers/net/Makefile and Config.in, but it is not straight-forward to me how to tweak them to compile r8169.c into the kernel.


Any suggestions to find the easiest way?
 
  


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 compile D-Link DFE530TX network card driver in RH Linux 7.3 zy101 Linux - Hardware 6 04-25-2008 08:16 AM
g++ statically link stdc++ problem berty Programming 1 05-16-2005 06:00 PM
D-Link PCI Network Card driver installation help Kaiser Linux - Networking 9 09-09-2003 03:44 PM
eep10pci network card driver for a RedHat 2.4.7-10 Kernel Shadow_Walker Linux - Networking 6 12-29-2001 02:25 AM
Can you link multiple network card to appear as one? Paul_assheton Linux - Networking 1 11-28-2000 11:35 PM

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

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