[dpdk-users] Issue->Dpdk for arm cortex-a15 compilation
viktorin at rehivetech.com
Tue May 16 12:51:40 CEST 2017
On Tue, 16 May 2017 15:38:22 +0530
Jimmy Carter <jimmycarter256 at gmail.com> wrote:
> Hi All
> I am using dpdk16.11.1 and want to use openwrt external toolchain so that I
> can cross compile for arm cortex 15
I've never built DPDK with musl-eabi. I don't think that your issue is
related but just note that my builds have always been done with gnueabi.
> My target board is Tp link archer C2600.
> I am have assigned these env variables but still getting compilation error
> export CROSS=arm-openwrt-linux-
> export DPDK_TARGET=arm-armv7a-linuxapp-gcc
> export DPDK_DIR=$PWD
> export DPDK_BUILD=$DPDK_DIR/$DPDK_TARGET
> export RTE_SDK=$PWD
> export RTE_TARGET=arm-armv7a-linuxapp-gcc
> export DPDK_BUILD_DIR=arm-armv7a-linuxapp-gcc
There is a patch to Buildroot that can help you with the setup. See:
> Error:Attached file
Your build fails on
/home/xav-101000739/Downloads/dpdk/dpdk-stable-16.11.1/build/include/rte_lcore.h:56:10: error: unknown type name 'cpu_set_t'
typedef cpu_set_t rte_cpuset_t;
This looks like there is some issue with Linux Kernel headers.
53 #if defined(__linux__)
54 typedef cpu_set_t rte_cpuset_t;
55 #elif defined(__FreeBSD__)
56 #include <pthread_np.h>
57 typedef cpuset_t rte_cpuset_t;
Probably, you should set the RTE_KERNELDIR properly.
> Please advise
> Does dpdk have support for openwrt (arm cortex a15)
DPDK does not support OpenWRT because (as far as I know) nobody from
the DPDK community is using it in this way. I build DPDK via Buildroot
but this is unsupported by the DPDK upstream.
I could build DPDK for Cortex-A7, Cortex-A9 and Cortex-A15 in the past.
I run regular builds of the master branch and I can see no breakage
for the arm-armv7a-linuxapp-gcc configuration.
More information about the users