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 D68D1A04DD; Wed, 21 Oct 2020 16:32:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7A8C4AC51; Wed, 21 Oct 2020 16:32:53 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20081.outbound.protection.outlook.com [40.107.2.81]) by dpdk.org (Postfix) with ESMTP id 86B7EAC51 for ; Wed, 21 Oct 2020 16:32:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Sh+jc5sYKMON2k4GGD1wjG/nlZbmK62OjKP0dCEnScs=; b=8hFKpAhhbw/9jvw5mmZ+5KZ4Tj1T2NaI66shf2bQdgvvZaLKZpRKtbJOFAAotlBkn3mUM2wR56JU1i8t32/T5b5C5oIATe20Z4ojyGvelAUzY0bgMAlkv5xiqpzJKaiQ9iDZGYyQS4gcr+A2sy6TPti1d9zcydTpC3BK0XoDGeg= Received: from MR2P264CA0076.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:32::16) by AM8PR08MB5825.eurprd08.prod.outlook.com (2603:10a6:20b:1d6::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.20; Wed, 21 Oct 2020 14:32:48 +0000 Received: from VE1EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:500:32:cafe::33) by MR2P264CA0076.outlook.office365.com (2603:10a6:500:32::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Wed, 21 Oct 2020 14:32:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT042.mail.protection.outlook.com (10.152.19.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Wed, 21 Oct 2020 14:32:48 +0000 Received: ("Tessian outbound e6c55a0b9ba9:v64"); Wed, 21 Oct 2020 14:32:47 +0000 X-CR-MTA-TID: 64aa7808 Received: from 090c6efa71c1.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5FE4996D-EBC1-4B2C-8588-7DDF31642785.1; Wed, 21 Oct 2020 14:32:42 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 090c6efa71c1.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 21 Oct 2020 14:32:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NQa3K438v7s1hUcUJBLKgPGVyeXIo0VU45GN7ylZdDtmGnX7EQUoFI+5M793qB0DQjxggeSKJfa3zX2TrLI4zcbDruBQX60WPMcYQNvuAL4KpDv91N8TIKCDtYWZ4oAJq/lVTvF2N3o+b6zdqcEId+KoqTUSiexht3cFOGyYNxH5OEsyc1PwIQg7PXwYGlXucEtx09SRd4guxs3guJNBUY5Z5f8LdTGY9wg5BdQQx1/Uza1ExhLIC9Rcwa354qHJME+gzvudr6dELvyAnFpwjBxYCV9Cblx4+PulwhUoPgSDUAncMipbFm+YAAwyFCdwuBH/EHc737o/p76xrq2s9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Sh+jc5sYKMON2k4GGD1wjG/nlZbmK62OjKP0dCEnScs=; b=YPxQSDoSLQ68FKRrkQHaHbXg8EOPzRNmmaOb0xUDqrQ5z0jrBjcsl8xVMqmY40UfVruqXBhcTh8ZFtJ1Mh1RWzSg9NnoEnH6Mvhd/imVdfgcQjNWb8gWBUk4wCHcChlXow5700IdPTIggpCqm+xq6IoaR05zxFmX/Wgv4fBBF0ixPmfjNYi0gTuwuSY7dJpcnkiOmYz0JTX/ieTq/MaWVymXvmNOsAMIg1whENmUeJtwoCcJc6q0ic5S22hcBxguwKV6NP7qS0NGQ01ARIkzSXeHpqKUDMCltW+NUKTL8LASG1j8ZWgHOVvPh6bWYgtaUqBPB9L0CPe/Mx+RyJUKEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Sh+jc5sYKMON2k4GGD1wjG/nlZbmK62OjKP0dCEnScs=; b=8hFKpAhhbw/9jvw5mmZ+5KZ4Tj1T2NaI66shf2bQdgvvZaLKZpRKtbJOFAAotlBkn3mUM2wR56JU1i8t32/T5b5C5oIATe20Z4ojyGvelAUzY0bgMAlkv5xiqpzJKaiQ9iDZGYyQS4gcr+A2sy6TPti1d9zcydTpC3BK0XoDGeg= Received: from VI1PR0802MB2351.eurprd08.prod.outlook.com (2603:10a6:800:a0::10) by VI1PR08MB4253.eurprd08.prod.outlook.com (2603:10a6:803:f6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.22; Wed, 21 Oct 2020 14:32:40 +0000 Received: from VI1PR0802MB2351.eurprd08.prod.outlook.com ([fe80::14d4:6ade:368a:204b]) by VI1PR0802MB2351.eurprd08.prod.outlook.com ([fe80::14d4:6ade:368a:204b%3]) with mapi id 15.20.3499.018; Wed, 21 Oct 2020 14:32:40 +0000 From: Ruifeng Wang To: =?iso-8859-2?Q?Juraj_Linke=B9?= , "thomas@monjalon.net" , "bruce.richardson@intel.com" , "aconole@redhat.com" , "maicolgabriel@hotmail.com" CC: "dev@dpdk.org" , Phil Yang , nd Thread-Topic: [dpdk-dev] [PATCH v10 5/5] doc: add aarch32 build guidance Thread-Index: AQHWjAKNsCVvEuqISUqXSNz/xBefAamiVc3Q Date: Wed, 21 Oct 2020 14:32:40 +0000 Message-ID: References: <1598614733-16220-1-git-send-email-juraj.linkes@pantheon.tech> <1600244472-29696-1-git-send-email-juraj.linkes@pantheon.tech> <1600244472-29696-6-git-send-email-juraj.linkes@pantheon.tech> In-Reply-To: <1600244472-29696-6-git-send-email-juraj.linkes@pantheon.tech> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: C5D1D5659A3BAE4F83ACE612F106755E.0 x-checkrecipientchecked: true Authentication-Results-Original: pantheon.tech; dkim=none (message not signed) header.d=none; pantheon.tech; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.113] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: abb9b45d-a109-41c9-3211-08d875ce2ecd x-ms-traffictypediagnostic: VI1PR08MB4253:|AM8PR08MB5825: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8273;OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: YyPP1oYwJqK//k4rN+SFhMnZaTBgfzpsvl4MkeQwNcWf2eQ/ug6RvIwouF6eptiBV83kiTdtm+0OJNQIzwFpqGyqpN3C1s4OEg5qv4ZIMJX70Sqw0Vn0cZDmuiIVfqD9Kg5bgcjaXylZphiw+luouD7IoT11fhyfs+Ha3qcAN+1Z94W56Euknt/noCnVb5rFjtMd0VoX/+nS8+Hjh+4h/g6EReD4tymF+HSqf7qs8fRMzAQdfpOSlFLZhaJhig5UIAu12roKMJzUhtUZUWgYpFOkMNMTHuMpxoC4tbpioLS4ulkKGvHnzNOgsho/I43NigbdokSFkCikVah3R/TYKg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0802MB2351.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39860400002)(346002)(396003)(366004)(376002)(8676002)(55016002)(6506007)(66556008)(316002)(7696005)(71200400001)(5660300002)(2906002)(110136005)(54906003)(4326008)(26005)(83380400001)(9686003)(8936002)(33656002)(86362001)(64756008)(66446008)(66476007)(53546011)(186003)(478600001)(52536014)(45080400002)(76116006)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: pJCnSqBpXRPLP7Qdgrg0JUEcGyrA0kRa323f+80ueApGNmnPhnpIA4m+yxrcEEHCNNzVmU4Q9iSFaU50d8zdz9a9eyyLh38pKlRPtPleUvTuxAYYE3Y/LzGUFxPq5VUCTi27alcli46FKW8j5cRi9yDwVm6BdIXpiD9OYyvs+oxExbW/TWDbjZdRXsvWDtmIFtz/T8AAXUlNqHaiejrM7zIk4apkiGmks231r9ubPYIJQWx/MSEQJZt90EaSXInkoDFUrLE71Qh9WRYmKe34h2ZZkq1Ref9rEpU/cBX1Qkx9i6Jxumtr+cWSIxoiiWbBZ3fZYHLamFTX2E3qQ+F1iurqSn6X2WZ3sQGyLyz0sudpQSpLFuCtx1jkWhsSuhXdsp2qTgvFvO2YWmdNWqsNv1qZTP455IM0eDXKFCI2lw+sZw0LG2t6xD9xS5NIYWVJWh59G8MMGdNn3FfyADImywsc0eNMDCzVDGIHBK0SSau2d8CstwI7YCDbBCBdoLdulgbWfuz1zDg/PJYFkGq/WJWdV2FldrY19hQIrmuhezrOgayF2TFuDUTCr0fW9RYhhbTXzo9nE63XBL0R4VOcG6QenTDNLpr/gtF1YeC+Gbr/dXiQY+5KsrpjRIOEQe9M4UfpflTFPlQFf2efQwPqvw== Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4253 Original-Authentication-Results: pantheon.tech; dkim=none (message not signed) header.d=none; pantheon.tech; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT042.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 08242765-d08d-499f-317a-08d875ce2a5d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +8TaCM9OB5jlTs30adbdGNuYQ7dBtQTWcfe5Rh6qFFy8Qeh/LTRFZkfsHRv6630BpvBUaEvDIhYXECd11WetUYWc3m/tqOMEOr+vU6Edz2uQ1b/cBvFJZy+hnMTZK+qyo/7gmlKbMjSQFD2+rT/mHot58DMwPBVELeBRLx5A8Kx7v5DDEW7fdy4IsJhmHEM0QWOEptk8sNgGd30uxUTmT6qMm4LewdqmqZ4+jsDznSWlIKmMeK8zAFUgGJw2Tbx/ni5cp1WXG0gDP4DXG8gQj/zeuPfKT0NXEGo7b37OHhxXiabBwPBMbhHAD/cixi5lyDv+G6HBWmc7NlAUSRdPOTY/L4CZ8r20DkM6EwfSJYxJmACLSEgP4baEFnc7VvYQF/Ss7okg+3SR4yHX7OVd1A== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(376002)(396003)(346002)(136003)(39860400002)(46966005)(45080400002)(2906002)(6506007)(36906005)(53546011)(7696005)(70586007)(316002)(33656002)(5660300002)(52536014)(82310400003)(55016002)(110136005)(54906003)(336012)(26005)(356005)(4326008)(70206006)(8936002)(186003)(478600001)(9686003)(81166007)(47076004)(82740400003)(8676002)(86362001)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2020 14:32:48.0699 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: abb9b45d-a109-41c9-3211-08d875ce2ecd X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT042.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB5825 Subject: Re: [dpdk-dev] [PATCH v10 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" > -----Original Message----- > From: dev On Behalf Of Juraj Linke? > Sent: Wednesday, September 16, 2020 4:21 PM > To: thomas@monjalon.net; bruce.richardson@intel.com; > aconole@redhat.com; maicolgabriel@hotmail.com > Cc: juraj.linkes@pantheon.tech; dev@dpdk.org; Phil Yang > > Subject: [dpdk-dev] [PATCH v10 5/5] doc: add aarch32 build guidance >=20 > From: Phil Yang >=20 > Add cross-compiling guidance for 32-bit aarch32 DPDK on aarch64 host. >=20 > Signed-off-by: Phil Yang > --- > .../linux_gsg/cross_build_dpdk_for_arm64.rst | 34 +++++++++++++------ > 1 file changed, 24 insertions(+), 10 deletions(-) >=20 > diff --git a/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst > b/doc/guides/linux_gsg/cross_build_dpdk_for_arm64.rst > index 8a1d0e88b..1f2ff751d 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 > +build 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,14 +89,27 @@ To install it in Ubuntu:: >=20 > sudo apt-get install pkg-config-aarch64-linux-gnu >=20 > -To cross-compile DPDK on a desired target machine we can use the > following > -command:: > +.. 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-arm-linux-gnueabihf libc6:armhf > + binutils > + > +To cross-compile DPDK on a desired target machine use the following > command:: >=20 > meson cross-build --cross-file > ninja -C cross-build >=20 > -For example if the target machine is arm64 we can use the following > -command:: > +For example if the target machine is aarch64 use the following command:: >=20 > meson arm64-build --cross-file config/arm/arm64_armv8_linux_gcc > ninja -C arm64-build > + > +If the target machine is aarch32 use the following command:: > + > + meson arm32-build --cross-file config/arm/arm32_armv8a_linux_gcc > + ninja -C arm32-build > -- > 2.20.1 Acked-by: Ruifeng Wang