Hello Gerry, I went through this a while ago and had to properly remove everything related to OFED with the uninstaller. Then, install rdma-core and libibverbs-dev which includes infiniband/mlx5dv.h IIRC. Regards, Patrick
On Sun, Aug 1, 2021 at 8:23 PM Gerry Wan <ger...@stanford.edu> wrote: > I recently tried to reinstall MLX OFED 5.2-2.2.0.0 on my bare metal machine > Ubuntu 20.04 (previously using the command ./mlnxofedinstall --dpdk > --upstream-libs --with-mft --with-kernel-mft). However, it now fails with > the message > > Checking SW Requirements... > Removing old packages... > Uninstalling the previous version of MLNX_OFED_LINUX > Installing new packages Installing mft-4.16.1... > Installing ofed-scripts-5.2... > Installing mstflint-4.15.0... > Installing mlnx-ofed-kernel-utils-5.2... > Installing mlnx-ofed-kernel-dkms-5.2... > Failed to install mlnx-ofed-kernel-dkms DEB > Collecting debug info... > See /tmp/MLNX_OFED_LINUX.9221.logs/mlnx-ofed-kernel-dkms.debinstall.log > > It appears that my kernel version got upgraded to 5.4.0-80-generic which I > think may be the issue. I've also tried to install using > --add-kernel-support --kernel 5.4.0-80-generic, with no luck. > > The DPDK website says that rdma-core is now recommended over OFED, but the > documentation for how to use it isn't very clear to me. I've tried to > install it via > > apt-get install rdma-core > > as well as running the quick start script listed here: > https://github.com/linux-rdma/rdma-core > <https://github.com/linux-rdma/rdma-core>, > but DPDK installation still fails > with > > ../drivers/common/mlx5/linux/mlx5_glue.h:15:10: fatal error: > infiniband/mlx5dv.h: No such file or directory > 15 | #include <infiniband/mlx5dv.h> > > Any advice on getting the mlx5 drivers to work again would be helpful! >