Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compile newest e1000 driver into kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wario3001
n00b
n00b


Joined: 26 Jun 2006
Posts: 1

PostPosted: Mon Jun 26, 2006 11:06 am    Post subject: compile newest e1000 driver into kernel Reply with quote

I was wondering if anyone has experience with compiling the newest (i.e. v7.1.9) e1000 driver from http://e1000.sf.net/ into a static kernel w/o module support?
Is there some automatic way of producing a kernel patch from those driver sources (out of the box they only support compilation as a module)?
Kernel 2.6.17 does contain an e1000 driver of course, but it's v7.0.33 according to the changelog.
Back to top
View user's profile Send private message
techm2
n00b
n00b


Joined: 01 May 2006
Posts: 3

PostPosted: Tue Jul 25, 2006 1:15 am    Post subject: Reply with quote

Try the following:

1. In the kernel source create a backup of the original e1000 directory:
Code:

cd /usr/src/linux/drivers/net
mv e1000 e1000.orig


2. Create a new e1000 directory and copy the source files from the latest driver:
Code:

mkdir e1000
cp /tmp/e1000-7.1.9/src/* e1000/


3. Replace the Makefile with the one from the original e1000:
Code:

cp e1000.orig/Makefile e1000/Makefile


4. Edit the Makefile to include kcompat.o or apply the following patch:
Code:

--- Makefile   2005-11-24 14:10:21.000000000 -0800
+++ Makefile.new   2006-07-24 18:11:56.000000000 -0700
@@ -32,4 +32,4 @@
 
 obj-$(CONFIG_E1000) += e1000.o
 
-e1000-objs := e1000_main.o e1000_hw.o e1000_ethtool.o e1000_param.o
+e1000-objs := e1000_main.o e1000_hw.o e1000_ethtool.o e1000_param.o kcompat.o



5. Recompile your kernel with the newer driver now in it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum