Infiniband documentation outdated
Peter Holvenstot
spamlessone at gmail.com
Sat Dec 15 10:16:03 UTC 2018
Also, for me /etc/src.conf did not exist by default and adding
WITH_OFED='yes' did not help, I got a build error with a generic kernel
with the appropriate device and option flags added (nor did
WITH_OFED="YES"). It appears that this might need to be added as a
command-line arg when doing buildkernel, rather than as a src.conf
parameter... unless they are supposed to be equivalent functionality wise?
Not sure if the suggestions I read on forums were correct or not here,
after I got the kernel modules to load successfully I abandoned attempting
to build it into the kernel, but I could not successfully build the kernel
by following the documentation here (again, as of 12.0-RELEASE).
Might be newbie mistakes, I'm just transitioning from Linux to FreeBSD, but
the documentation appears to have possibly drifted at least somewhat from
the codebase here on 12.0 release.
On Sat, Dec 15, 2018 at 4:56 AM Peter Holvenstot <spamlessone at gmail.com>
wrote:
> Hello,
>
> the script to build the kernel modules for the mlx4 infiniband driver
> appears to be outdated at least as of 12.0-RELEASE. After some searching,
> it appears the correct script is:
>
> #!/bin/sh -e
>
> cd /usr/src/sys/modules
> for module in mlx4 ibcore mlx4ib ipoib; do
> cd $module
>
> *make DEBUG_FLAGS="-DVIMAGE=1"* make install
> sync
> kldload $module || true
> printf "${module}_load=\"YES\"\n" >> /boot/loader.conf
> cd ..
> done
> kldstat
>
> note the addition of the DEBUG_FLAGS. Otherwise all of the modules except
> mlx4 fail to kldload correctly.
>
> Thanks,
> Peter
>
More information about the freebsd-doc
mailing list