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 1EAC8A04A4 for ; Wed, 27 May 2020 10:29:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 825D41D731; Wed, 27 May 2020 10:29:12 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2077.outbound.protection.outlook.com [40.107.21.77]) by dpdk.org (Postfix) with ESMTP id 9B2291D661; Wed, 27 May 2020 10:29:09 +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=UALIIoCGtHBXGDCc39MRHcsKtEZbIqzdocD4bHDs3e4=; b=OgemtnkCvmaMMRTwWrdGG1ps7yQ6WyxPHiERai+toyy6n7kvLFsbf0BdVpLp885QRSwFWz9PCuc/MBWacp1wbeLfJWB+Um1PBlk9JFbkdwPTF4H/ff5Jir7vgLPVyjLCdg2f4IZgYIScD2JuOuEB7oKsVWMOvZ5gA02c+iUg9Qw= Received: from DB6PR07CA0117.eurprd07.prod.outlook.com (2603:10a6:6:2c::31) by VI1PR08MB2782.eurprd08.prod.outlook.com (2603:10a6:802:1c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Wed, 27 May 2020 08:29:06 +0000 Received: from DB5EUR03FT033.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2c:cafe::55) by DB6PR07CA0117.outlook.office365.com (2603:10a6:6:2c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.8 via Frontend Transport; Wed, 27 May 2020 08:29:06 +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 DB5EUR03FT033.mail.protection.outlook.com (10.152.20.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Wed, 27 May 2020 08:29:06 +0000 Received: ("Tessian outbound b157666c5529:v57"); Wed, 27 May 2020 08:29:05 +0000 X-CR-MTA-TID: 64aa7808 Received: from 8a409950b605.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id EBE8EB85-AAD2-4D3B-8471-C21C767734CF.1; Wed, 27 May 2020 08:29:00 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 8a409950b605.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 27 May 2020 08:29:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FuguKu6OPwhEkxTjzlfZD+WpNiEOZpYD/cxUVdfE1uOVn2MSEfcTkJC6J0oqT4WETy8lojPORW5tqwfAa5bdX9Svjc/7weYL/JTfIQkd9s07VF41Kx8yjHlPPdUqhdCPDQXmoO8twUKpOC4Gbyg5Da0xMjs1Z3PZZ+KyOi/qdqwow32U/2m2uUQJASr+mHY7H0/jMdZ1C8x1DA5LW1zTuuTu4qc5XSSAZvkkAr/0A8GTHmdRQjDiS0fGWnZA8DQsoUzhIlbXygCJB4uSvnylv1aUgx1DIn+SsJKgz8vN8MoHII8fidjL/bdlRxpRQOlY99a7jDAXbSm6Jr+dhckKlA== 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=UALIIoCGtHBXGDCc39MRHcsKtEZbIqzdocD4bHDs3e4=; b=SAznQDsI4gZxdBBgaXxhi3U20o+qw8S1UV1b8MmT3y7pa8IUeS8DeUv96Bv0owRaO0i3LIsxM3uSKUyHK9T1VI8Bk4S57xk4HfYLyj8zCzLXZABtwG+Nk5TJ5SofxJpefzgR633u4ep1hG0xX74t52gkj9CXk519OfW1/X9DW96Sol6vOSF4hlkGPDXT8LnKVHudBTadVlOHkV7xoVTlABWcm+lA9RxTfvgxcOLsMspsaOPiQPWDrP2L6rIxRcc1qGPt42OP4z7tPUMQjMOnpemwwEIQDB3Ib/7Io5BRYsdJxMf9Hv968hZAelFpO8h9e1zBroIHPyJF6huclVEZRw== 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=UALIIoCGtHBXGDCc39MRHcsKtEZbIqzdocD4bHDs3e4=; b=OgemtnkCvmaMMRTwWrdGG1ps7yQ6WyxPHiERai+toyy6n7kvLFsbf0BdVpLp885QRSwFWz9PCuc/MBWacp1wbeLfJWB+Um1PBlk9JFbkdwPTF4H/ff5Jir7vgLPVyjLCdg2f4IZgYIScD2JuOuEB7oKsVWMOvZ5gA02c+iUg9Qw= Received: from HE1PR0801MB2025.eurprd08.prod.outlook.com (2603:10a6:3:50::14) by HE1PR0801MB1961.eurprd08.prod.outlook.com (2603:10a6:3:49::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Wed, 27 May 2020 08:28:58 +0000 Received: from HE1PR0801MB2025.eurprd08.prod.outlook.com ([fe80::646e:c258:7269:f4b2]) by HE1PR0801MB2025.eurprd08.prod.outlook.com ([fe80::646e:c258:7269:f4b2%11]) with mapi id 15.20.3045.018; Wed, 27 May 2020 08:28:58 +0000 From: Ruifeng Wang 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" Thread-Topic: [dpdk-dev] [PATCH 2/2] doc: add aarch32 build guidance Thread-Index: AQHVmHuqj1iR6fVDRkyg4T1WN+e3XKi80FAQ Date: Wed, 27 May 2020 08:28:58 +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: <1573468461-25972-2-git-send-email-phil.yang@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 8e8501a2-379b-484c-9ac3-188387afa8bc.0 x-checkrecipientchecked: true Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.111] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 6961459a-9e45-40da-fd8d-08d80218050e x-ms-traffictypediagnostic: HE1PR0801MB1961:|VI1PR08MB2782: 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:7219;OLM:7219; x-forefront-prvs: 04163EF38A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Pa46bMHonUnZIqcUCMw6ww6xXUq6PL9TUqNwJbOctTaLE7ztStgdN6lekVApoDrWnImMVOck2Qf0/Mt+DDalidxhCWaY22BN5tqrFesnqlOHW0DqpWwJZWhier+YsJ1ate4QIQzBDETCNqxp2k2lyXbRl1vhGYNIqjhtNxO17C6Uk68UYIg6x9Te+nDym11nl4cvQDV/BfC3QzzEsYZRzL/EYxOp7RqJcm1j3xJGo6mNUdwUwiiP59++igOMcmMBoGfWL17t2e1igB0No4ncetfhWzcxGZzCisNRMqisBRXZVzsgubLj32iW5d50Dg6NQRB9yHXzVAULVvdgzde6MA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0801MB2025.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(366004)(136003)(396003)(39860400002)(9686003)(55016002)(110136005)(4326008)(54906003)(5660300002)(86362001)(8676002)(52536014)(8936002)(53546011)(6506007)(316002)(33656002)(26005)(186003)(66556008)(76116006)(64756008)(478600001)(71200400001)(7696005)(66946007)(66476007)(2906002)(83380400001)(66446008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: Q32+1S9G1dmm9qn1A6pDh/JvkCNqqbWbRILrQFIJKX9Ljpv+rinkjqGuoD4PI21YiEWd/o3aRbHMFZuoKyPZbaEXARyiigeLe2pHNrlVWIVS2Lz4xAKvbUF1Mn2NJaPPqOWKM0qjBMXM3R/FsC20+aS5lhqdkrVsgzvRUSs0Z46NYqGKB3DVpeC5+MDq3JapwtfGNOnd5aMHbCL/pzgmz42N8mCaUg/UBWaqESPijf/W41d5Zj6o9RE32Juo4TnW3g3tlL2w0luQUp5xDivjNP0ZAn0qyGDDpr07K+h6659gnKjNsFocB7HhNWgXRRZX11SK/knyjKlXrCzXAs5wGeYqaDDTBqDsNUz1PnTM1FwPOUNsFnCrWic1h28nOv8u7JqQTyPrbgTjU16Roy+aBhsTYOeNjSy2PyOHgVCsAzExzvXOraGphZJZzExsoch88fgGnVYfoVXDsxI9qmpfOnCRPFcbASThOxyALIuX1/U= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1961 Original-Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT033.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)(396003)(346002)(39860400002)(376002)(136003)(46966005)(4326008)(86362001)(8676002)(356005)(478600001)(6506007)(316002)(53546011)(82310400002)(7696005)(450100002)(55016002)(8936002)(2906002)(110136005)(54906003)(9686003)(186003)(82740400003)(47076004)(26005)(336012)(33656002)(70586007)(5660300002)(81166007)(52536014)(70206006)(83380400001); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: aff2e712-1781-4de5-dcf7-08d8021800b8 X-Forefront-PRVS: 04163EF38A X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P8zCen6FpDBCUx+/mNkYjDN5bk13IqOE6E/ippcYFIho36qTeZV2zXClvABAyFTrrjhx5hjA29WzGV+OctaSNJWJMpODN/S/QgtIPgxcfQEbxYQZlb/WMB9HB8+aEaGcampbzP6hBdspShElrFYqelcSqVmE2JbAzHDX6+lId7080wlbBtEU2JOuQKThvEOBdjubO0VXaHWBAJdCnHNCgP4an/qstWOBU8Xvnb0w3d7jl8H9pp6VYo7uMOZXxW3MRz7hrmlP64KhSzBdWa7FViHTGusxEivPd4lkBFfNYlCmbpR8Ue5ljnGwJkVkNbieoX66HGNS8Dr6Smiso34T8Z7ttKpRVq9Y2tdH/lkA2RfNl8fst4BIEXo6xuVHLYBHniVHIX7yKHdpRverYYocNg== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2020 08:29:06.0174 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6961459a-9e45-40da-fd8d-08d80218050e 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2782 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" > -----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 >=20 > Add a guidance for aarch64 natively build 32-bit aarch32 DPDK. >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: Phil Yang > Reviewed-by: Gavin Hu > Tested-by: Joyce Kong >=20 > --- > .../linux_gsg/cross_build_dpdk_for_arm64.rst | 36 > ++++++++++++++++++---- > 1 file changed, 30 insertions(+), 6 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 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. >=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 an= d > 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 > --------------------------- > @@ -133,3 +133,27 @@ command:: >=20 > 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 mo= de. > +With the GNU C compiler for the armhf architecture toolchain > +gcc-arm-linux-gnueabihf, it can generate aarch32 binary on aarch64 nativ= ely. > + > +For Example, in 64-bit Debian, we can use the following command to build > 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 Acked-by: Ruifeng Wang