From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 22AA058CB for ; Thu, 31 Jan 2019 18:00:31 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2019 09:00:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,545,1539673200"; d="scan'208";a="119004802" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga007.fm.intel.com with ESMTP; 31 Jan 2019 09:00:30 -0800 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 31 Jan 2019 09:00:30 -0800 Received: from fmsmsx117.amr.corp.intel.com ([169.254.3.160]) by FMSMSX152.amr.corp.intel.com ([169.254.6.109]) with mapi id 14.03.0415.000; Thu, 31 Jan 2019 09:00:30 -0800 From: "Wiles, Keith" To: Oscar Pap CC: "users@dpdk.org" Thread-Topic: [dpdk-users] Create new driver error Thread-Index: AQHUuUEhgXCsdIdOq0mWOwNbKfGSLaXJmm+m Date: Thu, 31 Jan 2019 17:00:30 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] Create new driver error X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2019 17:00:32 -0000 Sent from my iPhone > On Jan 31, 2019, at 2:44 AM, Oscar Pap wrote: >=20 > Hello! >=20 > I=B4m trying to create a new driver called "baseband_ldpc" for baseband b= ut I > get this error: >=20 > EAL: failed to parse device "baseband_ldpc" > EAL: Unable to parse device 'baseband_ldpc' >=20 >=20 > I created the driver in the /dpdk/drivers/baseband/ldpc folder. > The file is called ldpc.c > I created a copy of the Makefile from the other drivers but changed these > lines: >=20 > LIB =3Dlibrte_pmd_bbdev_ldpc.a > ... > EXPORT_MAP :=3Drte_pmd_bbdev_ldpc_version.map > ... > SRCS-$(CONFIG_RTELIBRTE_PMD_BBDEV_LDPC) +=3D ldpc.c >=20 >=20 > I added this line in the Makefile in the folder /dpdk/drivers/baseband > DIRS-$(CONFIG_RTE_LIBRTE_PMD_BBDEV_LDPC) +=3D ldpc > DEPDIRS-ldpc =3D $(core-libs) >=20 > I also added these lines in the common_base file: > CONFIG_RTE_LIBRTE_PMD_BBDEV_LDPC=3Dy >=20 > My guess is that the error has something to do with vdev and that my > baseband_ldpc doesnt get registered as a valid vdev. >=20 > My command for running the app is: > ./build/bbdev --vdev=3D'baseband_ldpc' --vdev=3D'net_tap0' --no-pci >=20 Did you add your driver to the mk/rte.app.mk file? > I hope that you can help with this problem. >=20 > Best regards, > Oscar