Open maryamtahhan opened 1 year ago
## Start an ubuntu 20.04 container
## connect to container...
## Install deps
apt-get install -y libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf llvm
apt install -y git vim
apt-get install debhelper
apt-get install tmux
apt install cpio libcap-dev libnewt-dev default-jdk-headless java-common rsync libdw-dev pkg-config python3-dev libunwind8-dev liblzma-dev libaudit-dev bc uuid-dev libnuma-dev dwarves xmlto docbook-utils ghostscript fig2dev sharutils asciidoc python3-sphinx python3-sphinx-rtd-theme fontconfig python3-docutils imagemagick graphviz dvipng fonts-noto-cjk latexmk librsvg2-bin
## Clone the kernel sources
git clone https://git.launchpad.net/~ubuntu-kernel-stable/+git/focal #### maybe we just need the annotations
cd focal
git clone https://git.launchpad.net/ubuntu/+source/linux-bluefield
cd linux-bluefield/
## git checkout applied/5.15.0-1011.13. <<<<< MIGHT NEED TO TRY A 5.4 tag instead...
### NLMON is already enabled in focal... let's build
dpkg-buildpackage -us -uc
Try to build custom kernel debian packages using the git repo: https://git.launchpad.net/ubuntu/+source/linux-bluefield in order to install and use as part of a custom BFB.
This will form a basis for trying to add the bpf changes we've implemented onto the BF Kernel