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 25B29A0524 for ; Thu, 2 Jul 2020 07:37:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 058D81D904; Thu, 2 Jul 2020 07:37:27 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00078.outbound.protection.outlook.com [40.107.0.78]) by dpdk.org (Postfix) with ESMTP id 7B65C1D8EB; Thu, 2 Jul 2020 07:37:24 +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=lDINwmrdRQz/z5lRBQWTBFDjB0Yg7mFb21szs4AFdXI=; b=GckNZMTNpZ1OmSfgYy1uo6KWJrWMLmFxmuX9N7TbZmnXjvxzTVI60sLbRd1/2xw4kzKE6prYZIHd6HtJE8OF1WsENa7cZjUYq0vuc7AI68KIAnQ34Qx+1M7kHk+ajzBCvJ7cRVtRiNiM4P9cSlhFEHovFYDtyv1fCLikMFwrXgU= Received: from DB8PR06CA0005.eurprd06.prod.outlook.com (2603:10a6:10:100::18) by VI1PR08MB2670.eurprd08.prod.outlook.com (2603:10a6:802:25::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.21; Thu, 2 Jul 2020 05:37:22 +0000 Received: from DB5EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:100:cafe::89) by DB8PR06CA0005.outlook.office365.com (2603:10a6:10:100::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.20 via Frontend Transport; Thu, 2 Jul 2020 05:37:22 +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=bestguesspass 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 DB5EUR03FT059.mail.protection.outlook.com (10.152.21.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20 via Frontend Transport; Thu, 2 Jul 2020 05:37:22 +0000 Received: ("Tessian outbound a4b10e5b482d:v62"); Thu, 02 Jul 2020 05:37:22 +0000 X-CR-MTA-TID: 64aa7808 Received: from 78ca9fbf2531.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 00A71E53-F234-428E-B50F-70A3DAB0F79E.1; Thu, 02 Jul 2020 05:37:17 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 78ca9fbf2531.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 02 Jul 2020 05:37:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RSxkco7TWnKHqRBXsJQikmqYV9mJkheG8OtLWd9ZI7CwGRCe2uesQDW86w2au4ksmlvKYFqkcdFnPu7UMW97wZ6PN214GoC4U7Mxo2B/R977VDBzNNaCfpBOLrUSyAF3++HudHrzUA1asn2meZoOByOsOBvX+QxoKVVIXcoDrxAQSIHEtUx3vd7jRfZD1yuabJRFmg92mG3D2HnTuIP3HGmSnsDqEvMNBFi2C9PEdzZsX9SH+AGiSF1EOkMVXoXYsKC0oFK3LpUZZZVQrBhll78sVwbZuVmx7z8GXoGc4qcThZc6jgksKbVJv+keDDXepY7bZxUKoju5NQBGu3IMNg== 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=lDINwmrdRQz/z5lRBQWTBFDjB0Yg7mFb21szs4AFdXI=; b=RpJ9vRtbkKry2bGthGR5l7SWylYLsm8qVL0iB571FWtYqsFP+9ACF90yBc8O3UfGwYnsMtkPtdTZHn3f5/CWFT98qV7jJXdrzZ+IhgSC8+3Kf9lCInJqs4bntM4gZCkw2z8LWuyA6dJtKb4pNatWkCf3ZwVSnnmLoThmWgY78avpntG3wTxiUcsFW7ZV5gUQsdfP1/nMxGwJ124TBqVRvYG3UYtga57g8nliA2ys1BGhJPk6cS9NIjYXsJxY17drc8yIBmKaJZK8KPyLlJqXqD1PAsYppvSUKAfRuWT741yascAghF3fUXRi9e/FRhFD50A+5yXrvSPTzx5oFZSfZA== 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=lDINwmrdRQz/z5lRBQWTBFDjB0Yg7mFb21szs4AFdXI=; b=GckNZMTNpZ1OmSfgYy1uo6KWJrWMLmFxmuX9N7TbZmnXjvxzTVI60sLbRd1/2xw4kzKE6prYZIHd6HtJE8OF1WsENa7cZjUYq0vuc7AI68KIAnQ34Qx+1M7kHk+ajzBCvJ7cRVtRiNiM4P9cSlhFEHovFYDtyv1fCLikMFwrXgU= Received: from VE1PR08MB4640.eurprd08.prod.outlook.com (2603:10a6:802:b2::11) by VI1PR08MB5311.eurprd08.prod.outlook.com (2603:10a6:803:13a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.21; Thu, 2 Jul 2020 05:37:15 +0000 Received: from VE1PR08MB4640.eurprd08.prod.outlook.com ([fe80::c2e:9ccb:a690:6863]) by VE1PR08MB4640.eurprd08.prod.outlook.com ([fe80::c2e:9ccb:a690:6863%6]) with mapi id 15.20.3131.028; Thu, 2 Jul 2020 05:37:15 +0000 From: Phil Yang To: "jerinj@marvell.com" , "dev@dpdk.org" CC: "thomas@monjalon.net" , "david.marchand@redhat.com" , Ruifeng Wang , Honnappa Nagarahalli , Joyce Kong , nd , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 2/2] doc: add aarch32 build guidance Thread-Index: AQHVmHuqhiGVcyicHUGampcnoYmvUai80MQAgDhia+A= Date: Thu, 2 Jul 2020 05:37:15 +0000 Message-ID: References: <1573468461-25972-1-git-send-email-phil.yang@arm.com> <1573468461-25972-2-git-send-email-phil.yang@arm.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 1add4722-878d-4bf0-a03e-3e073cc13004.0 x-checkrecipientchecked: true Authentication-Results-Original: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.112] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 857a438b-4565-47da-10cc-08d81e49fe9f x-ms-traffictypediagnostic: VI1PR08MB5311:|VI1PR08MB2670: 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-forefront-prvs: 0452022BE1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: nmCxTEnkeuC3I892Wh1/xKTRTV57k3rE+GJmGPgacVQ+8rYNHoSMV5/7uJ/ANhvIOypEXKK/S2vS0aL63Eg64IVN1kLeCCLyfts9AYpbpLwxx8H/RRppA2GLwH7n8Pnq9LQeFUt9XoKJN2WLG58X11WFjJ8pONa+hBrhpsuaCgB1nTdyi0/dI4WUsnR+zsw/RqZLBAhk8lA83L37z3G4q9P0K7a+8c6TYl17Wkmn9e43vnoLn4lA1Bb4JGdWinVWYe1ljdpzmJRn07i8adcbXbPQKvzBXoN6mQIK75m1o4NPL2wbVS0rs7pcG5t++FN72PWu0F1FXNKsoYEpPv/q7Q== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB4640.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(346002)(366004)(396003)(136003)(39860400002)(7696005)(53546011)(6506007)(83380400001)(26005)(86362001)(2906002)(8676002)(316002)(9686003)(5660300002)(33656002)(186003)(55016002)(76116006)(478600001)(52536014)(71200400001)(66556008)(66446008)(4326008)(64756008)(8936002)(54906003)(66946007)(66476007)(110136005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: Arrt52eTYTQ7pnnNGWVLnZHU/UgV8i8NtkgX104oao2alwN0Ivy4zZ3p9N8xTixxgFQggPpsn+J9AWcImWZKwAgS1YG0fzLd3e1iR7WmrsY9ahmJiLJNVVj1badUs+ujBTfaHv2OEbVRVuYqhdIGuWjnDBG4141RNyWBT4irR7uaYJINh5+pbmOisyzPe5J3T5MYCO/24X4Lr2FqqnmldPhfJOCGGMBDPAoQAHZFWfFpO/8V901tioWVvhU5tw/i4ZuAnze19WO8e+hTPqmaDw7waEVXE5yJsmoE8Zpm+bdRswuQ0mv2j4Eu7cszb+ZUYoPZFDhs54s2ga+fikKty41e1AfMr5M9KtJ2JxRgu2iW1mQenh9EwbQsbvojdAFB1M1Icrrlh6R6TP7J40G+KWdEf/FJKVG3doKudoD9dBo6amTW6nAtlqyVOYY4b2qCdXnIkNvZWvMJEKZHn4yT5SezD1okuOxyVuFu8709GaA= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB5311 Original-Authentication-Results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT059.eop-EUR03.prod.protection.outlook.com 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; SFTY:; SFS:(4636009)(376002)(346002)(136003)(396003)(39850400004)(46966005)(82310400002)(81166007)(83380400001)(8936002)(478600001)(55016002)(82740400003)(86362001)(47076004)(8676002)(54906003)(33656002)(356005)(316002)(110136005)(7696005)(9686003)(6506007)(450100002)(26005)(186003)(53546011)(4326008)(2906002)(70586007)(336012)(52536014)(70206006)(5660300002); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 4d2ab6db-2ae7-474b-ec25-08d81e49fa53 X-Forefront-PRVS: 0452022BE1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c4UuhXSpccZxn3wHqbb5gm2T+1VdJHsCMgnPcdVlBz3jYOkSLB7f1p60u6rTeyXnrjnLAvaNmfKjT3pl/zE5vEt2dJwE6D0kXD9k/Ueqb09e8e3THzl35xFeIMRw19SnCEg/R8xlYDmq55w1r6cEneJN+13Qhi0GUugMi05i8Vmkfo28VU3y3K0txyU9Z0ybHKq/mujeA6voy0SL7PigkXCfQyKPKDza6CcBelq1oJYyqhLAe9uHLJRdf2uw+670MhpWo4E9sSfImsZ6mf5jJ3Awg4jTwBmAtFy52KTF6LRu9ZoNXDj7TS4tOxiziqqYX7UKW0y+ZKjFv84/8YwTRWlAIkqpiZSDeQJUmSf7thM6NXfCxH1qDEBqqdwKoio/s3dyqxPnq7mYAEhql9shNA== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2020 05:37:22.6108 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 857a438b-4565-47da-10cc-08d81e49fe9f 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: DB5EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2670 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH 2/2] doc: add aarch32 build guidance X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi Jerin, Your insight would be much appreciated. Thanks, Phil > -----Original Message----- > From: Ruifeng Wang > Sent: Wednesday, May 27, 2020 4:29 PM > To: Phil Yang ; dev@dpdk.org > Cc: thomas@monjalon.net; david.marchand@redhat.com; > jerinj@marvell.com; Honnappa Nagarahalli > ; Joyce Kong ; nd > ; stable@dpdk.org > Subject: RE: [dpdk-dev] [PATCH 2/2] doc: add aarch32 build guidance >=20 >=20 > > -----Original Message----- > > From: dev On Behalf Of Phil Yang > > Sent: Monday, November 11, 2019 6:34 PM > > To: dev@dpdk.org > > Cc: thomas@monjalon.net; david.marchand@redhat.com; > > jerinj@marvell.com; Honnappa Nagarahalli > > ; Gavin Hu (Arm Technology China) > > ; Joyce Kong (Arm Technology China) > > ; nd ; stable@dpdk.org > > Subject: [dpdk-dev] [PATCH 2/2] doc: add aarch32 build guidance > > > > Add a guidance for aarch64 natively build 32-bit aarch32 DPDK. > > > > Cc: stable@dpdk.org > > > > Signed-off-by: Phil Yang > > Reviewed-by: Gavin Hu > > Tested-by: Joyce Kong > > > > --- > > .../linux_gsg/cross_build_dpdk_for_arm64.rst | 36 > > ++++++++++++++++++---- > > 1 file changed, 30 insertions(+), 6 deletions(-) > > > > 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 e799b0b..409d444 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,15 @@ > > .. SPDX-License-Identifier: BSD-3-Clause > > Copyright(c) 2018 ARM Corporation. > > > > -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 > build > > 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 > and > > compile 32-bit aarch32 DPDK from aarch64 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. > > + 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. > > > > Obtain the cross tool chain > > --------------------------- > > @@ -133,3 +133,27 @@ command:: > > > > meson arm64-build --cross-file config/arm/arm64_armv8_linux_gcc > > ninja -C arm64-build > > + > > +Compiling DPDK for aarch32/armv7 on aarch64 host > > +------------------------------------------ > > + > > +Some aarch64 platforms support EL0 aarch32 mode, so the 32-bit aarch32 > > +applications and the legacy 32-bit armv7 applications can run in this = mode. > > +With the GNU C compiler for the armhf architecture toolchain > > +gcc-arm-linux-gnueabihf, it can generate aarch32 binary on aarch64 > natively. > > + > > +For Example, in 64-bit Debian, we can use the following command to bui= ld > > 32-bit armv7 DPDK on aarch64 natively: > > + > > +Install cross compile toolchain for the armhf architecure. > > +command:: > > + > > + dpkg --add-architecture armhf > > + apt-get update > > + apt-get install -y gcc gcc-arm-linux-gnueabihf libc6:armhf make > > +binutils > > + > > +Build DPDK arm-armv7a-linuxapp-gcc executables. > > +command:: > > + > > + cd > > + make config CROSS=3Darm-linux-gnueabihf- T=3Darm-armv7a-linuxapp- > > gcc > > + make -j CROSS=3Darm-linux-gnueabihf- T=3Darm-armv7a-linuxapp-gcc > > +RTE_DEVEL_BUILD=3Dn > > -- > > 2.7.4 >=20 > Acked-by: Ruifeng Wang