- Install Docker, Redroid Drivers, Tools, Headers:
sudo ./setup-host-ubuntu20.sh
- Create Redroid-13-arm64 Instance:
sudo ./setup-container.sh
- Install ADEB in Host:
sudo ./setup-host-adeb.sh
- Install ADEB in Redroid:
./setup-guest-adeb.sh
- Compile and Install BCC in Redroid:
./setup-guest-bcc.sh
sudo docker rm -f redroid-13
- BCC compilation is v0.24.0 with LLVM7, later version require LLVM10.
- ADEB cannot see docker mapped
/usr/src
filesystem, so linux headers is copied into/usr/src
form ADB shell. - You need an AArch64 Host, or switch docker image to
redroid:*-amd64
, See details on redroid-doc. - BPF features depends on kernel for Host.
- Happy BPF learning ~