cisco-system-traffic-generator / trex-core

trex-core site
https://trex-tgn.cisco.com/
Other
1.29k stars 461 forks source link

Compilation on aarch64 #814

Open zal-lkrueger opened 2 years ago

zal-lkrueger commented 2 years ago

Hi,

I am trying to compile trex-core for aarch64, however I am having no success so far. As we want to use the trex-gui, we are bound to a trex-version <= 2.87. Is there any hint for compilation on aarch64?

I am running into a ton of problems and already tried to exclude a lot of stuff from the build process (disabled mlx4/5, bnxt, even removed some parts of ws_main.py that seem to cause problems during compilation e.g., so that certain drivers are not build at all).

I am compiling within linux_dpdk folder and the strangest part is that src/pal/linux_dpdk does contain aarch64 specific folders only for some of the dpdk versions present. I tried to create aarch64 specific folders/files where they are missing but I have no idea whether I am including all the relevant parameters here.

Somehow #86 states this should be fixed, but is it really? And is it also fixed for a trex-core version that plays well with the gui?

Any help would be greatly appreciated! Thanks, Leo

ying-sealingtech commented 1 year ago

Hello, I am working on something similar and it seems like only v2.56 works for ARM as DPDK_1808 headers are used up till v2.56, after that it expects DPDK19 which Trex only has headers for in x86. Seems they stopped supporting ARM for sometime now. Did you have any luck working on it? I am having some linker issues with zmq currently, I think my .so files need to be updated but Trex does not update it during build, they are static.