Compile Infiniband modules for pfSense 2.2

First of all, here you can download the compiled modules and skip the following if don’t want it to do it on your own:

http://www.routerperformance.net/wp-content/uploads/2015/02/ibmodules.tar.gz

 

Steps:

  • Install FreeBSD 10.1 as a full install on Virtualbox
  • Download the Mellanox drivers for FreeBSD
  • Extract the archive and go in the modules folders
  • In each folder do a „make -m /usr/share/mk SYSDIR=/sys“ and „make -m /usr/share/mk SYSDIR=/sys install“
  • Pack ibcore.kp, ipoib.ko, mlx4.ko, mlx4ib.ko and mlxen.ko and scp them on pfSense on /boot/kernel
  • Then add this to /boot/loader.conf.local and reboot
    mlx4_load=“YES“
    mlx4ib_load=“YES“
    mlxen_load=“YES“
    ipoib_load=“YES“