Uploaded image for project: 'vpp'
  1. vpp
  2. VPP-1262

VPP 18.04 vpp-dpdk-dkms installation fails on Ubuntu 16.04

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 18.04
    • Build system
    • None
    • root@tqt102:/opt/vpp# uname -a
      Linux tqt101 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
      root@tqt102:/opt/vpp#

      With VPP 18.04, installation of vpp-dpdk-dkms_18.02.1-vpp1_amd64.dep fails.

      root@tqt102:/opt/vpp/dpdk# dpkg -i vpp-dpdk-dkms_18.02.1-vpp1_amd64.debSelecting previously unselected package vpp-dpdk-dkms.
      (Reading database ... 264709 files and directories currently installed.)
      Preparing to unpack vpp-dpdk-dkms_18.02.1-vpp1_amd64.deb ...
      Unpacking vpp-dpdk-dkms (18.02.1-vpp1) ...
      Setting up vpp-dpdk-dkms (18.02.1-vpp1) ...
      Loading new vpp-dpdk-dkms-18.02.1-vpp1 DKMS files...
      First Installation: checking all kernels...
      Building only for 4.4.0-109-generic
      Building initial module for 4.4.0-109-generic
      ERROR (dkms apport): unable to determine source package for vpp-dpdk-dkms
      Error! Bad return status for module build on kernel: 4.4.0-109-generic (x86_64)
      Consult /var/lib/dkms/vpp-dpdk-dkms/18.02.1-vpp1/build/make.log for more information.
      root@tqt102:/opt/vpp/dpdk# less vpp-dpdk-dkms_18.02.1-vpp1_amd64.deb
      vpp-dpdk-dkms_18.02.1-vpp1_amd64.deb:
      new debian package, version 2.0.
      size 1984 bytes: control archive=1044 bytes.
      281 bytes, 11 lines control
      239 bytes, 3 lines md5sums
      906 bytes, 31 lines * postinst #!/bin/sh
      327 bytes, 14 lines * prerm #!/bin/sh
      Package: vpp-dpdk-dkms
      Source: vpp-dpdk
      Version: 18.02.1-vpp1
      Architecture: amd64
      Maintainer: vpp-dev@lists.fd.io
      Installed-Size: 13
      Depends: dkms (>= 2.1.0.0)
      Conflicts: dpdk-igb-uio-dkms
      Section: net
      Priority: extra
      Description: DPDK Development Package for VPP - Kernel Modules

          • Contents:
            drwxr-xr-x root/root 0 2018-04-25 16:43 ./
            drwxr-xr-x root/root 0 2018-04-25 16:42 ./usr/
            drwxr-xr-x root/root 0 2018-04-25 16:42 ./usr/share/
            drwxr-xr-x root/root 0 2018-04-25 16:42 ./usr/share/doc/
            drwxr-xr-x root/root 0 2018-04-25 16:42 ./usr/share/doc/vpp-dpdk-dkms/
            rw-rr- root/root 146 2018-04-25 16:41 ./usr/share/doc/vpp-dpdk-dkms/changelog.Debian.gz
            drwxr-xr-x root/root 0 2018-04-25 16:42 ./usr/src/
            drwxr-xr-x root/root 0 2018-04-25 16:42 ./usr/src/vpp-dpdk-dkms-18.02.1-vpp1/
            rw-rr- root/root 240 2018-04-25 16:31 ./usr/src/vpp-dpdk-dkms-18.02.1-vpp1/Makefile
            rw-rr- root/root 209 2018-04-25 16:42 ./usr/src/vpp-dpdk-dkms-18.02.1-vpp1/dkms.conf

      The following files are missing from the .deb:

      rw-rr- root/root 3000 2018-04-19 11:03 ./usr/src/vpp-dpdk-dkms-18.02.1-vpp1/rte_pci_dev_feature_defs.h
      rw-rr- root/root 3043 2018-04-19 11:03 ./usr/src/vpp-dpdk-dkms-18.02.1-vpp1/rte_pci_dev_features.h
      rw-rr- root/root 15149 2018-04-19 11:03 ./usr/src/vpp-dpdk-dkms-18.02.1-vpp1/igb_uio.c
      rw-rr- root/root 3279 2018-04-19 11:03 ./usr/src/vpp-dpdk-dkms-18.02.1-vpp1/compat.h

      The problem is due to the DPDK source moving to the "-stable" directory,
      in this case "dpdk-stable-18.02.1", instead of being in "dpdk-18.02.1".
      The following change is one possible fix.

      diff --git a/dpdk/deb/debian/rules b/dpdk/deb/debian/rules
      index 98b1048..2b23821 100755
      — a/dpdk/deb/debian/rules
      +++ b/dpdk/deb/debian/rules
      @@ -8,7 +8,7 @@ BASE_VER = $(word 1, $(subst -, ,$(VERSION)))
      export DPDK_BUILD_DIR=$(CURDIR)/_build
      export DPDK_INSTALL_DIR=$(CURDIR)/debian/tmp/usr

      SRC=_build/dpdk$(BASE_VER)
      +SRC=_build/dpdk-stable-$(BASE_VER)

      MAKE_ARGS=-C ..

      Maybe the code can be enhanced to use "dpdk-" or "dpdk-stable" as needed.

            Unassigned Unassigned
            lroberts Lee Roberts
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: