How to build e1000e-3.0.4 for VyOS (progress..)

Hello members.

This is a document about driver development for VyOS.

1, build kernel module

http://vyos.net/wiki/Rebuild_VyOS_kernel_Step

Note: Please checkout proper kernel version.

2, Download driver source

Sample Driver

Download Intel Drivers and Software

http://downloadmirror.intel.com/15817/eng/e1000e-3.0.4.tar.gz

Is this driver for Intel 82579V ? I found this issue so I tried this driver.
http://bugzilla.vyos.net/show_bug.cgi?id=141

3, build

tar xvfz ./e1000e-3.0.4.tar.gz
cd e1000e-3.0.4/src
export KSRC=/path/to/build-iso/pkgs/linux-image/debian/build/build-amd64-none-amd64-vyos
make

You can find new e1000e.ko binary on current directory.

And replace e1000e.ko on VyOS

Maybe work well. I haven’t test environment for this driver.

TODO

  • Build deb package.


Hiroyuki Sato

https://github.com/hiroyuki-sato/vyos-e1000e-driver
I succeed to create package, however I can’t install properly yet.

Problem

Currently I removed original e1000e.ko module in preinst,
Then install new one.

But when I execute make iso on build-iso module
I got the following error

W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mkconf: MD subsystem is not loaded, thus I cannot scan for arrays.
W: mdadm: failed to auto-generate temporary mdadm.conf file.
W: mdadm: no configuration file available.
                                         
xargs: aptitude: exited with status 255; aborting
P: Begin unmounting filesystems...
E: chroot build failed

I also filed issue list
https://github.com/hiroyuki-sato/vyos-e1000e-driver/issues/1

Does anyone have an idea for avoid this error?

My alternative idea is to replace e1000e driver in linux-image.
But I think it is hard to maintain.

Best regards

Hiroyuki Sato