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

Build a custom BF kernel using the Ubuntu src tree #28

Open
maryamtahhan opened this issue Aug 28, 2023 · 1 comment
Open

Build a custom BF kernel using the Ubuntu src tree #28

maryamtahhan opened this issue Aug 28, 2023 · 1 comment
Assignees
Milestone

Comments

@maryamtahhan
Copy link
Collaborator

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

@maryamtahhan maryamtahhan converted this from a draft issue Aug 28, 2023
@maryamtahhan maryamtahhan self-assigned this Aug 28, 2023
@maryamtahhan
Copy link
Collaborator Author

  • Try to cross compile on x86_64 --> didn't work due to a direct dependency on a python 3 package which is not arch independent
  • Setup an ARM 64 VM in beaker
  • [] Try to build debian package ---> currently trying to debug build failures
## 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 

@maryamtahhan maryamtahhan moved this to In Progress in ekho Aug 28, 2023
@maryamtahhan maryamtahhan added this to the Phase 1 milestone Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: In Progress
Development

No branches or pull requests

1 participant