Skip to content

Instantly share code, notes, and snippets.

@neomantra
Created February 2, 2023 12:45
Show Gist options
  • Save neomantra/a430cedf5e5ef3400b76b5760564acb6 to your computer and use it in GitHub Desktop.
Save neomantra/a430cedf5e5ef3400b76b5760564acb6 to your computer and use it in GitHub Desktop.
Installing OpenOnload on Ubuntu 22.04 Jammy
# adapted from https://github.com/neomantra/docker-onload/blob/master/jammy/Dockerfile
# install dependencies
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends \
autoconf \
automake \
ca-certificates \
coreutils \
curl \
ethtool \
g++ \
gcc \
kmod \
linux-libc-dev \
libpcap0.8-dev \
libtool-bin \
make \
net-tools \
patch \
perl \
python2-dev \
sed \
tar \
unzip \
util-linux \
valgrind \
wget
# download and extract OpenOnload
export ONLOAD_PACKAGE_URL="https://www.xilinx.com/content/dam/xilinx/publications/solarflare/onload/openonload/7-1-3-202/SF-109585-LS-37-OpenOnload-release-package.zip"
curl -fSL $ONLOAD_PACKAGE_URL -o SF-109585-LS-37-OpenOnload-release-package.zip
unzip SF-109585-LS-37-OpenOnload-release-package.zip
tar xzf onload-7.1.3.202.tgz
# install OpenOnload
cd onload-7.1.3.202
sudo ./scripts/onload_install
# download sfreport.pl for reporting
cd ~
export SFREPORT_URL="https://www.xilinx.com/content/dam/xilinx/publications/solarflare/drivers-software/linux/SF-108317-LS-7-Solarflare-Linux-diagnostic-sfreport.tgz"
curl -fSL $SFREPORT_URL -o sfreport.pl
chmod 755 ./sfreport.pl
sudo ./sfreport.pl
# also run sfkey (part of Onload), here's a result for a Plus-licensed SFN8522-PLUS card
sudo sfkey --all
#p1p1,p1p2: 000F534840F0
# Product name Solarflare Flareon Ultra 8000 Series 10G Adapter
# Serial number 852200210000164047100371
# Installed keys Plus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment