Infiniband HOWTO: Installing the OFED Software

Next Previous Contents

## 2. Installing the OFED Software

Before you can use your infiniband network you will need to install the OFED software on your infiniband client machines. You can choose to use the pre-build packages on alioth, or build your own packages straight from the alioth SVN repository.

## 2.1 Installing prebuilt packages

Add the following lines to your sources.list file:

> `

>     deb http://pkg-ofed.alioth.debian.org/apt/ofed ./
>     deb-src http://pkg-ofed.alioth.debian.org/apt/ofed ./

> `

and run:

> `

>     aptitude update
>     aptitude install ofed

> `

## 2.2 Building packages from source

If you wish to build the OFED packages from the alioth svn repository, use the following procedure.

### Install the prerequisites development packages

> `

>     aptitude install svn-buildpackage build-essential devscripts

> `

### Checkout the svn tree

> `svn co svn://svn.debian.org/pkg-ofed/`

### Install the upstream source (optional)

The upstream source tarballs need to be available if you want to build pukka debian packages suitable for inclusion upstream. If you are simply building packages for your own use, you can ignore this step.

> `

>     cd pkg-ofed
>     mkdir tarballs

> `

Original source tarballs can be downloaded from the repository:

> `

>       apt-get source libibverbs

> `

Alternatively, you can grab the source code directly from upstream.

http://www.openfabrics.org/downloads/OFED/

Upstream source is distributed via SRPMS; you can use alien to convert them into tarballs.

### Build the packages.

cd into the package you wish to build. eg for libibcommon,

> `cd pkg-ofed/libibcommon`

Link in the upstream tarballs directory (optional)

> `ln -s -f ../tarballs .`

Run svn-buildpackage from within the trunk directory.

> `

>      cd pkg-ofed/libibcommon/trunk
>      svn-buildpackage -uc -us -rfakeroot

> `

The build process will generate a deb in the build-area directory.

Repeat the process for the rest of the packages. Note that some packages have build dependancies on other OFED packages. The suggested build order is:

> `

>      libibverbs
>      libnes
>      libcxgb3
>      libipathverbs
>      libmlx4
>      libmthca
>      librdmacm
>      libibcm
>      libibcommon
>      libibumad
>      libibmad
>      libsdp
>      dapl
>      opensm
>      infiniband-diags
>      ibutils
>      mstflint
>      perftest
>      qlvnictools
>      qperf
>      rds-tools
>      sdpnetstat
>      srptools
>      tvflash
>      ibsim
>      mpitests
>      ofed-docs
>      ofa_kernel
>      ofed

> `

Next Previous Contents