From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01hn0230.outbound.protection.outlook.com [104.47.33.230]) by dpdk.org (Postfix) with ESMTP id DB8CD1B000 for ; Sun, 24 Jun 2018 13:43:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RAAmr+C4LUl2mkl8nBNF7Z7ZgoxMPErFdK++vj+3SEk=; b=XBWtE/tXZHKKw5iISxc22KPgPCFjJT1i4Qdpa+FCIDaJLM9J/9gpqyHlPZeyHfPKURVdTYLun7v7VBb4yzj5kIC/fzPKVRriFZkddKPynjo2P371hUTwZyQlfzashstQdz6tNpQvYKMkztcMX8o7QQUD6uwjdiihrp/kjNxzv00= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (106.200.236.178) by SN2PR07MB2528.namprd07.prod.outlook.com (2603:10b6:804:7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.19; Sun, 24 Jun 2018 11:43:09 +0000 Date: Sun, 24 Jun 2018 17:13:02 +0530 From: Jerin Jacob To: Gavin Hu Cc: dev@dpdk.org, nd@arm.com Message-ID: <20180624114300.GC9384@jerin> References: <20180619013746.13268-1-gavin.hu@arm.com> <20180619103657.19186-1-gavin.hu@arm.com> <20180619103657.19186-3-gavin.hu@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180619103657.19186-3-gavin.hu@arm.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-Originating-IP: [106.200.236.178] X-ClientProxiedBy: BYAPR03CA0003.namprd03.prod.outlook.com (2603:10b6:a02:a8::16) To SN2PR07MB2528.namprd07.prod.outlook.com (2603:10b6:804:7::6) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1142bfb0-69c6-4e2b-b4e7-08d5d9c7aa4c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:SN2PR07MB2528; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 3:RTxZIqVjtn9ZVXcIQe/dMgXF5crzGGi+7psRAuUbSfgeaBMwKl4ZCOyeuYgIz4dONuroHymqOOklEgBZksGjq9LDg1dzK/ZfPRWZaQ231/II0L5Ui4oB9a5KB0p2rRMDqP+gEtrwQac6RQuFXQAxGZs21wZH+rxc8ffwrbFaTyEH6pdzzP0XZ95axVNtt/OXqPdIkbno8Eu34er9WrqdT+goeuKJzMlfP7FabtitDZZdqFejCp6vyBwqHGt+SOCt; 25:WssgJMBkPec2YP+aAs+TUMkAy7p6jqmGQB9KrxjmbYYBmVHiO6dqd8A81hH2GYSyXHpVW3gyE7Gkadb5grBbz0j3rjsDX57js6elrnV/mcEQASUBi/7YYWP0Wy8OlIHLKZp6C7vlkYJ/S+TITC6jAwrTRXuE7msaHNVsVBJm7oITH89UiFQ+pa62HeTwdCoLjInBVyWfG0pdXEvW9IKDuc549stwP3bClUyhtgOpDBJ7WRph4wGS8dlRyZrmbT6lSC5uRP6orzQa+ts0yp+58nmpqlLQ3e85qBq5qPH1ZDkhhP4liAxEdbN1rkn0YKVT6fGUWSaq/7z9tigovvW7Kg==; 31:z7VeRi15rWV9jU9HdFv/A5SxR/ur2afjWD6AEPXVwlOwzKWw9M/6yIbJBmRiEacqX3Jp9BISteqCLJJsCURcdkSrW5BLS1uwSPSKbWh2TDvW7k8BArjR5wosyn1XH+hemeWn9nYpsHnC62RVeveiH8qwkyEmT2jzjtot7R6cNRhTfs0ZNhelkCbYLj7xXDxOFn9kzU6tQQxQjpC5nDe6oOu2Y4HFIgk3XEwl6uD0yMQ= X-MS-TrafficTypeDiagnostic: SN2PR07MB2528: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 20:mILJ7HaNKdFb73U6plZnQ80oOZ+rIBajxjVF0s9yySKF6wrpNjDGfkK4oOXXOuGBz1xJc2xQqETdMT8f2Hm+ri+lwuysX7pUmM+grDQiulG0FK35NBWFNx54yKiVSwIPzdSDNeDfEAGXBZeUoasgx4ZURPXWhYwBNU1dVL+6+1Yb5Yhn6QSIwRqs7TLoQxaJrBjimH2Ud+/mBFq9UOwdkauIAIg1dYcE0UT+e1ClJEmWfZQ8teBjAZ1qIMVsxG6fnxZLK8ze8W7DaDf3IsoDQ5bJbGFHYOf08G3lrCv5CzqYM5ap2ZbCjzlaLg19T2gQsRgoWHdmKQuq5ck/wFhsxpjE2UCZvigcMHiKHuW4MwCF1X+2AXrQW37PS1TCM8Ug09utRcQIO9uFftMfr05N8i2gC032GecNdLNNU5njcU/geJLsN11sx0C+1fIv1t+jD1HHtEsRjZ4l4CFUw+tzrgcBTPllFyoZOfdMF/8kG9Te/GP1luLaWv7Gv7jlSOmnLexDx1Y40kneVmee6z42+boIH+Q9b4T83NTMCMyo4/gv3tEP8TXMkNP3hBap3je4FLA4TwOew5G/GIm4GrDAe4VM20Lemft+ZhSH3C5erKQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(166708455590820)(73538370219878)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(3231254)(2232096)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:SN2PR07MB2528; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB2528; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 4:XtLXihFMgkcGL61KD/8hqGR8UsC2f00c+ak5ujPuUBDMT01g/18/Iu2kx11Eujf5Flv+tVLY0k7of6KNaUAP6I6msx86cixjXL/Gfc5rtlh8nHELKLIyt++3nccyhju4T5/CDh6ppZQqp1aWRlau52DckshzK6pxyhSjPAai5T3ra6bGZeqb3dQoONQKni9pj5nL1AyhlOv/3EUYwzgUE+Gq6gUBEh2QryucKgHgrzk0H+rU36cFWGQ0EYxu+efPYUaLIVOj/h4mA7UwwkPCW3qDJ3muVxf3vuW53JlQcvH2kvN5eDQleHlnJC1Zvx4BiEr5pdpHhnpqcaDiozOiBK04804cibd3CLzAPCLLegtk1aw1NT/wiyc+muR4EJWgtjb2hO1tG+MTl9NgDEiA+SXHieLE9jr7TIqqqiwbV60= X-Forefront-PRVS: 0713BC207F X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(346002)(376002)(39380400002)(396003)(366004)(39850400004)(13464003)(199004)(189003)(386003)(97736004)(478600001)(486006)(76176011)(42882007)(11346002)(52116002)(6666003)(44832011)(6916009)(23676004)(7736002)(956004)(52146003)(476003)(446003)(2486003)(6496006)(66066001)(25786009)(16526019)(26005)(186003)(72206003)(59450400001)(50466002)(966005)(33716001)(47776003)(4326008)(33896004)(6246003)(575784001)(5009440100003)(2870700001)(3846002)(106356001)(105586002)(316002)(53936002)(6116002)(305945005)(8936002)(6306002)(5660300001)(55016002)(1076002)(229853002)(33656002)(2906002)(58126008)(9686003)(8676002)(81156014)(81166006)(68736007)(59010400001)(18370500001); DIR:OUT; SFP:1501; SCL:5; SRVR:SN2PR07MB2528; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjJQUjA3TUIyNTI4OzIzOkFseXNZ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qUdk9bm/Vd1IiOpZNS68JQZLW41FA1BFExwNW8Dicd5oE6vGPr9mpfHNtaKDyqz8HwNuZsjr/k67L3VfJ89014XAhB1wm X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2018 11:43:09.8376 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1142bfb0-69c6-4e2b-b4e7-08d5d9c7aa4c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2528 Subject: Re: [dpdk-dev] [PATCH v12 2/6] doc: add a guide doc for cross compiling from x86 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: , X-List-Received-Date: Sun, 24 Jun 2018 11:43:14 -0000 -----Original Message----- > Date: Tue, 19 Jun 2018 18:36:53 +0800 > From: Gavin Hu > To: dev@dpdk.org > CC: nd@arm.com, gavin.hu@arm.com > Subject: [dpdk-dev] [PATCH v12 2/6] doc: add a guide doc for cross > compiling from x86 > X-Mailer: git-send-email 2.11.0 > > > From: gavin hu > > This is the guide for cross compiling ARM64 DPDK from X86 hosts. > > Signed-off-by: Gavin Hu > Reviewed-by: Steve Capper > Reviewed-by: Honnappa Nagarahalli > Acked-by: Marko Kovacevic There is a build warning. Please check it ➜ [master][dpdk.org] $ make doc-guides-html sphinx processing guides-html... /export/dpdk.org/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst:133: WARNING: Unexpected indentation. > --- > .../linux_gsg/cross_build_dpdk_for_arm64.rst | 137 +++++++++++++++++++++ > doc/guides/linux_gsg/index.rst | 1 + > 2 files changed, 138 insertions(+) > create mode 100644 doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst > > diff --git a/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst > new file mode 100644 > index 000000000..551f0aef8 > --- /dev/null > +++ b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst > @@ -0,0 +1,137 @@ > +.. SPDX-License-Identifier: BSD-3-Clause > + Copyright(c) 2018 ARM Corporation. > + > +Cross compile DPDK for ARM64 > +============================ > +This chapter describes how to cross compile DPDK for ARM64 from x86 build hosts. > + > +.. note:: > + > + Whilst it is recommended to natively build DPDK on ARM64 (just > + like with x86), it is also possible to cross-build DPDK for ARM64. An > + ARM64 cross compile GNU toolchain is used for this. > + > +Obtain the cross tool chain > +--------------------------- > +The latest cross compile tool chain can be downloaded from: > +https://releases.linaro.org/components/toolchain/binaries/latest/aarch64-linux-gnu/. A newline is better here for readability in rendered html file. > +Following is the step to get the version 7.2.1, latest one at the time of this writing. > + > +.. code-block:: console > + > + wget https://releases.linaro.org/components/toolchain/binaries/latest/ > + aarch64-linux-gnu/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz Please make this single line for easy access to URL in rendered html. > + > +Unzip and add into the PATH > +--------------------------- > + > +.. code-block:: console > + > + tar -xvf gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz > + export PATH=$PATH:/gcc-linaro-7.2.1-2017.11-x86_64 > + _aarch64-linux-gnu/bin Please make this single line for easy access to URL in rendered html. > + > +.. note:: > + > + For the host requirements and other info, refer to the release note section: > + https://releases.linaro.org/components/toolchain/binaries/latest/ > + > +Getting the prerequisite library > +-------------------------------- > + > +NUMA is required by most modern machines, not needed for non-NUMA architectures. > + > +.. note:: > + > + For compiling the NUMA lib, run libtool --version to ensure the libtool version >= 2.2, > + otherwise the compilation will fail with errors. > + > +.. code-block:: console > + > + git clone https://github.com/numactl/numactl.git > + cd numactl > + git checkout v2.0.11 -b v2.0.11 > + ./autogen.sh > + autoconf -i > + ./configure --host=x86_64 CC=aarch64-linux-gnu-gcc prefix= > + make install > + > +The numa header files and lib file is generated in the include and lib folder respectively under . > + > +.. _argment_the_cross_toolcain_with_numa_support: s/toolchin/toolchain > + > +Augment the cross toolchain with NUMA support > +--------------------------------------------- > + > +.. note:: > + > + This way is optional, an alternative is to use extra CFLAGS and LDFLAGS, depicted in :ref:`configure_and_cross_compile_dpdk_build` below. > + > +Copy the NUMA header files to the cross compiler's include directory: > + > +.. code-block:: console > + > + cp /include/numa*.h /gcc-linaro-7.2.1-2017.11 > + -x86_64_aarch64-linux-gnu/bin/../aarch64-linux-gnu/libc/usr/include/ Please make this single line for easy access in rendered html. > + cp /lib/libnuma.a /gcc-linaro-7.2.1-2017.11 > + -x86_64_aarch64-linux-gnu/lib/gcc/aarch64-linux-gnu/7.2.1/ Please make this single line for easy access in rendered html. > + > +.. _configure_and_cross_compile_dpdk_build: > + > +Configure and cross compile DPDK Build > +-------------------------------------- > +To configure a build, choose one of the target configurations, like arm64-dpaa2-linuxapp-gcc and arm64-thunderx-linuxapp-gcc. > + > +.. code-block:: console > + > + make config T=arm64-armv8a-linuxapp-gcc > + > +To cross-compile, without compiling the kernel modules, use the following command: > + > +.. code-block:: console > + > + make -j CROSS=aarch64-linux-gnu- CONFIG_RTE_KNI_KMOD=n CONFIG_RTE_EAL_IGB_UIO=n > + > +To cross-compile, including the kernel modules, the kernel source tree needs to be specified by setting > +RTE_KERNELDIR: > + > +.. code-block:: console > + > + make -j CROSS=aarch64-linux-gnu- RTE_KERNELDIR= > + CROSS_COMPILE=aarch64-linux-gnu- > + > +To compile for non-NUMA targets, without compiling the kernel modules, use the following command: > + > +.. code-block:: console > + > + make -j CROSS=aarch64-linux-gnu- CONFIG_RTE_KNI_KMOD=n CONFIG_RTE_EAL_IGB_UIO=n > + CONFIG_RTE_LIBRTE_VHOST_NUMA=n CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n Please make this single line for easy access in rendered html. > + > +.. note:: > + > + 1. EXTRA_CFLAGS and EXTRA_LDFLAGS should be added to include the NUMA headers and link the library respectively, > + if the above step :ref:`argment_the_cross_toolcain_with_numa_support` was skipped therefore the toolchain was not s/toolcain/toolchain > + argmented with NUMA support. augmented?? > + > + 2. "-isystem /include" should be add to EXTRA_CFLAGS, otherwise the numa.h file will get a lot of compiling > + errors of Werror=cast-qual, Werror=strict-prototypes and Werror=old-style-definition. > + > + An example is given below: > + > + .. code-block:: console > + > + make -j CROSS=aarch64-linux-gnu- CONFIG_RTE_KNI_KMOD=n CONFIG_RTE_EAL_IGB_UIO=n > + EXTRA_CFLAGS="-isystem /include" EXTRA_LDFLAGS= > + "-L/lib -lnuma" Please make this single line for easy access in rendered html. > + > +Meson Cross Compiling DPDK > +-------------------------- > + > +To cross-compile DPDK on a desired target machine we can use the following > +command:: > + > + meson cross-build --cross-file ninja -C cross-build > + > +For example if the target machine is arm64 we can use the following > +command:: > + meson arm-build --cross-file config/arm/arm64_armv8_linuxapp_gcc s/arm-build/arm64-build?? ninja -C arm64-build/ step is missing. > diff --git a/doc/guides/linux_gsg/index.rst b/doc/guides/linux_gsg/index.rst > index 2a7bdfe92..077f93023 100644 > --- a/doc/guides/linux_gsg/index.rst > +++ b/doc/guides/linux_gsg/index.rst > @@ -13,6 +13,7 @@ Getting Started Guide for Linux > intro > sys_reqs > build_dpdk > + cross_build_dpdk_for_arm64 > linux_drivers > build_sample_apps > enable_func > -- > 2.11.0 >