How do you compile latest intel nic drivers into Freenas/Freebsd

Status
Not open for further replies.

edgal

Cadet
Joined
Apr 18, 2012
Messages
1
Before I start I apologize I am a newbie : (
So I will be prone to asking dumb questions.

downloaded the new drivers for freebsd from the Intel
http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=17509

I tried the Intel install instructions and did not get very far.
http://downloadmirror.intel.com/17509/eng/README.txt


Building and Installation
=========================

NOTE: This driver is only supported as a loadable module at this time.

In the instructions below, x.x.x is the driver version as indicated in the
Name of the driver tar file.



1. Move the base driver tar file to the directory of your choice. For
Example, use /home/username/em or /usr/local/src/em.

2. Untar/unzip the archive:

tar xzvf em-x.x.x.tar.gz

This will create an em-x.x.x directory.

3. To create a loadable module, perform the following steps.

a. To compile the module

cd em-x.x.x
make

b. To install the compiled module to the system directory:

make install

c. If you want the driver to load automatically when the system is booted:

1. Edit /boot/loader.conf, and add the following line:

if_em_load="YES"

I can't get past step 3A .I get the following error. "/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree"

trying to fix a issue with momentary iscsi disconnects
Hardware: Intel t-350 quad port nic


FreeNAS-8.0.4-RELEASE-x64 (10351)
FreeBSD 8.2-RELEASE-p6

If any one can help it would be greatly appreciated.
EL
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Hi El,

I understand your logic for putting this question in the How To Compile FreeNAS Thread, however you should have started a new thread.

If you follow the directions in the How To Compile Freenas thread, the sources will be downloaded for you. Before you try to compile the new driver you should look at the source for the current driver and see what version is already being used, you might be surprised.

After you follow the FreeNAS compiling instructions, the source will be downloaded and you should find the drivers in FreeBSD/src/sys/modules, this directory has subdirectories for many different drivers, you'll need to look to find what you want.

If you haven't done any of this before, there is a lot to learn and you should do some more reading/searching/experimenting.
 
Joined
May 27, 2012
Messages
2
Hi edgal,

Did you found your way to compile the latest intel nic drivers into Freenas ?

I am doing the same thing you do now.

Hope to get some of your advised.

Thank you in advances.

Regards,
Peter
 

bogi

Cadet
Joined
Oct 9, 2012
Messages
1
I think, "can't find kernel source tree" means that your distribution (when you install the freebsd/nas) is not including the kernel source


-----------------------------
Bogi Aditya
Sisfo - IMTelkom
http://bogi.blog.imtelkom.ac.id
 
Status
Not open for further replies.
Top