Open Que0Le opened 5 years ago
@magnus-karlsson is the xsk API not supposed to work on 32bit?
32-bit support for ARM was not working until this patch made it into the kernel:
commit 76f34950779f3d7847c94615232dff2cdc2f9844 Author: Ivan Khoronzhuk ivan.khoronzhuk@linaro.org Date: Mon Sep 23 15:39:28 2019 -0700
mm: mmap: increase sockets maximum memory size pgoff for 32bits
It should be in linux-next. Ivan is your man here :-).
32-bit support for ARM was not working until this patch made it into the kernel: It should be in linux-next. Ivan is your man here :-).
So did I understand: XDP (as well BPF I suppose) does not work on ARM 32bit system ( ARM 64bit?). What about Intel/AMD platforms?
If you use 5.3 or older, it works on ARM 64-bit and x86 with a 64-bit kernel for both 32 and 64 bit user space. It only works for 32-bit kernels from 5.4 (or any of the release candidates of 5.4) and onward.
And the previous comment is only valid for AF_XDP. As for XDP, I do not know.
I was able to get all the basic lessons to run on 32-bit ARM (on kernel 4.19). I had to tweak the Makefiles for cross-tool support and add large file defines.
I did not need the mmap kernel fix until trying AF_XDP. I ported it back to my 4.19, and I am still failing to load, so I'll try 5.4.
I think the problem here is largefile defines in common.mk
CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
jt416 notifications@github.com writes:
I was able to get all the basic lessons to run on 32-bit ARM (on kernel 4.19). I had to tweak the Makefiles for cross-tool support and add large file defines.
Feel free to open a pull request with those changes :)
Hi,
I am working on a Beagle Board and try to compile xdp example but encountered error. I followed setup_dependencies.org, all installed but bpftool:
My system: Debian.
When I make basic01 program I got this: