参考链接:https://docs.nvidia.com/doca/archive/doca-v2-5-0/nvidia+doca+developer+quick+start+guide/index.html
DPU_2">安装DPU硬件
参考链接:https://docs.nvidia.com/networking/display/bluefield2dpuenug/hardware+installation
断电、插网卡
卸载之前的驱动
后续卸载之前驱动、配置Host环境、配置DPU环境等,均按照下方参考链接来配置,其中的版本好、.deb文件的选择,也都是根据系统,按照其中的表格来进行选择的。
需要注意的是,因为安装的ubuntu系统为18.04,所以与其相匹配的最大doca环境是2.5,因此没有选择最新的doca2.6进行配置
参考链接:https://docs.nvidia.com/doca/archive/doca-v2-5-0/nvidia+doca+installation+guide+for+linux/index.html#src-2448907425_NVIDIADOCAInstallationGuideforLinux-BuildingYourOwnBFBInstallationImage
for f in $( dpkg --list | grep doca | awk '{print $2}' ); do echo $f ; apt remove --purge $f -y ; done
ofed_uninstall.sh --force
sudo apt-get autoremove
wget http://www.mellanox.com/downloads/ofed/RPM-GPG-KEY-Mellanox-SHA256
sudo apt install rpm
sudo rpm --import RPM-GPG-KEY-Mellanox-SHA256
rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n' | grep Mellanox
在Host上安装DOCA
找到系统版本所对应的DOCA安装文件(我的是ubuntu18.04版本的OS):
解压缩:
sudo dpkg -i doca-host-repo-ubuntu1804_2.5.0-0.0.1.2.5.0108.1.23.10.1.1.9.0_amd64.deb
更新镜像:
sudo apt-get update
安装doca-tools:
sudo apt install doca-tools
通过下面命令启动mst,并获取DPU的device id:
mst start
mst status -v
/dev/mst/mt41692_pciconf0.1
就是device id。
安装:
sudo apt install -y doca-runtime doca-sdk doca-tools
sudo mlxconfig -d /dev/mst/mt41692_pciconf0.1 -y reset
sudo mlxconfig -d /dev/mst/mt41692_pciconf0.1 -e q | grep -i link_type
Verify that RShim is active
sudo systemctl status rshim
sudo apt install -y doca-ofed
sudo mst start
sudo mlxconfig -d /dev/mst/mt41692_pciconf0.1 -y reset
Assign a dynamic IP to tmfifo_net0 interface (RShim host interface).
ifconfig tmfifo_net0 192.168.100.1 netmask 255.255.255.252 up
DPUbfb_ubuntu_125">在DPU上安装bfb ubuntu镜像
安装pv
sudo apt-get install pv
sudo bfb-install --rshim rshim0 --bfb DOCA_2.5.0_BSP_4.5.0_Ubuntu_22.04-1.23-10.prod.bfb --config bf.cfg
验证:
ls -la /dev/ | grep rshim
连接DPU:
ssh ubuntu@192.168.100.2
然后输入密码sdn123456
查看DPU上OS版本信息:
cat /proc/version
DPU侧安装:
root@server11:/home/sdn/YFman/BF3/deb# sudo scp -r doca-dpu-repo-ubuntu2204-local_2.5.0107-1.23.10.1.2.0.0.bf.4.5.0.12993_arm64.deb ubuntu@192.168.100.2:/tmp/