k13132 / openwrt-dpdk

Data Plane Development Kit (DPDK) integration into OpenWrt
26 stars 12 forks source link

cross-compile for arm status 2024 #16

Closed BlueWaterCrystal closed 6 months ago

BlueWaterCrystal commented 7 months ago

Hi,

Has this code been tested on arm?

I'm trying to cross-compile for MT7986(Filogic 830).

The master returns this: Problem encountered: Arm SoC must be specified in the cross file.

Devel returns this: toolchain-aarch64_cortex-a53_gcc-13.2.0_musl/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> | ^~~~~~~ shm.c: In function 'attach_shared': shm.c:138:23: error: storage size of 'st' isn't known 138 | struct stat64 st; | ^~ shm.c:149:13: warning: implicit declaration of function 'fstat64'; did you mean 'fstatat'? [-Wimplicit-function-declaration] 149 | if (fstat64(shmfd, &st) < 0) | ^~~~~~~ | fstatat shm.c:156:21: warning: implicit declaration of function 'ftruncate64'; did you mean 'ftruncate'? [-Wimplicit-function-declaration] 156 | if (ftruncate64(shmfd, shmlen + shmoffset) < 0) { | ^~~~~~~~~~~ | ftruncate shm.c:171:18: warning: implicit declaration of function 'mmap64'; did you mean 'mmap'? [-Wimplicit-function-declaration] 171 | shmptr = mmap64(NULL, shmlen, PROT_READ | PROT_WRITE, MAP_SHARED, shmfd, shmoffset); | ^~~~~~ | mmap shm.c:171:16: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 171 | shmptr = mmap64(NULL, shmlen, PROT_READ | PROT_WRITE, MAP_SHARED, shmfd, shmoffset); | ^ shm.c:138:23: warning: unused variable 'st' [-Wunused-variable] 138 | struct stat64 st;

zokl commented 7 months ago

Hi this code is not supported by arm now. I will push working code in few days.

zokl commented 6 months ago

Hello, try this branch https://github.com/k13132/openwrt-dpdk/tree/arm

BlueWaterCrystal commented 6 months ago

Hello, try this branch https://github.com/k13132/openwrt-dpdk/tree/arm

Hi, the link returns 404 - page not found

I presume it's been merged with main?

zokl commented 6 months ago

Hello, try this branch https://github.com/k13132/openwrt-dpdk/tree/arm

Hi, the link returns 404 - page not found

Sorry, I moved i to master https://github.com/k13132/openwrt-dpdk

akanouras commented 3 months ago

@BlueWaterCrystal do you have a DPDK NIC driver for the MT7986?