From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A3456A04B1; Tue, 24 Nov 2020 15:27:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 25EF6C914; Tue, 24 Nov 2020 15:27:28 +0100 (CET) Received: from mail-oi1-f194.google.com (mail-oi1-f194.google.com [209.85.167.194]) by dpdk.org (Postfix) with ESMTP id 97A6EC90E for ; Tue, 24 Nov 2020 15:27:25 +0100 (CET) Received: by mail-oi1-f194.google.com with SMTP id t143so23936941oif.10 for ; Tue, 24 Nov 2020 06:27:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NlTONbBOTNJFCj1ncf8Bl5CGLB3zgYDWSAubYztsbLQ=; b=FOKYvIwLcfZ1KHQxBxNi01PWlzQ5Wf2FMEwckfrYrUjF9jz0eJEw3TyH+0JBzL38kx JRzBiWCd6abvUvnPJ+VptkfweHi2/vqiVMnIFXzfSZBeq6U2LGrlaYZrL7QhiA6g1aIY WiNOTpc/xOkTaAV9S63klA64s3augK9UHm9WA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NlTONbBOTNJFCj1ncf8Bl5CGLB3zgYDWSAubYztsbLQ=; b=RVv5U7m8I28x9w00KCGvlYKLmW49rKz1k9EEDJ3CE7Vl49bkXPsu/57EirFHTPOL6A t7Jp7FrWle3dgKguL3kFTHt/fhXRB+MZXdJ2La5hgo10Gf9Ly/1vMKqlV+YyU4a2t6nm 58VdLXBjkpHtAUVcV6yT/zllsWNEV8Uc398Plo0q+nYo2tXto2mGNayWt2bQrosyAwqI Z1UT6EiUuLv/8ky00+uFcTnzAkY4yL04yQ/8t11BSLJtzjChRdetTjat5flh7AzKGG7U TLQPwGb5Q2oEA5Hf+CGYtfzlg7gQBI+UGyScgup5OtSBrSMmK6EzgXmRe3RfyFX3ajXL tTrQ== X-Gm-Message-State: AOAM531wUIwrxBtov/4nm0aAIpuum69flmlKNwqlnBOiEr5fOVzUfCyr bu0zC+eEWrVxHMDyK0N7qsOPp8nk8X8pgW7cjW7aLA== X-Google-Smtp-Source: ABdhPJx2mK4/ZTZYMV/vvC4svkZ53hJJdoWtQXgP0QtLAv5AZvhZFU0xrrBobtUkzK3DgxdYDl4/L0bOhwbBTJFIwRI= X-Received: by 2002:aca:53cc:: with SMTP id h195mr2876839oib.168.1606228043761; Tue, 24 Nov 2020 06:27:23 -0800 (PST) MIME-Version: 1.0 References: <6ba21a558bc1d6049a77d09ed52d12627055db8a.1605891269.git.anatoly.burakov@intel.com> <617638b7bdd97cf232289909fcd74bcc82d79545.1606224358.git.anatoly.burakov@intel.com> In-Reply-To: <617638b7bdd97cf232289909fcd74bcc82d79545.1606224358.git.anatoly.burakov@intel.com> From: Ajit Khaparde Date: Tue, 24 Nov 2020 06:27:07 -0800 Message-ID: To: Anatoly Burakov Cc: dpdk-dev , Thomas Monjalon , Ferruh Yigit Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH DPDK-KMODS v2] linux/igb_uio: add compile instructions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Nov 24, 2020 at 5:26 AM Anatoly Burakov wrote: > > Currently, compilation instructions for igb_uio are missing. Add them, > as well as a top-level INSTALL file referring users to per-OS > subdirectories. > > Signed-off-by: Anatoly Burakov > Reviewed-by: Ferruh Yigit Reviewed-by: Ajit Khaparde > --- > INSTALL | 5 +++++ > linux/README.rst | 45 +++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 50 insertions(+) > create mode 100644 INSTALL > create mode 100644 linux/README.rst > > diff --git a/INSTALL b/INSTALL > new file mode 100644 > index 0000000..f9ef15c > --- /dev/null > +++ b/INSTALL > @@ -0,0 +1,5 @@ > +Installing DPDK Kernel Drivers > +============================== > + > +For instructions on how to install kernel drivers for each OS, please refer to > +the respective subdirectories' ``README`` files. > diff --git a/linux/README.rst b/linux/README.rst > new file mode 100644 > index 0000000..11dd501 > --- /dev/null > +++ b/linux/README.rst > @@ -0,0 +1,45 @@ > +Building Linux Drivers > +====================== > + > +Prerequisites > +------------- > + > +The system must have relevant Linux kernel headers or source code installed. > + > +Build > +----- > + > +To build ``igb_uio`` driver, simple run ``make`` command inside the > +``igb_uio`` directory: > + > +.. code-block:: console > + > + cd igb_uio > + make > + > +If compiling against a specific kernel source directory is required, it is > +possible to specify the kernel source directory using the ``KSRC`` variable: > + > +.. code-block:: console > + > + make KSRC=/path/to/custom/kernel/source > + > +Load the driver > +--------------- > + > +The ``igb_uio`` driver requires the UIO driver to be loaded beforehand (these > +commands are to be run as ``root`` user): > + > +.. code-block:: console > + > + modprobe uio > + insmod igb_uio.ko > + > +Clean the build directory > +------------------------- > + > +To clean the build directory, the following command can be run: > + > +.. code-block:: console > + > + make clean > -- > 2.17.1