View unanswered posts | View active topics It is currently Wed May 22, 2013 6:11 pm



Reply to topic  [ 8 posts ] 
 Compiling an e1000e driver 
Author Message

Joined: Mon Feb 21, 2011 9:01 pm
Posts: 7
Post Compiling an e1000e driver
Sorry for asking a stupid question again.
I have downloaded the Driver from sourceforge.net and I found that there is no "e1000e.o" file but only some source file like .h or .c file. I am wondered how can I retrieve the .o file from this tar file??


Attachments:
intel-igb-2.4.13.tar.gz [222.22 KiB]
Downloaded 55 times
Tue Feb 22, 2011 11:21 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3874
Post Re: Customize OEM.tgz with ESXi 4.1
You have to compile the driver for ESXi. I have links to a few samples here - http://www.vm-help.com/esx41/developing_for_ESXi.php

_________________
Dave Mishchenko
VMware vExpert 2009-2012
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Wed Feb 23, 2011 1:35 am
Profile

Joined: Mon Feb 21, 2011 9:01 pm
Posts: 7
Post Re: Customize OEM.tgz with ESXi 4.1
Hi All,

I think I may need more assist before I can finish that...
Let me describe more details in the steps I done..

1.I installed a CentOS 5.5_64bit on a VMServer virtual machine.

2.Followed the instruction, I installed the Development Tools.

3.I downloaded the VMware-esx-public-source-4.0-162945.tar.gz and put it in the /usr/src location.

4.I created a directory under /usr/src and named vmware-oss.I untar the OSS source into the /usr/src/vmware-oss directory.

5.I created a "drivers" sub-directory under the vmware-oss directory, after that, I extracted the vmkdrivers-gpl.tgz into the drivers folder.
6.I tried to run the ./build-vmkdrivers.sh, although getting a lot of errors, but finally still "ALL Done".

7.I downloaded the "intel-igb-2.4.13.tar.gz" and untar it, and numbers of "e1000_xxxxx.c" and "e1000_xxxxx.h" files are inside.

8.I am not sure which drivers are suitable for my network chip, so I tried the "e1000_82575.c" and "e1000_82575.h". I copied this two files to the following location:
"/usr/src/vmware-oss/drivers/vmkdrivers/src26/drivers/net/e1000e"

9.I made a copy of the "build-vmkdrivers.sh" and named it "build-vmke1000e.sh", chmod to "777".

10.I used vi to copy from one of the intel network card statement, changed the last two statements to:
include vmkdrivers/src26/include/linux/autoconf.h -c -o bora/build/scons/build/vmkdriver-igb.o/release/vmkernel64/SUBDIRS/vmkdrivers/src26/drivers/net/igb/e1000_82575.o vmkdrivers/src26/drivers/net/igb/e1000_82575.c

I placed this in a new line and saved the ./build-vmke1000e.sh(as atttached)

11.I run the ./buildvmke1000e.sh, and there are numbers of errors when it loaded to the "e1000_82575.c". (as attached in the putty.txt) file.

I have no idea which steps have done wrongly..I have spend two weeks on this...still confusing.

please help. Thanks! :cry:


Attachments:
File comment: vmke1000e_modified.
build-vmke1000e_statement.png
build-vmke1000e_statement.png [ 109.22 KiB | Viewed 990 times ]
File comment: Putty log ssh to the CentOS 5.5
putty.log [36.9 KiB]
Downloaded 42 times
Tue Mar 01, 2011 6:12 pm
Profile

Joined: Mon Feb 21, 2011 9:01 pm
Posts: 7
Post Re: Customize OEM.tgz with ESXi 4.1
May someone give some help?Please. :roll:


Thu Mar 03, 2011 6:18 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3874
Post Re: Compiling an e1000e driver
What's the PCI id of the device you're trying to get working?

_________________
Dave Mishchenko
VMware vExpert 2009-2012
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Thu Mar 03, 2011 7:52 pm
Profile

Joined: Mon Feb 21, 2011 9:01 pm
Posts: 7
Post Re: Compiling an e1000e driver
The DEVICE ID for the onboard network card is:
8086:1503

Thanks!


Fri Mar 04, 2011 7:02 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3874
Post Re: Compiling an e1000e driver
Have you checked the VMware vSphere downloads for an updated e1000e driver? You can also pull source from here - http://sourceforge.net/projects/e1000/files/. If there's no updated driver from VMware what is the VMware source code package using for a source file for this driver?

You'll want to see at source that is at least from Nov 2010 as that seems to be when support for this NIC was added to Linux.

_________________
Dave Mishchenko
VMware vExpert 2009-2012
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Sun Mar 06, 2011 11:00 pm
Profile

Joined: Mon Feb 21, 2011 9:01 pm
Posts: 7
Post Re: Compiling an e1000e driver
After 3 weeks concentrated on the driver problem..I finally gived up and bought another Intel Desktop 82540M PCI Network adapter..Now the installation is done and works prefectly.

Anyway, Thanks for your help, Dave. :D


Mon Mar 21, 2011 9:13 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.