diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2017-08-27 21:28:10 +0300 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2017-08-27 21:28:10 +0300 |
commit | 14b9fa3da83462070647869638db28de805efb84 (patch) | |
tree | 7fc1d411d82dc132c2d7801eddc428590eb16e3f | |
parent | 8a3e8b01a74a22826ea844422928cceb40eec425 (diff) |
Build netmap with e1000 support
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | netmap/http/preseed.cfg | 2 | ||||
-rwxr-xr-x | netmap/scripts/netmap.sh | 5 | ||||
-rwxr-xr-x | netmap/scripts/odp.sh | 2 |
4 files changed, 6 insertions, 4 deletions
@@ -8,3 +8,4 @@ Create VM images using packer.io ## Generated images boot examples 1. `qemu-system-x86_64 -m 4G -smp 4 -drive file="replace-generated-image",if=virtio -enable-kvm -cpu host` +2. `qemu-system-x86_64 -m 4G -smp 8 -device e1000,netdev=net0 -netdev tap,id=net0 -drive file=tester,if=virtio -enable-kvm -cpu host` diff --git a/netmap/http/preseed.cfg b/netmap/http/preseed.cfg index 730b249..f57b3cc 100644 --- a/netmap/http/preseed.cfg +++ b/netmap/http/preseed.cfg @@ -45,7 +45,7 @@ d-i apt-setup/contrib boolean true # include packages d-i pkgsel/include string sudo git make linux-headers-$(uname -r) ethtool \ build-essential vim automake libtool libssl-dev asciidoctor asciidoctor-doc \ - libcunit1 libcunit1-dev + libcunit1 libcunit1-dev linux-source d-i pkgsel/install-language-support boolean false d-i pkgsel/update-policy select unattended-upgrades diff --git a/netmap/scripts/netmap.sh b/netmap/scripts/netmap.sh index 08c7aef..ef21537 100755 --- a/netmap/scripts/netmap.sh +++ b/netmap/scripts/netmap.sh @@ -1,7 +1,8 @@ #!/bin/sh +tar xf /usr/src/linux-source-*.tar.xz git clone https://github.com/luigirizzo/netmap cd netmap -./configure -make -j24 +./configure --kernel-sources=/home/packer/linux-source-4.9 +make -j 16 sudo make install diff --git a/netmap/scripts/odp.sh b/netmap/scripts/odp.sh index dcfefe5..7f7e0d3 100755 --- a/netmap/scripts/odp.sh +++ b/netmap/scripts/odp.sh @@ -9,5 +9,5 @@ cd odp #--with-netmap-path=`pwd`/netmap --enable-debug #--with-cunit-path=$HOME/cunit-install/$CROSS_ARCH $CONF ./configure --prefix=$HOME/odp-install --with-netmap-path=`pwd`/netmap --enable-debug -make -j 24 +make -j16 make install |