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 6C8D2A04B1; Tue, 25 Aug 2020 16:04:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8CD24DE3; Tue, 25 Aug 2020 16:04:02 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 2A20323D for ; Tue, 25 Aug 2020 16:04:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598364240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R4HinNzyDQkLqjtY3n/yUQWUgNZBy4fFoKrAe3tqQzo=; b=I5lDJoyBbRbqyuYrpTlCj9CMYOQWyGgR7NHj4zM4YeKreZUjy+7OKPV6q0HMQHBEtdV5Q8 6D5u4nV7a4nKbKIHtimV3n3Ndnnf0ZQQ5NiAB/PNEDVprFckAdb8/lOWSlSzZXfF+GGnZo bAwkmX7/m0KaFlOgUY3MAor+PDDJ8QY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-327-v6R2VUcQOmekesI9xcJ7Kg-1; Tue, 25 Aug 2020 10:03:56 -0400 X-MC-Unique: v6R2VUcQOmekesI9xcJ7Kg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7E62181F02D; Tue, 25 Aug 2020 14:03:54 +0000 (UTC) Received: from dhcp-25.97.bos.redhat.com (ovpn-114-76.rdu2.redhat.com [10.10.114.76]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3524A6F142; Tue, 25 Aug 2020 14:03:53 +0000 (UTC) From: Aaron Conole To: Juraj =?utf-8?Q?Linke=C5=A1?= Cc: bruce.richardson@intel.com, maicolgabriel@hotmail.com, dev@dpdk.org, Phil Yang References: <1597401092-13713-1-git-send-email-juraj.linkes@pantheon.tech> <1598360684-8975-1-git-send-email-juraj.linkes@pantheon.tech> <1598360684-8975-6-git-send-email-juraj.linkes@pantheon.tech> Date: Tue, 25 Aug 2020 10:03:52 -0400 In-Reply-To: <1598360684-8975-6-git-send-email-juraj.linkes@pantheon.tech> ("Juraj \=\?utf-8\?Q\?Linke\=C5\=A1\=22's\?\= message of "Tue, 25 Aug 2020 15:04:44 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=aconole@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v8 5/5] doc: add aarch32 build guidance 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" Juraj Linke=C5=A1 writes: > From: Phil Yang > > Add cross-compiling guidance for 32-bit aarch32 DPDK on aarch64 host. > > Signed-off-by: Phil Yang > --- > .../linux_gsg/cross_build_dpdk_for_arm64.rst | 30 ++++++++++++++----- > 1 file changed, 23 insertions(+), 7 deletions(-) > > diff --git a/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst b/doc/gu= ides/linux_gsg/cross_build_dpdk_for_arm64.rst > index c5875a6d5..07085e3ea 100644 > --- a/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst > +++ b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst > @@ -1,15 +1,16 @@ > .. SPDX-License-Identifier: BSD-3-Clause > Copyright(c) 2018 ARM Corporation. > =20 > -Cross compile DPDK for ARM64 > -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > -This chapter describes how to cross compile DPDK for ARM64 from x86 buil= d hosts. > +Cross compile DPDK for aarch64 and aarch32 > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +This chapter describes how to cross compile DPDK for aarch64 from x86 bu= ild hosts and compile > +32-bit aarch32 DPDK from aarch64 build hosts. > =20 > .. note:: > =20 > - 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. > + Whilst it is recommended to natively build DPDK on aarch64 (just > + like with x86), it is also possible to cross-build DPDK for aarch64. > + An aarch64 cross compile GNU toolchain is used for this. > =20 > Obtain the cross tool chain > --------------------------- > @@ -88,18 +89,33 @@ To install it in Ubuntu:: > =20 > sudo apt-get install pkg-config-aarch64-linux-gnu > =20 > +.. note:: > + > + Some aarch64 platforms support EL0 aarch32 mode, which means the 32-= bit aarch32 applications > + can run on aarch64. The armhf architecture toolchain ``gcc-arm-linux= -gnueabihf`` is required > + for aarch32 on aarch64. To install it in Ubuntu:: > + > + sudo dpkg --add-architecture armhf > + sudo apt-get update > + sudo apt-get install -y gcc gcc-arm-linux-gnueabihf libc6:armhf m= ake binutils > + Is 'make' still needed? I don't run Ubuntu, so I'm not sure. > To cross-compile DPDK on a desired target machine we can use the followi= ng > command:: > =20 > =09meson cross-build --cross-file > =09ninja -C cross-build > =20 > -For example if the target machine is arm64 we can use the following > +For example if the target machine is aarch64 we can use the following > command:: > =20 > =09meson arm64-build --cross-file config/arm/arm64_armv8_linux_gcc > =09ninja -C arm64-build > =20 > +If the target machine is aarch32 we can use the following command:: > + > +=09meson arm32-build --cross-file config/arm/arm32_armv8a_linux_gcc > +=09ninja -C arm32-build > + > Configure and Cross Compile DPDK using Make > ------------------------------------------- > To configure a build, choose one of the target configurations, like arm6= 4-dpaa-linux-gcc and arm64-thunderx-linux-gcc.