Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update setup_dependencies.org #201

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions setup_dependencies.org
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,46 @@ is provided by Netronome
[[https://help.netronome.com/support/solutions/articles/36000050009-agilio-ebpf-2-0-6-extended-berkeley-packet-filter][on their support website]].
The binary is statically linked, and should work on any x86-64 Linux machine.

If you are using Debian Buster, you may acitvate buster-backports in /etc/apt/sources.list to get access to bpftool.

#+begin_example
$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security buster/updates main contrib non-free
# Backports are _not_ enabled by default.
# Enable them by uncommenting the following line:
deb http://deb.debian.org/debian buster-backports main contrib non-free

$ apt update
$ apt install bpftool
#+end_example

If you are doing your experiments on a Raspberry Pi (or maybe other ARM based architectures) you might run into some dependency errors:

#+begin_example
In file included from xdp_pass_kern.c:2:
In file included from ../headers/linux/bpf.h:11:
/usr/include/linux/types.h:5:10: fatal error: 'asm/types.h' file not found
#include <asm/types.h>
^~~~~~~~~~~~~
#+end_example

Add additional BPF_CFLAGS in common/common.mk will fix that:

#+begin_example
$ git diff common/common.mk
...
BPF_CFLAGS ?= -I$(LIBBPF_DIR)/build/usr/include/ -I../headers/
+BPF_CFLAGS += -I/usr/include/aarch64-linux-gnu
#+end_example


** Packages on openSUSE

On a machine running the openSUSE Tumbleweed distribution, install package:

#+begin_example
$ sudo zypper install bpftool
#+end_example

**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spurious empty heading snuck in at the end..